Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.s3.kotlin.BucketV2Args.kt Maven / Gradle / Ivy
Go to download
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING" , "DEPRECATION" )
package com.pulumi.aws.s3.kotlin
import com.pulumi.aws.s3.BucketV2Args.builder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2CorsRuleArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2CorsRuleArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2GrantArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2GrantArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2LifecycleRuleArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2LifecycleRuleArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2LoggingArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2LoggingArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ObjectLockConfigurationArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ObjectLockConfigurationArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ReplicationConfigurationArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ReplicationConfigurationArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ServerSideEncryptionConfigurationArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2ServerSideEncryptionConfigurationArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2VersioningArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2VersioningArgsBuilder
import com.pulumi.aws.s3.kotlin.inputs.BucketV2WebsiteArgs
import com.pulumi.aws.s3.kotlin.inputs.BucketV2WebsiteArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a S3 bucket resource.
* > This resource provides functionality for managing S3 general purpose buckets in an AWS Partition. To manage Amazon S3 Express directory buckets, use the `aws_directory_bucket` resource. To manage [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html), use the `aws.s3control.Bucket` resource.
* > Object Lock can be enabled by using the `object_lock_enable` attribute or by using the `aws.s3.BucketObjectLockConfigurationV2` resource. Please note, that by using the resource, Object Lock can be enabled/disabled without destroying and recreating the bucket.
*
*
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi" ;
* import * as aws from "@pulumi/aws" ;
* const example = new aws.s3.BucketV2("example" , {
* bucket: "my-tf-test-bucket" ,
* tags: {
* Name: "My bucket" ,
* Environment: "Dev" ,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.s3.BucketV2("example" ,
* bucket="my-tf-test-bucket" ,
* tags={
* "Name" : "My bucket" ,
* "Environment" : "Dev" ,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.S3.BucketV2("example" , new()
* {
* Bucket = "my-tf-test-bucket" ,
* Tags =
* {
* { "Name" , "My bucket" },
* { "Environment" , "Dev" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main () {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := s3.NewBucketV2(ctx, "example" , &s3.BucketV2Args{
* Bucket: pulumi.String("my-tf-test-bucket" ),
* Tags: pulumi.StringMap{
* "Name" : pulumi.String("My bucket" ),
* "Environment" : pulumi.String("Dev" ),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.s3.BucketV2;
* import com.pulumi.aws.s3.BucketV2Args;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new BucketV2("example" , BucketV2Args.builder()
* .bucket("my-tf-test-bucket" )
* .tags(Map.ofEntries(
* Map.entry("Name" , "My bucket" ),
* Map.entry("Environment" , "Dev" )
* ))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type : aws:s3:BucketV2
* properties:
* bucket: my-tf-test-bucket
* tags:
* Name: My bucket
* Environment: Dev
* ```
*
*
* Using `pulumi import`, import S3 bucket using the `bucket`. For example:
* ```sh
* $ pulumi import aws:s3/bucketV2:BucketV2 bucket bucket-name
* ```
* @property 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.BucketAccelerateConfigurationV2` instead.
* @property acl The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
* @property 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 `[bucket_name]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.
* @property 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).
* @property corsRules Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
* @property 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.
* @property grants An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
* @property lifecycleRules Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
* @property loggings Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
* @property objectLockConfiguration Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
* The provider wil only perform drift detection if a configuration value is provided.
* Use the `object_lock_enabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
* @property objectLockEnabled Indicates 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.
* @property 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.
* @property replicationConfigurations Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
* @property 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.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
* @property serverSideEncryptionConfigurations Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
* @property tags 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.
* The following arguments are deprecated, and will be removed in a future major version:
* @property versionings Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
* @property websites Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
public data class BucketV2Args(
@Deprecated(
message = "" "
Use the aws.s3.BucketAccelerateConfigurationV2 resource instead
" "" ,
)
public val accelerationStatus: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
public val acl: Output? = null,
public val bucket: Output? = null,
public val bucketPrefix: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
public val corsRules: Output>? = null,
public val forceDestroy: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
public val grants: Output>? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
public val lifecycleRules: Output>? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
public val loggings: Output>? = null,
@Deprecated(
message = "" "
Use the top-level parameter object_lock_enabled and the aws.s3.BucketObjectLockConfigurationV2
resource instead
" "" ,
)
public val objectLockConfiguration: Output? = null,
public val objectLockEnabled: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketPolicy resource instead
" "" ,
)
public val policy: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
public val replicationConfigurations: Output>? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketRequestPaymentConfigurationV2 resource instead
" "" ,
)
public val requestPayer: Output? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
public val serverSideEncryptionConfigurations: Output>? = null,
public val tags: Output>? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
public val versionings: Output>? = null,
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
public val websites: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.BucketV2Args = com.pulumi.aws.s3.BucketV2Args.builder()
.accelerationStatus(accelerationStatus?.applyValue({ args0 -> args0 }))
.acl(acl?.applyValue({ args0 -> args0 }))
.bucket(bucket?.applyValue({ args0 -> args0 }))
.bucketPrefix(bucketPrefix?.applyValue({ args0 -> args0 }))
.corsRules(
corsRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.forceDestroy(forceDestroy?.applyValue({ args0 -> args0 }))
.grants(grants?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.lifecycleRules(
lifecycleRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.loggings(
loggings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.objectLockConfiguration(
objectLockConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.objectLockEnabled(objectLockEnabled?.applyValue({ args0 -> args0 }))
.policy(policy?.applyValue({ args0 -> args0 }))
.replicationConfigurations(
replicationConfigurations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.requestPayer(requestPayer?.applyValue({ args0 -> args0 }))
.serverSideEncryptionConfigurations(
serverSideEncryptionConfigurations?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.versionings(
versionings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.websites(
websites?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BucketV2Args].
*/
@PulumiTagMarker
public class BucketV2ArgsBuilder internal constructor () {
private var accelerationStatus: Output? = null
private var acl: Output? = null
private var bucket: Output? = null
private var bucketPrefix: Output? = null
private var corsRules: Output>? = null
private var forceDestroy: Output? = null
private var grants: Output>? = null
private var lifecycleRules: Output>? = null
private var loggings: Output>? = null
private var objectLockConfiguration: Output? = null
private var objectLockEnabled: Output? = null
private var policy: Output? = null
private var replicationConfigurations: Output>? = null
private var requestPayer: Output? = null
private var serverSideEncryptionConfigurations:
Output>? = null
private var tags: Output>? = null
private var versionings: Output>? = null
private var websites: Output>? = null
/**
* @param value 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.BucketAccelerateConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAccelerateConfigurationV2 resource instead
" "" ,
)
@JvmName("yygvibwukdtxsjhu" )
public suspend fun accelerationStatus(`value`: Output) {
this.accelerationStatus = value
}
/**
* @param value The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("jqeqrfybioqugugt" )
public suspend fun acl(`value`: Output) {
this.acl = value
}
/**
* @param value 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 `[bucket_name]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.
*/
@JvmName("wyjnaegehkqhtcfp" )
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value 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).
*/
@JvmName("rgncslkduxvkmjfg" )
public suspend fun bucketPrefix(`value`: Output) {
this.bucketPrefix = value
}
/**
* @param value Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("cghcdigwemcypysq" )
public suspend fun corsRules(`value`: Output>) {
this.corsRules = value
}
@JvmName("pnqfidfhdkagvosf" )
public suspend fun corsRules(vararg values: Output) {
this.corsRules = Output.all(values.asList())
}
/**
* @param values Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("ltewrjeyrlyrdjvo" )
public suspend fun corsRules(values: List>) {
this.corsRules = Output.all(values)
}
/**
* @param value 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.
*/
@JvmName("utmdjmmuorpxxacr" )
public suspend fun forceDestroy(`value`: Output) {
this.forceDestroy = value
}
/**
* @param value An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("pmhndmwtclcmtqvy" )
public suspend fun grants(`value`: Output>) {
this.grants = value
}
@JvmName("aqetsxgvlqcfnqrx" )
public suspend fun grants(vararg values: Output) {
this.grants = Output.all(values.asList())
}
/**
* @param values An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("ixgamqgcsopkfwvq" )
public suspend fun grants(values: List>) {
this.grants = Output.all(values)
}
/**
* @param value Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("reyjoslpmvoklhpm" )
public suspend fun lifecycleRules(`value`: Output>) {
this.lifecycleRules = value
}
@JvmName("gjxgewxsrkctqevu" )
public suspend fun lifecycleRules(vararg values: Output) {
this.lifecycleRules = Output.all(values.asList())
}
/**
* @param values Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("rrdcraayfheavuks" )
public suspend fun lifecycleRules(values: List>) {
this.lifecycleRules = Output.all(values)
}
/**
* @param value Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("bywokqgvhjbcqxos" )
public suspend fun loggings(`value`: Output>) {
this.loggings = value
}
@JvmName("ojacdgxmvpnwxukp" )
public suspend fun loggings(vararg values: Output) {
this.loggings = Output.all(values.asList())
}
/**
* @param values Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("ikrdhlprndvhducc" )
public suspend fun loggings(values: List>) {
this.loggings = Output.all(values)
}
/**
* @param value Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
* The provider wil only perform drift detection if a configuration value is provided.
* Use the `object_lock_enabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the top-level parameter object_lock_enabled and the aws.s3.BucketObjectLockConfigurationV2
resource instead
" "" ,
)
@JvmName("wfrkpddokavxcldi" )
public suspend fun objectLockConfiguration(`value`: Output) {
this.objectLockConfiguration = value
}
/**
* @param value Indicates 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.
*/
@JvmName("sqfbvmwiwggvsvlk" )
public suspend fun objectLockEnabled(`value`: Output) {
this.objectLockEnabled = value
}
/**
* @param value 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.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketPolicy resource instead
" "" ,
)
@JvmName("dusiojaevmuehhar" )
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("egigiwasbkgmhbbq" )
public suspend fun replicationConfigurations(`value`: Output>) {
this.replicationConfigurations = value
}
@JvmName("myomqxxplkptlebe" )
public suspend fun replicationConfigurations(vararg values: Output) {
this.replicationConfigurations = Output.all(values.asList())
}
/**
* @param values Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("xxxlfdfnhrfndslw" )
public suspend fun replicationConfigurations(values: List>) {
this.replicationConfigurations = Output.all(values)
}
/**
* @param value 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.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketRequestPaymentConfigurationV2 resource instead
" "" ,
)
@JvmName("hwdscvmffrppyopj" )
public suspend fun requestPayer(`value`: Output) {
this.requestPayer = value
}
/**
* @param value Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("segmehblndojhmub" )
public suspend fun serverSideEncryptionConfigurations(`value`: Output>) {
this.serverSideEncryptionConfigurations = value
}
@JvmName("qfenfyaueicytmlb" )
public suspend fun serverSideEncryptionConfigurations(vararg values: Output) {
this.serverSideEncryptionConfigurations = Output.all(values.asList())
}
/**
* @param values Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("tqkudhvccyxjgmfj" )
public suspend fun serverSideEncryptionConfigurations(values: List>) {
this.serverSideEncryptionConfigurations = Output.all(values)
}
/**
* @param value 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.
* The following arguments are deprecated, and will be removed in a future major version:
*/
@JvmName("wnufqpvmdhhudeem" )
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("tfvudeayvkmwdhxi" )
public suspend fun versionings(`value`: Output>) {
this.versionings = value
}
@JvmName("idltyjtinrxicjpp" )
public suspend fun versionings(vararg values: Output) {
this.versionings = Output.all(values.asList())
}
/**
* @param values Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("cfpdcbktpjbqnnmx" )
public suspend fun versionings(values: List>) {
this.versionings = Output.all(values)
}
/**
* @param value Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("wlldqinewpacvera" )
public suspend fun websites(`value`: Output>) {
this.websites = value
}
@JvmName("qjjrrfliexuipwlu" )
public suspend fun websites(vararg values: Output) {
this.websites = Output.all(values.asList())
}
/**
* @param values Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("ogymgjlljobgidya" )
public suspend fun websites(values: List>) {
this.websites = Output.all(values)
}
/**
* @param value 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.BucketAccelerateConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAccelerateConfigurationV2 resource instead
" "" ,
)
@JvmName("imooceavcmwrccmv" )
public suspend fun accelerationStatus(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.accelerationStatus = mapped
}
/**
* @param value The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("jgxsffygrupybfud" )
public suspend fun acl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.acl = mapped
}
/**
* @param value 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 `[bucket_name]--[azid]--x-s3`. Use the `aws.s3.DirectoryBucket` resource to manage S3 Express buckets.
*/
@JvmName("mkhfeaqdcnxgqomu" )
public suspend fun bucket(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value 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).
*/
@JvmName("wkobnhnvcwnhbabo" )
public suspend fun bucketPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.bucketPrefix = mapped
}
/**
* @param value Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("vglqefleyuqapbie" )
public suspend fun corsRules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.corsRules = mapped
}
/**
* @param argument Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("xfucvulghoiwimkv" )
public suspend fun corsRules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2CorsRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.corsRules = mapped
}
/**
* @param argument Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("hcrrlxsqsfyhluje" )
public suspend fun corsRules(vararg argument: suspend BucketV2CorsRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2CorsRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.corsRules = mapped
}
/**
* @param argument Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("eakmrmkkppyioaoi" )
public suspend fun corsRules(argument: suspend BucketV2CorsRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2CorsRuleArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.corsRules = mapped
}
/**
* @param values Rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketCorsConfigurationV2 resource instead
" "" ,
)
@JvmName("nndsuixnsidrxnqs" )
public suspend fun corsRules(vararg values: BucketV2CorsRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.corsRules = mapped
}
/**
* @param value 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.
*/
@JvmName("ooblobyjfrgyllcu" )
public suspend fun forceDestroy(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.forceDestroy = mapped
}
/**
* @param value An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("ldimnphtxwcbwrau" )
public suspend fun grants(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.grants = mapped
}
/**
* @param argument An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("cdofxvfrusvvroni" )
public suspend fun grants(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2GrantArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.grants = mapped
}
/**
* @param argument An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("kbyjtslsgqdrilcb" )
public suspend fun grants(vararg argument: suspend BucketV2GrantArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2GrantArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.grants = mapped
}
/**
* @param argument An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("jvwjlpncuadtscpj" )
public suspend fun grants(argument: suspend BucketV2GrantArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2GrantArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.grants = mapped
}
/**
* @param values An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketAclV2 resource instead
" "" ,
)
@JvmName("jkdkpnfgguisfhhb" )
public suspend fun grants(vararg values: BucketV2GrantArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.grants = mapped
}
/**
* @param value Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("kkojuuqfttjasbbi" )
public suspend fun lifecycleRules(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.lifecycleRules = mapped
}
/**
* @param argument Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("shotkswxrwijhwop" )
public suspend fun lifecycleRules(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2LifecycleRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.lifecycleRules = mapped
}
/**
* @param argument Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("aopbwrqxiykgvjei" )
public suspend fun lifecycleRules(vararg argument: suspend BucketV2LifecycleRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2LifecycleRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.lifecycleRules = mapped
}
/**
* @param argument Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("hrrsabbivgxwqgtb" )
public suspend fun lifecycleRules(argument: suspend BucketV2LifecycleRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2LifecycleRuleArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.lifecycleRules = mapped
}
/**
* @param values Configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLifecycleConfigurationV2 resource instead
" "" ,
)
@JvmName("lpmdxeublwmcqvpv" )
public suspend fun lifecycleRules(vararg values: BucketV2LifecycleRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lifecycleRules = mapped
}
/**
* @param value Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("jiacdgkdxunhkxoc" )
public suspend fun loggings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.loggings = mapped
}
/**
* @param argument Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("sigyifwpblvuurox" )
public suspend fun loggings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2LoggingArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.loggings = mapped
}
/**
* @param argument Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("prhcbnxjtrrysmlv" )
public suspend fun loggings(vararg argument: suspend BucketV2LoggingArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2LoggingArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.loggings = mapped
}
/**
* @param argument Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("jvmibysuorrqtmpx" )
public suspend fun loggings(argument: suspend BucketV2LoggingArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2LoggingArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.loggings = mapped
}
/**
* @param values Configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketLoggingV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketLoggingV2 resource instead
" "" ,
)
@JvmName("ygcengrorvsinpnp" )
public suspend fun loggings(vararg values: BucketV2LoggingArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.loggings = mapped
}
/**
* @param value Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
* The provider wil only perform drift detection if a configuration value is provided.
* Use the `object_lock_enabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the top-level parameter object_lock_enabled and the aws.s3.BucketObjectLockConfigurationV2
resource instead
" "" ,
)
@JvmName("petwlpaduxagpgiy" )
public suspend fun objectLockConfiguration(`value`: BucketV2ObjectLockConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.objectLockConfiguration = mapped
}
/**
* @param argument Configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
* The provider wil only perform drift detection if a configuration value is provided.
* Use the `object_lock_enabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the top-level parameter object_lock_enabled and the aws.s3.BucketObjectLockConfigurationV2
resource instead
" "" ,
)
@JvmName("tocuixaqaomwpdii" )
public suspend fun objectLockConfiguration(argument: suspend BucketV2ObjectLockConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = BucketV2ObjectLockConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.objectLockConfiguration = mapped
}
/**
* @param value Indicates 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.
*/
@JvmName("syjhwplwntwsjcut" )
public suspend fun objectLockEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.objectLockEnabled = mapped
}
/**
* @param value 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.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketPolicy resource instead
" "" ,
)
@JvmName("bdrcmnlyejhqwndc" )
public suspend fun policy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param value Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("dxpqtotgccoqdlnc" )
public suspend fun replicationConfigurations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.replicationConfigurations = mapped
}
/**
* @param argument Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("ymnvwhapkcemjyxe" )
public suspend fun replicationConfigurations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2ReplicationConfigurationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.replicationConfigurations = mapped
}
/**
* @param argument Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("onhywiguddmwogqo" )
public suspend fun replicationConfigurations(vararg argument: suspend BucketV2ReplicationConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2ReplicationConfigurationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.replicationConfigurations = mapped
}
/**
* @param argument Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("yfmrgpvbtncqtkvr" )
public suspend fun replicationConfigurations(argument: suspend BucketV2ReplicationConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
BucketV2ReplicationConfigurationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.replicationConfigurations = mapped
}
/**
* @param values Configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketReplicationConfig` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketReplicationConfig resource instead
" "" ,
)
@JvmName("djeljqmtirvdiwfb" )
public suspend fun replicationConfigurations(vararg values: BucketV2ReplicationConfigurationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.replicationConfigurations = mapped
}
/**
* @param value 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.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketRequestPaymentConfigurationV2 resource instead
" "" ,
)
@JvmName("frcfwmytawisaatt" )
public suspend fun requestPayer(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.requestPayer = mapped
}
/**
* @param value Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("sjhnyuyagkufesua" )
public suspend fun serverSideEncryptionConfigurations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.serverSideEncryptionConfigurations = mapped
}
/**
* @param argument Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("ieglylhbylbkmfhw" )
public suspend fun serverSideEncryptionConfigurations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2ServerSideEncryptionConfigurationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serverSideEncryptionConfigurations = mapped
}
/**
* @param argument Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("moparqhvefellfoe" )
public suspend fun serverSideEncryptionConfigurations(vararg argument: suspend BucketV2ServerSideEncryptionConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2ServerSideEncryptionConfigurationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.serverSideEncryptionConfigurations = mapped
}
/**
* @param argument Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("oeaydtpdiigirhqr" )
public suspend fun serverSideEncryptionConfigurations(argument: suspend BucketV2ServerSideEncryptionConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
BucketV2ServerSideEncryptionConfigurationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.serverSideEncryptionConfigurations = mapped
}
/**
* @param values Configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
* The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketServerSideEncryptionConfigurationV2 resource instead
" "" ,
)
@JvmName("tnlwymghbotjbngx" )
public suspend fun serverSideEncryptionConfigurations(vararg values: BucketV2ServerSideEncryptionConfigurationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.serverSideEncryptionConfigurations = mapped
}
/**
* @param value 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.
* The following arguments are deprecated, and will be removed in a future major version:
*/
@JvmName("vkthstfquqasbqmh" )
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values 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.
* The following arguments are deprecated, and will be removed in a future major version:
*/
@JvmName("kvcqssbeomjnamnb" )
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("mmsccabnerimabsf" )
public suspend fun versionings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.versionings = mapped
}
/**
* @param argument Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("kxghpabtcsqdrkjm" )
public suspend fun versionings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2VersioningArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.versionings = mapped
}
/**
* @param argument Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("unhkbfbltcyjthjq" )
public suspend fun versionings(vararg argument: suspend BucketV2VersioningArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2VersioningArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.versionings = mapped
}
/**
* @param argument Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("txundivfydupofxf" )
public suspend fun versionings(argument: suspend BucketV2VersioningArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2VersioningArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.versionings = mapped
}
/**
* @param values Configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. The provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketVersioningV2 resource instead
" "" ,
)
@JvmName("gifeassdhnsfeode" )
public suspend fun versionings(vararg values: BucketV2VersioningArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.versionings = mapped
}
/**
* @param value Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("kfwpjscyxpaqovyy" )
public suspend fun websites(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let ({ args0 -> of(args0) })
this.websites = mapped
}
/**
* @param argument Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("rrsxdeovwicugwca" )
public suspend fun websites(argument: List Unit>) {
val toBeMapped = argument.toList().map {
BucketV2WebsiteArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.websites = mapped
}
/**
* @param argument Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("gscukususppqjuir" )
public suspend fun websites(vararg argument: suspend BucketV2WebsiteArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
BucketV2WebsiteArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.websites = mapped
}
/**
* @param argument Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("sgjtybhevvhmiykn" )
public suspend fun websites(argument: suspend BucketV2WebsiteArgsBuilder.() -> Unit) {
val toBeMapped = listOf(BucketV2WebsiteArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.websites = mapped
}
/**
* @param values Configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. The provider will only perform drift detection if a configuration value is provided.
* Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
*/
@Deprecated(
message = "" "
Use the aws.s3.BucketWebsiteConfigurationV2 resource instead
" "" ,
)
@JvmName("ppsgnyoaawewnvqr" )
public suspend fun websites(vararg values: BucketV2WebsiteArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.websites = mapped
}
internal fun build(): BucketV2Args = BucketV2Args(
accelerationStatus = accelerationStatus,
acl = acl,
bucket = bucket,
bucketPrefix = bucketPrefix,
corsRules = corsRules,
forceDestroy = forceDestroy,
grants = grants,
lifecycleRules = lifecycleRules,
loggings = loggings,
objectLockConfiguration = objectLockConfiguration,
objectLockEnabled = objectLockEnabled,
policy = policy,
replicationConfigurations = replicationConfigurations,
requestPayer = requestPayer,
serverSideEncryptionConfigurations = serverSideEncryptionConfigurations,
tags = tags,
versionings = versionings,
websites = websites,
)
}