Amazon.Batch.AmazonBatchClient.CreateComputeEnvironmentAsync C# (CSharp) Method

CreateComputeEnvironmentAsync() public method

Initiates the asynchronous execution of the CreateComputeEnvironment operation.
public CreateComputeEnvironmentAsync ( CreateComputeEnvironmentRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Batch.Model.CreateComputeEnvironmentRequest Container for the necessary parameters to execute the CreateComputeEnvironment operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateComputeEnvironmentResponse> CreateComputeEnvironmentAsync(CreateComputeEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateComputeEnvironmentRequestMarshaller();
            var unmarshaller = CreateComputeEnvironmentResponseUnmarshaller.Instance;

            return InvokeAsync<CreateComputeEnvironmentRequest,CreateComputeEnvironmentResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }