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.98.0 (build 00b106d)", date="2024-05-08T21:35:05.135Z") @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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrLocationArn

      @Stability(Stable) @NotNull public String getAttrLocationArn()
      The Amazon Resource Name (ARN) of the specified object storage location.
    • getAttrLocationUri

      @Stability(Stable) @NotNull public String getAttrLocationUri()
      The URI of the specified object storage location.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getAgentArns

      @Stability(Stable) @NotNull public List<String> getAgentArns()
      Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
    • setAgentArns

      @Stability(Stable) public void setAgentArns(@NotNull List<String> value)
      Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
    • getAccessKey

      @Stability(Stable) @Nullable public String getAccessKey()
      Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
    • setAccessKey

      @Stability(Stable) public void setAccessKey(@Nullable String value)
      Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
    • getBucketName

      @Stability(Stable) @Nullable public String getBucketName()
      Specifies the name of the object storage bucket involved in the transfer.
    • setBucketName

      @Stability(Stable) public void setBucketName(@Nullable String value)
      Specifies the name of the object storage bucket involved in the transfer.
    • getSecretKey

      @Stability(Stable) @Nullable public String getSecretKey()
      Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
    • setSecretKey

      @Stability(Stable) public void setSecretKey(@Nullable String value)
      Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
    • getServerCertificate

      @Stability(Stable) @Nullable public String 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

      @Stability(Stable) public void setServerCertificate(@Nullable 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).
    • getServerHostname

      @Stability(Stable) @Nullable public String getServerHostname()
      Specifies the domain name or IP address of the object storage server.
    • setServerHostname

      @Stability(Stable) public void setServerHostname(@Nullable String value)
      Specifies the domain name or IP address of the object storage server.
    • getServerPort

      @Stability(Stable) @Nullable public Number getServerPort()
      Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
    • setServerPort

      @Stability(Stable) public void setServerPort(@Nullable Number value)
      Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
    • getServerProtocol

      @Stability(Stable) @Nullable public String getServerProtocol()
      Specifies the protocol that your object storage server uses to communicate.
    • setServerProtocol

      @Stability(Stable) public void setServerProtocol(@Nullable String value)
      Specifies the protocol that your object storage server uses to communicate.
    • getSubdirectory

      @Stability(Stable) @Nullable public String getSubdirectory()
      Specifies the object prefix for your object storage server.
    • setSubdirectory

      @Stability(Stable) public void setSubdirectory(@Nullable String value)
      Specifies the object prefix for your object storage server.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Specifies the key-value pair that represents a tag that you want to add to the resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Specifies the key-value pair that represents a tag that you want to add to the resource.