com.pulumi.aws.s3.kotlin.inputs.BucketLoggingV2TargetGrantArgs.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.BucketLoggingV2TargetGrantArgs.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`, `READ`, `WRITE`.
*/
public data class BucketLoggingV2TargetGrantArgs(
public val grantee: Output,
public val permission: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketLoggingV2TargetGrantArgs =
com.pulumi.aws.s3.inputs.BucketLoggingV2TargetGrantArgs.builder()
.grantee(grantee.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.permission(permission.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketLoggingV2TargetGrantArgs].
*/
@PulumiTagMarker
public class BucketLoggingV2TargetGrantArgsBuilder 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("wxjsetnmalpeuylu")
public suspend fun grantee(`value`: Output) {
this.grantee = value
}
/**
* @param value Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
*/
@JvmName("tuffmhgassvbcguj")
public suspend fun permission(`value`: Output) {
this.permission = value
}
/**
* @param value Configuration block for the person being granted permissions. See below.
*/
@JvmName("vticvrdvwupwtsfa")
public suspend fun grantee(`value`: BucketLoggingV2TargetGrantGranteeArgs) {
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("ovxdfrestdofyywf")
public suspend fun grantee(argument: suspend BucketLoggingV2TargetGrantGranteeArgsBuilder.() -> Unit) {
val toBeMapped = BucketLoggingV2TargetGrantGranteeArgsBuilder().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`, `READ`, `WRITE`.
*/
@JvmName("dqxljuabajmmjlbp")
public suspend fun permission(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.permission = mapped
}
internal fun build(): BucketLoggingV2TargetGrantArgs = BucketLoggingV2TargetGrantArgs(
grantee = grantee ?: throw PulumiNullFieldException("grantee"),
permission = permission ?: throw PulumiNullFieldException("permission"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy