CfnLocationEFSPropsMixin
- class aws_cdk.mixins_preview.aws_datasync.mixins.CfnLocationEFSPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::DataSync::LocationEFSresource creates an endpoint for an Amazon EFS file system.AWS DataSync can access this endpoint as a source or destination location.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationefs.html
- CloudformationResource:
AWS::DataSync::LocationEFS
- 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_eFSProps_mixin = datasync_mixins.CfnLocationEFSPropsMixin(datasync_mixins.CfnLocationEFSMixinProps( access_point_arn="accessPointArn", ec2_config=datasync_mixins.CfnLocationEFSPropsMixin.Ec2ConfigProperty( security_group_arns=["securityGroupArns"], subnet_arn="subnetArn" ), efs_filesystem_arn="efsFilesystemArn", file_system_access_role_arn="fileSystemAccessRoleArn", in_transit_encryption="inTransitEncryption", subdirectory="subdirectory", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::DataSync::LocationEFS.- Parameters:
props (
Union[CfnLocationEFSMixinProps,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 = ['accessPointArn', 'ec2Config', 'efsFilesystemArn', 'fileSystemAccessRoleArn', 'inTransitEncryption', '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
Ec2ConfigProperty
- class CfnLocationEFSPropsMixin.Ec2ConfigProperty(*, security_group_arns=None, subnet_arn=None)
Bases:
objectThe subnet and security groups that AWS DataSync uses to connect to one of your Amazon EFS file system’s mount targets .
- Parameters:
security_group_arns (
Optional[Sequence[str]]) – Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system’s mount target.subnet_arn (
Optional[str]) – Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer. The subnet must be located: - In the same virtual private cloud (VPC) as the Amazon EFS file system. - In the same Availability Zone as at least one mount target for the Amazon EFS file system. .. epigraph:: You don’t need to specify a subnet that includes a file system mount target.
- 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 ec2_config_property = datasync_mixins.CfnLocationEFSPropsMixin.Ec2ConfigProperty( security_group_arns=["securityGroupArns"], subnet_arn="subnetArn" )
Attributes
- security_group_arns
Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system’s mount target.
- subnet_arn
Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
The subnet must be located:
In the same virtual private cloud (VPC) as the Amazon EFS file system.
In the same Availability Zone as at least one mount target for the Amazon EFS file system.
You don’t need to specify a subnet that includes a file system mount target.