CfnLocationFSxOpenZFSProps Struct
Properties for defining a CfnLocationFSxOpenZFS.
| Source | |
|---|---|
| Type last changed |
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 cfnLocationFSxOpenZFSProps: datasync.CfnLocationFSxOpenZFSProps = {
protocol: {
nfs: {
mountOptions: {
version: 'version',
},
},
},
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_open_zfs_props = datasync.CfnLocationFSxOpenZFSProps(
protocol=datasync.CfnLocationFSxOpenZFS.ProtocolProperty(
nfs=datasync.CfnLocationFSxOpenZFS.NFSProperty(
mount_options=datasync.CfnLocationFSxOpenZFS.MountOptionsProperty(
version="version"
)
)
),
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.*;
CfnLocationFSxOpenZFSProps cfnLocationFSxOpenZFSProps = CfnLocationFSxOpenZFSProps.builder()
.protocol(ProtocolProperty.builder()
.nfs(NFSProperty.builder()
.mountOptions(MountOptionsProperty.builder()
.version("version")
.build())
.build())
.build())
.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 cfnLocationFSxOpenZFSProps = new CfnLocationFSxOpenZFSProps {
Protocol = new ProtocolProperty {
Nfs = new NFSProperty {
MountOptions = new MountOptionsProperty {
Version = "version"
}
}
},
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"
cfnLocationFSxOpenZFSProps := &CfnLocationFSxOpenZFSProps{
Protocol: &ProtocolProperty{
Nfs: &NFSProperty{
MountOptions: &MountOptionsProperty{
Version: jsii.String("version"),
},
},
},
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 #The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.
protocolIResolvable | CfnLocationFSxOpenZFS.protocoltyping.Union[IResolvable, ProtocolProperty]protocolIResolvableProtocolIResolvableProtocolinterface{} required #The type of protocol that AWS DataSync uses to access your 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 OpenZFS 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 #A subdirectory in the location's path that must begin with `/fsx` .
DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The key-value pair that represents a tag that you want to add to the resource.
The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.