CfnLocationFSxWindowsProps Struct
Properties for defining a CfnLocationFSxWindows.
| 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 cfnLocationFSxWindowsProps: datasync.CfnLocationFSxWindowsProps = {
securityGroupArns: ['securityGroupArns'],
user: 'user',
// the properties below are optional
cmkSecretConfig: {
kmsKeyArn: 'kmsKeyArn',
secretArn: 'secretArn',
},
customSecretConfig: {
secretAccessRoleArn: 'secretAccessRoleArn',
secretArn: 'secretArn',
},
domain: 'domain',
fsxFilesystemArn: 'fsxFilesystemArn',
password: 'password',
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_windows_props = datasync.CfnLocationFSxWindowsProps(
security_group_arns=["securityGroupArns"],
user="user",
# the properties below are optional
cmk_secret_config=datasync.CfnLocationFSxWindows.CmkSecretConfigProperty(
kms_key_arn="kmsKeyArn",
secret_arn="secretArn"
),
custom_secret_config=datasync.CfnLocationFSxWindows.CustomSecretConfigProperty(
secret_access_role_arn="secretAccessRoleArn",
secret_arn="secretArn"
),
domain="domain",
fsx_filesystem_arn="fsxFilesystemArn",
password="password",
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.*;
CfnLocationFSxWindowsProps cfnLocationFSxWindowsProps = CfnLocationFSxWindowsProps.builder()
.securityGroupArns(List.of("securityGroupArns"))
.user("user")
// the properties below are optional
.cmkSecretConfig(CmkSecretConfigProperty.builder()
.kmsKeyArn("kmsKeyArn")
.secretArn("secretArn")
.build())
.customSecretConfig(CustomSecretConfigProperty.builder()
.secretAccessRoleArn("secretAccessRoleArn")
.secretArn("secretArn")
.build())
.domain("domain")
.fsxFilesystemArn("fsxFilesystemArn")
.password("password")
.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 cfnLocationFSxWindowsProps = new CfnLocationFSxWindowsProps {
SecurityGroupArns = new [] { "securityGroupArns" },
User = "user",
// the properties below are optional
CmkSecretConfig = new CmkSecretConfigProperty {
KmsKeyArn = "kmsKeyArn",
SecretArn = "secretArn"
},
CustomSecretConfig = new CustomSecretConfigProperty {
SecretAccessRoleArn = "secretAccessRoleArn",
SecretArn = "secretArn"
},
Domain = "domain",
FsxFilesystemArn = "fsxFilesystemArn",
Password = "password",
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"
cfnLocationFSxWindowsProps := &CfnLocationFSxWindowsProps{
SecurityGroupArns: []*string{
jsii.String("securityGroupArns"),
},
User: jsii.String("user"),
// the properties below are optional
CmkSecretConfig: &CmkSecretConfigProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
SecretArn: jsii.String("secretArn"),
},
CustomSecretConfig: &CustomSecretConfigProperty{
SecretAccessRoleArn: jsii.String("secretAccessRoleArn"),
SecretArn: jsii.String("secretArn"),
},
Domain: jsii.String("domain"),
FsxFilesystemArn: jsii.String("fsxFilesystemArn"),
Password: jsii.String("password"),
Subdirectory: jsii.String("subdirectory"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
cmkSecretConfigoptionalIResolvable | CfnLocationFSxWindows.cmk_secret_configoptionaltyping.Union[IResolvable, CmkSecretConfigProperty]cmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalinterface{} #Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.
customSecretConfigoptionalIResolvable | CfnLocationFSxWindows.custom_secret_configoptionaltyping.Union[IResolvable, CustomSecretConfigProperty]customSecretConfigoptionalIResolvableCustomSecretConfigoptionalIResolvableCustomSecretConfigoptionalinterface{} #Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.
domainoptionalstringdomainoptionalstrdomainoptionalStringDomainoptionalstringDomainoptional*string #Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.
fsxFilesystemArnoptionalstringfsx_filesystem_arnoptionalstrfsxFilesystemArnoptionalStringFsxFilesystemArnoptionalstringFsxFilesystemArnoptional*string #Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system.
passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
securityGroupArnsstring[]security_group_arnstyping.List[str]securityGroupArnsList<String>SecurityGroupArnsstring[]SecurityGroupArns*[]*string required #The Amazon Resource Names (ARNs) of the security groups that are used to configure the FSx for Windows File Server 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 file system using forward slashes.
This is where DataSync reads or writes data (depending on if this is a source or destination location).