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

com.pulumi.awsnative.ssm.kotlin.inputs.ResourceDataSyncAwsOrganizationsSourceArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssm.kotlin.inputs

import com.pulumi.awsnative.ssm.inputs.ResourceDataSyncAwsOrganizationsSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property organizationSourceType If an AWS organization is present, this is either `OrganizationalUnits` or `EntireOrganization` . For `OrganizationalUnits` , the data is aggregated from a set of organization units. For `EntireOrganization` , the data is aggregated from the entire AWS organization.
 * @property organizationalUnits The AWS Organizations organization units included in the sync.
 */
public data class ResourceDataSyncAwsOrganizationsSourceArgs(
    public val organizationSourceType: Output,
    public val organizationalUnits: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssm.inputs.ResourceDataSyncAwsOrganizationsSourceArgs = com.pulumi.awsnative.ssm.inputs.ResourceDataSyncAwsOrganizationsSourceArgs.builder()
        .organizationSourceType(organizationSourceType.applyValue({ args0 -> args0 }))
        .organizationalUnits(
            organizationalUnits?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        ).build()
}

/**
 * Builder for [ResourceDataSyncAwsOrganizationsSourceArgs].
 */
@PulumiTagMarker
public class ResourceDataSyncAwsOrganizationsSourceArgsBuilder internal constructor() {
    private var organizationSourceType: Output? = null

    private var organizationalUnits: Output>? = null

    /**
     * @param value If an AWS organization is present, this is either `OrganizationalUnits` or `EntireOrganization` . For `OrganizationalUnits` , the data is aggregated from a set of organization units. For `EntireOrganization` , the data is aggregated from the entire AWS organization.
     */
    @JvmName("acdmkvepurfmxwqr")
    public suspend fun organizationSourceType(`value`: Output) {
        this.organizationSourceType = value
    }

    /**
     * @param value The AWS Organizations organization units included in the sync.
     */
    @JvmName("srsldcsmnktihyeb")
    public suspend fun organizationalUnits(`value`: Output>) {
        this.organizationalUnits = value
    }

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

    /**
     * @param values The AWS Organizations organization units included in the sync.
     */
    @JvmName("stoxhvsabydtgpbi")
    public suspend fun organizationalUnits(values: List>) {
        this.organizationalUnits = Output.all(values)
    }

    /**
     * @param value If an AWS organization is present, this is either `OrganizationalUnits` or `EntireOrganization` . For `OrganizationalUnits` , the data is aggregated from a set of organization units. For `EntireOrganization` , the data is aggregated from the entire AWS organization.
     */
    @JvmName("klyutskmqxmybwtf")
    public suspend fun organizationSourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationSourceType = mapped
    }

    /**
     * @param value The AWS Organizations organization units included in the sync.
     */
    @JvmName("ecgswkekwlaljdsu")
    public suspend fun organizationalUnits(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationalUnits = mapped
    }

    /**
     * @param values The AWS Organizations organization units included in the sync.
     */
    @JvmName("ecgaikfwcirewxdb")
    public suspend fun organizationalUnits(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationalUnits = mapped
    }

    internal fun build(): ResourceDataSyncAwsOrganizationsSourceArgs =
        ResourceDataSyncAwsOrganizationsSourceArgs(
            organizationSourceType = organizationSourceType ?: throw
                PulumiNullFieldException("organizationSourceType"),
            organizationalUnits = organizationalUnits,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy