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

com.pulumi.awsnative.s3express.kotlin.DirectoryBucketArgs.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.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3express.kotlin

import com.pulumi.awsnative.s3express.DirectoryBucketArgs.builder
import com.pulumi.awsnative.s3express.kotlin.enums.DirectoryBucketDataRedundancy
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::S3Express::DirectoryBucket.
 * @property bucketName Specifies a name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Availability Zone. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
 * @property dataRedundancy Specifies the number of Availability Zone that's used for redundancy for the bucket.
 * @property locationName Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
 */
public data class DirectoryBucketArgs(
    public val bucketName: Output? = null,
    public val dataRedundancy: Output? = null,
    public val locationName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3express.DirectoryBucketArgs =
        com.pulumi.awsnative.s3express.DirectoryBucketArgs.builder()
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .dataRedundancy(dataRedundancy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .locationName(locationName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DirectoryBucketArgs].
 */
@PulumiTagMarker
public class DirectoryBucketArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var dataRedundancy: Output? = null

    private var locationName: Output? = null

    /**
     * @param value Specifies a name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Availability Zone. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
     */
    @JvmName("wtmvmuskwmoxendd")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value Specifies the number of Availability Zone that's used for redundancy for the bucket.
     */
    @JvmName("xxtqpirhbjbtihyq")
    public suspend fun dataRedundancy(`value`: Output) {
        this.dataRedundancy = value
    }

    /**
     * @param value Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
     */
    @JvmName("pgbvbpweadqkdclw")
    public suspend fun locationName(`value`: Output) {
        this.locationName = value
    }

    /**
     * @param value Specifies a name for the bucket. The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Availability Zone. The bucket name must also follow the format 'bucket_base_name--az_id--x-s3' (for example, 'DOC-EXAMPLE-BUCKET--usw2-az1--x-s3'). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name.
     */
    @JvmName("ajwvokbgkytjtyno")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value Specifies the number of Availability Zone that's used for redundancy for the bucket.
     */
    @JvmName("smmnlvbqosvxsbhr")
    public suspend fun dataRedundancy(`value`: DirectoryBucketDataRedundancy?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataRedundancy = mapped
    }

    /**
     * @param value Specifies the AZ ID of the Availability Zone where the directory bucket will be created. An example AZ ID value is 'use1-az5'.
     */
    @JvmName("xjfjrnaerabcsjot")
    public suspend fun locationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationName = mapped
    }

    internal fun build(): DirectoryBucketArgs = DirectoryBucketArgs(
        bucketName = bucketName,
        dataRedundancy = dataRedundancy,
        locationName = locationName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy