@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:46.478Z") @Stability(value=Stable) public class CfnLocationObjectStorage extends CfnResource implements IInspectable
The AWS::DataSync::LocationObjectStorage
resource specifies an endpoint for a self-managed object storage bucket. For more information about self-managed object storage locations, see Creating a Location for Object Storage .
Example:
// 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.*; CfnLocationObjectStorage cfnLocationObjectStorage = CfnLocationObjectStorage.Builder.create(this, "MyCfnLocationObjectStorage") .agentArns(List.of("agentArns")) .bucketName("bucketName") .serverHostname("serverHostname") // the properties below are optional .accessKey("accessKey") .secretKey("secretKey") .serverPort(123) .serverProtocol("serverProtocol") .subdirectory("subdirectory") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLocationObjectStorage.Builder
A fluent builder for
CfnLocationObjectStorage . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnLocationObjectStorage(software.constructs.Construct scope,
String id,
CfnLocationObjectStorageProps props)
Create a new `AWS::DataSync::LocationObjectStorage`.
|
protected |
CfnLocationObjectStorage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLocationObjectStorage(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey()
Optional.
|
List<String> |
getAgentArns()
The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
|
String |
getAttrLocationArn()
The Amazon Resource Name (ARN) of the specified object storage location.
|
String |
getAttrLocationUri()
The URI of the specified object storage location.
|
String |
getBucketName()
The bucket on the self-managed object storage server that is used to read data from.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getSecretKey()
Optional.
|
String |
getServerHostname()
The name of the self-managed object storage server.
|
Number |
getServerPort()
The port that your self-managed object storage server accepts inbound network traffic on.
|
String |
getServerProtocol()
The protocol that the object storage server uses to communicate.
|
String |
getSubdirectory()
The subdirectory in the self-managed object storage server that is used to read data from.
|
TagManager |
getTags()
The key-value pair that represents the tag that you want to add to the location.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessKey(String value)
Optional.
|
void |
setAgentArns(List<String> value)
The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
|
void |
setBucketName(String value)
The bucket on the self-managed object storage server that is used to read data from.
|
void |
setSecretKey(String value)
Optional.
|
void |
setServerHostname(String value)
The name of the self-managed object storage server.
|
void |
setServerPort(Number value)
The port that your self-managed object storage server accepts inbound network traffic on.
|
void |
setServerProtocol(String value)
The protocol that the object storage server uses to communicate.
|
void |
setSubdirectory(String value)
The subdirectory in the self-managed object storage server that is used to read data from.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLocationObjectStorage(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLocationObjectStorage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnLocationObjectStorage(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLocationObjectStorageProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrLocationArn()
@Stability(value=Stable) @NotNull public String getAttrLocationUri()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
The value can be an empty string. We recommend using tags to name your resources.
@Stability(value=Stable) @NotNull public List<String> getAgentArns()
@Stability(value=Stable) public void setAgentArns(@NotNull List<String> value)
@Stability(value=Stable) @NotNull public String getBucketName()
@Stability(value=Stable) public void setBucketName(@NotNull String value)
@Stability(value=Stable) @NotNull public String getServerHostname()
This value is the IP address or Domain Name Service (DNS) name of the object storage server. An agent uses this hostname to mount the object storage server in a network.
@Stability(value=Stable) public void setServerHostname(@NotNull String value)
This value is the IP address or Domain Name Service (DNS) name of the object storage server. An agent uses this hostname to mount the object storage server in a network.
@Stability(value=Stable) @Nullable public String getAccessKey()
The access key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use AccessKey
and SecretKey
to provide the user name and password, respectively.
@Stability(value=Stable) public void setAccessKey(@Nullable String value)
The access key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use AccessKey
and SecretKey
to provide the user name and password, respectively.
@Stability(value=Stable) @Nullable public String getSecretKey()
The secret key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use AccessKey
and SecretKey
to provide the user name and password, respectively.
@Stability(value=Stable) public void setSecretKey(@Nullable String value)
The secret key is used if credentials are required to access the self-managed object storage server. If your object storage requires a user name and password to authenticate, use AccessKey
and SecretKey
to provide the user name and password, respectively.
@Stability(value=Stable) @Nullable public Number getServerPort()
The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage server requires one.
@Stability(value=Stable) public void setServerPort(@Nullable Number value)
The server port is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage server requires one.
@Stability(value=Stable) @Nullable public String getServerProtocol()
Valid values are HTTP or HTTPS.
@Stability(value=Stable) public void setServerProtocol(@Nullable String value)
Valid values are HTTP or HTTPS.
@Stability(value=Stable) @Nullable public String getSubdirectory()
@Stability(value=Stable) public void setSubdirectory(@Nullable String value)
Copyright © 2022. All rights reserved.