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

com.pulumi.azurenative.hybridconnectivity.kotlin.inputs.AwsCloudProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hybridconnectivity.kotlin.inputs

import com.pulumi.azurenative.hybridconnectivity.inputs.AwsCloudProfileArgs.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

/**
 * cloud profile for AWS.
 * @property accountId Account id for the AWS account.
 * @property excludedAccounts List of AWS accounts which need to be excluded.
 * @property isOrganizationalAccount Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
 */
public data class AwsCloudProfileArgs(
    public val accountId: Output,
    public val excludedAccounts: Output>? = null,
    public val isOrganizationalAccount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hybridconnectivity.inputs.AwsCloudProfileArgs =
        com.pulumi.azurenative.hybridconnectivity.inputs.AwsCloudProfileArgs.builder()
            .accountId(accountId.applyValue({ args0 -> args0 }))
            .excludedAccounts(excludedAccounts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .isOrganizationalAccount(isOrganizationalAccount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AwsCloudProfileArgs].
 */
@PulumiTagMarker
public class AwsCloudProfileArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var excludedAccounts: Output>? = null

    private var isOrganizationalAccount: Output? = null

    /**
     * @param value Account id for the AWS account.
     */
    @JvmName("lvawghnaexrxhvxo")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value List of AWS accounts which need to be excluded.
     */
    @JvmName("rfsocmhafokalxlk")
    public suspend fun excludedAccounts(`value`: Output>) {
        this.excludedAccounts = value
    }

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

    /**
     * @param values List of AWS accounts which need to be excluded.
     */
    @JvmName("oyjotcrymkiqwbyd")
    public suspend fun excludedAccounts(values: List>) {
        this.excludedAccounts = Output.all(values)
    }

    /**
     * @param value Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
     */
    @JvmName("japrlmhdbktslahs")
    public suspend fun isOrganizationalAccount(`value`: Output) {
        this.isOrganizationalAccount = value
    }

    /**
     * @param value Account id for the AWS account.
     */
    @JvmName("eqcbdkwkeyahnaxl")
    public suspend fun accountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value List of AWS accounts which need to be excluded.
     */
    @JvmName("qubdbdhmoevlpjfe")
    public suspend fun excludedAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedAccounts = mapped
    }

    /**
     * @param values List of AWS accounts which need to be excluded.
     */
    @JvmName("aofnydtrknwiqyjo")
    public suspend fun excludedAccounts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedAccounts = mapped
    }

    /**
     * @param value Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
     */
    @JvmName("akcvajdlsrcvqoms")
    public suspend fun isOrganizationalAccount(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isOrganizationalAccount = mapped
    }

    internal fun build(): AwsCloudProfileArgs = AwsCloudProfileArgs(
        accountId = accountId ?: throw PulumiNullFieldException("accountId"),
        excludedAccounts = excludedAccounts,
        isOrganizationalAccount = isOrganizationalAccount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy