Skip to content
v2.278.0

CfnMountTargetProps ​

Struct External

Properties for defining a CfnMountTarget.

Example ​

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

  // the properties below are optional
  ipAddressType: 'ipAddressType',
  ipv4Address: 'ipv4Address',
  ipv6Address: 'ipv6Address',
  securityGroups: ['securityGroups'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3files as s3files

cfn_mount_target_props = s3files.CfnMountTargetProps(
    file_system_id="fileSystemId",
    subnet_id="subnetId",

    # the properties below are optional
    ip_address_type="ipAddressType",
    ipv4_address="ipv4Address",
    ipv6_address="ipv6Address",
    security_groups=["securityGroups"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3files.*;

CfnMountTargetProps cfnMountTargetProps = CfnMountTargetProps.builder()
        .fileSystemId("fileSystemId")
        .subnetId("subnetId")

        // the properties below are optional
        .ipAddressType("ipAddressType")
        .ipv4Address("ipv4Address")
        .ipv6Address("ipv6Address")
        .securityGroups(List.of("securityGroups"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Files;

var cfnMountTargetProps = new CfnMountTargetProps {
    FileSystemId = "fileSystemId",
    SubnetId = "subnetId",

    // the properties below are optional
    IpAddressType = "ipAddressType",
    Ipv4Address = "ipv4Address",
    Ipv6Address = "ipv6Address",
    SecurityGroups = new [] { "securityGroups" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnMountTargetProps := &CfnMountTargetProps{
	FileSystemId: jsii.String("fileSystemId"),
	SubnetId: jsii.String("subnetId"),

	// the properties below are optional
	IpAddressType: jsii.String("ipAddressType"),
	Ipv4Address: jsii.String("ipv4Address"),
	Ipv6Address: jsii.String("ipv6Address"),
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
}

Properties ​

fileSystemIdstringfile_system_idstrfileSystemIdStringFileSystemIdstringFileSystemId*string required #
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string #
ipv4Addressoptionalstringipv4_addressoptionalstripv4AddressoptionalStringIpv4AddressoptionalstringIpv4Addressoptional*string #
ipv6Addressoptionalstringipv6_addressoptionalstripv6AddressoptionalStringIpv6AddressoptionalstringIpv6Addressoptional*string #
securityGroupsoptionalstring[]security_groupsoptionaltyping.List[str]securityGroupsoptionalList<String>SecurityGroupsoptionalstring[]SecurityGroupsoptional*[]*string #
subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*string required #