public static final class CfnLocationObjectStorage.Builder
extends java.lang.Object
CfnLocationObjectStorage
.Modifier and Type | Method and Description |
---|---|
CfnLocationObjectStorage.Builder |
accessKey(java.lang.String accessKey)
Specifies the access key (or user name) if credentials are required to access the object storage server.
|
CfnLocationObjectStorage.Builder |
agentArns(java.util.List<java.lang.String> agentArns)
Specifies the Amazon Resource Names (ARNs) of the agents associated with the location.
|
CfnLocationObjectStorage.Builder |
bucketName(java.lang.String bucketName)
Specifies the name of the bucket that DataSync reads from or writes to.
|
CfnLocationObjectStorage |
build() |
static CfnLocationObjectStorage.Builder |
create(Construct scope,
java.lang.String id) |
CfnLocationObjectStorage.Builder |
secretKey(java.lang.String secretKey)
Specifies the secret key (or password) if credentials are required to access the object storage server.
|
CfnLocationObjectStorage.Builder |
serverHostname(java.lang.String serverHostname)
Specifies the domain name or IP address of the object storage server.
|
CfnLocationObjectStorage.Builder |
serverPort(java.lang.Number serverPort)
Specifies the port that your object storage server accepts inbound network traffic on.
|
CfnLocationObjectStorage.Builder |
serverProtocol(java.lang.String serverProtocol)
Specifies the protocol that your object storage server uses to communicate.
|
CfnLocationObjectStorage.Builder |
subdirectory(java.lang.String subdirectory)
Specifies the object prefix that DataSync reads from or writes to.
|
CfnLocationObjectStorage.Builder |
tags(java.util.List<? extends CfnTag> tags)
Specifies the key-value pair that represents the tag to help you manage, filter, and search for your location.
|
public static CfnLocationObjectStorage.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnLocationObjectStorage.Builder
.public CfnLocationObjectStorage.Builder agentArns(java.util.List<java.lang.String> agentArns)
agentArns
- Specifies the Amazon Resource Names (ARNs) of the agents associated with the location. This parameter is required.this
public CfnLocationObjectStorage.Builder bucketName(java.lang.String bucketName)
bucketName
- Specifies the name of the bucket that DataSync reads from or writes to. This parameter is required.this
public CfnLocationObjectStorage.Builder serverHostname(java.lang.String serverHostname)
A DataSync agent uses this hostname to mount the object storage server.
serverHostname
- Specifies the domain name or IP address of the object storage server. This parameter is required.this
public CfnLocationObjectStorage.Builder accessKey(java.lang.String accessKey)
accessKey
- Specifies the access key (or user name) if credentials are required to access the object storage server. This parameter is required.this
public CfnLocationObjectStorage.Builder secretKey(java.lang.String secretKey)
secretKey
- Specifies the secret key (or password) if credentials are required to access the object storage server. This parameter is required.this
public CfnLocationObjectStorage.Builder serverPort(java.lang.Number serverPort)
Set to port 80 (HTTP), 443 (HTTPS), or a custom port if needed.
serverPort
- Specifies the port that your object storage server accepts inbound network traffic on. This parameter is required.this
public CfnLocationObjectStorage.Builder serverProtocol(java.lang.String serverProtocol)
serverProtocol
- Specifies the protocol that your object storage server uses to communicate. This parameter is required.this
public CfnLocationObjectStorage.Builder subdirectory(java.lang.String subdirectory)
subdirectory
- Specifies the object prefix that DataSync reads from or writes to. This parameter is required.this
public CfnLocationObjectStorage.Builder tags(java.util.List<? extends CfnTag> tags)
We recommend using tags for naming your locations.
tags
- Specifies the key-value pair that represents the tag to help you manage, filter, and search for your location. This parameter is required.this
public CfnLocationObjectStorage build()