Amazon.AutoScaling.AmazonAutoScalingClient.SetDesiredCapacityAsync C# (CSharp) Method

SetDesiredCapacityAsync() public method

Initiates the asynchronous execution of the SetDesiredCapacity operation.
public SetDesiredCapacityAsync ( SetDesiredCapacityRequest request, System cancellationToken = default(CancellationToken) ) : Task
request SetDesiredCapacityRequest Container for the necessary parameters to execute the SetDesiredCapacity operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<SetDesiredCapacityResponse> SetDesiredCapacityAsync(SetDesiredCapacityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new SetDesiredCapacityRequestMarshaller();
            var unmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance;

            return InvokeAsync<SetDesiredCapacityRequest,SetDesiredCapacityResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonAutoScalingClient