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

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

package com.pulumi.awsnative.configuration.kotlin.inputs

import com.pulumi.awsnative.configuration.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allAwsRegions If true, aggregate existing AWS Config regions and future regions.
 * @property awsRegions The source regions being aggregated.
 * @property roleArn ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.
 */
public data class ConfigurationAggregatorOrganizationAggregationSourceArgs(
    public val allAwsRegions: Output? = null,
    public val awsRegions: Output>? = null,
    public val roleArn: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.configuration.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs =
        com.pulumi.awsnative.configuration.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs.builder()
            .allAwsRegions(allAwsRegions?.applyValue({ args0 -> args0 }))
            .awsRegions(awsRegions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConfigurationAggregatorOrganizationAggregationSourceArgs].
 */
@PulumiTagMarker
public class ConfigurationAggregatorOrganizationAggregationSourceArgsBuilder internal constructor() {
    private var allAwsRegions: Output? = null

    private var awsRegions: Output>? = null

    private var roleArn: Output? = null

    /**
     * @param value If true, aggregate existing AWS Config regions and future regions.
     */
    @JvmName("kydbaxmmcfdnedsc")
    public suspend fun allAwsRegions(`value`: Output) {
        this.allAwsRegions = value
    }

    /**
     * @param value The source regions being aggregated.
     */
    @JvmName("wvlfhotceiphdbmh")
    public suspend fun awsRegions(`value`: Output>) {
        this.awsRegions = value
    }

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

    /**
     * @param values The source regions being aggregated.
     */
    @JvmName("pdpxkcffhxqworml")
    public suspend fun awsRegions(values: List>) {
        this.awsRegions = Output.all(values)
    }

    /**
     * @param value ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.
     */
    @JvmName("vugstwhjtlnwfpnn")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value If true, aggregate existing AWS Config regions and future regions.
     */
    @JvmName("ejcgqbbtmntigqmq")
    public suspend fun allAwsRegions(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allAwsRegions = mapped
    }

    /**
     * @param value The source regions being aggregated.
     */
    @JvmName("anqgxoefptirykmh")
    public suspend fun awsRegions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsRegions = mapped
    }

    /**
     * @param values The source regions being aggregated.
     */
    @JvmName("ttyrcpgktiecqmuh")
    public suspend fun awsRegions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.awsRegions = mapped
    }

    /**
     * @param value ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.
     */
    @JvmName("attckehgejrortka")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): ConfigurationAggregatorOrganizationAggregationSourceArgs =
        ConfigurationAggregatorOrganizationAggregationSourceArgs(
            allAwsRegions = allAwsRegions,
            awsRegions = awsRegions,
            roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy