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

EnableKey() public method

Marks a key as enabled, thereby permitting its use.
/// The system timed out while trying to fulfill the request. The request can be retried. /// /// The request was rejected because a specified ARN was not valid. /// /// The request was rejected because an internal exception occurred. The request can be /// retried. /// /// The request was rejected because the state of the specified resource is not valid /// for this request. /// /// /// /// For more information about how key state affects the use of a CMK, see How /// Key State Affects Use of a Customer Master Key in the AWS Key Management Service /// Developer Guide. /// /// /// The request was rejected because a limit was exceeded. For more information, see Limits /// in the AWS Key Management Service Developer Guide. /// /// The request was rejected because the specified entity or resource could not be found. ///
public EnableKey ( EnableKeyRequest request ) : EnableKeyResponse
request Amazon.KeyManagementService.Model.EnableKeyRequest Container for the necessary parameters to execute the EnableKey service method.
return EnableKeyResponse
        public EnableKeyResponse EnableKey(EnableKeyRequest request)
        {
            var marshaller = new EnableKeyRequestMarshaller();
            var unmarshaller = EnableKeyResponseUnmarshaller.Instance;

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

Same methods

AmazonKeyManagementServiceClient::EnableKey ( string keyId ) : EnableKeyResponse
AmazonKeyManagementServiceClient