internal virtual ListStateMachinesResponse ListStateMachines(ListStateMachinesRequest request) { var marshaller = new ListStateMachinesRequestMarshaller(); var unmarshaller = ListStateMachinesResponseUnmarshaller.Instance; return(Invoke <ListStateMachinesRequest, ListStateMachinesResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonStepFunctionsConfig config = new AmazonStepFunctionsConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonStepFunctionsClient client = new AmazonStepFunctionsClient(creds, config); ListStateMachinesResponse resp = new ListStateMachinesResponse(); do { ListStateMachinesRequest req = new ListStateMachinesRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListStateMachines(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.StateMachines) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListStateMachines operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStateMachines operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines">REST API Reference for ListStateMachines Operation</seealso> public virtual Task <ListStateMachinesResponse> ListStateMachinesAsync(ListStateMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListStateMachinesRequestMarshaller(); var unmarshaller = ListStateMachinesResponseUnmarshaller.Instance; return(InvokeAsync <ListStateMachinesRequest, ListStateMachinesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListStateMachines operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListStateMachines operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines">REST API Reference for ListStateMachines Operation</seealso> public virtual Task <ListStateMachinesResponse> ListStateMachinesAsync(ListStateMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStateMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStateMachinesResponseUnmarshaller.Instance; return(InvokeAsync <ListStateMachinesResponse>(request, options, cancellationToken)); }
internal virtual ListStateMachinesResponse ListStateMachines(ListStateMachinesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStateMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStateMachinesResponseUnmarshaller.Instance; return(Invoke <ListStateMachinesResponse>(request, options)); }