
com.pulumi.awsnative.verifiedpermissions.kotlin.PolicyTemplateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.verifiedpermissions.kotlin
import com.pulumi.awsnative.verifiedpermissions.PolicyTemplateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Definition of AWS::VerifiedPermissions::PolicyTemplate Resource Type
* ## Example Usage
* ### Example
* No Java example available.
* @property description The description to attach to the new or updated policy template.
* @property policyStoreId The unique identifier of the policy store that contains the template.
* @property statement Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
*/
public data class PolicyTemplateArgs(
public val description: Output? = null,
public val policyStoreId: Output? = null,
public val statement: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.verifiedpermissions.PolicyTemplateArgs =
com.pulumi.awsnative.verifiedpermissions.PolicyTemplateArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.policyStoreId(policyStoreId?.applyValue({ args0 -> args0 }))
.statement(statement?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyTemplateArgs].
*/
@PulumiTagMarker
public class PolicyTemplateArgsBuilder internal constructor() {
private var description: Output? = null
private var policyStoreId: Output? = null
private var statement: Output? = null
/**
* @param value The description to attach to the new or updated policy template.
*/
@JvmName("ashrqnwluuesgonw")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The unique identifier of the policy store that contains the template.
*/
@JvmName("techcxvjedgxyqng")
public suspend fun policyStoreId(`value`: Output) {
this.policyStoreId = value
}
/**
* @param value Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
*/
@JvmName("hujbrxxeuvwjovjc")
public suspend fun statement(`value`: Output) {
this.statement = value
}
/**
* @param value The description to attach to the new or updated policy template.
*/
@JvmName("vyiwarxbksajybfl")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The unique identifier of the policy store that contains the template.
*/
@JvmName("qdulsvfaaumluahw")
public suspend fun policyStoreId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyStoreId = mapped
}
/**
* @param value Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
*/
@JvmName("hebnutvnwtmtcdhj")
public suspend fun statement(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.statement = mapped
}
internal fun build(): PolicyTemplateArgs = PolicyTemplateArgs(
description = description,
policyStoreId = policyStoreId,
statement = statement,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy