amazonka-kms-1.6.0: 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.EnableKeyRotation

Contents

Description

Enables automatic rotation of the key material for the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

Synopsis

Creating a Request

enableKeyRotation Source #

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

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

  • ekrKeyId - A unique identifier for the customer master key (CMK). 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 EnableKeyRotation Source #

See: enableKeyRotation smart constructor.

Instances

Eq EnableKeyRotation Source # 
Data EnableKeyRotation Source # 

Methods

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

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

toConstr :: EnableKeyRotation -> Constr #

dataTypeOf :: EnableKeyRotation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnableKeyRotation Source # 
Show EnableKeyRotation Source # 
Generic EnableKeyRotation Source # 
Hashable EnableKeyRotation Source # 
ToJSON EnableKeyRotation Source # 
NFData EnableKeyRotation Source # 

Methods

rnf :: EnableKeyRotation -> () #

AWSRequest EnableKeyRotation Source # 
ToHeaders EnableKeyRotation Source # 
ToPath EnableKeyRotation Source # 
ToQuery EnableKeyRotation Source # 
type Rep EnableKeyRotation Source # 
type Rep EnableKeyRotation = D1 * (MetaData "EnableKeyRotation" "Network.AWS.KMS.EnableKeyRotation" "amazonka-kms-1.6.0-6a1SDMHmleyARI8mxMgB7S" True) (C1 * (MetaCons "EnableKeyRotation'" PrefixI True) (S1 * (MetaSel (Just Symbol "_ekrKeyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs EnableKeyRotation Source # 

Request Lenses

ekrKeyId :: Lens' EnableKeyRotation Text Source #

A unique identifier for the customer master key (CMK). 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

enableKeyRotationResponse :: EnableKeyRotationResponse Source #

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

data EnableKeyRotationResponse Source #

See: enableKeyRotationResponse smart constructor.

Instances

Eq EnableKeyRotationResponse Source # 
Data EnableKeyRotationResponse Source # 

Methods

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

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

toConstr :: EnableKeyRotationResponse -> Constr #

dataTypeOf :: EnableKeyRotationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EnableKeyRotationResponse Source # 
Show EnableKeyRotationResponse Source # 
Generic EnableKeyRotationResponse Source # 
NFData EnableKeyRotationResponse Source # 
type Rep EnableKeyRotationResponse Source # 
type Rep EnableKeyRotationResponse = D1 * (MetaData "EnableKeyRotationResponse" "Network.AWS.KMS.EnableKeyRotation" "amazonka-kms-1.6.0-6a1SDMHmleyARI8mxMgB7S" False) (C1 * (MetaCons "EnableKeyRotationResponse'" PrefixI False) (U1 *))