put_default_encryption_configuration
(**kwargs)¶Sets the default encryption configuration for the Amazon Web Services account. For more information, see Key management in the IoT SiteWise User Guide .
See also: AWS API Documentation
Request Syntax
response = client.put_default_encryption_configuration(
encryptionType='SITEWISE_DEFAULT_ENCRYPTION'|'KMS_BASED_ENCRYPTION',
kmsKeyId='string'
)
[REQUIRED]
The type of encryption used for the encryption configuration.
KMS_BASED_ENCRYPTION
.dict
Response Syntax
{
'encryptionType': 'SITEWISE_DEFAULT_ENCRYPTION'|'KMS_BASED_ENCRYPTION',
'kmsKeyArn': 'string',
'configurationStatus': {
'state': 'ACTIVE'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED',
'error': {
'code': 'VALIDATION_ERROR'|'INTERNAL_FAILURE',
'message': 'string'
}
}
}
Response Structure
(dict) --
encryptionType (string) --
The type of encryption used for the encryption configuration.
kmsKeyArn (string) --
The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
configurationStatus (dict) --
The status of the account configuration. This contains the ConfigurationState
. If there is an error, it also contains the ErrorDetails
.
state (string) --
The current state of the configuration.
error (dict) --
Contains associated error information, if any.
code (string) --
The error code.
message (string) --
The error message.
Exceptions
IoTSiteWise.Client.exceptions.InvalidRequestException
IoTSiteWise.Client.exceptions.InternalFailureException
IoTSiteWise.Client.exceptions.ThrottlingException
IoTSiteWise.Client.exceptions.LimitExceededException
IoTSiteWise.Client.exceptions.ConflictingOperationException