internal virtual ListMeshesResponse ListMeshes(ListMeshesRequest request) { var marshaller = ListMeshesRequestMarshaller.Instance; var unmarshaller = ListMeshesResponseUnmarshaller.Instance; return(Invoke <ListMeshesRequest, ListMeshesResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonAppMeshConfig config = new AmazonAppMeshConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonAppMeshClient client = new AmazonAppMeshClient(creds, config); ListMeshesResponse resp = new ListMeshesResponse(); do { ListMeshesRequest req = new ListMeshesRequest { NextToken = resp.NextToken , Limit = maxItems }; resp = client.ListMeshes(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Meshes) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListMeshes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMeshes 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/appmesh-2018-10-01/ListMeshes">REST API Reference for ListMeshes Operation</seealso> public virtual Task <ListMeshesResponse> ListMeshesAsync(ListMeshesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = ListMeshesRequestMarshaller.Instance; var unmarshaller = ListMeshesResponseUnmarshaller.Instance; return(InvokeAsync <ListMeshesRequest, ListMeshesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListMeshes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMeshes 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/appmesh-2018-10-01/ListMeshes">REST API Reference for ListMeshes Operation</seealso> public virtual Task <ListMeshesResponse> ListMeshesAsync(ListMeshesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMeshesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMeshesResponseUnmarshaller.Instance; return(InvokeAsync <ListMeshesResponse>(request, options, cancellationToken)); }
internal virtual ListMeshesResponse ListMeshes(ListMeshesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMeshesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMeshesResponseUnmarshaller.Instance; return(Invoke <ListMeshesResponse>(request, options)); }