All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.s3.kotlin.BucketArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.s3.BucketArgs.builder
import com.pulumi.awsnative.s3.kotlin.enums.BucketAccessControl
import com.pulumi.awsnative.s3.kotlin.inputs.BucketAccelerateConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketAccelerateConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketAnalyticsConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketAnalyticsConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketCorsConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketCorsConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketEncryptionArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketEncryptionArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketIntelligentTieringConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketIntelligentTieringConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketInventoryConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketInventoryConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketLifecycleConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketLifecycleConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketLoggingConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketLoggingConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketMetricsConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketMetricsConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketNotificationConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketNotificationConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketObjectLockConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketObjectLockConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketOwnershipControlsArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketOwnershipControlsArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketPublicAccessBlockConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketPublicAccessBlockConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketReplicationConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketReplicationConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketVersioningConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketVersioningConfigurationArgsBuilder
import com.pulumi.awsnative.s3.kotlin.inputs.BucketWebsiteConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.BucketWebsiteConfigurationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The ``AWS::S3::Bucket`` resource creates an Amazon S3 bucket in the same AWS Region where you create the AWS CloudFormation stack.
 *  To control how AWS CloudFormation handles the bucket when the stack is deleted, you can set a deletion policy for your bucket. You can choose to *retain* the bucket or to *delete* the bucket. For more information, see [DeletionPolicy Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html).
 *   You can only delete empty buckets. Deletion fails for buckets that have contents.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property accelerateConfiguration Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.
 * @property accessControl This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.
 *   A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.
 *   S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.
 *   The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.
 * @property analyticsConfigurations Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
 * @property bucketEncryption Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.
 * @property bucketName A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules) in the *Amazon S3 User Guide*.
 *   If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
 * @property corsConfiguration Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.
 * @property intelligentTieringConfigurations Defines how Amazon S3 handles Intelligent-Tiering storage.
 * @property inventoryConfigurations Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
 * @property lifecycleConfiguration Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.
 * @property loggingConfiguration Settings that define where logs are stored.
 * @property metricsConfigurations Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
 * @property notificationConfiguration Configuration that defines how Amazon S3 handles bucket notifications.
 * @property objectLockConfiguration This operation is not supported by directory buckets.
 *   Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
 *    +  The ``DefaultRetention`` settings require both a mode and a period.
 *   +  The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.
 *   +  You can enable Object Lock for new or existing buckets. For more information, see [Configuring Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-configure.html).
 * @property objectLockEnabled Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.
 * @property ownershipControls Configuration that defines how Amazon S3 handles Object Ownership rules.
 * @property publicAccessBlockConfiguration Configuration that defines how Amazon S3 handles public access.
 * @property replicationConfiguration Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the ``VersioningConfiguration`` property.
 *  Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
 * @property tags An arbitrary set of tags (key-value pairs) for this S3 bucket.
 * @property versioningConfiguration Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.
 *   When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (``PUT`` or ``DELETE``) on objects in the bucket.
 * @property websiteConfiguration Information used to configure the bucket as a static website. For more information, see [Hosting Websites on Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
 */
public data class BucketArgs(
    public val accelerateConfiguration: Output? = null,
    public val accessControl: Output? = null,
    public val analyticsConfigurations: Output>? = null,
    public val bucketEncryption: Output? = null,
    public val bucketName: Output? = null,
    public val corsConfiguration: Output? = null,
    public val intelligentTieringConfigurations: Output>? = null,
    public val inventoryConfigurations: Output>? = null,
    public val lifecycleConfiguration: Output? = null,
    public val loggingConfiguration: Output? = null,
    public val metricsConfigurations: Output>? = null,
    public val notificationConfiguration: Output? = null,
    public val objectLockConfiguration: Output? = null,
    public val objectLockEnabled: Output? = null,
    public val ownershipControls: Output? = null,
    public val publicAccessBlockConfiguration: Output? =
        null,
    public val replicationConfiguration: Output? = null,
    public val tags: Output>? = null,
    public val versioningConfiguration: Output? = null,
    public val websiteConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.BucketArgs =
        com.pulumi.awsnative.s3.BucketArgs.builder()
            .accelerateConfiguration(
                accelerateConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .accessControl(accessControl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .analyticsConfigurations(
                analyticsConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .bucketEncryption(bucketEncryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .corsConfiguration(corsConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .intelligentTieringConfigurations(
                intelligentTieringConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .inventoryConfigurations(
                inventoryConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .lifecycleConfiguration(
                lifecycleConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .loggingConfiguration(
                loggingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .metricsConfigurations(
                metricsConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .notificationConfiguration(
                notificationConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .objectLockConfiguration(
                objectLockConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .objectLockEnabled(objectLockEnabled?.applyValue({ args0 -> args0 }))
            .ownershipControls(ownershipControls?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .publicAccessBlockConfiguration(
                publicAccessBlockConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .replicationConfiguration(
                replicationConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .versioningConfiguration(
                versioningConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .websiteConfiguration(
                websiteConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [BucketArgs].
 */
@PulumiTagMarker
public class BucketArgsBuilder internal constructor() {
    private var accelerateConfiguration: Output? = null

    private var accessControl: Output? = null

    private var analyticsConfigurations: Output>? = null

    private var bucketEncryption: Output? = null

    private var bucketName: Output? = null

    private var corsConfiguration: Output? = null

    private var intelligentTieringConfigurations:
        Output>? = null

    private var inventoryConfigurations: Output>? = null

    private var lifecycleConfiguration: Output? = null

    private var loggingConfiguration: Output? = null

    private var metricsConfigurations: Output>? = null

    private var notificationConfiguration: Output? = null

    private var objectLockConfiguration: Output? = null

    private var objectLockEnabled: Output? = null

    private var ownershipControls: Output? = null

    private var publicAccessBlockConfiguration: Output? =
        null

    private var replicationConfiguration: Output? = null

    private var tags: Output>? = null

    private var versioningConfiguration: Output? = null

    private var websiteConfiguration: Output? = null

    /**
     * @param value Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("owwvljgsswibhkrw")
    public suspend fun accelerateConfiguration(`value`: Output) {
        this.accelerateConfiguration = value
    }

    /**
     * @param value This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.
     *   A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.
     *   S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.
     *   The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("qgmfyojewsjjqgnx")
    public suspend fun accessControl(`value`: Output) {
        this.accessControl = value
    }

    /**
     * @param value Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("rvcjyuxsrqxyqyqi")
    public suspend fun analyticsConfigurations(`value`: Output>) {
        this.analyticsConfigurations = value
    }

    @JvmName("mmmpqfxaupmbeeqw")
    public suspend fun analyticsConfigurations(vararg values: Output) {
        this.analyticsConfigurations = Output.all(values.asList())
    }

    /**
     * @param values Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("nielhhnnrbxyvlnm")
    public suspend fun analyticsConfigurations(values: List>) {
        this.analyticsConfigurations = Output.all(values)
    }

    /**
     * @param value Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("beptlbawppotswtw")
    public suspend fun bucketEncryption(`value`: Output) {
        this.bucketEncryption = value
    }

    /**
     * @param value A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules) in the *Amazon S3 User Guide*.
     *   If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
     */
    @JvmName("vuhqvvlhhbfskbde")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("tdoatypwmgdgjcri")
    public suspend fun corsConfiguration(`value`: Output) {
        this.corsConfiguration = value
    }

    /**
     * @param value Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("nrugalrpruiapyqq")
    public suspend fun intelligentTieringConfigurations(`value`: Output>) {
        this.intelligentTieringConfigurations = value
    }

    @JvmName("uvfcnhiciefoikcg")
    public suspend fun intelligentTieringConfigurations(vararg values: Output) {
        this.intelligentTieringConfigurations = Output.all(values.asList())
    }

    /**
     * @param values Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("ykcqkbjcujtjawnc")
    public suspend fun intelligentTieringConfigurations(values: List>) {
        this.intelligentTieringConfigurations = Output.all(values)
    }

    /**
     * @param value Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("yimirtuqpdgsfdfy")
    public suspend fun inventoryConfigurations(`value`: Output>) {
        this.inventoryConfigurations = value
    }

    @JvmName("dlxciuhcxpfxoxna")
    public suspend fun inventoryConfigurations(vararg values: Output) {
        this.inventoryConfigurations = Output.all(values.asList())
    }

    /**
     * @param values Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("jdoaomtkxcslwhdl")
    public suspend fun inventoryConfigurations(values: List>) {
        this.inventoryConfigurations = Output.all(values)
    }

    /**
     * @param value Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("tpyldltjcfxrrxqh")
    public suspend fun lifecycleConfiguration(`value`: Output) {
        this.lifecycleConfiguration = value
    }

    /**
     * @param value Settings that define where logs are stored.
     */
    @JvmName("qlxosochtgaqexhg")
    public suspend fun loggingConfiguration(`value`: Output) {
        this.loggingConfiguration = value
    }

    /**
     * @param value Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("gcodxpnmfxynjpso")
    public suspend fun metricsConfigurations(`value`: Output>) {
        this.metricsConfigurations = value
    }

    @JvmName("fiuqeeojlhgqpjje")
    public suspend fun metricsConfigurations(vararg values: Output) {
        this.metricsConfigurations = Output.all(values.asList())
    }

    /**
     * @param values Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("dqvqqkbifonpcjnl")
    public suspend fun metricsConfigurations(values: List>) {
        this.metricsConfigurations = Output.all(values)
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles bucket notifications.
     */
    @JvmName("mgabiyonlqhftxmb")
    public suspend fun notificationConfiguration(`value`: Output) {
        this.notificationConfiguration = value
    }

    /**
     * @param value This operation is not supported by directory buckets.
     *   Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
     *    +  The ``DefaultRetention`` settings require both a mode and a period.
     *   +  The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.
     *   +  You can enable Object Lock for new or existing buckets. For more information, see [Configuring Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-configure.html).
     */
    @JvmName("aubvsnxjfpgfwlll")
    public suspend fun objectLockConfiguration(`value`: Output) {
        this.objectLockConfiguration = value
    }

    /**
     * @param value Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.
     */
    @JvmName("kfxmhsmdokbsdjlu")
    public suspend fun objectLockEnabled(`value`: Output) {
        this.objectLockEnabled = value
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles Object Ownership rules.
     */
    @JvmName("lgqeyxoxiiimibod")
    public suspend fun ownershipControls(`value`: Output) {
        this.ownershipControls = value
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles public access.
     */
    @JvmName("wjhpohixwnfyayvd")
    public suspend fun publicAccessBlockConfiguration(`value`: Output) {
        this.publicAccessBlockConfiguration = value
    }

    /**
     * @param value Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the ``VersioningConfiguration`` property.
     *  Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
     */
    @JvmName("mlqaglbmiulwqcnt")
    public suspend fun replicationConfiguration(`value`: Output) {
        this.replicationConfiguration = value
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("hvmccgakjdieojyn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("rhrndvsgtobetrnw")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("sauptwpwguyacbge")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.
     *   When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (``PUT`` or ``DELETE``) on objects in the bucket.
     */
    @JvmName("kanthbybwireceta")
    public suspend fun versioningConfiguration(`value`: Output) {
        this.versioningConfiguration = value
    }

    /**
     * @param value Information used to configure the bucket as a static website. For more information, see [Hosting Websites on Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
     */
    @JvmName("lgfoehcuipotqogs")
    public suspend fun websiteConfiguration(`value`: Output) {
        this.websiteConfiguration = value
    }

    /**
     * @param value Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("ftvivyfpqynmgvcp")
    public suspend fun accelerateConfiguration(`value`: BucketAccelerateConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accelerateConfiguration = mapped
    }

    /**
     * @param argument Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("dquesqiqwdxpekwv")
    public suspend fun accelerateConfiguration(argument: suspend BucketAccelerateConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketAccelerateConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.accelerateConfiguration = mapped
    }

    /**
     * @param value This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.
     *   A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.
     *   S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.
     *   The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("banpqysodjfyskoo")
    public suspend fun accessControl(`value`: BucketAccessControl?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessControl = mapped
    }

    /**
     * @param value Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("vyiawasauxeqndhk")
    public suspend fun analyticsConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.analyticsConfigurations = mapped
    }

    /**
     * @param argument Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("otjkgfadyopiyqcs")
    public suspend fun analyticsConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BucketAnalyticsConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.analyticsConfigurations = mapped
    }

    /**
     * @param argument Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("pylxlnljwprhvwvh")
    public suspend fun analyticsConfigurations(vararg argument: suspend BucketAnalyticsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BucketAnalyticsConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.analyticsConfigurations = mapped
    }

    /**
     * @param argument Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("vcruxnifseiobjbh")
    public suspend fun analyticsConfigurations(argument: suspend BucketAnalyticsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BucketAnalyticsConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.analyticsConfigurations = mapped
    }

    /**
     * @param values Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
     */
    @JvmName("npsoliecvltnidtl")
    public suspend fun analyticsConfigurations(vararg values: BucketAnalyticsConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.analyticsConfigurations = mapped
    }

    /**
     * @param value Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("lnasvearvorbjklp")
    public suspend fun bucketEncryption(`value`: BucketEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketEncryption = mapped
    }

    /**
     * @param argument Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("kvhpoebxyusqrxpy")
    public suspend fun bucketEncryption(argument: suspend BucketEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = BucketEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.bucketEncryption = mapped
    }

    /**
     * @param value A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules) in the *Amazon S3 User Guide*.
     *   If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
     */
    @JvmName("prulcnpywafotxqs")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("ebfgxqgwjmqsefnq")
    public suspend fun corsConfiguration(`value`: BucketCorsConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.corsConfiguration = mapped
    }

    /**
     * @param argument Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("epfgojgotdamnrmp")
    public suspend fun corsConfiguration(argument: suspend BucketCorsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketCorsConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.corsConfiguration = mapped
    }

    /**
     * @param value Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("fmplcfvlkklhhoru")
    public suspend fun intelligentTieringConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intelligentTieringConfigurations = mapped
    }

    /**
     * @param argument Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("bglffvqprfosmfiu")
    public suspend fun intelligentTieringConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BucketIntelligentTieringConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.intelligentTieringConfigurations = mapped
    }

    /**
     * @param argument Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("pvtoemuksxextbub")
    public suspend fun intelligentTieringConfigurations(vararg argument: suspend BucketIntelligentTieringConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BucketIntelligentTieringConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.intelligentTieringConfigurations = mapped
    }

    /**
     * @param argument Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("flughfhrvbxydkie")
    public suspend fun intelligentTieringConfigurations(argument: suspend BucketIntelligentTieringConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BucketIntelligentTieringConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.intelligentTieringConfigurations = mapped
    }

    /**
     * @param values Defines how Amazon S3 handles Intelligent-Tiering storage.
     */
    @JvmName("dwxleiilhwtexiyx")
    public suspend fun intelligentTieringConfigurations(vararg values: BucketIntelligentTieringConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.intelligentTieringConfigurations = mapped
    }

    /**
     * @param value Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("teyxbghgyedhhbdj")
    public suspend fun inventoryConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inventoryConfigurations = mapped
    }

    /**
     * @param argument Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("cupsagvxllhspted")
    public suspend fun inventoryConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BucketInventoryConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inventoryConfigurations = mapped
    }

    /**
     * @param argument Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("fhhloobhboyprrom")
    public suspend fun inventoryConfigurations(vararg argument: suspend BucketInventoryConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BucketInventoryConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inventoryConfigurations = mapped
    }

    /**
     * @param argument Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("pjtwqetjyrniduye")
    public suspend fun inventoryConfigurations(argument: suspend BucketInventoryConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BucketInventoryConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.inventoryConfigurations = mapped
    }

    /**
     * @param values Specifies the inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.
     */
    @JvmName("kyyomkbpisflgoko")
    public suspend fun inventoryConfigurations(vararg values: BucketInventoryConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inventoryConfigurations = mapped
    }

    /**
     * @param value Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("ftspxewcdfuhjjft")
    public suspend fun lifecycleConfiguration(`value`: BucketLifecycleConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifecycleConfiguration = mapped
    }

    /**
     * @param argument Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.
     */
    @JvmName("tdbuvvjoqxonsyak")
    public suspend fun lifecycleConfiguration(argument: suspend BucketLifecycleConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketLifecycleConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.lifecycleConfiguration = mapped
    }

    /**
     * @param value Settings that define where logs are stored.
     */
    @JvmName("qvpadmaamroxcraq")
    public suspend fun loggingConfiguration(`value`: BucketLoggingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingConfiguration = mapped
    }

    /**
     * @param argument Settings that define where logs are stored.
     */
    @JvmName("xiwakiifngjmjxwp")
    public suspend fun loggingConfiguration(argument: suspend BucketLoggingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketLoggingConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.loggingConfiguration = mapped
    }

    /**
     * @param value Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("wupdkomwncjnonab")
    public suspend fun metricsConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricsConfigurations = mapped
    }

    /**
     * @param argument Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("bgeausxgdjyptivh")
    public suspend fun metricsConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BucketMetricsConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metricsConfigurations = mapped
    }

    /**
     * @param argument Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("yhagvtfyefveneyb")
    public suspend fun metricsConfigurations(vararg argument: suspend BucketMetricsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BucketMetricsConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metricsConfigurations = mapped
    }

    /**
     * @param argument Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("fvidoqmeknopumve")
    public suspend fun metricsConfigurations(argument: suspend BucketMetricsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BucketMetricsConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.metricsConfigurations = mapped
    }

    /**
     * @param values Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).
     */
    @JvmName("rlckrpxatrjmmcxd")
    public suspend fun metricsConfigurations(vararg values: BucketMetricsConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricsConfigurations = mapped
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles bucket notifications.
     */
    @JvmName("trmiutejjvbakqgt")
    public suspend fun notificationConfiguration(`value`: BucketNotificationConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationConfiguration = mapped
    }

    /**
     * @param argument Configuration that defines how Amazon S3 handles bucket notifications.
     */
    @JvmName("njqqehbmuonkfhfd")
    public suspend fun notificationConfiguration(argument: suspend BucketNotificationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketNotificationConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.notificationConfiguration = mapped
    }

    /**
     * @param value This operation is not supported by directory buckets.
     *   Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
     *    +  The ``DefaultRetention`` settings require both a mode and a period.
     *   +  The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.
     *   +  You can enable Object Lock for new or existing buckets. For more information, see [Configuring Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-configure.html).
     */
    @JvmName("chelqlbxywtlbpls")
    public suspend fun objectLockConfiguration(`value`: BucketObjectLockConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectLockConfiguration = mapped
    }

    /**
     * @param argument This operation is not supported by directory buckets.
     *   Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).
     *    +  The ``DefaultRetention`` settings require both a mode and a period.
     *   +  The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.
     *   +  You can enable Object Lock for new or existing buckets. For more information, see [Configuring Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-configure.html).
     */
    @JvmName("eqceauvqtwrieske")
    public suspend fun objectLockConfiguration(argument: suspend BucketObjectLockConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketObjectLockConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.objectLockConfiguration = mapped
    }

    /**
     * @param value Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.
     */
    @JvmName("rsceetqyfbwarpuf")
    public suspend fun objectLockEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectLockEnabled = mapped
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles Object Ownership rules.
     */
    @JvmName("btcuuboadilpggnb")
    public suspend fun ownershipControls(`value`: BucketOwnershipControlsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ownershipControls = mapped
    }

    /**
     * @param argument Configuration that defines how Amazon S3 handles Object Ownership rules.
     */
    @JvmName("smujbubugcwdrobn")
    public suspend fun ownershipControls(argument: suspend BucketOwnershipControlsArgsBuilder.() -> Unit) {
        val toBeMapped = BucketOwnershipControlsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ownershipControls = mapped
    }

    /**
     * @param value Configuration that defines how Amazon S3 handles public access.
     */
    @JvmName("tnlkqjqlsmesjtpk")
    public suspend fun publicAccessBlockConfiguration(`value`: BucketPublicAccessBlockConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicAccessBlockConfiguration = mapped
    }

    /**
     * @param argument Configuration that defines how Amazon S3 handles public access.
     */
    @JvmName("hhkgcerdnibiidta")
    public suspend fun publicAccessBlockConfiguration(argument: suspend BucketPublicAccessBlockConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketPublicAccessBlockConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.publicAccessBlockConfiguration = mapped
    }

    /**
     * @param value Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the ``VersioningConfiguration`` property.
     *  Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
     */
    @JvmName("wevvdxvnajsoykll")
    public suspend fun replicationConfiguration(`value`: BucketReplicationConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicationConfiguration = mapped
    }

    /**
     * @param argument Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the ``VersioningConfiguration`` property.
     *  Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
     */
    @JvmName("eywokositxbjxxia")
    public suspend fun replicationConfiguration(argument: suspend BucketReplicationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketReplicationConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.replicationConfiguration = mapped
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("ygsbsvqsyftwphvh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("qpdjdfdjlxcogdkd")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("gnwixgsjtjmnnear")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("hbeuqktrljmtwpoi")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this S3 bucket.
     */
    @JvmName("rbilwjuhshckdlul")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.
     *   When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (``PUT`` or ``DELETE``) on objects in the bucket.
     */
    @JvmName("amxrilvkkkjbtjlf")
    public suspend fun versioningConfiguration(`value`: BucketVersioningConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versioningConfiguration = mapped
    }

    /**
     * @param argument Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.
     *   When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (``PUT`` or ``DELETE``) on objects in the bucket.
     */
    @JvmName("rixndphdtexiwixx")
    public suspend fun versioningConfiguration(argument: suspend BucketVersioningConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketVersioningConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.versioningConfiguration = mapped
    }

    /**
     * @param value Information used to configure the bucket as a static website. For more information, see [Hosting Websites on Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
     */
    @JvmName("nughchwkudafwpey")
    public suspend fun websiteConfiguration(`value`: BucketWebsiteConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.websiteConfiguration = mapped
    }

    /**
     * @param argument Information used to configure the bucket as a static website. For more information, see [Hosting Websites on Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html).
     */
    @JvmName("whwxtjwrjsodduwh")
    public suspend fun websiteConfiguration(argument: suspend BucketWebsiteConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketWebsiteConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.websiteConfiguration = mapped
    }

    internal fun build(): BucketArgs = BucketArgs(
        accelerateConfiguration = accelerateConfiguration,
        accessControl = accessControl,
        analyticsConfigurations = analyticsConfigurations,
        bucketEncryption = bucketEncryption,
        bucketName = bucketName,
        corsConfiguration = corsConfiguration,
        intelligentTieringConfigurations = intelligentTieringConfigurations,
        inventoryConfigurations = inventoryConfigurations,
        lifecycleConfiguration = lifecycleConfiguration,
        loggingConfiguration = loggingConfiguration,
        metricsConfigurations = metricsConfigurations,
        notificationConfiguration = notificationConfiguration,
        objectLockConfiguration = objectLockConfiguration,
        objectLockEnabled = objectLockEnabled,
        ownershipControls = ownershipControls,
        publicAccessBlockConfiguration = publicAccessBlockConfiguration,
        replicationConfiguration = replicationConfiguration,
        tags = tags,
        versioningConfiguration = versioningConfiguration,
        websiteConfiguration = websiteConfiguration,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy