com.pulumi.aws.verifiedpermissions.kotlin.inputs.PolicyDefinitionTemplateLinkedPrincipalArgs.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.PolicyDefinitionTemplateLinkedPrincipalArgs.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 entityId The entity ID of the principal.
* @property entityType The entity type of the principal.
*/
public data class PolicyDefinitionTemplateLinkedPrincipalArgs(
public val entityId: Output,
public val entityType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedPrincipalArgs =
com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedPrincipalArgs.builder()
.entityId(entityId.applyValue({ args0 -> args0 }))
.entityType(entityType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyDefinitionTemplateLinkedPrincipalArgs].
*/
@PulumiTagMarker
public class PolicyDefinitionTemplateLinkedPrincipalArgsBuilder internal constructor() {
private var entityId: Output? = null
private var entityType: Output? = null
/**
* @param value The entity ID of the principal.
*/
@JvmName("avsobcqbvmkhjmtj")
public suspend fun entityId(`value`: Output) {
this.entityId = value
}
/**
* @param value The entity type of the principal.
*/
@JvmName("teqbitgxrunqunet")
public suspend fun entityType(`value`: Output) {
this.entityType = value
}
/**
* @param value The entity ID of the principal.
*/
@JvmName("eyndqucwmyncnpwv")
public suspend fun entityId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.entityId = mapped
}
/**
* @param value The entity type of the principal.
*/
@JvmName("rutynbujhxqbocas")
public suspend fun entityType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.entityType = mapped
}
internal fun build(): PolicyDefinitionTemplateLinkedPrincipalArgs =
PolicyDefinitionTemplateLinkedPrincipalArgs(
entityId = entityId ?: throw PulumiNullFieldException("entityId"),
entityType = entityType ?: throw PulumiNullFieldException("entityType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy