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

Copyright(c) 2013-2017 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.UpdateKeyDescription

Contents

Description

Updates the description of a customer master key (CMK). To see the decription of a CMK, use DescribeKey .

You cannot perform this operation on a CMK in a different AWS account.

Synopsis

Creating a Request

updateKeyDescription Source #

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

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

  • ukdKeyId - 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 .
  • ukdDescription - New description for the CMK.

data UpdateKeyDescription Source #

See: updateKeyDescription smart constructor.

Instances

Eq UpdateKeyDescription Source # 
Data UpdateKeyDescription Source # 

Methods

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

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

toConstr :: UpdateKeyDescription -> Constr #

dataTypeOf :: UpdateKeyDescription -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: UpdateKeyDescription -> () #

AWSRequest UpdateKeyDescription Source # 
ToQuery UpdateKeyDescription Source # 
ToPath UpdateKeyDescription Source # 
ToHeaders UpdateKeyDescription Source # 
type Rep UpdateKeyDescription Source # 
type Rep UpdateKeyDescription = D1 (MetaData "UpdateKeyDescription" "Network.AWS.KMS.UpdateKeyDescription" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" False) (C1 (MetaCons "UpdateKeyDescription'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ukdKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ukdDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateKeyDescription Source # 

Request Lenses

ukdKeyId :: Lens' UpdateKeyDescription 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 .

ukdDescription :: Lens' UpdateKeyDescription Text Source #

New description for the CMK.

Destructuring the Response

updateKeyDescriptionResponse :: UpdateKeyDescriptionResponse Source #

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

data UpdateKeyDescriptionResponse Source #

See: updateKeyDescriptionResponse smart constructor.

Instances

Eq UpdateKeyDescriptionResponse Source # 
Data UpdateKeyDescriptionResponse Source # 

Methods

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

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

toConstr :: UpdateKeyDescriptionResponse -> Constr #

dataTypeOf :: UpdateKeyDescriptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateKeyDescriptionResponse Source # 
Show UpdateKeyDescriptionResponse Source # 
Generic UpdateKeyDescriptionResponse Source # 
NFData UpdateKeyDescriptionResponse Source # 
type Rep UpdateKeyDescriptionResponse Source # 
type Rep UpdateKeyDescriptionResponse = D1 (MetaData "UpdateKeyDescriptionResponse" "Network.AWS.KMS.UpdateKeyDescription" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" False) (C1 (MetaCons "UpdateKeyDescriptionResponse'" PrefixI False) U1)