com.pulumi.aws.s3.kotlin.inputs.BucketGrantArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.s3.kotlin.inputs
import com.pulumi.aws.s3.inputs.BucketGrantArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property id Canonical user id to grant for. Used only when `type` is `CanonicalUser`.
* @property permissions List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`.
* @property type Type of grantee to apply for. Valid values are `CanonicalUser` and `Group`. `AmazonCustomerByEmail` is not supported.
* @property uri Uri address to grant for. Used only when `type` is `Group`.
*/
public data class BucketGrantArgs(
public val id: Output? = null,
public val permissions: Output>,
public val type: Output,
public val uri: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketGrantArgs =
com.pulumi.aws.s3.inputs.BucketGrantArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.permissions(permissions.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.type(type.applyValue({ args0 -> args0 }))
.uri(uri?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketGrantArgs].
*/
@PulumiTagMarker
public class BucketGrantArgsBuilder internal constructor() {
private var id: Output? = null
private var permissions: Output>? = null
private var type: Output? = null
private var uri: Output? = null
/**
* @param value Canonical user id to grant for. Used only when `type` is `CanonicalUser`.
*/
@JvmName("htlnlthupcprcuph")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`.
*/
@JvmName("iybvvrbvhyuiukcx")
public suspend fun permissions(`value`: Output>) {
this.permissions = value
}
@JvmName("rthhlobnxqfdrgfi")
public suspend fun permissions(vararg values: Output) {
this.permissions = Output.all(values.asList())
}
/**
* @param values List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`.
*/
@JvmName("enievtfbvjmhijpj")
public suspend fun permissions(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy