com.pulumi.aws.verifiedpermissions.kotlin.inputs.PolicyDefinitionTemplateLinkedArgs.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.verifiedpermissions.kotlin.inputs
import com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedArgs.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 policyTemplateId The ID of the template.
* @property principal The principal of the template linked policy.
* @property resource The resource of the template linked policy.
*/
public data class PolicyDefinitionTemplateLinkedArgs(
public val policyTemplateId: Output,
public val principal: Output? = null,
public val resource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedArgs =
com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedArgs.builder()
.policyTemplateId(policyTemplateId.applyValue({ args0 -> args0 }))
.principal(principal?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resource(resource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PolicyDefinitionTemplateLinkedArgs].
*/
@PulumiTagMarker
public class PolicyDefinitionTemplateLinkedArgsBuilder internal constructor() {
private var policyTemplateId: Output? = null
private var principal: Output? = null
private var resource: Output? = null
/**
* @param value The ID of the template.
*/
@JvmName("uwhuiusghcqaqqpc")
public suspend fun policyTemplateId(`value`: Output) {
this.policyTemplateId = value
}
/**
* @param value The principal of the template linked policy.
*/
@JvmName("oevhhjdnkbhwdaeh")
public suspend fun principal(`value`: Output) {
this.principal = value
}
/**
* @param value The resource of the template linked policy.
*/
@JvmName("bmnsdqgbscmvomsy")
public suspend fun resource(`value`: Output) {
this.resource = value
}
/**
* @param value The ID of the template.
*/
@JvmName("ynwxqupovntcjkha")
public suspend fun policyTemplateId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.policyTemplateId = mapped
}
/**
* @param value The principal of the template linked policy.
*/
@JvmName("bxkvpeicioniodyv")
public suspend fun principal(`value`: PolicyDefinitionTemplateLinkedPrincipalArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.principal = mapped
}
/**
* @param argument The principal of the template linked policy.
*/
@JvmName("drlxcbytosxknulb")
public suspend fun principal(argument: suspend PolicyDefinitionTemplateLinkedPrincipalArgsBuilder.() -> Unit) {
val toBeMapped = PolicyDefinitionTemplateLinkedPrincipalArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.principal = mapped
}
/**
* @param value The resource of the template linked policy.
*/
@JvmName("bpoofojgigtcupth")
public suspend fun resource(`value`: PolicyDefinitionTemplateLinkedResourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resource = mapped
}
/**
* @param argument The resource of the template linked policy.
*/
@JvmName("nxotymygdkgsafvh")
public suspend fun resource(argument: suspend PolicyDefinitionTemplateLinkedResourceArgsBuilder.() -> Unit) {
val toBeMapped = PolicyDefinitionTemplateLinkedResourceArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.resource = mapped
}
internal fun build(): PolicyDefinitionTemplateLinkedArgs = PolicyDefinitionTemplateLinkedArgs(
policyTemplateId = policyTemplateId ?: throw PulumiNullFieldException("policyTemplateId"),
principal = principal,
resource = resource,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy