All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.verifiedpermissions.kotlin.inputs.PolicyDefinitionTemplateLinkedResourceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.verifiedpermissions.kotlin.inputs

import com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedResourceArgs.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 resource.
 * @property entityType The entity type of the resource.
 */
public data class PolicyDefinitionTemplateLinkedResourceArgs(
    public val entityId: Output,
    public val entityType: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedResourceArgs =
        com.pulumi.aws.verifiedpermissions.inputs.PolicyDefinitionTemplateLinkedResourceArgs.builder()
            .entityId(entityId.applyValue({ args0 -> args0 }))
            .entityType(entityType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyDefinitionTemplateLinkedResourceArgs].
 */
@PulumiTagMarker
public class PolicyDefinitionTemplateLinkedResourceArgsBuilder internal constructor() {
    private var entityId: Output? = null

    private var entityType: Output? = null

    /**
     * @param value The entity ID of the resource.
     */
    @JvmName("ccayyfaxueajmtya")
    public suspend fun entityId(`value`: Output) {
        this.entityId = value
    }

    /**
     * @param value The entity type of the resource.
     */
    @JvmName("srauxwvemeboumse")
    public suspend fun entityType(`value`: Output) {
        this.entityType = value
    }

    /**
     * @param value The entity ID of the resource.
     */
    @JvmName("thtslsualxxsbwox")
    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 resource.
     */
    @JvmName("gmcxtdkqnwoflejm")
    public suspend fun entityType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.entityType = mapped
    }

    internal fun build(): PolicyDefinitionTemplateLinkedResourceArgs =
        PolicyDefinitionTemplateLinkedResourceArgs(
            entityId = entityId ?: throw PulumiNullFieldException("entityId"),
            entityType = entityType ?: throw PulumiNullFieldException("entityType"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy