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

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

Network.AWS.KMS.UpdateAlias

Contents

Description

Updates an alias to map it to a different key.

An alias is not a property of a key. Therefore, an alias can be mapped to and unmapped from an existing key without changing the properties of the key.

An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word "alias" followed by a forward slash (alias/). An alias that begins with "aws" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

The alias and the key it is mapped to must be in the same AWS account and the same region.

Synopsis

Creating a Request

updateAlias Source #

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

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

data UpdateAlias Source #

See: updateAlias smart constructor.

Instances

Eq UpdateAlias Source # 
Data UpdateAlias Source # 

Methods

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

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

toConstr :: UpdateAlias -> Constr #

dataTypeOf :: UpdateAlias -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAlias Source # 
Show UpdateAlias Source # 
Generic UpdateAlias Source # 

Associated Types

type Rep UpdateAlias :: * -> * #

Hashable UpdateAlias Source # 
ToJSON UpdateAlias Source # 
NFData UpdateAlias Source # 

Methods

rnf :: UpdateAlias -> () #

AWSRequest UpdateAlias Source # 
ToQuery UpdateAlias Source # 
ToPath UpdateAlias Source # 
ToHeaders UpdateAlias Source # 

Methods

toHeaders :: UpdateAlias -> [Header] #

type Rep UpdateAlias Source # 
type Rep UpdateAlias = D1 (MetaData "UpdateAlias" "Network.AWS.KMS.UpdateAlias" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "UpdateAlias'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uaAliasName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_uaTargetKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateAlias Source # 

Request Lenses

uaAliasName :: Lens' UpdateAlias Text Source #

String that contains the name of the alias to be modified. The name must start with the word "alias" followed by a forward slash (alias/). Aliases that begin with "alias/aws" are reserved.

uaTargetKeyId :: Lens' UpdateAlias Text Source #

Unique identifier of the customer master key to be mapped to the alias. This value can be a globally unique identifier or the fully specified ARN of a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

You can call ListAliases to verify that the alias is mapped to the correct TargetKeyId.

Destructuring the Response

updateAliasResponse :: UpdateAliasResponse Source #

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

data UpdateAliasResponse Source #

See: updateAliasResponse smart constructor.

Instances

Eq UpdateAliasResponse Source # 
Data UpdateAliasResponse Source # 

Methods

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

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

toConstr :: UpdateAliasResponse -> Constr #

dataTypeOf :: UpdateAliasResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAliasResponse Source # 
Show UpdateAliasResponse Source # 
Generic UpdateAliasResponse Source # 
NFData UpdateAliasResponse Source # 

Methods

rnf :: UpdateAliasResponse -> () #

type Rep UpdateAliasResponse Source # 
type Rep UpdateAliasResponse = D1 (MetaData "UpdateAliasResponse" "Network.AWS.KMS.UpdateAlias" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "UpdateAliasResponse'" PrefixI False) U1)