Class CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationFSxONTAPPropsMixin.SMBProperty>
- Enclosing interface:
CfnLocationFSxONTAPPropsMixin.SMBProperty
@Stability(Stable)
public static final class CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationFSxONTAPPropsMixin.SMBProperty>
A builder for
CfnLocationFSxONTAPPropsMixin.SMBProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cmkSecretConfig(CfnLocationFSxONTAPPropsMixin.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCmkSecretConfig()cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCmkSecretConfig()customSecretConfig(CfnLocationFSxONTAPPropsMixin.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCustomSecretConfig()customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCustomSecretConfig()Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getDomain()managedSecretConfig(CfnLocationFSxONTAPPropsMixin.ManagedSecretConfigProperty managedSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getManagedSecretConfig()managedSecretConfig(IResolvable managedSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getManagedSecretConfig()Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getMountOptions()mountOptions(IResolvable mountOptions) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getMountOptions()Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getPassword()Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cmkSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCmkSecretConfig()- Parameters:
cmkSecretConfig- 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.- Returns:
this
-
cmkSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder cmkSecretConfig(CfnLocationFSxONTAPPropsMixin.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCmkSecretConfig()- Parameters:
cmkSecretConfig- 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.- Returns:
this
-
customSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCustomSecretConfig()- Parameters:
customSecretConfig- 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.- Returns:
this
-
customSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder customSecretConfig(CfnLocationFSxONTAPPropsMixin.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getCustomSecretConfig()- Parameters:
customSecretConfig- 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.- Returns:
this
-
domain
Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getDomain()- Parameters:
domain- Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to. If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.
- Returns:
this
-
managedSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder managedSecretConfig(IResolvable managedSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getManagedSecretConfig()- Parameters:
managedSecretConfig- 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. DataSync uses the default AWS-managed KMS key to encrypt this secret in AWS Secrets Manager.- Returns:
this
-
managedSecretConfig
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder managedSecretConfig(CfnLocationFSxONTAPPropsMixin.ManagedSecretConfigProperty managedSecretConfig) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getManagedSecretConfig()- Parameters:
managedSecretConfig- 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. DataSync uses the default AWS-managed KMS key to encrypt this secret in AWS Secrets Manager.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder mountOptions(IResolvable mountOptions) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getMountOptions()- Parameters:
mountOptions- Specifies how DataSync can access a location using the SMB protocol.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder mountOptions(CfnLocationFSxONTAPPropsMixin.SmbMountOptionsProperty mountOptions) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getMountOptions()- Parameters:
mountOptions- Specifies how DataSync can access a location using the SMB protocol.- Returns:
this
-
password
@Stability(Stable) public CfnLocationFSxONTAPPropsMixin.SMBProperty.Builder password(String password) Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getPassword()- Parameters:
password- Specifies the password of a user who has permission to access your SVM.- Returns:
this
-
user
Sets the value ofCfnLocationFSxONTAPPropsMixin.SMBProperty.getUser()- Parameters:
user- Specifies a user name that can mount the location and access the files, folders, and metadata that you need in the SVM. If you provide a user in your Active Directory, note the following:- If you're using AWS Directory Service for Microsoft Active Directory , the user must be a member of the AWS Delegated FSx Administrators group.
- If you're using a self-managed Active Directory, the user must be a member of either the Domain Admins group or a custom group that you specified for file system administration when you created your file system.
Make sure that the user has the permissions it needs to copy the data you want:
SE_TCB_NAME: Required to set object ownership and file metadata. With this privilege, you also can copy NTFS discretionary access lists (DACLs).SE_SECURITY_NAME: May be needed to copy NTFS system access control lists (SACLs). This operation specifically requires the Windows privilege, which is granted to members of the Domain Admins group. If you configure your task to copy SACLs, make sure that the user has the required privileges. For information about copying SACLs, see Ownership and permissions-related options .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationFSxONTAPPropsMixin.SMBProperty>- Returns:
- a new instance of
CfnLocationFSxONTAPPropsMixin.SMBProperty - Throws:
NullPointerException- if any required attribute was not provided
-