Class S3BucketObject.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static S3BucketObject.Builder create​(software.constructs.Construct scope,
                                                    String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of S3BucketObject.Builder.
      • connection

        @Stability(Experimental)
        public S3BucketObject.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public S3BucketObject.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public S3BucketObject.Builder count​(Number count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public S3BucketObject.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public S3BucketObject.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public S3BucketObject.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public S3BucketObject.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public S3BucketObject.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public S3BucketObject.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • bucket

        @Stability(Stable)
        public S3BucketObject.Builder bucket​(String bucket)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket S3BucketObject#bucket}.

        Parameters:
        bucket - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket S3BucketObject#bucket}. This parameter is required.
        Returns:
        this
      • key

        @Stability(Stable)
        public S3BucketObject.Builder key​(String key)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#key S3BucketObject#key}.

        Parameters:
        key - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#key S3BucketObject#key}. This parameter is required.
        Returns:
        this
      • acl

        @Stability(Stable)
        public S3BucketObject.Builder acl​(String acl)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#acl S3BucketObject#acl}.

        Parameters:
        acl - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#acl S3BucketObject#acl}. This parameter is required.
        Returns:
        this
      • bucketKeyEnabled

        @Stability(Stable)
        public S3BucketObject.Builder bucketKeyEnabled​(Boolean bucketKeyEnabled)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket_key_enabled S3BucketObject#bucket_key_enabled}.

        Parameters:
        bucketKeyEnabled - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket_key_enabled S3BucketObject#bucket_key_enabled}. This parameter is required.
        Returns:
        this
      • bucketKeyEnabled

        @Stability(Stable)
        public S3BucketObject.Builder bucketKeyEnabled​(com.hashicorp.cdktf.IResolvable bucketKeyEnabled)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket_key_enabled S3BucketObject#bucket_key_enabled}.

        Parameters:
        bucketKeyEnabled - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#bucket_key_enabled S3BucketObject#bucket_key_enabled}. This parameter is required.
        Returns:
        this
      • cacheControl

        @Stability(Stable)
        public S3BucketObject.Builder cacheControl​(String cacheControl)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#cache_control S3BucketObject#cache_control}.

        Parameters:
        cacheControl - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#cache_control S3BucketObject#cache_control}. This parameter is required.
        Returns:
        this
      • content

        @Stability(Stable)
        public S3BucketObject.Builder content​(String content)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content S3BucketObject#content}.

        Parameters:
        content - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content S3BucketObject#content}. This parameter is required.
        Returns:
        this
      • contentBase64

        @Stability(Stable)
        public S3BucketObject.Builder contentBase64​(String contentBase64)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_base64 S3BucketObject#content_base64}.

        Parameters:
        contentBase64 - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_base64 S3BucketObject#content_base64}. This parameter is required.
        Returns:
        this
      • contentDisposition

        @Stability(Stable)
        public S3BucketObject.Builder contentDisposition​(String contentDisposition)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_disposition S3BucketObject#content_disposition}.

        Parameters:
        contentDisposition - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_disposition S3BucketObject#content_disposition}. This parameter is required.
        Returns:
        this
      • contentEncoding

        @Stability(Stable)
        public S3BucketObject.Builder contentEncoding​(String contentEncoding)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_encoding S3BucketObject#content_encoding}.

        Parameters:
        contentEncoding - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_encoding S3BucketObject#content_encoding}. This parameter is required.
        Returns:
        this
      • contentLanguage

        @Stability(Stable)
        public S3BucketObject.Builder contentLanguage​(String contentLanguage)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_language S3BucketObject#content_language}.

        Parameters:
        contentLanguage - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_language S3BucketObject#content_language}. This parameter is required.
        Returns:
        this
      • contentType

        @Stability(Stable)
        public S3BucketObject.Builder contentType​(String contentType)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_type S3BucketObject#content_type}.

        Parameters:
        contentType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#content_type S3BucketObject#content_type}. This parameter is required.
        Returns:
        this
      • etag

        @Stability(Stable)
        public S3BucketObject.Builder etag​(String etag)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#etag S3BucketObject#etag}.

        Parameters:
        etag - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#etag S3BucketObject#etag}. This parameter is required.
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public S3BucketObject.Builder forceDestroy​(Boolean forceDestroy)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#force_destroy S3BucketObject#force_destroy}.

        Parameters:
        forceDestroy - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#force_destroy S3BucketObject#force_destroy}. This parameter is required.
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public S3BucketObject.Builder forceDestroy​(com.hashicorp.cdktf.IResolvable forceDestroy)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#force_destroy S3BucketObject#force_destroy}.

        Parameters:
        forceDestroy - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#force_destroy S3BucketObject#force_destroy}. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public S3BucketObject.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#id S3BucketObject#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#id S3BucketObject#id}. This parameter is required.
        Returns:
        this
      • kmsKeyId

        @Stability(Stable)
        public S3BucketObject.Builder kmsKeyId​(String kmsKeyId)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#kms_key_id S3BucketObject#kms_key_id}.

        Parameters:
        kmsKeyId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#kms_key_id S3BucketObject#kms_key_id}. This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public S3BucketObject.Builder metadata​(Map<String,​String> metadata)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#metadata S3BucketObject#metadata}.

        Parameters:
        metadata - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#metadata S3BucketObject#metadata}. This parameter is required.
        Returns:
        this
      • objectLockLegalHoldStatus

        @Stability(Stable)
        public S3BucketObject.Builder objectLockLegalHoldStatus​(String objectLockLegalHoldStatus)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_legal_hold_status S3BucketObject#object_lock_legal_hold_status}.

        Parameters:
        objectLockLegalHoldStatus - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_legal_hold_status S3BucketObject#object_lock_legal_hold_status}. This parameter is required.
        Returns:
        this
      • objectLockMode

        @Stability(Stable)
        public S3BucketObject.Builder objectLockMode​(String objectLockMode)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_mode S3BucketObject#object_lock_mode}.

        Parameters:
        objectLockMode - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_mode S3BucketObject#object_lock_mode}. This parameter is required.
        Returns:
        this
      • objectLockRetainUntilDate

        @Stability(Stable)
        public S3BucketObject.Builder objectLockRetainUntilDate​(String objectLockRetainUntilDate)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_retain_until_date S3BucketObject#object_lock_retain_until_date}.

        Parameters:
        objectLockRetainUntilDate - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#object_lock_retain_until_date S3BucketObject#object_lock_retain_until_date}. This parameter is required.
        Returns:
        this
      • serverSideEncryption

        @Stability(Stable)
        public S3BucketObject.Builder serverSideEncryption​(String serverSideEncryption)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#server_side_encryption S3BucketObject#server_side_encryption}.

        Parameters:
        serverSideEncryption - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#server_side_encryption S3BucketObject#server_side_encryption}. This parameter is required.
        Returns:
        this
      • source

        @Stability(Stable)
        public S3BucketObject.Builder source​(String source)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#source S3BucketObject#source}.

        Parameters:
        source - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#source S3BucketObject#source}. This parameter is required.
        Returns:
        this
      • sourceHash

        @Stability(Stable)
        public S3BucketObject.Builder sourceHash​(String sourceHash)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#source_hash S3BucketObject#source_hash}.

        Parameters:
        sourceHash - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#source_hash S3BucketObject#source_hash}. This parameter is required.
        Returns:
        this
      • storageClass

        @Stability(Stable)
        public S3BucketObject.Builder storageClass​(String storageClass)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#storage_class S3BucketObject#storage_class}.

        Parameters:
        storageClass - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#storage_class S3BucketObject#storage_class}. This parameter is required.
        Returns:
        this
      • tags

        @Stability(Stable)
        public S3BucketObject.Builder tags​(Map<String,​String> tags)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#tags S3BucketObject#tags}.

        Parameters:
        tags - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#tags S3BucketObject#tags}. This parameter is required.
        Returns:
        this
      • tagsAll

        @Stability(Stable)
        public S3BucketObject.Builder tagsAll​(Map<String,​String> tagsAll)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#tags_all S3BucketObject#tags_all}.

        Parameters:
        tagsAll - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#tags_all S3BucketObject#tags_all}. This parameter is required.
        Returns:
        this
      • websiteRedirect

        @Stability(Stable)
        public S3BucketObject.Builder websiteRedirect​(String websiteRedirect)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#website_redirect S3BucketObject#website_redirect}.

        Parameters:
        websiteRedirect - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_bucket_object#website_redirect S3BucketObject#website_redirect}. This parameter is required.
        Returns:
        this