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

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>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the permission.
     */
    @JvmName("nsffgitxubpigoil")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @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("ywqeebhfjhpijtav")
    public suspend fun policyTemplate(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyTemplate = mapped
    }

    /**
     * @param value The resource type this permission can be used with.
     */
    @JvmName("xjernwtngvbbcbga")
    public suspend fun resourceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

    /**
     * @param value Specifies a list of one or more tag key and value pairs to attach to the permission.
     */
    @JvmName("avciaftqsbfbnpmq")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies a list of one or more tag key and value pairs to attach to the permission.
     */
    @JvmName("bgysidhevyirfasy")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies a list of one or more tag key and value pairs to attach to the permission.
     */
    @JvmName("vxtoeooeyclifgrj")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Specifies a list of one or more tag key and value pairs to attach to the permission.
     */
    @JvmName("qmjkoylaiyoajxvq")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies a list of one or more tag key and value pairs to attach to the permission.
     */
    @JvmName("ylphnackjcbefkoo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PermissionArgs = PermissionArgs(
        name = name,
        policyTemplate = policyTemplate,
        resourceType = resourceType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy