CfnLocationS3PropsMixin

class aws_cdk.mixins_preview.aws_datasync.mixins.CfnLocationS3PropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::DataSync::LocationS3 resource 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:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

S3ConfigProperty

class CfnLocationS3PropsMixin.S3ConfigProperty(*, bucket_access_role_arn=None)

Bases: object

Specifies 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locations3-s3config.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locations3-s3config.html#cfn-datasync-locations3-s3config-bucketaccessrolearn