CfnMountTargetProps

class aws_cdk.aws_efs.CfnMountTargetProps(*, file_system_id, security_groups, subnet_id, ip_address=None)

Bases: object

Properties for defining a CfnMountTarget.

Parameters:
  • file_system_id (str) – The ID of the file system for which to create the mount target.

  • security_groups (Sequence[str]) – Up to five VPC security group IDs, of the form sg-xxxxxxxx . These must be for the same VPC as subnet specified.

  • subnet_id (str) – The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system’s Availability Zone.

  • ip_address (Optional[str]) – Valid IPv4 address within the address range of the specified subnet.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.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 import aws_efs as efs

cfn_mount_target_props = efs.CfnMountTargetProps(
    file_system_id="fileSystemId",
    security_groups=["securityGroups"],
    subnet_id="subnetId",

    # the properties below are optional
    ip_address="ipAddress"
)

Attributes

file_system_id

The ID of the file system for which to create the mount target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-filesystemid

ip_address

Valid IPv4 address within the address range of the specified subnet.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-ipaddress

security_groups

Up to five VPC security group IDs, of the form sg-xxxxxxxx .

These must be for the same VPC as subnet specified.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-securitygroups

subnet_id

The ID of the subnet to add the mount target in.

For One Zone file systems, use the subnet that is associated with the file system’s Availability Zone.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-subnetid