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

com.pulumi.aws.s3.kotlin.inputs.BucketAclV2AccessControlPolicyGrantArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.s3.kotlin.inputs

import com.pulumi.aws.s3.inputs.BucketAclV2AccessControlPolicyGrantArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property grantee Configuration block for the person being granted permissions. See below.
 * @property permission Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `WRITE`, `WRITE_ACP`, `READ`, `READ_ACP`. See [What permissions can I grant?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#permissions) for more details about what each permission means in the context of buckets.
 */
public data class BucketAclV2AccessControlPolicyGrantArgs(
    public val grantee: Output? = null,
    public val permission: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.s3.inputs.BucketAclV2AccessControlPolicyGrantArgs =
        com.pulumi.aws.s3.inputs.BucketAclV2AccessControlPolicyGrantArgs.builder()
            .grantee(grantee?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .permission(permission.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketAclV2AccessControlPolicyGrantArgs].
 */
@PulumiTagMarker
public class BucketAclV2AccessControlPolicyGrantArgsBuilder internal constructor() {
    private var grantee: Output? = null

    private var permission: Output? = null

    /**
     * @param value Configuration block for the person being granted permissions. See below.
     */
    @JvmName("ffmpkotaerpamcip")
    public suspend fun grantee(`value`: Output) {
        this.grantee = value
    }

    /**
     * @param value Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `WRITE`, `WRITE_ACP`, `READ`, `READ_ACP`. See [What permissions can I grant?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#permissions) for more details about what each permission means in the context of buckets.
     */
    @JvmName("aytwevkdfecydhnd")
    public suspend fun permission(`value`: Output) {
        this.permission = value
    }

    /**
     * @param value Configuration block for the person being granted permissions. See below.
     */
    @JvmName("rmfaohbgfelmmaww")
    public suspend fun grantee(`value`: BucketAclV2AccessControlPolicyGrantGranteeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grantee = mapped
    }

    /**
     * @param argument Configuration block for the person being granted permissions. See below.
     */
    @JvmName("pqxbayxtruchjqqu")
    public suspend fun grantee(argument: suspend BucketAclV2AccessControlPolicyGrantGranteeArgsBuilder.() -> Unit) {
        val toBeMapped = BucketAclV2AccessControlPolicyGrantGranteeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.grantee = mapped
    }

    /**
     * @param value Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `WRITE`, `WRITE_ACP`, `READ`, `READ_ACP`. See [What permissions can I grant?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#permissions) for more details about what each permission means in the context of buckets.
     */
    @JvmName("gdceichblnsyulmo")
    public suspend fun permission(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.permission = mapped
    }

    internal fun build(): BucketAclV2AccessControlPolicyGrantArgs =
        BucketAclV2AccessControlPolicyGrantArgs(
            grantee = grantee,
            permission = permission ?: throw PulumiNullFieldException("permission"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy