Copyright | (c) 2013-2021 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 |
Sets the default encryption configuration for the Amazon Web Services account. For more information, see Key management in the IoT SiteWise User Guide.
Synopsis
- data PutDefaultEncryptionConfiguration = PutDefaultEncryptionConfiguration' {}
- newPutDefaultEncryptionConfiguration :: EncryptionType -> PutDefaultEncryptionConfiguration
- putDefaultEncryptionConfiguration_kmsKeyId :: Lens' PutDefaultEncryptionConfiguration (Maybe Text)
- putDefaultEncryptionConfiguration_encryptionType :: Lens' PutDefaultEncryptionConfiguration EncryptionType
- data PutDefaultEncryptionConfigurationResponse = PutDefaultEncryptionConfigurationResponse' {}
- newPutDefaultEncryptionConfigurationResponse :: Int -> EncryptionType -> ConfigurationStatus -> PutDefaultEncryptionConfigurationResponse
- putDefaultEncryptionConfigurationResponse_kmsKeyArn :: Lens' PutDefaultEncryptionConfigurationResponse (Maybe Text)
- putDefaultEncryptionConfigurationResponse_httpStatus :: Lens' PutDefaultEncryptionConfigurationResponse Int
- putDefaultEncryptionConfigurationResponse_encryptionType :: Lens' PutDefaultEncryptionConfigurationResponse EncryptionType
- putDefaultEncryptionConfigurationResponse_configurationStatus :: Lens' PutDefaultEncryptionConfigurationResponse ConfigurationStatus
Creating a Request
data PutDefaultEncryptionConfiguration Source #
See: newPutDefaultEncryptionConfiguration
smart constructor.
PutDefaultEncryptionConfiguration' | |
|
Instances
newPutDefaultEncryptionConfiguration Source #
Create a value of PutDefaultEncryptionConfiguration
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:kmsKeyId:PutDefaultEncryptionConfiguration'
, putDefaultEncryptionConfiguration_kmsKeyId
- The Key ID of the customer managed customer master key (CMK) used for
KMS encryption. This is required if you use KMS_BASED_ENCRYPTION
.
$sel:encryptionType:PutDefaultEncryptionConfiguration'
, putDefaultEncryptionConfiguration_encryptionType
- The type of encryption used for the encryption configuration.
Request Lenses
putDefaultEncryptionConfiguration_kmsKeyId :: Lens' PutDefaultEncryptionConfiguration (Maybe Text) Source #
The Key ID of the customer managed customer master key (CMK) used for
KMS encryption. This is required if you use KMS_BASED_ENCRYPTION
.
putDefaultEncryptionConfiguration_encryptionType :: Lens' PutDefaultEncryptionConfiguration EncryptionType Source #
The type of encryption used for the encryption configuration.
Destructuring the Response
data PutDefaultEncryptionConfigurationResponse Source #
See: newPutDefaultEncryptionConfigurationResponse
smart constructor.
PutDefaultEncryptionConfigurationResponse' | |
|
Instances
newPutDefaultEncryptionConfigurationResponse Source #
:: Int | |
-> EncryptionType | |
-> ConfigurationStatus |
|
-> PutDefaultEncryptionConfigurationResponse |
Create a value of PutDefaultEncryptionConfigurationResponse
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:kmsKeyArn:PutDefaultEncryptionConfigurationResponse'
, putDefaultEncryptionConfigurationResponse_kmsKeyArn
- The Key ARN of the KMS CMK used for KMS encryption if you use
KMS_BASED_ENCRYPTION
.
$sel:httpStatus:PutDefaultEncryptionConfigurationResponse'
, putDefaultEncryptionConfigurationResponse_httpStatus
- The response's http status code.
$sel:encryptionType:PutDefaultEncryptionConfiguration'
, putDefaultEncryptionConfigurationResponse_encryptionType
- The type of encryption used for the encryption configuration.
$sel:configurationStatus:PutDefaultEncryptionConfigurationResponse'
, putDefaultEncryptionConfigurationResponse_configurationStatus
- The status of the account configuration. This contains the
ConfigurationState
. If there is an error, it also contains the
ErrorDetails
.
Response Lenses
putDefaultEncryptionConfigurationResponse_kmsKeyArn :: Lens' PutDefaultEncryptionConfigurationResponse (Maybe Text) Source #
The Key ARN of the KMS CMK used for KMS encryption if you use
KMS_BASED_ENCRYPTION
.
putDefaultEncryptionConfigurationResponse_httpStatus :: Lens' PutDefaultEncryptionConfigurationResponse Int Source #
The response's http status code.
putDefaultEncryptionConfigurationResponse_encryptionType :: Lens' PutDefaultEncryptionConfigurationResponse EncryptionType Source #
The type of encryption used for the encryption configuration.
putDefaultEncryptionConfigurationResponse_configurationStatus :: Lens' PutDefaultEncryptionConfigurationResponse ConfigurationStatus Source #
The status of the account configuration. This contains the
ConfigurationState
. If there is an error, it also contains the
ErrorDetails
.