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

com.pulumi.awsnative.licensemanager.kotlin.GrantArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.licensemanager.kotlin

import com.pulumi.awsnative.licensemanager.GrantArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * An example resource schema demonstrating some basic constructs and validation rules.
 * @property allowedOperations Allowed operations for the grant.
 * @property grantName Name for the created Grant.
 * @property homeRegion Home region for the created grant.
 * @property licenseArn License Arn for the grant.
 * @property principals The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
 * - An AWS account, which includes only the account specified.
 * - An organizational unit (OU), which includes all accounts in the OU.
 * - An organization, which will include all accounts across your organization.
 * @property status Granted license status.
 */
public data class GrantArgs(
    public val allowedOperations: Output>? = null,
    public val grantName: Output? = null,
    public val homeRegion: Output? = null,
    public val licenseArn: Output? = null,
    public val principals: Output>? = null,
    public val status: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.licensemanager.GrantArgs =
        com.pulumi.awsnative.licensemanager.GrantArgs.builder()
            .allowedOperations(allowedOperations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .grantName(grantName?.applyValue({ args0 -> args0 }))
            .homeRegion(homeRegion?.applyValue({ args0 -> args0 }))
            .licenseArn(licenseArn?.applyValue({ args0 -> args0 }))
            .principals(principals?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .status(status?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GrantArgs].
 */
@PulumiTagMarker
public class GrantArgsBuilder internal constructor() {
    private var allowedOperations: Output>? = null

    private var grantName: Output? = null

    private var homeRegion: Output? = null

    private var licenseArn: Output? = null

    private var principals: Output>? = null

    private var status: Output? = null

    /**
     * @param value Allowed operations for the grant.
     */
    @JvmName("renncimempiqsbag")
    public suspend fun allowedOperations(`value`: Output>) {
        this.allowedOperations = value
    }

    @JvmName("gjyosdxgcqqtngcq")
    public suspend fun allowedOperations(vararg values: Output) {
        this.allowedOperations = Output.all(values.asList())
    }

    /**
     * @param values Allowed operations for the grant.
     */
    @JvmName("isxwswngwartvnvc")
    public suspend fun allowedOperations(values: List>) {
        this.allowedOperations = Output.all(values)
    }

    /**
     * @param value Name for the created Grant.
     */
    @JvmName("hldregpjhruxjvje")
    public suspend fun grantName(`value`: Output) {
        this.grantName = value
    }

    /**
     * @param value Home region for the created grant.
     */
    @JvmName("djvoiwjfrywjnkfi")
    public suspend fun homeRegion(`value`: Output) {
        this.homeRegion = value
    }

    /**
     * @param value License Arn for the grant.
     */
    @JvmName("pqawfidbihpdncnp")
    public suspend fun licenseArn(`value`: Output) {
        this.licenseArn = value
    }

    /**
     * @param value The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
     * - An AWS account, which includes only the account specified.
     * - An organizational unit (OU), which includes all accounts in the OU.
     * - An organization, which will include all accounts across your organization.
     */
    @JvmName("paxokfykohuhsqus")
    public suspend fun principals(`value`: Output>) {
        this.principals = value
    }

    @JvmName("vjjoivqouyfoudar")
    public suspend fun principals(vararg values: Output) {
        this.principals = Output.all(values.asList())
    }

    /**
     * @param values The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
     * - An AWS account, which includes only the account specified.
     * - An organizational unit (OU), which includes all accounts in the OU.
     * - An organization, which will include all accounts across your organization.
     */
    @JvmName("plhcjjcpviejpfqn")
    public suspend fun principals(values: List>) {
        this.principals = Output.all(values)
    }

    /**
     * @param value Granted license status.
     */
    @JvmName("ubuideslvusrsaaj")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Allowed operations for the grant.
     */
    @JvmName("jmluwdkaufcvypua")
    public suspend fun allowedOperations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedOperations = mapped
    }

    /**
     * @param values Allowed operations for the grant.
     */
    @JvmName("kymgejeqjkuabats")
    public suspend fun allowedOperations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedOperations = mapped
    }

    /**
     * @param value Name for the created Grant.
     */
    @JvmName("xpvjqafgwuucstit")
    public suspend fun grantName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grantName = mapped
    }

    /**
     * @param value Home region for the created grant.
     */
    @JvmName("jjbdkpveytietkuh")
    public suspend fun homeRegion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.homeRegion = mapped
    }

    /**
     * @param value License Arn for the grant.
     */
    @JvmName("eefcdryarioftntw")
    public suspend fun licenseArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenseArn = mapped
    }

    /**
     * @param value The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
     * - An AWS account, which includes only the account specified.
     * - An organizational unit (OU), which includes all accounts in the OU.
     * - An organization, which will include all accounts across your organization.
     */
    @JvmName("qugjsnumeivykchc")
    public suspend fun principals(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param values The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
     * - An AWS account, which includes only the account specified.
     * - An organizational unit (OU), which includes all accounts in the OU.
     * - An organization, which will include all accounts across your organization.
     */
    @JvmName("sdoccviggsnydehs")
    public suspend fun principals(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param value Granted license status.
     */
    @JvmName("vpeinqolyonyhepw")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): GrantArgs = GrantArgs(
        allowedOperations = allowedOperations,
        grantName = grantName,
        homeRegion = homeRegion,
        licenseArn = licenseArn,
        principals = principals,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy