| 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.IoTSiteWise.PutDefaultEncryptionConfiguration
Description
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.
Constructors
| PutDefaultEncryptionConfiguration' | |
Fields
| |
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 key used for KMS encryption. This is
required if you use KMS_BASED_ENCRYPTION.
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 key 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.
Constructors
| PutDefaultEncryptionConfigurationResponse' | |
Fields
| |
Instances
newPutDefaultEncryptionConfigurationResponse Source #
Arguments
| :: 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 key used for KMS encryption if you use
KMS_BASED_ENCRYPTION.
$sel:httpStatus:PutDefaultEncryptionConfigurationResponse', putDefaultEncryptionConfigurationResponse_httpStatus - The response's http status code.
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 key 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.