Class CfnLocationObjectStorage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.datasync.CfnLocationObjectStorage
- All Implemented Interfaces:
IInspectable,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:10.094Z")
@Stability(Stable)
public class CfnLocationObjectStorage
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLocationObjectStorage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLocationObjectStorage(software.amazon.jsii.JsiiObjectRef objRef) CfnLocationObjectStorage(software.constructs.Construct scope, String id, CfnLocationObjectStorageProps props) -
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 connect with your object storage system.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 certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).Specifies the domain name or IP version 4 (IPv4) address of the object storage server that your DataSync agent connects to.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()Tag Manager which manages the tags for this resource.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 connect with your object storage system.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 certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).voidsetServerHostname(String value) Specifies the domain name or IP version 4 (IPv4) address of the object storage server that your DataSync agent connects to.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.voidsetTagsRaw(List<CfnTag> value) Specifies the key-value pair that represents a tag that you want to add to the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnLocationObjectStorageProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
Tag Manager which manages the tags for this resource. -
getAgentArns
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. -
setAgentArns
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. -
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 certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). -
setServerCertificate
Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). -
getServerHostname
Specifies the domain name or IP version 4 (IPv4) address of the object storage server that your DataSync agent connects to. -
setServerHostname
Specifies the domain name or IP version 4 (IPv4) address of the object storage server that your DataSync agent connects to. -
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. -
setSubdirectory
Specifies the object prefix for your object storage server. -
getTagsRaw
Specifies the key-value pair that represents a tag that you want to add to the resource. -
setTagsRaw
Specifies the key-value pair that represents a tag that you want to add to the resource.
-