CfnLocationS3PropsMixin
- class aws_cdk.mixins_preview.aws_datasync.mixins.CfnLocationS3PropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::DataSync::LocationS3resource specifies an endpoint for an Amazon S3 bucket.For more information, see the *AWS DataSync User Guide* .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html
- CloudformationResource:
AWS::DataSync::LocationS3
- 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_datasync import mixins as datasync_mixins cfn_location_s3_props_mixin = datasync_mixins.CfnLocationS3PropsMixin(datasync_mixins.CfnLocationS3MixinProps( s3_bucket_arn="s3BucketArn", s3_config=datasync_mixins.CfnLocationS3PropsMixin.S3ConfigProperty( bucket_access_role_arn="bucketAccessRoleArn" ), s3_storage_class="s3StorageClass", subdirectory="subdirectory", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::DataSync::LocationS3.- Parameters:
props (
Union[CfnLocationS3MixinProps,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 = ['s3BucketArn', 's3Config', 's3StorageClass', 'subdirectory', 'tags']
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
S3ConfigProperty
- class CfnLocationS3PropsMixin.S3ConfigProperty(*, bucket_access_role_arn=None)
Bases:
objectSpecifies the Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Providing DataSync access to S3 buckets .
- Parameters:
bucket_access_role_arn (
Optional[str]) – Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.- 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_datasync import mixins as datasync_mixins s3_config_property = datasync_mixins.CfnLocationS3PropsMixin.S3ConfigProperty( bucket_access_role_arn="bucketAccessRoleArn" )
Attributes
- bucket_access_role_arn
Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.