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,ILocationObjectStorageRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:35.998Z")
@Stability(Stable)
public class CfnLocationObjectStorage
extends CfnResource
implements IInspectable, ILocationObjectStorageRef, 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")
.accessKey("accessKey")
.agentArns(List.of("agentArns"))
.bucketName("bucketName")
.cmkSecretConfig(CmkSecretConfigProperty.builder()
.kmsKeyArn("kmsKeyArn")
.secretArn("secretArn")
.build())
.customSecretConfig(CustomSecretConfigProperty.builder()
.secretAccessRoleArn("secretAccessRoleArn")
.secretArn("secretArn")
.build())
.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.static interfaceSpecifies configuration information for a DataSync-managed secret, such as an authentication token or secret key that DataSync uses to access a specific storage location, with a customer-managed AWS KMS key .static interfaceSpecifies configuration information for a customer-managed Secrets Manager secret where a storage location authentication token or secret key is stored in plain text.static interfaceSpecifies 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.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.services.datasync.ILocationObjectStorageRef
ILocationObjectStorageRef.Jsii$Default, ILocationObjectStorageRef.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) 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.(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system.Specifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location.The Amazon Resource Name (ARN) of the specified object storage location.The URI of the specified object storage location.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.Specifies the name of the object storage bucket involved in the transfer.Specifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key .Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text.A reference to a LocationObjectStorage resource.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 address (IPv4 or IPv6) 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) (Optional) 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.voidsetCmkSecretConfig(IResolvable value) Specifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key .voidSpecifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key .voidsetCustomSecretConfig(IResolvable value) Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text.voidSpecifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text.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 address (IPv4 or IPv6) 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.constructs.IConstruct
getNodeMethods 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, @Nullable 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.
-
CfnLocationObjectStorage
@Stability(Stable) public CfnLocationObjectStorage(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
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.
-
getAttrCmkSecretConfigSecretArn
Specifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location.This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for
KmsKeyArn. -
getAttrLocationArn
The Amazon Resource Name (ARN) of the specified object storage location. -
getAttrLocationUri
The URI of the specified object storage location. -
getAttrManagedSecretConfig
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.DataSync uses the default AWS-managed KMS key to encrypt this secret in AWS Secrets Manager.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getLocationObjectStorageRef
A reference to a LocationObjectStorage resource.- Specified by:
getLocationObjectStorageRefin interfaceILocationObjectStorageRef
-
getTags
Tag Manager which manages the tags for this resource. -
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. -
getAgentArns
(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. -
setAgentArns
(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. -
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. -
getCmkSecretConfig
Specifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key .Returns union: either
IResolvableorCfnLocationObjectStorage.CmkSecretConfigProperty -
setCmkSecretConfig
Specifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key . -
setCmkSecretConfig
@Stability(Stable) public void setCmkSecretConfig(@Nullable CfnLocationObjectStorage.CmkSecretConfigProperty value) Specifies configuration information for a DataSync-managed secret, which includes theSecretKeythat DataSync uses to access a specific object storage location, with a customer-managed AWS KMS key . -
getCustomSecretConfig
Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text.Returns union: either
IResolvableorCfnLocationObjectStorage.CustomSecretConfigProperty -
setCustomSecretConfig
Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text. -
setCustomSecretConfig
@Stability(Stable) public void setCustomSecretConfig(@Nullable CfnLocationObjectStorage.CustomSecretConfigProperty value) Specifies configuration information for a customer-managed Secrets Manager secret where the secret key for a specific object storage location is stored in plain text. -
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 address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to. -
setServerHostname
Specifies the domain name or IP address (IPv4 or IPv6) 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.
-