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

com.pulumi.aws.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs.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.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs.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

/**
 *
 * @property organizationArns Set of AWS Organization ARNs to assign.
 * @property organizationalUnitArns Set of AWS Organizational Unit ARNs to assign.
 * @property userGroups Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI.
 * @property userIds Set of AWS Account identifiers to assign.
 */
public data class
DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs(
    public val organizationArns: Output>? = null,
    public val organizationalUnitArns: Output>? = null,
    public val userGroups: Output>? = null,
    public val userIds: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs =
        com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs.builder()
            .organizationArns(organizationArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .organizationalUnitArns(
                organizationalUnitArns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .userGroups(userGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .userIds(userIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var organizationalUnitArns: Output>? = null

    private var userGroups: Output>? = null

    private var userIds: Output>? = null

    /**
     * @param value Set of AWS Organization ARNs to assign.
     */
    @JvmName("hadetwpmnqyqrfvd")
    public suspend fun organizationArns(`value`: Output>) {
        this.organizationArns = value
    }

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

    /**
     * @param values Set of AWS Organization ARNs to assign.
     */
    @JvmName("hoybibekgsqdqqsj")
    public suspend fun organizationArns(values: List>) {
        this.organizationArns = Output.all(values)
    }

    /**
     * @param value Set of AWS Organizational Unit ARNs to assign.
     */
    @JvmName("pkilywxivbcgrwqo")
    public suspend fun organizationalUnitArns(`value`: Output>) {
        this.organizationalUnitArns = value
    }

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

    /**
     * @param values Set of AWS Organizational Unit ARNs to assign.
     */
    @JvmName("ffivwdvwkyjedfxb")
    public suspend fun organizationalUnitArns(values: List>) {
        this.organizationalUnitArns = Output.all(values)
    }

    /**
     * @param value Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI.
     */
    @JvmName("fahjtnifhspmwxtf")
    public suspend fun userGroups(`value`: Output>) {
        this.userGroups = value
    }

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

    /**
     * @param values Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI.
     */
    @JvmName("weayvcsnxcekgcky")
    public suspend fun userGroups(values: List>) {
        this.userGroups = Output.all(values)
    }

    /**
     * @param value Set of AWS Account identifiers to assign.
     */
    @JvmName("tantaunctvqsihuu")
    public suspend fun userIds(`value`: Output>) {
        this.userIds = value
    }

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

    /**
     * @param values Set of AWS Account identifiers to assign.
     */
    @JvmName("kvluvypfggxytvvo")
    public suspend fun userIds(values: List>) {
        this.userIds = Output.all(values)
    }

    /**
     * @param value Set of AWS Organization ARNs to assign.
     */
    @JvmName("kayprcnodijxpxjp")
    public suspend fun organizationArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationArns = mapped
    }

    /**
     * @param values Set of AWS Organization ARNs to assign.
     */
    @JvmName("cgcbuqmnjrpqxglf")
    public suspend fun organizationArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationArns = mapped
    }

    /**
     * @param value Set of AWS Organizational Unit ARNs to assign.
     */
    @JvmName("nonyayhxgmwfyogc")
    public suspend fun organizationalUnitArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationalUnitArns = mapped
    }

    /**
     * @param values Set of AWS Organizational Unit ARNs to assign.
     */
    @JvmName("isltfxivlaxfaqbh")
    public suspend fun organizationalUnitArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationalUnitArns = mapped
    }

    /**
     * @param value Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI.
     */
    @JvmName("iklhoyxsvqutnket")
    public suspend fun userGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userGroups = mapped
    }

    /**
     * @param values Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI.
     */
    @JvmName("vyrhlbwthhglbrbb")
    public suspend fun userGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userGroups = mapped
    }

    /**
     * @param value Set of AWS Account identifiers to assign.
     */
    @JvmName("icwjhwgxojrbnaat")
    public suspend fun userIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userIds = mapped
    }

    /**
     * @param values Set of AWS Account identifiers to assign.
     */
    @JvmName("ivhgryeatvewbmts")
    public suspend fun userIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userIds = mapped
    }

    internal fun build(): DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs =
        DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs(
            organizationArns = organizationArns,
            organizationalUnitArns = organizationalUnitArns,
            userGroups = userGroups,
            userIds = userIds,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy