interface CfnLocationSMBProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DataSync.CfnLocationSMBProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsdatasync#CfnLocationSMBProps |
![]() | software.amazon.awscdk.services.datasync.CfnLocationSMBProps |
![]() | aws_cdk.aws_datasync.CfnLocationSMBProps |
![]() | aws-cdk-lib » aws_datasync » CfnLocationSMBProps |
Properties for defining a CfnLocationSMB
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationsmb.html
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',
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',
};
Properties
Name | Type | Description |
---|---|---|
agent | string[] | Specifies the DataSync agent (or agents) that can connect to your SMB file server. |
authentication | string | Specifies the authentication protocol that DataSync uses to connect to your SMB file server. |
dns | string[] | Specifies the IPv4 addresses for the DNS servers that your SMB file server belongs to. |
domain? | string | Specifies the Windows domain name that your SMB file server belongs to. |
kerberos | string | Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys. |
kerberos | string | Specifies a Kerberos configuration file ( krb5.conf ) that defines your Kerberos realm configuration. |
kerberos | string | Specifies a Kerberos prinicpal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server. |
mount | IResolvable | Mount | Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. |
password? | string | Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer. |
server | string | Specifies the domain name or IP address of the SMB file server that your DataSync agent will mount. |
subdirectory? | string | Specifies the name of the share exported by your SMB file server where DataSync will read or write data. |
tags? | Cfn [] | Specifies labels that help you categorize, filter, and search for your AWS resources. |
user? | string | Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. |
agentArns
Type:
string[]
Specifies the DataSync agent (or agents) that can connect to your SMB file server.
You specify an agent by using its Amazon Resource Name (ARN).
authenticationType?
Type:
string
(optional)
Specifies the authentication protocol that DataSync uses to connect to your SMB file server.
DataSync supports NTLM
(default) and KERBEROS
authentication.
For more information, see Providing DataSync access to SMB file servers .
dnsIpAddresses?
Type:
string[]
(optional)
Specifies the IPv4 addresses for the DNS servers that your SMB file server belongs to.
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.
domain?
Type:
string
(optional)
Specifies the Windows domain name that your SMB file server belongs to.
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.
kerberosKeytab?
Type:
string
(optional)
Specifies your Kerberos key table (keytab) file, which includes mappings between your Kerberos principal and encryption keys.
The file must be base64 encoded.
To avoid task execution errors, make sure that the Kerberos principal that you use to create the keytab file matches exactly what you specify for KerberosPrincipal
.
kerberosKrb5Conf?
Type:
string
(optional)
Specifies a Kerberos configuration file ( krb5.conf
) that defines your Kerberos realm configuration.
The file must be base64 encoded.
kerberosPrincipal?
Type:
string
(optional)
Specifies a Kerberos prinicpal, which is an identity in your Kerberos realm that has permission to access the files, folders, and file metadata in your SMB file server.
A Kerberos principal might look like HOST/kerberosuser@MYDOMAIN.ORG
.
Principal names are case sensitive. Your DataSync task execution will fail if the principal that you specify for this parameter doesn’t exactly match the principal that you use to create the keytab file.
mountOptions?
Type:
IResolvable
|
Mount
(optional)
Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
password?
Type:
string
(optional)
Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
This parameter applies only if AuthenticationType
is set to NTLM
.
serverHostname?
Type:
string
(optional)
Specifies the domain name or IP address of the SMB file server that your DataSync agent will mount.
Remember the following when configuring this parameter:
- You can't specify an IP version 6 (IPv6) address.
- If you're using Kerberos authentication, you must specify a domain name.
subdirectory?
Type:
string
(optional)
Specifies the name of the share exported by your SMB file server where DataSync will read or write data.
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 .
tags?
Type:
Cfn
[]
(optional)
Specifies labels that help you categorize, filter, and search for your AWS resources.
We recommend creating at least a name tag for your location.
user?
Type:
string
(optional)
Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.
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 .