aws-cdk-lib.aws_efs.CfnMountTargetProps

interface CfnMountTargetProps

LanguageType name
.NETAmazon.CDK.AWS.EFS.CfnMountTargetProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsefs#CfnMountTargetProps
Javasoftware.amazon.awscdk.services.efs.CfnMountTargetProps
Pythonaws_cdk.aws_efs.CfnMountTargetProps
TypeScript aws-cdk-lib » aws_efs » CfnMountTargetProps

Properties for defining a CfnMountTarget.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_efs as efs } from 'aws-cdk-lib';
const cfnMountTargetProps: efs.CfnMountTargetProps = {
  fileSystemId: 'fileSystemId',
  securityGroups: ['securityGroups'],
  subnetId: 'subnetId',

  // the properties below are optional
  ipAddress: 'ipAddress',
};

Properties

NameTypeDescription
fileSystemIdstringThe ID of the file system for which to create the mount target.
securityGroupsstring[]Up to five VPC security group IDs, of the form sg-xxxxxxxx .
subnetIdstringThe ID of the subnet to add the mount target in.
ipAddress?stringValid IPv4 address within the address range of the specified subnet.

fileSystemId

Type: string

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


securityGroups

Type: string[]

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

These must be for the same VPC as subnet specified.


subnetId

Type: string

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

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


ipAddress?

Type: string (optional)

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