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

com.pulumi.aws.s3.kotlin.inputs.BucketAclV2AccessControlPolicyGrantGranteeArgs.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.BucketAclV2AccessControlPolicyGrantGranteeArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property displayName Display name of the owner.
 * @property emailAddress Email address of the grantee. See [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for supported AWS regions where this argument can be specified.
 * @property id Canonical user ID of the grantee.
 * @property type Type of grantee. Valid values: `CanonicalUser`, `AmazonCustomerByEmail`, `Group`.
 * @property uri URI of the grantee group.
 */
public data class BucketAclV2AccessControlPolicyGrantGranteeArgs(
    public val displayName: Output? = null,
    public val emailAddress: Output? = null,
    public val id: Output? = null,
    public val type: Output,
    public val uri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.s3.inputs.BucketAclV2AccessControlPolicyGrantGranteeArgs =
        com.pulumi.aws.s3.inputs.BucketAclV2AccessControlPolicyGrantGranteeArgs.builder()
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .emailAddress(emailAddress?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketAclV2AccessControlPolicyGrantGranteeArgs].
 */
@PulumiTagMarker
public class BucketAclV2AccessControlPolicyGrantGranteeArgsBuilder internal constructor() {
    private var displayName: Output? = null

    private var emailAddress: Output? = null

    private var id: Output? = null

    private var type: Output? = null

    private var uri: Output? = null

    /**
     * @param value Display name of the owner.
     */
    @JvmName("pupplxaxhwgtcoxq")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Email address of the grantee. See [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for supported AWS regions where this argument can be specified.
     */
    @JvmName("aukiclhprnwrosbb")
    public suspend fun emailAddress(`value`: Output) {
        this.emailAddress = value
    }

    /**
     * @param value Canonical user ID of the grantee.
     */
    @JvmName("wdxwcfylyutlqsmv")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Type of grantee. Valid values: `CanonicalUser`, `AmazonCustomerByEmail`, `Group`.
     */
    @JvmName("qbhjaanotddicexi")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value URI of the grantee group.
     */
    @JvmName("jxsceauglertrluj")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Display name of the owner.
     */
    @JvmName("vqnlgvjenmbywppe")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Email address of the grantee. See [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for supported AWS regions where this argument can be specified.
     */
    @JvmName("lmawglpofhicpnif")
    public suspend fun emailAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emailAddress = mapped
    }

    /**
     * @param value Canonical user ID of the grantee.
     */
    @JvmName("miukiioebcfviakd")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Type of grantee. Valid values: `CanonicalUser`, `AmazonCustomerByEmail`, `Group`.
     */
    @JvmName("skkdxaxiqqhsvusm")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value URI of the grantee group.
     */
    @JvmName("usniprdmwytkycoq")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): BucketAclV2AccessControlPolicyGrantGranteeArgs =
        BucketAclV2AccessControlPolicyGrantGranteeArgs(
            displayName = displayName,
            emailAddress = emailAddress,
            id = id,
            type = type ?: throw PulumiNullFieldException("type"),
            uri = uri,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy