Class BucketState.Builder

  • Enclosing class:
    BucketState

    public static final class BucketState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • accelerationStatus

        public BucketState.Builder accelerationStatus​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> accelerationStatus)
        Parameters:
        accelerationStatus - Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`.
        Returns:
        builder
      • accelerationStatus

        public BucketState.Builder accelerationStatus​(java.lang.String accelerationStatus)
        Parameters:
        accelerationStatus - Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`.
        Returns:
        builder
      • acl

        public BucketState.Builder acl​(@Nullable
                                       com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​CannedAcl>> acl)
        Parameters:
        acl - The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`.
        Returns:
        builder
      • acl

        public BucketState.Builder acl​(com.pulumi.core.Either<java.lang.String,​CannedAcl> acl)
        Parameters:
        acl - The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`.
        Returns:
        builder
      • acl

        public BucketState.Builder acl​(java.lang.String acl)
        Parameters:
        acl - The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`.
        Returns:
        builder
      • acl

        public BucketState.Builder acl​(CannedAcl acl)
        Parameters:
        acl - The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`.
        Returns:
        builder
      • arn

        public BucketState.Builder arn​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
        Returns:
        builder
      • arn

        public BucketState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
        Returns:
        builder
      • bucket

        public BucketState.Builder bucket​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> bucket)
        Parameters:
        bucket - The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
        Returns:
        builder
      • bucket

        public BucketState.Builder bucket​(java.lang.String bucket)
        Parameters:
        bucket - The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
        Returns:
        builder
      • bucketDomainName

        public BucketState.Builder bucketDomainName​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> bucketDomainName)
        Parameters:
        bucketDomainName - The bucket domain name. Will be of format `bucketname.s3.amazonaws.com`.
        Returns:
        builder
      • bucketDomainName

        public BucketState.Builder bucketDomainName​(java.lang.String bucketDomainName)
        Parameters:
        bucketDomainName - The bucket domain name. Will be of format `bucketname.s3.amazonaws.com`.
        Returns:
        builder
      • bucketPrefix

        public BucketState.Builder bucketPrefix​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> bucketPrefix)
        Parameters:
        bucketPrefix - Creates a unique bucket name beginning with the specified prefix. Conflicts with `bucket`. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
        Returns:
        builder
      • bucketPrefix

        public BucketState.Builder bucketPrefix​(java.lang.String bucketPrefix)
        Parameters:
        bucketPrefix - Creates a unique bucket name beginning with the specified prefix. Conflicts with `bucket`. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
        Returns:
        builder
      • bucketRegionalDomainName

        public BucketState.Builder bucketRegionalDomainName​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> bucketRegionalDomainName)
        Parameters:
        bucketRegionalDomainName - The bucket region-specific domain name. The bucket domain name including the region name, please refer [here](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent [redirect issues](https://forums.aws.amazon.com/thread.jspa?threadID=216814) from CloudFront to S3 Origin URL.
        Returns:
        builder
      • bucketRegionalDomainName

        public BucketState.Builder bucketRegionalDomainName​(java.lang.String bucketRegionalDomainName)
        Parameters:
        bucketRegionalDomainName - The bucket region-specific domain name. The bucket domain name including the region name, please refer [here](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent [redirect issues](https://forums.aws.amazon.com/thread.jspa?threadID=216814) from CloudFront to S3 Origin URL.
        Returns:
        builder
      • corsRules

        public BucketState.Builder corsRules​(@Nullable
                                             com.pulumi.core.Output<java.util.List<BucketCorsRuleArgs>> corsRules)
        Parameters:
        corsRules - A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
        Returns:
        builder
      • corsRules

        public BucketState.Builder corsRules​(java.util.List<BucketCorsRuleArgs> corsRules)
        Parameters:
        corsRules - A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
        Returns:
        builder
      • corsRules

        public BucketState.Builder corsRules​(BucketCorsRuleArgs... corsRules)
        Parameters:
        corsRules - A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
        Returns:
        builder
      • forceDestroy

        public BucketState.Builder forceDestroy​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
        Parameters:
        forceDestroy - A boolean that indicates all objects (including any [locked objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html)) should be deleted from the bucket so that the bucket can be destroyed without error. These objects are *not* recoverable.
        Returns:
        builder
      • forceDestroy

        public BucketState.Builder forceDestroy​(java.lang.Boolean forceDestroy)
        Parameters:
        forceDestroy - A boolean that indicates all objects (including any [locked objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html)) should be deleted from the bucket so that the bucket can be destroyed without error. These objects are *not* recoverable.
        Returns:
        builder
      • grants

        public BucketState.Builder grants​(@Nullable
                                          com.pulumi.core.Output<java.util.List<BucketGrantArgs>> grants)
        Parameters:
        grants - An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl) (documented below). Conflicts with `acl`.
        Returns:
        builder
      • grants

        public BucketState.Builder grants​(java.util.List<BucketGrantArgs> grants)
        Parameters:
        grants - An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl) (documented below). Conflicts with `acl`.
        Returns:
        builder
      • grants

        public BucketState.Builder grants​(BucketGrantArgs... grants)
        Parameters:
        grants - An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl) (documented below). Conflicts with `acl`.
        Returns:
        builder
      • hostedZoneId

        public BucketState.Builder hostedZoneId​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> hostedZoneId)
        Parameters:
        hostedZoneId - The [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region.
        Returns:
        builder
      • hostedZoneId

        public BucketState.Builder hostedZoneId​(java.lang.String hostedZoneId)
        Parameters:
        hostedZoneId - The [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region.
        Returns:
        builder
      • lifecycleRules

        public BucketState.Builder lifecycleRules​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<BucketLifecycleRuleArgs>> lifecycleRules)
        Parameters:
        lifecycleRules - A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) (documented below).
        Returns:
        builder
      • lifecycleRules

        public BucketState.Builder lifecycleRules​(java.util.List<BucketLifecycleRuleArgs> lifecycleRules)
        Parameters:
        lifecycleRules - A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) (documented below).
        Returns:
        builder
      • lifecycleRules

        public BucketState.Builder lifecycleRules​(BucketLifecycleRuleArgs... lifecycleRules)
        Parameters:
        lifecycleRules - A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) (documented below).
        Returns:
        builder
      • loggings

        public BucketState.Builder loggings​(@Nullable
                                            com.pulumi.core.Output<java.util.List<BucketLoggingArgs>> loggings)
        Parameters:
        loggings - A settings of [bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) (documented below).
        Returns:
        builder
      • loggings

        public BucketState.Builder loggings​(java.util.List<BucketLoggingArgs> loggings)
        Parameters:
        loggings - A settings of [bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) (documented below).
        Returns:
        builder
      • loggings

        public BucketState.Builder loggings​(BucketLoggingArgs... loggings)
        Parameters:
        loggings - A settings of [bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) (documented below).
        Returns:
        builder
      • objectLockConfiguration

        public BucketState.Builder objectLockConfiguration​(@Nullable
                                                           com.pulumi.core.Output<BucketObjectLockConfigurationArgs> objectLockConfiguration)
        Parameters:
        objectLockConfiguration - A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html) (documented below) > **NOTE:** You cannot use `acceleration_status` in `cn-north-1` or `us-gov-west-1`
        Returns:
        builder
      • objectLockConfiguration

        public BucketState.Builder objectLockConfiguration​(BucketObjectLockConfigurationArgs objectLockConfiguration)
        Parameters:
        objectLockConfiguration - A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html) (documented below) > **NOTE:** You cannot use `acceleration_status` in `cn-north-1` or `us-gov-west-1`
        Returns:
        builder
      • policy

        public BucketState.Builder policy​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a `pulumi preview`. In this case, please make sure you use the verbose/specific version of the policy.
        Returns:
        builder
      • policy

        public BucketState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a `pulumi preview`. In this case, please make sure you use the verbose/specific version of the policy.
        Returns:
        builder
      • region

        public BucketState.Builder region​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The AWS region this bucket resides in.
        Returns:
        builder
      • region

        public BucketState.Builder region​(java.lang.String region)
        Parameters:
        region - The AWS region this bucket resides in.
        Returns:
        builder
      • replicationConfiguration

        public BucketState.Builder replicationConfiguration​(@Nullable
                                                            com.pulumi.core.Output<BucketReplicationConfigurationArgs> replicationConfiguration)
        Parameters:
        replicationConfiguration - A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) (documented below).
        Returns:
        builder
      • replicationConfiguration

        public BucketState.Builder replicationConfiguration​(BucketReplicationConfigurationArgs replicationConfiguration)
        Parameters:
        replicationConfiguration - A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) (documented below).
        Returns:
        builder
      • requestPayer

        public BucketState.Builder requestPayer​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> requestPayer)
        Parameters:
        requestPayer - Specifies who should bear the cost of Amazon S3 data transfer. Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer. See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
        Returns:
        builder
      • requestPayer

        public BucketState.Builder requestPayer​(java.lang.String requestPayer)
        Parameters:
        requestPayer - Specifies who should bear the cost of Amazon S3 data transfer. Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer. See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
        Returns:
        builder
      • serverSideEncryptionConfiguration

        public BucketState.Builder serverSideEncryptionConfiguration​(@Nullable
                                                                     com.pulumi.core.Output<BucketServerSideEncryptionConfigurationArgs> serverSideEncryptionConfiguration)
        Parameters:
        serverSideEncryptionConfiguration - A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) (documented below)
        Returns:
        builder
      • serverSideEncryptionConfiguration

        public BucketState.Builder serverSideEncryptionConfiguration​(BucketServerSideEncryptionConfigurationArgs serverSideEncryptionConfiguration)
        Parameters:
        serverSideEncryptionConfiguration - A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) (documented below)
        Returns:
        builder
      • tags

        public BucketState.Builder tags​(@Nullable
                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A map of tags to assign to the bucket. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public BucketState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A map of tags to assign to the bucket. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public BucketState.Builder tagsAll​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public BucketState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • versioning

        public BucketState.Builder versioning​(@Nullable
                                              com.pulumi.core.Output<BucketVersioningArgs> versioning)
        Parameters:
        versioning - A state of [versioning](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html) (documented below)
        Returns:
        builder
      • versioning

        public BucketState.Builder versioning​(BucketVersioningArgs versioning)
        Parameters:
        versioning - A state of [versioning](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html) (documented below)
        Returns:
        builder
      • website

        public BucketState.Builder website​(@Nullable
                                           com.pulumi.core.Output<BucketWebsiteArgs> website)
        Parameters:
        website - A website object (documented below).
        Returns:
        builder
      • websiteDomain

        public BucketState.Builder websiteDomain​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> websiteDomain)
        Parameters:
        websiteDomain - The domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records.
        Returns:
        builder
      • websiteDomain

        public BucketState.Builder websiteDomain​(java.lang.String websiteDomain)
        Parameters:
        websiteDomain - The domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records.
        Returns:
        builder
      • websiteEndpoint

        public BucketState.Builder websiteEndpoint​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> websiteEndpoint)
        Parameters:
        websiteEndpoint - The website endpoint, if the bucket is configured with a website. If not, this will be an empty string.
        Returns:
        builder
      • websiteEndpoint

        public BucketState.Builder websiteEndpoint​(java.lang.String websiteEndpoint)
        Parameters:
        websiteEndpoint - The website endpoint, if the bucket is configured with a website. If not, this will be an empty string.
        Returns:
        builder