CfnEncryptionConfigurationPropsMixin
- class aws_cdk.mixins_preview.aws_iot.mixins.CfnEncryptionConfigurationPropsMixin(props, *, strategy=None)
Bases:
MixinRetrieves the encryption configuration for resources and data of your AWS account in AWS IoT Core .
For more information, see Data encryption at rest in the AWS IoT Core Developer Guide .
- See:
- CloudformationResource:
AWS::IoT::EncryptionConfiguration
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins cfn_encryption_configuration_props_mixin = iot_mixins.CfnEncryptionConfigurationPropsMixin(iot_mixins.CfnEncryptionConfigurationMixinProps( encryption_type="encryptionType", kms_access_role_arn="kmsAccessRoleArn", kms_key_arn="kmsKeyArn" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoT::EncryptionConfiguration.- Parameters:
props (
Union[CfnEncryptionConfigurationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['encryptionType', 'kmsAccessRoleArn', 'kmsKeyArn']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ConfigurationDetailsProperty
- class CfnEncryptionConfigurationPropsMixin.ConfigurationDetailsProperty(*, configuration_status=None, error_code=None, error_message=None)
Bases:
objectThe encryption configuration details that include the status information of the AWS Key Management Service ( AWS ) key and the AWS access role.
- Parameters:
configuration_status (
Optional[str]) – The health status of KMS key and AWS access role. If either KMS key or AWS access role isUNHEALTHY, the return value will beUNHEALTHY. To use a customer managed KMS key, the value ofconfigurationStatusmust beHEALTHY.error_code (
Optional[str]) – The error code that indicates either the KMS key or the AWS access role isUNHEALTHY. Valid values:KMS_KEY_VALIDATION_ERRORandROLE_VALIDATION_ERROR.error_message (
Optional[str]) – The detailed error message that corresponds to theerrorCode.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins configuration_details_property = iot_mixins.CfnEncryptionConfigurationPropsMixin.ConfigurationDetailsProperty( configuration_status="configurationStatus", error_code="errorCode", error_message="errorMessage" )
Attributes
- configuration_status
The health status of KMS key and AWS access role.
If either KMS key or AWS access role is
UNHEALTHY, the return value will beUNHEALTHY. To use a customer managed KMS key, the value ofconfigurationStatusmust beHEALTHY.
- error_code
The error code that indicates either the KMS key or the AWS access role is
UNHEALTHY.Valid values:
KMS_KEY_VALIDATION_ERRORandROLE_VALIDATION_ERROR.
- error_message
The detailed error message that corresponds to the
errorCode.