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

com.pulumi.awsnative.ec2.kotlin.NetworkInsightsAnalysisArgs.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.ec2.kotlin

import com.pulumi.awsnative.ec2.NetworkInsightsAnalysisArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::EC2::NetworkInsightsAnalysis
 * @property additionalAccounts The member accounts that contain resources that the path can traverse.
 * @property filterInArns The Amazon Resource Names (ARN) of the resources that the path must traverse.
 * @property networkInsightsPathId The ID of the path.
 * @property tags The tags to apply.
 */
public data class NetworkInsightsAnalysisArgs(
    public val additionalAccounts: Output>? = null,
    public val filterInArns: Output>? = null,
    public val networkInsightsPathId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.NetworkInsightsAnalysisArgs =
        com.pulumi.awsnative.ec2.NetworkInsightsAnalysisArgs.builder()
            .additionalAccounts(additionalAccounts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .filterInArns(filterInArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .networkInsightsPathId(networkInsightsPathId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [NetworkInsightsAnalysisArgs].
 */
@PulumiTagMarker
public class NetworkInsightsAnalysisArgsBuilder internal constructor() {
    private var additionalAccounts: Output>? = null

    private var filterInArns: Output>? = null

    private var networkInsightsPathId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The member accounts that contain resources that the path can traverse.
     */
    @JvmName("sjdogluqxrikxbik")
    public suspend fun additionalAccounts(`value`: Output>) {
        this.additionalAccounts = value
    }

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

    /**
     * @param values The member accounts that contain resources that the path can traverse.
     */
    @JvmName("oigmhpehbutyaiym")
    public suspend fun additionalAccounts(values: List>) {
        this.additionalAccounts = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Names (ARN) of the resources that the path must traverse.
     */
    @JvmName("fhtggexbyqvqpcde")
    public suspend fun filterInArns(`value`: Output>) {
        this.filterInArns = value
    }

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

    /**
     * @param values The Amazon Resource Names (ARN) of the resources that the path must traverse.
     */
    @JvmName("fpluuijtnrtompdk")
    public suspend fun filterInArns(values: List>) {
        this.filterInArns = Output.all(values)
    }

    /**
     * @param value The ID of the path.
     */
    @JvmName("ifvmouiajcejgccq")
    public suspend fun networkInsightsPathId(`value`: Output) {
        this.networkInsightsPathId = value
    }

    /**
     * @param value The tags to apply.
     */
    @JvmName("ibvifniaqctpunrv")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to apply.
     */
    @JvmName("tpneptweobxvsnwj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The member accounts that contain resources that the path can traverse.
     */
    @JvmName("uhwetbpnvytklmtg")
    public suspend fun additionalAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalAccounts = mapped
    }

    /**
     * @param values The member accounts that contain resources that the path can traverse.
     */
    @JvmName("unlgtyflgbupqrcp")
    public suspend fun additionalAccounts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalAccounts = mapped
    }

    /**
     * @param value The Amazon Resource Names (ARN) of the resources that the path must traverse.
     */
    @JvmName("foarnhpnxlpmoaex")
    public suspend fun filterInArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterInArns = mapped
    }

    /**
     * @param values The Amazon Resource Names (ARN) of the resources that the path must traverse.
     */
    @JvmName("aorocpgccluilowm")
    public suspend fun filterInArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filterInArns = mapped
    }

    /**
     * @param value The ID of the path.
     */
    @JvmName("susiksqmiunecyhm")
    public suspend fun networkInsightsPathId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInsightsPathId = mapped
    }

    /**
     * @param value The tags to apply.
     */
    @JvmName("ssnvawtfkbflktbm")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to apply.
     */
    @JvmName("vkevvnbajnfttbqy")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to apply.
     */
    @JvmName("stkqqscrdomufsxa")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to apply.
     */
    @JvmName("fhqwikapnhxhfpdv")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to apply.
     */
    @JvmName("absoffxssdqtrfvy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): NetworkInsightsAnalysisArgs = NetworkInsightsAnalysisArgs(
        additionalAccounts = additionalAccounts,
        filterInArns = filterInArns,
        networkInsightsPathId = networkInsightsPathId,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy