Package com.pulumi.aws.s3
Class BucketV2Args
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.s3.BucketV2Args
-
public final class BucketV2Args extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBucketV2Args.Builder
-
Field Summary
Fields Modifier and Type Field Description static BucketV2ArgsEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<java.lang.String>>accelerationStatus()Deprecated.acceleration_status is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.String>>acl()Deprecated.acl is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.String>>bucket()java.util.Optional<com.pulumi.core.Output<java.lang.String>>bucketNamespace()java.util.Optional<com.pulumi.core.Output<java.lang.String>>bucketPrefix()static BucketV2Args.Builderbuilder()static BucketV2Args.Builderbuilder(BucketV2Args defaults)java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2CorsRuleArgs>>>corsRules()Deprecated.cors_rule is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>forceDestroy()java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2GrantArgs>>>grants()Deprecated.grant is deprecated.java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2LifecycleRuleArgs>>>lifecycleRules()Deprecated.lifecycle_rule is deprecated.java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2LoggingArgs>>>loggings()Deprecated.logging is deprecated.java.util.Optional<com.pulumi.core.Output<BucketV2ObjectLockConfigurationArgs>>objectLockConfiguration()Deprecated.object_lock_configuration is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>objectLockEnabled()java.util.Optional<com.pulumi.core.Output<java.lang.String>>policy()Deprecated.policy is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2ReplicationConfigurationArgs>>>replicationConfigurations()Deprecated.replication_configuration is deprecated.java.util.Optional<com.pulumi.core.Output<java.lang.String>>requestPayer()Deprecated.request_payer is deprecated.java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2ServerSideEncryptionConfigurationArgs>>>serverSideEncryptionConfigurations()Deprecated.server_side_encryption_configuration is deprecated.java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tagsAll()java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2VersioningArgs>>>versionings()Deprecated.versioning is deprecated.java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2WebsiteArgs>>>websites()Deprecated.website is deprecated.
-
-
-
Field Detail
-
Empty
public static final BucketV2Args Empty
-
-
Method Detail
-
accelerationStatus
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.lang.String>> accelerationStatus()
Deprecated.acceleration_status is deprecated. Use the aws.s3.BucketAccelerateConfiguration resource instead.- Returns:
- 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.
-
acl
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.lang.String>> acl()
Deprecated.acl is deprecated. Use the aws.s3.BucketAcl resource instead.- Returns:
- [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.
-
bucket
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> bucket()
- Returns:
- 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.
-
bucketNamespace
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> bucketNamespace()
- Returns:
- Namespace for the bucket. Determines bucket naming scope. Valid values: `account-regional`, `global`. Defaults to `global` (AWS).
-
bucketPrefix
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> bucketPrefix()
- Returns:
- 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).
-
corsRules
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2CorsRuleArgs>>> corsRules()
Deprecated.cors_rule is deprecated. Use the aws.s3.BucketCorsConfiguration resource instead.- Returns:
- 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.
-
forceDestroy
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> forceDestroy()
- Returns:
- 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.
-
grants
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2GrantArgs>>> grants()
Deprecated.grant is deprecated. Use the aws.s3.BucketAcl resource instead.- Returns:
- [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.
-
lifecycleRules
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2LifecycleRuleArgs>>> lifecycleRules()
Deprecated.lifecycle_rule is deprecated. Use the aws.s3.BucketLifecycleConfiguration resource instead.- Returns:
- 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.
-
loggings
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2LoggingArgs>>> loggings()
Deprecated.logging is deprecated. Use the aws.s3.BucketLogging resource instead.- Returns:
- 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.
-
objectLockConfiguration
@Deprecated public java.util.Optional<com.pulumi.core.Output<BucketV2ObjectLockConfigurationArgs>> objectLockConfiguration()
Deprecated.object_lock_configuration is deprecated. Use the top-level parameter objectLockEnabled and the aws.s3.BucketObjectLockConfiguration resource instead.- Returns:
- 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.
-
objectLockEnabled
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> objectLockEnabled()
- Returns:
- 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.
-
policy
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.lang.String>> policy()
Deprecated.policy is deprecated. Use the aws.s3.BucketPolicy resource instead.- Returns:
- 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.
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- 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.
-
replicationConfigurations
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2ReplicationConfigurationArgs>>> replicationConfigurations()
Deprecated.replication_configuration is deprecated. Use the aws.s3.BucketReplicationConfig resource instead.- Returns:
- 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.
-
requestPayer
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.lang.String>> requestPayer()
Deprecated.request_payer is deprecated. Use the aws.s3.BucketRequestPaymentConfiguration resource instead.- Returns:
- 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.
-
serverSideEncryptionConfigurations
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2ServerSideEncryptionConfigurationArgs>>> serverSideEncryptionConfigurations()
Deprecated.server_side_encryption_configuration is deprecated. Use the aws.s3.BucketServerSideEncryptionConfiguration resource instead.- Returns:
- 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.
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
tagsAll
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
versionings
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2VersioningArgs>>> versionings()
Deprecated.versioning is deprecated. Use the aws.s3.BucketVersioning resource instead.- Returns:
- 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.
-
websites
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.List<BucketV2WebsiteArgs>>> websites()
Deprecated.website is deprecated. Use the aws.s3.BucketWebsiteConfiguration resource instead.- Returns:
- 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.
-
builder
public static BucketV2Args.Builder builder()
-
builder
public static BucketV2Args.Builder builder(BucketV2Args defaults)
-
-