Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.s3.kotlin.inputs
import com.pulumi.aws.s3.inputs.BucketV2GrantArgs.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 BucketV2GrantArgs(
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.BucketV2GrantArgs =
com.pulumi.aws.s3.inputs.BucketV2GrantArgs.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 [BucketV2GrantArgs].
*/
@PulumiTagMarker
public class BucketV2GrantArgsBuilder 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("xvexiatcpwtwnwlf")
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("wffdkchynqtfbuax")
public suspend fun permissions(`value`: Output>) {
this.permissions = value
}
@JvmName("pttyalqhvppvyqyi")
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("uivmtyjevrfwingx")
public suspend fun permissions(values: List