Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the encryption configuration for X-Ray data.
Synopsis
- putEncryptionConfig :: EncryptionType -> PutEncryptionConfig
- data PutEncryptionConfig
- pecKeyId :: Lens' PutEncryptionConfig (Maybe Text)
- pecType :: Lens' PutEncryptionConfig EncryptionType
- putEncryptionConfigResponse :: Int -> PutEncryptionConfigResponse
- data PutEncryptionConfigResponse
- pecrsEncryptionConfig :: Lens' PutEncryptionConfigResponse (Maybe EncryptionConfig)
- pecrsResponseStatus :: Lens' PutEncryptionConfigResponse Int
Creating a Request
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 setType
toNONE
.pecType
- The type of encryption. Set toKMS
to use your own key for encryption. Set toNONE
for default encryption.
data PutEncryptionConfig Source #
See: putEncryptionConfig
smart constructor.
Instances
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:
pecrsEncryptionConfig
- The new encryption configuration.pecrsResponseStatus
- -- | The response status code.
data PutEncryptionConfigResponse Source #
See: putEncryptionConfigResponse
smart constructor.
Instances
Response Lenses
pecrsEncryptionConfig :: Lens' PutEncryptionConfigResponse (Maybe EncryptionConfig) Source #
The new encryption configuration.
pecrsResponseStatus :: Lens' PutEncryptionConfigResponse Int Source #
- - | The response status code.