Package com.pulumi.aws.s3
Class BucketArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.s3.BucketArgs.Builder
-
- Enclosing class:
- BucketArgs
public static final class BucketArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(BucketArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BucketArgs.BuilderaccelerationStatus(com.pulumi.core.Output<java.lang.String> accelerationStatus)Deprecated.acceleration_status is deprecated.BucketArgs.BuilderaccelerationStatus(java.lang.String accelerationStatus)Deprecated.acceleration_status is deprecated.BucketArgs.Builderacl(CannedAcl acl)Deprecated.acl is deprecated.BucketArgs.Builderacl(com.pulumi.core.Either<java.lang.String,CannedAcl> acl)Deprecated.acl is deprecated.BucketArgs.Builderacl(com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,CannedAcl>> acl)Deprecated.acl is deprecated.BucketArgs.Builderacl(java.lang.String acl)Deprecated.acl is deprecated.BucketArgs.Builderbucket(com.pulumi.core.Output<java.lang.String> bucket)BucketArgs.Builderbucket(java.lang.String bucket)BucketArgs.BuilderbucketNamespace(com.pulumi.core.Output<java.lang.String> bucketNamespace)BucketArgs.BuilderbucketNamespace(java.lang.String bucketNamespace)BucketArgs.BuilderbucketPrefix(com.pulumi.core.Output<java.lang.String> bucketPrefix)BucketArgs.BuilderbucketPrefix(java.lang.String bucketPrefix)BucketArgsbuild()BucketArgs.BuildercorsRules(BucketCorsRuleArgs... corsRules)Deprecated.cors_rule is deprecated.BucketArgs.BuildercorsRules(com.pulumi.core.Output<java.util.List<BucketCorsRuleArgs>> corsRules)Deprecated.cors_rule is deprecated.BucketArgs.BuildercorsRules(java.util.List<BucketCorsRuleArgs> corsRules)Deprecated.cors_rule is deprecated.BucketArgs.BuilderforceDestroy(com.pulumi.core.Output<java.lang.Boolean> forceDestroy)BucketArgs.BuilderforceDestroy(java.lang.Boolean forceDestroy)BucketArgs.Buildergrants(BucketGrantArgs... grants)Deprecated.grant is deprecated.BucketArgs.Buildergrants(com.pulumi.core.Output<java.util.List<BucketGrantArgs>> grants)Deprecated.grant is deprecated.BucketArgs.Buildergrants(java.util.List<BucketGrantArgs> grants)Deprecated.grant is deprecated.BucketArgs.BuilderlifecycleRules(BucketLifecycleRuleArgs... lifecycleRules)Deprecated.lifecycle_rule is deprecated.BucketArgs.BuilderlifecycleRules(com.pulumi.core.Output<java.util.List<BucketLifecycleRuleArgs>> lifecycleRules)Deprecated.lifecycle_rule is deprecated.BucketArgs.BuilderlifecycleRules(java.util.List<BucketLifecycleRuleArgs> lifecycleRules)Deprecated.lifecycle_rule is deprecated.BucketArgs.Builderlogging(BucketLoggingArgs logging)Deprecated.logging is deprecated.BucketArgs.Builderlogging(com.pulumi.core.Output<BucketLoggingArgs> logging)Deprecated.logging is deprecated.BucketArgs.BuilderobjectLockConfiguration(BucketObjectLockConfigurationArgs objectLockConfiguration)Deprecated.object_lock_configuration is deprecated.BucketArgs.BuilderobjectLockConfiguration(com.pulumi.core.Output<BucketObjectLockConfigurationArgs> objectLockConfiguration)Deprecated.object_lock_configuration is deprecated.BucketArgs.BuilderobjectLockEnabled(com.pulumi.core.Output<java.lang.Boolean> objectLockEnabled)BucketArgs.BuilderobjectLockEnabled(java.lang.Boolean objectLockEnabled)BucketArgs.Builderpolicy(PolicyDocumentArgs policy)Deprecated.policy is deprecated.BucketArgs.Builderpolicy(com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs> policy)Deprecated.policy is deprecated.BucketArgs.Builderpolicy(com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs>> policy)Deprecated.policy is deprecated.BucketArgs.Builderpolicy(java.lang.String policy)Deprecated.policy is deprecated.BucketArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)BucketArgs.Builderregion(java.lang.String region)BucketArgs.BuilderreplicationConfiguration(BucketReplicationConfigurationArgs replicationConfiguration)Deprecated.replication_configuration is deprecated.BucketArgs.BuilderreplicationConfiguration(com.pulumi.core.Output<BucketReplicationConfigurationArgs> replicationConfiguration)Deprecated.replication_configuration is deprecated.BucketArgs.BuilderrequestPayer(com.pulumi.core.Output<java.lang.String> requestPayer)Deprecated.request_payer is deprecated.BucketArgs.BuilderrequestPayer(java.lang.String requestPayer)Deprecated.request_payer is deprecated.BucketArgs.BuilderserverSideEncryptionConfiguration(BucketServerSideEncryptionConfigurationArgs serverSideEncryptionConfiguration)Deprecated.server_side_encryption_configuration is deprecated.BucketArgs.BuilderserverSideEncryptionConfiguration(com.pulumi.core.Output<BucketServerSideEncryptionConfigurationArgs> serverSideEncryptionConfiguration)Deprecated.server_side_encryption_configuration is deprecated.BucketArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)BucketArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)BucketArgs.Builderversioning(BucketVersioningArgs versioning)Deprecated.versioning is deprecated.BucketArgs.Builderversioning(com.pulumi.core.Output<BucketVersioningArgs> versioning)Deprecated.versioning is deprecated.BucketArgs.Builderwebsite(BucketWebsiteArgs website)Deprecated.website is deprecated.BucketArgs.Builderwebsite(com.pulumi.core.Output<BucketWebsiteArgs> website)Deprecated.website is deprecated.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(BucketArgs defaults)
-
-
Method Detail
-
accelerationStatus
@Deprecated public BucketArgs.Builder accelerationStatus(@Nullable com.pulumi.core.Output<java.lang.String> accelerationStatus)
Deprecated.acceleration_status is deprecated. Use the aws.s3.BucketAccelerateConfiguration resource instead.- Parameters:
accelerationStatus- Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAccelerateConfiguration` instead.- Returns:
- builder
-
accelerationStatus
@Deprecated public BucketArgs.Builder accelerationStatus(java.lang.String accelerationStatus)
Deprecated.acceleration_status is deprecated. Use the aws.s3.BucketAccelerateConfiguration resource instead.- Parameters:
accelerationStatus- Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAccelerateConfiguration` instead.- Returns:
- builder
-
acl
@Deprecated public BucketArgs.Builder acl(@Nullable com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,CannedAcl>> acl)
Deprecated.acl is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
acl- [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`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
acl
@Deprecated public BucketArgs.Builder acl(com.pulumi.core.Either<java.lang.String,CannedAcl> acl)
Deprecated.acl is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
acl- [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`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
acl
@Deprecated public BucketArgs.Builder acl(java.lang.String acl)
Deprecated.acl is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
acl- [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`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
acl
@Deprecated public BucketArgs.Builder acl(CannedAcl acl)
Deprecated.acl is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
acl- [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`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
bucket
public BucketArgs.Builder bucket(@Nullable com.pulumi.core.Output<java.lang.String> bucket)
- Parameters:
bucket- Name of the bucket. If omitted, the 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). The name must not be in the format `[bucketName]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.- Returns:
- builder
-
bucket
public BucketArgs.Builder bucket(java.lang.String bucket)
- Parameters:
bucket- Name of the bucket. If omitted, the 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). The name must not be in the format `[bucketName]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.- Returns:
- builder
-
bucketNamespace
public BucketArgs.Builder bucketNamespace(@Nullable com.pulumi.core.Output<java.lang.String> bucketNamespace)
- Parameters:
bucketNamespace- Namespace for the bucket. Determines bucket naming scope. Valid values: `account-regional`, `global`. Defaults to `global` (AWS).- Returns:
- builder
-
bucketNamespace
public BucketArgs.Builder bucketNamespace(java.lang.String bucketNamespace)
- Parameters:
bucketNamespace- Namespace for the bucket. Determines bucket naming scope. Valid values: `account-regional`, `global`. Defaults to `global` (AWS).- Returns:
- builder
-
bucketPrefix
public BucketArgs.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 BucketArgs.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
-
corsRules
@Deprecated public BucketArgs.Builder corsRules(@Nullable com.pulumi.core.Output<java.util.List<BucketCorsRuleArgs>> corsRules)
Deprecated.cors_rule is deprecated. Use the aws.s3.BucketCorsConfiguration resource instead.- Parameters:
corsRules- Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See `corsRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfiguration` instead.- Returns:
- builder
-
corsRules
@Deprecated public BucketArgs.Builder corsRules(java.util.List<BucketCorsRuleArgs> corsRules)
Deprecated.cors_rule is deprecated. Use the aws.s3.BucketCorsConfiguration resource instead.- Parameters:
corsRules- Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See `corsRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfiguration` instead.- Returns:
- builder
-
corsRules
@Deprecated public BucketArgs.Builder corsRules(BucketCorsRuleArgs... corsRules)
Deprecated.cors_rule is deprecated. Use the aws.s3.BucketCorsConfiguration resource instead.- Parameters:
corsRules- Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See `corsRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfiguration` instead.- Returns:
- builder
-
forceDestroy
public BucketArgs.Builder forceDestroy(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
- Parameters:
forceDestroy- 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to `true`. Once this parameter is set to `true`, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.- Returns:
- builder
-
forceDestroy
public BucketArgs.Builder forceDestroy(java.lang.Boolean forceDestroy)
- Parameters:
forceDestroy- 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 *when the bucket is destroyed* so that the bucket can be destroyed without error. These objects are *not* recoverable. This only deletes objects when the bucket is destroyed, *not* when setting this parameter to `true`. Once this parameter is set to `true`, there must be a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the bucket or destroying the bucket, this flag will not work. Additionally when importing a bucket, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.- Returns:
- builder
-
grants
@Deprecated public BucketArgs.Builder grants(@Nullable com.pulumi.core.Output<java.util.List<BucketGrantArgs>> grants)
Deprecated.grant is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
grants- [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See `grant` Block below for details. Conflicts with `acl`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
grants
@Deprecated public BucketArgs.Builder grants(java.util.List<BucketGrantArgs> grants)
Deprecated.grant is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
grants- [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See `grant` Block below for details. Conflicts with `acl`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
grants
@Deprecated public BucketArgs.Builder grants(BucketGrantArgs... grants)
Deprecated.grant is deprecated. Use the aws.s3.BucketAcl resource instead.- Parameters:
grants- [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See `grant` Block below for details. Conflicts with `acl`. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAcl` instead.- Returns:
- builder
-
lifecycleRules
@Deprecated public BucketArgs.Builder lifecycleRules(@Nullable com.pulumi.core.Output<java.util.List<BucketLifecycleRuleArgs>> lifecycleRules)
Deprecated.lifecycle_rule is deprecated. Use the aws.s3.BucketLifecycleConfiguration resource instead.- Parameters:
lifecycleRules- Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See `lifecycleRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketLifecycleConfiguration` instead.- Returns:
- builder
-
lifecycleRules
@Deprecated public BucketArgs.Builder lifecycleRules(java.util.List<BucketLifecycleRuleArgs> lifecycleRules)
Deprecated.lifecycle_rule is deprecated. Use the aws.s3.BucketLifecycleConfiguration resource instead.- Parameters:
lifecycleRules- Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See `lifecycleRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketLifecycleConfiguration` instead.- Returns:
- builder
-
lifecycleRules
@Deprecated public BucketArgs.Builder lifecycleRules(BucketLifecycleRuleArgs... lifecycleRules)
Deprecated.lifecycle_rule is deprecated. Use the aws.s3.BucketLifecycleConfiguration resource instead.- Parameters:
lifecycleRules- Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See `lifecycleRule` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketLifecycleConfiguration` instead.- Returns:
- builder
-
logging
@Deprecated public BucketArgs.Builder logging(@Nullable com.pulumi.core.Output<BucketLoggingArgs> logging)
Deprecated.logging is deprecated. Use the aws.s3.BucketLogging resource instead.- Parameters:
logging- Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See `logging` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketLogging` instead.- Returns:
- builder
-
logging
@Deprecated public BucketArgs.Builder logging(BucketLoggingArgs logging)
Deprecated.logging is deprecated. Use the aws.s3.BucketLogging resource instead.- Parameters:
logging- Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See `logging` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketLogging` instead.- Returns:
- builder
-
objectLockConfiguration
@Deprecated public BucketArgs.Builder objectLockConfiguration(@Nullable com.pulumi.core.Output<BucketObjectLockConfigurationArgs> objectLockConfiguration)
Deprecated.object_lock_configuration is deprecated. Use the top-level parameter objectLockEnabled and the aws.s3.BucketObjectLockConfiguration resource instead.- Parameters:
objectLockConfiguration- Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See `objectLockConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfiguration` instead.- Returns:
- builder
-
objectLockConfiguration
@Deprecated public BucketArgs.Builder objectLockConfiguration(BucketObjectLockConfigurationArgs objectLockConfiguration)
Deprecated.object_lock_configuration is deprecated. Use the top-level parameter objectLockEnabled and the aws.s3.BucketObjectLockConfiguration resource instead.- Parameters:
objectLockConfiguration- Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See `objectLockConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfiguration` instead.- Returns:
- builder
-
objectLockEnabled
public BucketArgs.Builder objectLockEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> objectLockEnabled)
- Parameters:
objectLockEnabled- Whether this bucket has an Object Lock configuration enabled. Valid values are `true` or `false`. This argument is not supported in all regions or partitions.- Returns:
- builder
-
objectLockEnabled
public BucketArgs.Builder objectLockEnabled(java.lang.Boolean objectLockEnabled)
- Parameters:
objectLockEnabled- Whether this bucket has an Object Lock configuration enabled. Valid values are `true` or `false`. This argument is not supported in all regions or partitions.- Returns:
- builder
-
policy
@Deprecated public BucketArgs.Builder policy(@Nullable com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs>> policy)
Deprecated.policy is deprecated. Use the aws.s3.BucketPolicy resource instead.- Parameters:
policy- 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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketPolicy` instead.- Returns:
- builder
-
policy
@Deprecated public BucketArgs.Builder policy(com.pulumi.core.Either<java.lang.String,PolicyDocumentArgs> policy)
Deprecated.policy is deprecated. Use the aws.s3.BucketPolicy resource instead.- Parameters:
policy- 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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketPolicy` instead.- Returns:
- builder
-
policy
@Deprecated public BucketArgs.Builder policy(java.lang.String policy)
Deprecated.policy is deprecated. Use the aws.s3.BucketPolicy resource instead.- Parameters:
policy- 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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketPolicy` instead.- Returns:
- builder
-
policy
@Deprecated public BucketArgs.Builder policy(PolicyDocumentArgs policy)
Deprecated.policy is deprecated. Use the aws.s3.BucketPolicy resource instead.- Parameters:
policy- 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 this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketPolicy` instead.- Returns:
- builder
-
region
public BucketArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public BucketArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
replicationConfiguration
@Deprecated public BucketArgs.Builder replicationConfiguration(@Nullable com.pulumi.core.Output<BucketReplicationConfigurationArgs> replicationConfiguration)
Deprecated.replication_configuration is deprecated. Use the aws.s3.BucketReplicationConfig resource instead.- Parameters:
replicationConfiguration- Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See `replicationConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketReplicationConfig` instead.- Returns:
- builder
-
replicationConfiguration
@Deprecated public BucketArgs.Builder replicationConfiguration(BucketReplicationConfigurationArgs replicationConfiguration)
Deprecated.replication_configuration is deprecated. Use the aws.s3.BucketReplicationConfig resource instead.- Parameters:
replicationConfiguration- Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See `replicationConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketReplicationConfig` instead.- Returns:
- builder
-
requestPayer
@Deprecated public BucketArgs.Builder requestPayer(@Nullable com.pulumi.core.Output<java.lang.String> requestPayer)
Deprecated.request_payer is deprecated. Use the aws.s3.BucketRequestPaymentConfiguration resource instead.- Parameters:
requestPayer- 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. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketRequestPaymentConfiguration` instead.- Returns:
- builder
-
requestPayer
@Deprecated public BucketArgs.Builder requestPayer(java.lang.String requestPayer)
Deprecated.request_payer is deprecated. Use the aws.s3.BucketRequestPaymentConfiguration resource instead.- Parameters:
requestPayer- 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. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketRequestPaymentConfiguration` instead.- Returns:
- builder
-
serverSideEncryptionConfiguration
@Deprecated public BucketArgs.Builder serverSideEncryptionConfiguration(@Nullable com.pulumi.core.Output<BucketServerSideEncryptionConfigurationArgs> serverSideEncryptionConfiguration)
Deprecated.server_side_encryption_configuration is deprecated. Use the aws.s3.BucketServerSideEncryptionConfiguration resource instead.- Parameters:
serverSideEncryptionConfiguration- Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See `serverSideEncryptionConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketServerSideEncryptionConfiguration` instead.- Returns:
- builder
-
serverSideEncryptionConfiguration
@Deprecated public BucketArgs.Builder serverSideEncryptionConfiguration(BucketServerSideEncryptionConfigurationArgs serverSideEncryptionConfiguration)
Deprecated.server_side_encryption_configuration is deprecated. Use the aws.s3.BucketServerSideEncryptionConfiguration resource instead.- Parameters:
serverSideEncryptionConfiguration- Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See `serverSideEncryptionConfiguration` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketServerSideEncryptionConfiguration` instead.- Returns:
- builder
-
tags
public BucketArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public BucketArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
versioning
@Deprecated public BucketArgs.Builder versioning(@Nullable com.pulumi.core.Output<BucketVersioningArgs> versioning)
Deprecated.versioning is deprecated. Use the aws.s3.BucketVersioning resource instead.- Parameters:
versioning- Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See `versioning` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioning` instead.- Returns:
- builder
-
versioning
@Deprecated public BucketArgs.Builder versioning(BucketVersioningArgs versioning)
Deprecated.versioning is deprecated. Use the aws.s3.BucketVersioning resource instead.- Parameters:
versioning- Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See `versioning` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioning` instead.- Returns:
- builder
-
website
@Deprecated public BucketArgs.Builder website(@Nullable com.pulumi.core.Output<BucketWebsiteArgs> website)
Deprecated.website is deprecated. Use the aws.s3.BucketWebsiteConfiguration resource instead.- Parameters:
website- Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See `website` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketWebsiteConfiguration` instead.- Returns:
- builder
-
website
@Deprecated public BucketArgs.Builder website(BucketWebsiteArgs website)
Deprecated.website is deprecated. Use the aws.s3.BucketWebsiteConfiguration resource instead.- Parameters:
website- Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See `website` Block below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketWebsiteConfiguration` instead.- Returns:
- builder
-
build
public BucketArgs build()
-
-