CfnLocationSMBProps Struct
Properties for defining a CfnLocationSMB.
| Source | |
|---|---|
| Type last changed |
Example
// 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 cfnLocationSMBProps: datasync.CfnLocationSMBProps = {
agentArns: ['agentArns'],
// the properties below are optional
authenticationType: 'authenticationType',
cmkSecretConfig: {
kmsKeyArn: 'kmsKeyArn',
secretArn: 'secretArn',
},
customSecretConfig: {
secretAccessRoleArn: 'secretAccessRoleArn',
secretArn: 'secretArn',
},
dnsIpAddresses: ['dnsIpAddresses'],
domain: 'domain',
kerberosKeytab: 'kerberosKeytab',
kerberosKrb5Conf: 'kerberosKrb5Conf',
kerberosPrincipal: 'kerberosPrincipal',
mountOptions: {
version: 'version',
},
password: 'password',
serverHostname: 'serverHostname',
subdirectory: 'subdirectory',
tags: [{
key: 'key',
value: 'value',
}],
user: 'user',
};
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_smb_props = datasync.CfnLocationSMBProps(
agent_arns=["agentArns"],
# the properties below are optional
authentication_type="authenticationType",
cmk_secret_config=datasync.CfnLocationSMB.CmkSecretConfigProperty(
kms_key_arn="kmsKeyArn",
secret_arn="secretArn"
),
custom_secret_config=datasync.CfnLocationSMB.CustomSecretConfigProperty(
secret_access_role_arn="secretAccessRoleArn",
secret_arn="secretArn"
),
dns_ip_addresses=["dnsIpAddresses"],
domain="domain",
kerberos_keytab="kerberosKeytab",
kerberos_krb5_conf="kerberosKrb5Conf",
kerberos_principal="kerberosPrincipal",
mount_options=datasync.CfnLocationSMB.MountOptionsProperty(
version="version"
),
password="password",
server_hostname="serverHostname",
subdirectory="subdirectory",
tags=[CfnTag(
key="key",
value="value"
)],
user="user"
)
// 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.*;
CfnLocationSMBProps cfnLocationSMBProps = CfnLocationSMBProps.builder()
.agentArns(List.of("agentArns"))
// the properties below are optional
.authenticationType("authenticationType")
.cmkSecretConfig(CmkSecretConfigProperty.builder()
.kmsKeyArn("kmsKeyArn")
.secretArn("secretArn")
.build())
.customSecretConfig(CustomSecretConfigProperty.builder()
.secretAccessRoleArn("secretAccessRoleArn")
.secretArn("secretArn")
.build())
.dnsIpAddresses(List.of("dnsIpAddresses"))
.domain("domain")
.kerberosKeytab("kerberosKeytab")
.kerberosKrb5Conf("kerberosKrb5Conf")
.kerberosPrincipal("kerberosPrincipal")
.mountOptions(MountOptionsProperty.builder()
.version("version")
.build())
.password("password")
.serverHostname("serverHostname")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.user("user")
.build();
// 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 cfnLocationSMBProps = new CfnLocationSMBProps {
AgentArns = new [] { "agentArns" },
// the properties below are optional
AuthenticationType = "authenticationType",
CmkSecretConfig = new CmkSecretConfigProperty {
KmsKeyArn = "kmsKeyArn",
SecretArn = "secretArn"
},
CustomSecretConfig = new CustomSecretConfigProperty {
SecretAccessRoleArn = "secretAccessRoleArn",
SecretArn = "secretArn"
},
DnsIpAddresses = new [] { "dnsIpAddresses" },
Domain = "domain",
KerberosKeytab = "kerberosKeytab",
KerberosKrb5Conf = "kerberosKrb5Conf",
KerberosPrincipal = "kerberosPrincipal",
MountOptions = new MountOptionsProperty {
Version = "version"
},
Password = "password",
ServerHostname = "serverHostname",
Subdirectory = "subdirectory",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
User = "user"
};
// 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"
cfnLocationSMBProps := &CfnLocationSMBProps{
AgentArns: []*string{
jsii.String("agentArns"),
},
// the properties below are optional
AuthenticationType: jsii.String("authenticationType"),
CmkSecretConfig: &CmkSecretConfigProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
SecretArn: jsii.String("secretArn"),
},
CustomSecretConfig: &CustomSecretConfigProperty{
SecretAccessRoleArn: jsii.String("secretAccessRoleArn"),
SecretArn: jsii.String("secretArn"),
},
DnsIpAddresses: []*string{
jsii.String("dnsIpAddresses"),
},
Domain: jsii.String("domain"),
KerberosKeytab: jsii.String("kerberosKeytab"),
KerberosKrb5Conf: jsii.String("kerberosKrb5Conf"),
KerberosPrincipal: jsii.String("kerberosPrincipal"),
MountOptions: &MountOptionsProperty{
Version: jsii.String("version"),
},
Password: jsii.String("password"),
ServerHostname: jsii.String("serverHostname"),
Subdirectory: jsii.String("subdirectory"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
User: jsii.String("user"),
}
Properties
agentArnsstring[]agent_arnstyping.List[str]agentArnsList<String>AgentArnsstring[]AgentArns*[]*string required #You specify an agent by using its Amazon Resource Name (ARN).
authenticationTypeoptionalstringauthentication_typeoptionalstrauthenticationTypeoptionalStringAuthenticationTypeoptionalstringAuthenticationTypeoptional*string #cmkSecretConfigoptionalIResolvable | CfnLocationSMB.cmk_secret_configoptionaltyping.Union[IResolvable, CmkSecretConfigProperty]cmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalinterface{} #You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
customSecretConfigoptionalIResolvable | CfnLocationSMB.custom_secret_configoptionaltyping.Union[IResolvable, CustomSecretConfigProperty]customSecretConfigoptionalIResolvableCustomSecretConfigoptionalIResolvableCustomSecretConfigoptionalinterface{} #notes
This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.
You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
dnsIpAddressesoptionalstring[]dns_ip_addressesoptionaltyping.List[str]dnsIpAddressesoptionalList<String>DnsIpAddressesoptionalstring[]DnsIpAddressesoptional*[]*string #This parameter applies only if AuthenticationType is set to KERBEROS. If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right SMB file server.
domainoptionalstringdomainoptionalstrdomainoptionalStringDomainoptionalstringDomainoptional*string #This parameter applies only if AuthenticationType is set to NTLM .
If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
kerberosKeytaboptionalstringkerberos_keytaboptionalstrkerberosKeytaboptionalStringKerberosKeytaboptionalstringKerberosKeytaboptional*string #notes
Specifies your Kerberos key table (keytab) file, which includes mappings between your service principal name (SPN) and encryption keys. To avoid task execution errors, make sure that the SPN in the keytab file matches exactly what you specify for KerberosPrincipal and in your krb5.conf file.
kerberosKrb5Confoptionalstringkerberos_krb5_confoptionalstrkerberosKrb5ConfoptionalStringKerberosKrb5ConfoptionalstringKerberosKrb5Confoptional*string #kerberosPrincipaloptionalstringkerberos_principaloptionalstrkerberosPrincipaloptionalStringKerberosPrincipaloptionalstringKerberosPrincipaloptional*string #notes
SPNs are case sensitive and must include a prepended cifs/. For example, an SPN might look like cifs/kerberosuser@EXAMPLE.COM. Your task execution will fail if the SPN that you provide for this parameter doesn't match exactly what's in your keytab or krb5.conf files.
mountOptionsoptionalIResolvable | CfnLocationSMB.mount_optionsoptionaltyping.Union[IResolvable, MountOptionsProperty]mountOptionsoptionalIResolvableMountOptionsoptionalIResolvableMountOptionsoptionalinterface{} #passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #This parameter applies only if AuthenticationType is set to NTLM .
serverHostnameoptionalstringserver_hostnameoptionalstrserverHostnameoptionalStringServerHostnameoptionalstringServerHostnameoptional*string #If you're using Kerberos authentication, you must specify a domain name.
subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string #notes
You can include a subdirectory in the share path (for example, /path/to/subdirectory ). Make sure that other SMB clients in your network can also mount this path.
To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see Providing DataSync access to SMB file servers .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #We recommend creating at least a name tag for your location.
notes
This parameter applies only if AuthenticationType is set to NTLM .
For information about choosing a user with the right level of access for your transfer, see Providing DataSync access to SMB file servers .