Amazon.KeyManagementService.AmazonKeyManagementServiceClient.DisableKey C# (CSharp) Méthode

DisableKey() public méthode

Sets the state of a customer master key (CMK) to disabled, thereby preventing its use for cryptographic operations. For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.
/// 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 the specified entity or resource could not be found. ///
public DisableKey ( DisableKeyRequest request ) : DisableKeyResponse
request Amazon.KeyManagementService.Model.DisableKeyRequest Container for the necessary parameters to execute the DisableKey service method.
Résultat DisableKeyResponse
        public DisableKeyResponse DisableKey(DisableKeyRequest request)
        {
            var marshaller = new DisableKeyRequestMarshaller();
            var unmarshaller = DisableKeyResponseUnmarshaller.Instance;

            return Invoke<DisableKeyRequest,DisableKeyResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonKeyManagementServiceClient::DisableKey ( string keyId ) : DisableKeyResponse
AmazonKeyManagementServiceClient