CfnSecurityConfigurationPropsMixin
- class aws_cdk.mixins_preview.aws_glue.mixins.CfnSecurityConfigurationPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a new security configuration.
A security configuration is a set of security properties that can be used by AWS Glue . You can use a security configuration to encrypt data at rest. For information about using security configurations in AWS Glue , see Encrypting Data Written by Crawlers, Jobs, and Development Endpoints .
- See:
- CloudformationResource:
AWS::Glue::SecurityConfiguration
- 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_glue import mixins as glue_mixins cfn_security_configuration_props_mixin = glue_mixins.CfnSecurityConfigurationPropsMixin(glue_mixins.CfnSecurityConfigurationMixinProps( encryption_configuration=glue_mixins.CfnSecurityConfigurationPropsMixin.EncryptionConfigurationProperty( cloud_watch_encryption=glue_mixins.CfnSecurityConfigurationPropsMixin.CloudWatchEncryptionProperty( cloud_watch_encryption_mode="cloudWatchEncryptionMode", kms_key_arn="kmsKeyArn" ), job_bookmarks_encryption=glue_mixins.CfnSecurityConfigurationPropsMixin.JobBookmarksEncryptionProperty( job_bookmarks_encryption_mode="jobBookmarksEncryptionMode", kms_key_arn="kmsKeyArn" ), s3_encryptions=[glue_mixins.CfnSecurityConfigurationPropsMixin.S3EncryptionProperty( kms_key_arn="kmsKeyArn", s3_encryption_mode="s3EncryptionMode" )] ), name="name" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Glue::SecurityConfiguration.- Parameters:
props (
Union[CfnSecurityConfigurationMixinProps,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 = ['encryptionConfiguration', 'name']
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
CloudWatchEncryptionProperty
- class CfnSecurityConfigurationPropsMixin.CloudWatchEncryptionProperty(*, cloud_watch_encryption_mode=None, kms_key_arn=None)
Bases:
objectSpecifies how Amazon CloudWatch data should be encrypted.
- Parameters:
cloud_watch_encryption_mode (
Optional[str]) – The encryption mode to use for CloudWatch data.kms_key_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- 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_glue import mixins as glue_mixins cloud_watch_encryption_property = glue_mixins.CfnSecurityConfigurationPropsMixin.CloudWatchEncryptionProperty( cloud_watch_encryption_mode="cloudWatchEncryptionMode", kms_key_arn="kmsKeyArn" )
Attributes
- cloud_watch_encryption_mode
The encryption mode to use for CloudWatch data.
- kms_key_arn
The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
EncryptionConfigurationProperty
- class CfnSecurityConfigurationPropsMixin.EncryptionConfigurationProperty(*, cloud_watch_encryption=None, job_bookmarks_encryption=None, s3_encryptions=None)
Bases:
objectSpecifies an encryption configuration.
- Parameters:
cloud_watch_encryption (
Union[IResolvable,CloudWatchEncryptionProperty,Dict[str,Any],None]) – The encryption configuration for Amazon CloudWatch.job_bookmarks_encryption (
Union[IResolvable,JobBookmarksEncryptionProperty,Dict[str,Any],None]) – The encryption configuration for job bookmarks.s3_encryptions (
Union[IResolvable,Sequence[Union[IResolvable,S3EncryptionProperty,Dict[str,Any]]],None]) – The encyption configuration for Amazon Simple Storage Service (Amazon S3) data.
- 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_glue import mixins as glue_mixins encryption_configuration_property = glue_mixins.CfnSecurityConfigurationPropsMixin.EncryptionConfigurationProperty( cloud_watch_encryption=glue_mixins.CfnSecurityConfigurationPropsMixin.CloudWatchEncryptionProperty( cloud_watch_encryption_mode="cloudWatchEncryptionMode", kms_key_arn="kmsKeyArn" ), job_bookmarks_encryption=glue_mixins.CfnSecurityConfigurationPropsMixin.JobBookmarksEncryptionProperty( job_bookmarks_encryption_mode="jobBookmarksEncryptionMode", kms_key_arn="kmsKeyArn" ), s3_encryptions=[glue_mixins.CfnSecurityConfigurationPropsMixin.S3EncryptionProperty( kms_key_arn="kmsKeyArn", s3_encryption_mode="s3EncryptionMode" )] )
Attributes
- cloud_watch_encryption
The encryption configuration for Amazon CloudWatch.
- job_bookmarks_encryption
The encryption configuration for job bookmarks.
- s3_encryptions
The encyption configuration for Amazon Simple Storage Service (Amazon S3) data.
JobBookmarksEncryptionProperty
- class CfnSecurityConfigurationPropsMixin.JobBookmarksEncryptionProperty(*, job_bookmarks_encryption_mode=None, kms_key_arn=None)
Bases:
objectSpecifies how job bookmark data should be encrypted.
- Parameters:
job_bookmarks_encryption_mode (
Optional[str]) – The encryption mode to use for job bookmarks data.kms_key_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- 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_glue import mixins as glue_mixins job_bookmarks_encryption_property = glue_mixins.CfnSecurityConfigurationPropsMixin.JobBookmarksEncryptionProperty( job_bookmarks_encryption_mode="jobBookmarksEncryptionMode", kms_key_arn="kmsKeyArn" )
Attributes
- job_bookmarks_encryption_mode
The encryption mode to use for job bookmarks data.
- kms_key_arn
The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
S3EncryptionProperty
- class CfnSecurityConfigurationPropsMixin.S3EncryptionProperty(*, kms_key_arn=None, s3_encryption_mode=None)
Bases:
objectSpecifies how Amazon Simple Storage Service (Amazon S3) data should be encrypted.
- Parameters:
kms_key_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.s3_encryption_mode (
Optional[str]) – The encryption mode to use for Amazon S3 data.
- 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_glue import mixins as glue_mixins s3_encryption_property = glue_mixins.CfnSecurityConfigurationPropsMixin.S3EncryptionProperty( kms_key_arn="kmsKeyArn", s3_encryption_mode="s3EncryptionMode" )
Attributes
- kms_key_arn
The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
- s3_encryption_mode
The encryption mode to use for Amazon S3 data.