/// <summary>
        /// <para>Provides information about the cluster instances that Amazon EMR provisions on behalf of a user when it creates the cluster. For
        /// example, this operation indicates when the EC2 instances reach the Ready state, when instances become available to Amazon EMR to use for
        /// jobs, and the IP addresses for cluster instances, etc. </para>
        /// </summary>
        ///
        /// <param name="listInstancesRequest">Container for the necessary parameters to execute the ListInstances service method on
        /// AmazonElasticMapReduce.</param>
        ///
        /// <returns>The response from the ListInstances service method, as returned by AmazonElasticMapReduce.</returns>
        ///
        /// <exception cref="T:Amazon.ElasticMapReduce.Model.InternalServerException" />
        /// <exception cref="T:Amazon.ElasticMapReduce.Model.InvalidRequestException" />
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task <ListInstancesResponse> ListInstancesAsync(ListInstancesRequest listInstancesRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ListInstancesRequestMarshaller();
            var unmarshaller = ListInstancesResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, ListInstancesRequest, ListInstancesResponse>(listInstancesRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Exemple #2
0
 public override ListInstancesResponse GetResponse(UnmarshallerContext unmarshallerContext)
 {
     return(ListInstancesResponseUnmarshaller.Unmarshall(unmarshallerContext));
 }