![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ram.kotlin.PermissionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ram.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ram.PermissionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource type definition for AWS::RAM::Permission
* @property name The name of the permission.
* @property policyTemplate Policy template for the permission.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::RAM::Permission` for more information about the expected schema for this property.
* @property resourceType The resource type this permission can be used with.
* @property tags Specifies a list of one or more tag key and value pairs to attach to the permission.
*/
public data class PermissionArgs(
public val name: Output? = null,
public val policyTemplate: Output? = null,
public val resourceType: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ram.PermissionArgs =
com.pulumi.awsnative.ram.PermissionArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.policyTemplate(policyTemplate?.applyValue({ args0 -> args0 }))
.resourceType(resourceType?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [PermissionArgs].
*/
@PulumiTagMarker
public class PermissionArgsBuilder internal constructor() {
private var name: Output? = null
private var policyTemplate: Output? = null
private var resourceType: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the permission.
*/
@JvmName("edrpwrnuygutvuei")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Policy template for the permission.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::RAM::Permission` for more information about the expected schema for this property.
*/
@JvmName("aisriyindbcwsjln")
public suspend fun policyTemplate(`value`: Output) {
this.policyTemplate = value
}
/**
* @param value The resource type this permission can be used with.
*/
@JvmName("gaokjomgwkdevcay")
public suspend fun resourceType(`value`: Output) {
this.resourceType = value
}
/**
* @param value Specifies a list of one or more tag key and value pairs to attach to the permission.
*/
@JvmName("jrpetjqfixfrmrtj")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("kopwwucbhdxsgtql")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Specifies a list of one or more tag key and value pairs to attach to the permission.
*/
@JvmName("hxtlhosxygbccqeh")
public suspend fun tags(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy