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

com.pulumi.azurenative.security.kotlin.inputs.AwsEnvironmentDataArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.AwsEnvironmentDataArgs.builder
import com.pulumi.core.Either
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

/**
 * The AWS connector environment data
 * @property environmentType The type of the environment data.
 * Expected value is 'AwsAccount'.
 * @property organizationalData The AWS account's organizational data
 * @property regions list of regions to scan
 */
public data class AwsEnvironmentDataArgs(
    public val environmentType: Output,
    public val organizationalData: Output>? = null,
    public val regions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.AwsEnvironmentDataArgs =
        com.pulumi.azurenative.security.inputs.AwsEnvironmentDataArgs.builder()
            .environmentType(environmentType.applyValue({ args0 -> args0 }))
            .organizationalData(
                organizationalData?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .regions(regions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AwsEnvironmentDataArgs].
 */
@PulumiTagMarker
public class AwsEnvironmentDataArgsBuilder internal constructor() {
    private var environmentType: Output? = null

    private var organizationalData:
        Output>? = null

    private var regions: Output>? = null

    /**
     * @param value The type of the environment data.
     * Expected value is 'AwsAccount'.
     */
    @JvmName("kmrllmurtdffsaaq")
    public suspend fun environmentType(`value`: Output) {
        this.environmentType = value
    }

    /**
     * @param value The AWS account's organizational data
     */
    @JvmName("cotqhmdhuriamtqk")
    public suspend fun organizationalData(`value`: Output>) {
        this.organizationalData = value
    }

    /**
     * @param value list of regions to scan
     */
    @JvmName("uswsinspsracndvp")
    public suspend fun regions(`value`: Output>) {
        this.regions = value
    }

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

    /**
     * @param values list of regions to scan
     */
    @JvmName("pqcigjwleqtqqtoq")
    public suspend fun regions(values: List>) {
        this.regions = Output.all(values)
    }

    /**
     * @param value The type of the environment data.
     * Expected value is 'AwsAccount'.
     */
    @JvmName("hjwjmndcbwrgbbtk")
    public suspend fun environmentType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentType = mapped
    }

    /**
     * @param value The AWS account's organizational data
     */
    @JvmName("uoijqwlghccqucxj")
    public suspend fun organizationalData(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationalData = mapped
    }

    /**
     * @param value The AWS account's organizational data
     */
    @JvmName("kooglalpijirexyv")
    public fun organizationalData(`value`: AwsOrganizationalDataMasterArgs) {
        val toBeMapped = Either.ofLeft<
            AwsOrganizationalDataMasterArgs,
            AwsOrganizationalDataMemberArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationalData = mapped
    }

    /**
     * @param value The AWS account's organizational data
     */
    @JvmName("qitrnodviiovnbjs")
    public fun organizationalData(`value`: AwsOrganizationalDataMemberArgs) {
        val toBeMapped = Either.ofRight<
            AwsOrganizationalDataMasterArgs,
            AwsOrganizationalDataMemberArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationalData = mapped
    }

    /**
     * @param value list of regions to scan
     */
    @JvmName("diofjoqmlckhkgph")
    public suspend fun regions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param values list of regions to scan
     */
    @JvmName("ixxnlmqsbdafpwfl")
    public suspend fun regions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    internal fun build(): AwsEnvironmentDataArgs = AwsEnvironmentDataArgs(
        environmentType = environmentType ?: throw PulumiNullFieldException("environmentType"),
        organizationalData = organizationalData,
        regions = regions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy