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

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

import com.pulumi.awsnative.ec2.NetworkInsightsAccessScopeArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::EC2::NetworkInsightsAccessScope
 * @property excludePaths The paths to exclude.
 * @property matchPaths The paths to match.
 * @property tags The tags.
 */
public data class NetworkInsightsAccessScopeArgs(
    public val excludePaths: Output>? =
        null,
    public val matchPaths: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.NetworkInsightsAccessScopeArgs =
        com.pulumi.awsnative.ec2.NetworkInsightsAccessScopeArgs.builder()
            .excludePaths(
                excludePaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .matchPaths(
                matchPaths?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var matchPaths: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The paths to exclude.
     */
    @JvmName("gwxedejbcmwmjket")
    public suspend fun excludePaths(`value`: Output>) {
        this.excludePaths = value
    }

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

    /**
     * @param values The paths to exclude.
     */
    @JvmName("bmlwmfifgacprtll")
    public suspend fun excludePaths(values: List>) {
        this.excludePaths = Output.all(values)
    }

    /**
     * @param value The paths to match.
     */
    @JvmName("gsycyuclwdpalaca")
    public suspend fun matchPaths(`value`: Output>) {
        this.matchPaths = value
    }

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

    /**
     * @param values The paths to match.
     */
    @JvmName("neouinqnwgyxwycb")
    public suspend fun matchPaths(values: List>) {
        this.matchPaths = Output.all(values)
    }

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

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

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

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

    /**
     * @param argument The paths to exclude.
     */
    @JvmName("fihfbfimgcnrfgsy")
    public suspend fun excludePaths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.excludePaths = mapped
    }

    /**
     * @param argument The paths to exclude.
     */
    @JvmName("ebsquicuyndyxtil")
    public suspend fun excludePaths(vararg argument: suspend NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.excludePaths = mapped
    }

    /**
     * @param argument The paths to exclude.
     */
    @JvmName("jmhuqmkmmreotnlx")
    public suspend fun excludePaths(argument: suspend NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.excludePaths = mapped
    }

    /**
     * @param values The paths to exclude.
     */
    @JvmName("etgyecwjaiexamrm")
    public suspend fun excludePaths(vararg values: NetworkInsightsAccessScopeAccessScopePathRequestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludePaths = mapped
    }

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

    /**
     * @param argument The paths to match.
     */
    @JvmName("sskrtanrdmdydlvr")
    public suspend fun matchPaths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.matchPaths = mapped
    }

    /**
     * @param argument The paths to match.
     */
    @JvmName("xombbpbqnkellxuu")
    public suspend fun matchPaths(vararg argument: suspend NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.matchPaths = mapped
    }

    /**
     * @param argument The paths to match.
     */
    @JvmName("qkjxujwxlbuodocu")
    public suspend fun matchPaths(argument: suspend NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.matchPaths = mapped
    }

    /**
     * @param values The paths to match.
     */
    @JvmName("xiwwhqcuuxugheki")
    public suspend fun matchPaths(vararg values: NetworkInsightsAccessScopeAccessScopePathRequestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchPaths = mapped
    }

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

    /**
     * @param argument The tags.
     */
    @JvmName("uokavtocsjkvvpxo")
    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.
     */
    @JvmName("qqhtpnthrgulsppf")
    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.
     */
    @JvmName("tchbhwgqoniukqre")
    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.
     */
    @JvmName("fairgepslsdokvot")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): NetworkInsightsAccessScopeArgs = NetworkInsightsAccessScopeArgs(
        excludePaths = excludePaths,
        matchPaths = matchPaths,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy