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.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 # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Data EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

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 # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Show EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Generic EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Associated Types

type Rep EnableKeyRotation :: Type -> Type #

Hashable EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

ToJSON EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

AWSRequest EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Associated Types

type Rs EnableKeyRotation :: Type #

ToHeaders EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

ToPath EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

ToQuery EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

NFData EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Methods

rnf :: EnableKeyRotation -> () #

type Rep EnableKeyRotation Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

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

Defined in Network.AWS.KMS.EnableKeyRotation

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 # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Data EnableKeyRotationResponse Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

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 # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Show EnableKeyRotationResponse Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Generic EnableKeyRotationResponse Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

Associated Types

type Rep EnableKeyRotationResponse :: Type -> Type #

NFData EnableKeyRotationResponse Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

type Rep EnableKeyRotationResponse Source # 
Instance details

Defined in Network.AWS.KMS.EnableKeyRotation

type Rep EnableKeyRotationResponse = D1 (MetaData "EnableKeyRotationResponse" "Network.AWS.KMS.EnableKeyRotation" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "EnableKeyRotationResponse'" PrefixI False) (U1 :: Type -> Type))