internal virtual DescribeServersResponse DescribeServers(DescribeServersRequest request) { var marshaller = DescribeServersRequestMarshaller.Instance; var unmarshaller = DescribeServersResponseUnmarshaller.Instance; return(Invoke <DescribeServersRequest, DescribeServersResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonOpsWorksCMConfig config = new AmazonOpsWorksCMConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonOpsWorksCMClient client = new AmazonOpsWorksCMClient(creds, config); DescribeServersResponse resp = new DescribeServersResponse(); do { DescribeServersRequest req = new DescribeServersRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.DescribeServers(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Servers) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeServers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeServers 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/opsworkscm-2016-11-01/DescribeServers">REST API Reference for DescribeServers Operation</seealso> public virtual Task <DescribeServersResponse> DescribeServersAsync(DescribeServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeServersRequestMarshaller.Instance; var unmarshaller = DescribeServersResponseUnmarshaller.Instance; return(InvokeAsync <DescribeServersRequest, DescribeServersResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeServers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeServers 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/opsworkscm-2016-11-01/DescribeServers">REST API Reference for DescribeServers Operation</seealso> public virtual Task <DescribeServersResponse> DescribeServersAsync(DescribeServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServersResponseUnmarshaller.Instance; return(InvokeAsync <DescribeServersResponse>(request, options, cancellationToken)); }
internal virtual DescribeServersResponse DescribeServers(DescribeServersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeServersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeServersResponseUnmarshaller.Instance; return(Invoke <DescribeServersResponse>(request, options)); }