internal virtual ListInputsResponse ListInputs(ListInputsRequest request) { var marshaller = new ListInputsRequestMarshaller(); var unmarshaller = ListInputsResponseUnmarshaller.Instance; return(Invoke <ListInputsRequest, ListInputsResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonMediaLiveConfig config = new AmazonMediaLiveConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonMediaLiveClient client = new AmazonMediaLiveClient(creds, config); ListInputsResponse resp = new ListInputsResponse(); do { ListInputsRequest req = new ListInputsRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListInputs(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Inputs) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListInputs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListInputs 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/medialive-2017-10-14/ListInputs">REST API Reference for ListInputs Operation</seealso> public virtual Task <ListInputsResponse> ListInputsAsync(ListInputsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListInputsRequestMarshaller(); var unmarshaller = ListInputsResponseUnmarshaller.Instance; return(InvokeAsync <ListInputsRequest, ListInputsResponse>(request, marshaller, unmarshaller, cancellationToken)); }