Skip to content
v2.278.0

CfnLocationFSxLustreProps ​

Struct External

Properties for defining a CfnLocationFSxLustre.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const cfnLocationFSxLustreProps: datasync.CfnLocationFSxLustreProps = {
  securityGroupArns: ['securityGroupArns'],

  // the properties below are optional
  fsxFilesystemArn: 'fsxFilesystemArn',
  subdirectory: 'subdirectory',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync

cfn_location_f_sx_lustre_props = datasync.CfnLocationFSxLustreProps(
    security_group_arns=["securityGroupArns"],

    # the properties below are optional
    fsx_filesystem_arn="fsxFilesystemArn",
    subdirectory="subdirectory",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.datasync.*;

CfnLocationFSxLustreProps cfnLocationFSxLustreProps = CfnLocationFSxLustreProps.builder()
        .securityGroupArns(List.of("securityGroupArns"))

        // the properties below are optional
        .fsxFilesystemArn("fsxFilesystemArn")
        .subdirectory("subdirectory")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.DataSync;

var cfnLocationFSxLustreProps = new CfnLocationFSxLustreProps {
    SecurityGroupArns = new [] { "securityGroupArns" },

    // the properties below are optional
    FsxFilesystemArn = "fsxFilesystemArn",
    Subdirectory = "subdirectory",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnLocationFSxLustreProps := &CfnLocationFSxLustreProps{
	SecurityGroupArns: []*string{
		jsii.String("securityGroupArns"),
	},

	// the properties below are optional
	FsxFilesystemArn: jsii.String("fsxFilesystemArn"),
	Subdirectory: jsii.String("subdirectory"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

fsxFilesystemArnoptionalstringfsx_filesystem_arnoptionalstrfsxFilesystemArnoptionalStringFsxFilesystemArnoptionalstringFsxFilesystemArnoptional*string #
Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.
securityGroupArnsstring[]security_group_arnstyping.List[str]securityGroupArnsList<String>SecurityGroupArnsstring[]SecurityGroupArns*[]*string required #
The ARNs of the security groups that are used to configure the FSx for Lustre file system.

Pattern : ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$

Length constraints : Maximum length of 128.

subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string #
Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
notes

When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory ( / ).

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Specifies labels that help you categorize, filter, and search for your AWS resources.

We recommend creating at least a name tag for your location.