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

com.pulumi.aws.cfg.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.cfg.kotlin.inputs

import com.pulumi.aws.cfg.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 allRegions If true, aggregate existing AWS Config regions and future regions.
 * @property regions List of source regions being aggregated.
 * @property roleArn ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.
 * Either `regions` or `all_regions` (as true) must be specified.
 */
public data class ConfigurationAggregatorOrganizationAggregationSourceArgs(
    public val allRegions: Output? = null,
    public val regions: Output>? = null,
    public val roleArn: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cfg.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs =
        com.pulumi.aws.cfg.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs.builder()
            .allRegions(allRegions?.applyValue({ args0 -> args0 }))
            .regions(regions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

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

    private var regions: Output>? = null

    private var roleArn: Output? = null

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

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

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

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

    /**
     * @param value ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.
     * Either `regions` or `all_regions` (as true) must be specified.
     */
    @JvmName("mtvpkkmiucmkbdwt")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

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

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

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

    /**
     * @param value ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.
     * Either `regions` or `all_regions` (as true) must be specified.
     */
    @JvmName("dstutpjwykjpivmk")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): ConfigurationAggregatorOrganizationAggregationSourceArgs =
        ConfigurationAggregatorOrganizationAggregationSourceArgs(
            allRegions = allRegions,
            regions = regions,
            roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy