Class CfnLocationObjectStorage
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::DataSync::LocationObjectStorage.
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"))
// the properties below are optional
.accessKey("accessKey")
.bucketName("bucketName")
.secretKey("secretKey")
.serverCertificate("serverCertificate")
.serverHostname("serverHostname")
.serverPort(123)
.serverProtocol("serverProtocol")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLocationObjectStorage.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnLocationObjectStorage(Construct scope, String id, CfnLocationObjectStorageProps props) Create a newAWS::DataSync::LocationObjectStorage.protectedCfnLocationObjectStorage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLocationObjectStorage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.The Amazon Resource Name (ARN) of the specified object storage location.The URI of the specified object storage location.Specifies the name of the object storage bucket involved in the transfer.Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.Specifies a file with the certificates that are used to sign the object storage server's certificate (for example,file:///home/user/.ssh/storage_sys_certificate.pem).Specifies the domain name or IP address of the object storage server.Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).Specifies the protocol that your object storage server uses to communicate.Specifies the object prefix for your object storage server.getTags()Specifies the key-value pair that represents a tag that you want to add to the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessKey(String value) Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.voidsetAgentArns(List<String> value) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.voidsetBucketName(String value) Specifies the name of the object storage bucket involved in the transfer.voidsetSecretKey(String value) Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.voidsetServerCertificate(String value) Specifies a file with the certificates that are used to sign the object storage server's certificate (for example,file:///home/user/.ssh/storage_sys_certificate.pem).voidsetServerHostname(String value) Specifies the domain name or IP address of the object storage server.voidsetServerPort(Number value) Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).voidsetServerProtocol(String value) Specifies the protocol that your object storage server uses to communicate.voidsetSubdirectory(String value) Specifies the object prefix for your object storage server.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLocationObjectStorage
protected CfnLocationObjectStorage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLocationObjectStorage
protected CfnLocationObjectStorage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLocationObjectStorage
@Stability(Stable) public CfnLocationObjectStorage(@NotNull Construct scope, @NotNull String id, @NotNull CfnLocationObjectStorageProps props) Create a newAWS::DataSync::LocationObjectStorage.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrLocationArn
The Amazon Resource Name (ARN) of the specified object storage location. -
getAttrLocationUri
The URI of the specified object storage location. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Specifies the key-value pair that represents a tag that you want to add to the resource.Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.
-
getAgentArns
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location. -
setAgentArns
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location. -
getAccessKey
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server. -
setAccessKey
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server. -
getBucketName
Specifies the name of the object storage bucket involved in the transfer. -
setBucketName
Specifies the name of the object storage bucket involved in the transfer. -
getSecretKey
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. -
setSecretKey
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server. -
getServerCertificate
Specifies a file with the certificates that are used to sign the object storage server's certificate (for example,file:///home/user/.ssh/storage_sys_certificate.pem). The file you specify must include the following:.- The certificate of the signing certificate authority (CA)
- Any intermediate certificates
- base64 encoding
- A
.pemextension
The file can be up to 32768 bytes (before base64 encoding).
To use this parameter, configure
ServerProtocoltoHTTPS. -
setServerCertificate
Specifies a file with the certificates that are used to sign the object storage server's certificate (for example,file:///home/user/.ssh/storage_sys_certificate.pem). The file you specify must include the following:.- The certificate of the signing certificate authority (CA)
- Any intermediate certificates
- base64 encoding
- A
.pemextension
The file can be up to 32768 bytes (before base64 encoding).
To use this parameter, configure
ServerProtocoltoHTTPS. -
getServerHostname
Specifies the domain name or IP address of the object storage server.A DataSync agent uses this hostname to mount the object storage server in a network.
-
setServerHostname
Specifies the domain name or IP address of the object storage server.A DataSync agent uses this hostname to mount the object storage server in a network.
-
getServerPort
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443). -
setServerPort
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443). -
getServerProtocol
Specifies the protocol that your object storage server uses to communicate. -
setServerProtocol
Specifies the protocol that your object storage server uses to communicate. -
getSubdirectory
Specifies the object prefix for your object storage server.If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
-
setSubdirectory
Specifies the object prefix for your object storage server.If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
-