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

com.pulumi.awsnative.s3.kotlin.inputs.GetBucketPolicyPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.s3.kotlin.inputs

import com.pulumi.awsnative.s3.inputs.GetBucketPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property bucket The name of the Amazon S3 bucket to which the policy applies.
 */
public data class GetBucketPolicyPlainArgs(
    public val bucket: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.GetBucketPolicyPlainArgs =
        com.pulumi.awsnative.s3.inputs.GetBucketPolicyPlainArgs.builder()
            .bucket(bucket.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetBucketPolicyPlainArgs].
 */
@PulumiTagMarker
public class GetBucketPolicyPlainArgsBuilder internal constructor() {
    private var bucket: String? = null

    /**
     * @param value The name of the Amazon S3 bucket to which the policy applies.
     */
    @JvmName("kerlqqpyimthprmp")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.bucket = mapped
    }

    internal fun build(): GetBucketPolicyPlainArgs = GetBucketPolicyPlainArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy