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

com.pulumi.awsnative.ec2.kotlin.VerifiedAccessInstanceArgs.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.VerifiedAccessInstanceArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessInstanceVerifiedAccessLogsArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessInstanceVerifiedAccessLogsArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessInstanceVerifiedAccessTrustProviderArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::EC2::VerifiedAccessInstance resource creates an AWS EC2 Verified Access Instance.
 * @property description A description for the AWS Verified Access instance.
 * @property fipsEnabled Indicates whether FIPS is enabled
 * @property loggingConfigurations The configuration options for AWS Verified Access instances.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property verifiedAccessTrustProviderIds The IDs of the AWS Verified Access trust providers.
 * @property verifiedAccessTrustProviders AWS Verified Access trust providers.
 */
public data class VerifiedAccessInstanceArgs(
    public val description: Output? = null,
    public val fipsEnabled: Output? = null,
    public val loggingConfigurations: Output? = null,
    public val tags: Output>? = null,
    public val verifiedAccessTrustProviderIds: Output>? = null,
    public val verifiedAccessTrustProviders: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VerifiedAccessInstanceArgs =
        com.pulumi.awsnative.ec2.VerifiedAccessInstanceArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .fipsEnabled(fipsEnabled?.applyValue({ args0 -> args0 }))
            .loggingConfigurations(
                loggingConfigurations?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .verifiedAccessTrustProviderIds(
                verifiedAccessTrustProviderIds?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .verifiedAccessTrustProviders(
                verifiedAccessTrustProviders?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [VerifiedAccessInstanceArgs].
 */
@PulumiTagMarker
public class VerifiedAccessInstanceArgsBuilder internal constructor() {
    private var description: Output? = null

    private var fipsEnabled: Output? = null

    private var loggingConfigurations: Output? = null

    private var tags: Output>? = null

    private var verifiedAccessTrustProviderIds: Output>? = null

    private var verifiedAccessTrustProviders:
        Output>? = null

    /**
     * @param value A description for the AWS Verified Access instance.
     */
    @JvmName("yltkpesdvjrkjkit")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Indicates whether FIPS is enabled
     */
    @JvmName("qbbyfbucrvpipvxp")
    public suspend fun fipsEnabled(`value`: Output) {
        this.fipsEnabled = value
    }

    /**
     * @param value The configuration options for AWS Verified Access instances.
     */
    @JvmName("hoaqmjpxhqxrgmff")
    public suspend fun loggingConfigurations(`value`: Output) {
        this.loggingConfigurations = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("wshdgymslvmforyw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("pxaguwelvldfwqpm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The IDs of the AWS Verified Access trust providers.
     */
    @JvmName("fyvxgmhylbbjqste")
    public suspend fun verifiedAccessTrustProviderIds(`value`: Output>) {
        this.verifiedAccessTrustProviderIds = value
    }

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

    /**
     * @param values The IDs of the AWS Verified Access trust providers.
     */
    @JvmName("tagpnclnjwqxqhhs")
    public suspend fun verifiedAccessTrustProviderIds(values: List>) {
        this.verifiedAccessTrustProviderIds = Output.all(values)
    }

    /**
     * @param value AWS Verified Access trust providers.
     */
    @JvmName("oqmbhtosepogcpab")
    public suspend fun verifiedAccessTrustProviders(`value`: Output>) {
        this.verifiedAccessTrustProviders = value
    }

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

    /**
     * @param values AWS Verified Access trust providers.
     */
    @JvmName("lonxmpidppyvpuhd")
    public suspend fun verifiedAccessTrustProviders(values: List>) {
        this.verifiedAccessTrustProviders = Output.all(values)
    }

    /**
     * @param value A description for the AWS Verified Access instance.
     */
    @JvmName("lnsnjfjccujihseq")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Indicates whether FIPS is enabled
     */
    @JvmName("htdddixybomymqqx")
    public suspend fun fipsEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fipsEnabled = mapped
    }

    /**
     * @param value The configuration options for AWS Verified Access instances.
     */
    @JvmName("espacspjemccctej")
    public suspend fun loggingConfigurations(`value`: VerifiedAccessInstanceVerifiedAccessLogsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingConfigurations = mapped
    }

    /**
     * @param argument The configuration options for AWS Verified Access instances.
     */
    @JvmName("qkcatuhsfumvgdpc")
    public suspend fun loggingConfigurations(argument: suspend VerifiedAccessInstanceVerifiedAccessLogsArgsBuilder.() -> Unit) {
        val toBeMapped = VerifiedAccessInstanceVerifiedAccessLogsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loggingConfigurations = mapped
    }

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

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ohohsrydwkqmardt")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("fptqrrwejxvkwafp")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("okftrkohvumkwywu")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ywvracfbwhngwknf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The IDs of the AWS Verified Access trust providers.
     */
    @JvmName("rgogadhfncsbepim")
    public suspend fun verifiedAccessTrustProviderIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifiedAccessTrustProviderIds = mapped
    }

    /**
     * @param values The IDs of the AWS Verified Access trust providers.
     */
    @JvmName("vinftrxucvbhixed")
    public suspend fun verifiedAccessTrustProviderIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.verifiedAccessTrustProviderIds = mapped
    }

    /**
     * @param value AWS Verified Access trust providers.
     */
    @JvmName("cluremmofivfdyei")
    public suspend fun verifiedAccessTrustProviders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifiedAccessTrustProviders = mapped
    }

    /**
     * @param argument AWS Verified Access trust providers.
     */
    @JvmName("dychwetfymtktvli")
    public suspend fun verifiedAccessTrustProviders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.verifiedAccessTrustProviders = mapped
    }

    /**
     * @param argument AWS Verified Access trust providers.
     */
    @JvmName("pemeoxmqfggebssc")
    public suspend fun verifiedAccessTrustProviders(vararg argument: suspend VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.verifiedAccessTrustProviders = mapped
    }

    /**
     * @param argument AWS Verified Access trust providers.
     */
    @JvmName("uydsahknxltuamhj")
    public suspend fun verifiedAccessTrustProviders(argument: suspend VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VerifiedAccessInstanceVerifiedAccessTrustProviderArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.verifiedAccessTrustProviders = mapped
    }

    /**
     * @param values AWS Verified Access trust providers.
     */
    @JvmName("mixdcoojyfsowxki")
    public suspend fun verifiedAccessTrustProviders(vararg values: VerifiedAccessInstanceVerifiedAccessTrustProviderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.verifiedAccessTrustProviders = mapped
    }

    internal fun build(): VerifiedAccessInstanceArgs = VerifiedAccessInstanceArgs(
        description = description,
        fipsEnabled = fipsEnabled,
        loggingConfigurations = loggingConfigurations,
        tags = tags,
        verifiedAccessTrustProviderIds = verifiedAccessTrustProviderIds,
        verifiedAccessTrustProviders = verifiedAccessTrustProviders,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy