Class CfnLocationFSxWindowsProps.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationFSxWindowsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationFSxWindowsProps>
- Enclosing interface:
CfnLocationFSxWindowsProps
@Stability(Stable)
public static final class CfnLocationFSxWindowsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationFSxWindowsProps>
A builder for
CfnLocationFSxWindowsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.getCmkSecretConfig()cmkSecretConfig(CfnLocationFSxWindows.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.getCmkSecretConfig()customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.getCustomSecretConfig()customSecretConfig(CfnLocationFSxWindows.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.getCustomSecretConfig()Sets the value ofCfnLocationFSxWindowsProps.getDomain()fsxFilesystemArn(String fsxFilesystemArn) Sets the value ofCfnLocationFSxWindowsProps.getFsxFilesystemArn()Sets the value ofCfnLocationFSxWindowsProps.getPassword()securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationFSxWindowsProps.getSecurityGroupArns()subdirectory(String subdirectory) Sets the value ofCfnLocationFSxWindowsProps.getSubdirectory()Sets the value ofCfnLocationFSxWindowsProps.getTags()Sets the value ofCfnLocationFSxWindowsProps.getUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupArns
@Stability(Stable) public CfnLocationFSxWindowsProps.Builder securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationFSxWindowsProps.getSecurityGroupArns()- Parameters:
securityGroupArns- The Amazon Resource Names (ARNs) of the security groups that are used to configure the FSx for Windows File Server file system. This parameter is required. 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.
- Returns:
this
-
user
Sets the value ofCfnLocationFSxWindowsProps.getUser()- Parameters:
user- The user who has the permissions to access files and folders in the FSx for Windows File Server file system. This parameter is required. For information about choosing a user name that ensures sufficient permissions to files, folders, and metadata, see user .- Returns:
this
-
cmkSecretConfig
@Stability(Stable) public CfnLocationFSxWindowsProps.Builder cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.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 CfnLocationFSxWindowsProps.Builder cmkSecretConfig(CfnLocationFSxWindows.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.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 CfnLocationFSxWindowsProps.Builder customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.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 CfnLocationFSxWindowsProps.Builder customSecretConfig(CfnLocationFSxWindows.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationFSxWindowsProps.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 ofCfnLocationFSxWindowsProps.getDomain()- Parameters:
domain- 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.- Returns:
this
-
fsxFilesystemArn
@Stability(Stable) public CfnLocationFSxWindowsProps.Builder fsxFilesystemArn(String fsxFilesystemArn) Sets the value ofCfnLocationFSxWindowsProps.getFsxFilesystemArn()- Parameters:
fsxFilesystemArn- Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system.- Returns:
this
-
password
Sets the value ofCfnLocationFSxWindowsProps.getPassword()- Parameters:
password- 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.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationFSxWindowsProps.getSubdirectory()- Parameters:
subdirectory- 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).- Returns:
this
-
tags
Sets the value ofCfnLocationFSxWindowsProps.getTags()- Parameters:
tags- Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationFSxWindowsProps>- Returns:
- a new instance of
CfnLocationFSxWindowsProps - Throws:
NullPointerException- if any required attribute was not provided
-