Class CfnLocationS3.Builder

java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationS3.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationS3>
Enclosing class:
CfnLocationS3

@Stability(Stable) public static final class CfnLocationS3.Builder extends Object implements software.amazon.jsii.Builder<CfnLocationS3>
A fluent builder for CfnLocationS3.
  • Method Details

    • create

      @Stability(Stable) public static CfnLocationS3.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLocationS3.Builder.
    • s3Config

      @Stability(Stable) public CfnLocationS3.Builder s3Config(IResolvable s3Config)
      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.

      For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .

      Parameters:
      s3Config - The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • s3Config

      @Stability(Stable) public CfnLocationS3.Builder s3Config(CfnLocationS3.S3ConfigProperty s3Config)
      The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.

      For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .

      Parameters:
      s3Config - The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • s3BucketArn

      @Stability(Stable) public CfnLocationS3.Builder s3BucketArn(String s3BucketArn)
      The ARN of the Amazon S3 bucket.

      Parameters:
      s3BucketArn - The ARN of the Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • s3StorageClass

      @Stability(Stable) public CfnLocationS3.Builder s3StorageClass(String s3StorageClass)
      The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.

      For buckets in AWS Regions , the storage class defaults to S3 Standard.

      For more information about S3 storage classes, see Amazon S3 Storage Classes . Some storage classes have behaviors that can affect your S3 storage costs. For detailed information, see Considerations When Working with Amazon S3 Storage Classes in DataSync .

      Parameters:
      s3StorageClass - The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. This parameter is required.
      Returns:
      this
    • subdirectory

      @Stability(Stable) public CfnLocationS3.Builder subdirectory(String subdirectory)
      A subdirectory in the Amazon S3 bucket.

      This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.

      Parameters:
      subdirectory - A subdirectory in the Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnLocationS3.Builder tags(List<? extends CfnTag> tags)
      The key-value pair that represents the tag that you want to add to the location.

      The value can be an empty string. We recommend using tags to name your resources.

      Parameters:
      tags - The key-value pair that represents the tag that you want to add to the location. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnLocationS3 build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLocationS3>
      Returns:
      a newly built instance of CfnLocationS3.