| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.XRay.PutEncryptionConfig
Description
Updates the encryption configuration for X-Ray data.
Synopsis
- data PutEncryptionConfig = PutEncryptionConfig' {
- keyId :: Maybe Text
- type' :: EncryptionType
- newPutEncryptionConfig :: EncryptionType -> PutEncryptionConfig
- putEncryptionConfig_keyId :: Lens' PutEncryptionConfig (Maybe Text)
- putEncryptionConfig_type :: Lens' PutEncryptionConfig EncryptionType
- data PutEncryptionConfigResponse = PutEncryptionConfigResponse' {}
- newPutEncryptionConfigResponse :: Int -> PutEncryptionConfigResponse
- putEncryptionConfigResponse_encryptionConfig :: Lens' PutEncryptionConfigResponse (Maybe EncryptionConfig)
- putEncryptionConfigResponse_httpStatus :: Lens' PutEncryptionConfigResponse Int
Creating a Request
data PutEncryptionConfig Source #
See: newPutEncryptionConfig smart constructor.
Constructors
| PutEncryptionConfig' | |
Fields
| |
Instances
newPutEncryptionConfig Source #
Arguments
| :: EncryptionType | |
| -> PutEncryptionConfig |
Create a value of PutEncryptionConfig with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutEncryptionConfig, putEncryptionConfig_keyId - An Amazon Web Services KMS key 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. Amazon Web Services X-Ray does not support asymmetric KMS keys. - 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.
PutEncryptionConfig, putEncryptionConfig_type - The type of encryption. Set to KMS to use your own key for encryption.
Set to NONE for default encryption.
Request Lenses
putEncryptionConfig_keyId :: Lens' PutEncryptionConfig (Maybe Text) Source #
An Amazon Web Services KMS key 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. Amazon Web Services X-Ray does not support asymmetric KMS keys. - 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.
putEncryptionConfig_type :: 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
data PutEncryptionConfigResponse Source #
See: newPutEncryptionConfigResponse smart constructor.
Constructors
| PutEncryptionConfigResponse' | |
Fields
| |
Instances
newPutEncryptionConfigResponse Source #
Arguments
| :: Int | |
| -> PutEncryptionConfigResponse |
Create a value of PutEncryptionConfigResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:encryptionConfig:PutEncryptionConfigResponse', putEncryptionConfigResponse_encryptionConfig - The new encryption configuration.
PutEncryptionConfigResponse, putEncryptionConfigResponse_httpStatus - The response's http status code.
Response Lenses
putEncryptionConfigResponse_encryptionConfig :: Lens' PutEncryptionConfigResponse (Maybe EncryptionConfig) Source #
The new encryption configuration.
putEncryptionConfigResponse_httpStatus :: Lens' PutEncryptionConfigResponse Int Source #
The response's http status code.