amazonka-kms-1.6.1: Amazon Key Management Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.CancelKeyDeletion

Contents

Description

Cancels the deletion of a customer master key (CMK). When this operation is successful, the CMK is set to the Disabled state. To enable a CMK, use EnableKey . You cannot perform this operation on a CMK in a different AWS account.

For more information about scheduling and canceling deletion of a CMK, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide .

Synopsis

Creating a Request

cancelKeyDeletion Source #

Creates a value of CancelKeyDeletion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ckdKeyId - The unique identifier for the customer master key (CMK) for which to cancel deletion. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

data CancelKeyDeletion Source #

See: cancelKeyDeletion smart constructor.

Instances
Eq CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Data CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CancelKeyDeletion -> c CancelKeyDeletion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CancelKeyDeletion #

toConstr :: CancelKeyDeletion -> Constr #

dataTypeOf :: CancelKeyDeletion -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CancelKeyDeletion) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CancelKeyDeletion) #

gmapT :: (forall b. Data b => b -> b) -> CancelKeyDeletion -> CancelKeyDeletion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CancelKeyDeletion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CancelKeyDeletion -> r #

gmapQ :: (forall d. Data d => d -> u) -> CancelKeyDeletion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CancelKeyDeletion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CancelKeyDeletion -> m CancelKeyDeletion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelKeyDeletion -> m CancelKeyDeletion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelKeyDeletion -> m CancelKeyDeletion #

Read CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Show CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Generic CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Associated Types

type Rep CancelKeyDeletion :: Type -> Type #

Hashable CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

ToJSON CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

AWSRequest CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Associated Types

type Rs CancelKeyDeletion :: Type #

ToHeaders CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

ToPath CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

ToQuery CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

NFData CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Methods

rnf :: CancelKeyDeletion -> () #

type Rep CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

type Rep CancelKeyDeletion = D1 (MetaData "CancelKeyDeletion" "Network.AWS.KMS.CancelKeyDeletion" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" True) (C1 (MetaCons "CancelKeyDeletion'" PrefixI True) (S1 (MetaSel (Just "_ckdKeyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CancelKeyDeletion Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Request Lenses

ckdKeyId :: Lens' CancelKeyDeletion Text Source #

The unique identifier for the customer master key (CMK) for which to cancel deletion. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

Destructuring the Response

cancelKeyDeletionResponse Source #

Creates a value of CancelKeyDeletionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CancelKeyDeletionResponse Source #

See: cancelKeyDeletionResponse smart constructor.

Instances
Eq CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Data CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CancelKeyDeletionResponse -> c CancelKeyDeletionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CancelKeyDeletionResponse #

toConstr :: CancelKeyDeletionResponse -> Constr #

dataTypeOf :: CancelKeyDeletionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CancelKeyDeletionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CancelKeyDeletionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CancelKeyDeletionResponse -> CancelKeyDeletionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CancelKeyDeletionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CancelKeyDeletionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CancelKeyDeletionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CancelKeyDeletionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CancelKeyDeletionResponse -> m CancelKeyDeletionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelKeyDeletionResponse -> m CancelKeyDeletionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelKeyDeletionResponse -> m CancelKeyDeletionResponse #

Read CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Show CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Generic CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

Associated Types

type Rep CancelKeyDeletionResponse :: Type -> Type #

NFData CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

type Rep CancelKeyDeletionResponse Source # 
Instance details

Defined in Network.AWS.KMS.CancelKeyDeletion

type Rep CancelKeyDeletionResponse = D1 (MetaData "CancelKeyDeletionResponse" "Network.AWS.KMS.CancelKeyDeletion" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "CancelKeyDeletionResponse'" PrefixI True) (S1 (MetaSel (Just "_ckdrsKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ckdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ckdrsKeyId :: Lens' CancelKeyDeletionResponse (Maybe Text) Source #

The unique identifier of the master key for which deletion is canceled.