Amazon.KeyManagementService.AmazonKeyManagementServiceClient.EnableKeyAsync C# (CSharp) Method

EnableKeyAsync() public method

Initiates the asynchronous execution of the EnableKey operation.
public EnableKeyAsync ( EnableKeyRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.KeyManagementService.Model.EnableKeyRequest Container for the necessary parameters to execute the EnableKey operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<EnableKeyResponse> EnableKeyAsync(EnableKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new EnableKeyRequestMarshaller();
            var unmarshaller = EnableKeyResponseUnmarshaller.Instance;

            return InvokeAsync<EnableKeyRequest,EnableKeyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonKeyManagementServiceClient::EnableKeyAsync ( string keyId, System cancellationToken = default(CancellationToken) ) : Task
AmazonKeyManagementServiceClient