amazonka-xray-1.6.0: Amazon X-Ray 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.XRay.PutEncryptionConfig

Contents

Description

Updates the encryption configuration for X-Ray data.

Synopsis

Creating a Request

putEncryptionConfig Source #

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

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

  • pecKeyId - An AWS KMS customer master key (CMK) in one of the following formats: * Alias - The name of the key. For example, alias/MyKey . * Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456 . * ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456 . Use this format to specify a key in a different account. Omit this key if you set Type to NONE .
  • pecType - The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

data PutEncryptionConfig Source #

See: putEncryptionConfig smart constructor.

Instances

Eq PutEncryptionConfig Source # 
Data PutEncryptionConfig Source # 

Methods

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

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

toConstr :: PutEncryptionConfig -> Constr #

dataTypeOf :: PutEncryptionConfig -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: PutEncryptionConfig -> () #

AWSRequest PutEncryptionConfig Source # 
ToHeaders PutEncryptionConfig Source # 
ToPath PutEncryptionConfig Source # 
ToQuery PutEncryptionConfig Source # 
type Rep PutEncryptionConfig Source # 
type Rep PutEncryptionConfig = D1 * (MetaData "PutEncryptionConfig" "Network.AWS.XRay.PutEncryptionConfig" "amazonka-xray-1.6.0-GkxB4dKM36B2MyUfcjBxNG" False) (C1 * (MetaCons "PutEncryptionConfig'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pecKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pecType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * EncryptionType))))
type Rs PutEncryptionConfig Source # 

Request Lenses

pecKeyId :: Lens' PutEncryptionConfig (Maybe Text) Source #

An AWS KMS customer master key (CMK) in one of the following formats: * Alias - The name of the key. For example, alias/MyKey . * Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456 . * ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456 . Use this format to specify a key in a different account. Omit this key if you set Type to NONE .

pecType :: Lens' PutEncryptionConfig EncryptionType Source #

The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

Destructuring the Response

putEncryptionConfigResponse Source #

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

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

data PutEncryptionConfigResponse Source #

See: putEncryptionConfigResponse smart constructor.

Instances

Eq PutEncryptionConfigResponse Source # 
Data PutEncryptionConfigResponse Source # 

Methods

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

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

toConstr :: PutEncryptionConfigResponse -> Constr #

dataTypeOf :: PutEncryptionConfigResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutEncryptionConfigResponse Source # 
Show PutEncryptionConfigResponse Source # 
Generic PutEncryptionConfigResponse Source # 
NFData PutEncryptionConfigResponse Source # 
type Rep PutEncryptionConfigResponse Source # 
type Rep PutEncryptionConfigResponse = D1 * (MetaData "PutEncryptionConfigResponse" "Network.AWS.XRay.PutEncryptionConfig" "amazonka-xray-1.6.0-GkxB4dKM36B2MyUfcjBxNG" False) (C1 * (MetaCons "PutEncryptionConfigResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pecrsEncryptionConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe EncryptionConfig))) (S1 * (MetaSel (Just Symbol "_pecrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses