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

com.pulumi.awsnative.ec2.kotlin.VerifiedAccessGroupArgs.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.VerifiedAccessGroupArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessGroupSseSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessGroupSseSpecificationArgsBuilder
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::VerifiedAccessGroup resource creates an AWS EC2 Verified Access Group.
 * @property description A description for the AWS Verified Access group.
 * @property policyDocument The AWS Verified Access policy document.
 * @property policyEnabled The status of the Verified Access policy.
 * @property sseSpecification The configuration options for customer provided KMS encryption.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property verifiedAccessInstanceId The ID of the AWS Verified Access instance.
 */
public data class VerifiedAccessGroupArgs(
    public val description: Output? = null,
    public val policyDocument: Output? = null,
    public val policyEnabled: Output? = null,
    public val sseSpecification: Output? = null,
    public val tags: Output>? = null,
    public val verifiedAccessInstanceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VerifiedAccessGroupArgs =
        com.pulumi.awsnative.ec2.VerifiedAccessGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
            .policyEnabled(policyEnabled?.applyValue({ args0 -> args0 }))
            .sseSpecification(sseSpecification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .verifiedAccessInstanceId(verifiedAccessInstanceId?.applyValue({ args0 -> args0 })).build()
}

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

    private var policyDocument: Output? = null

    private var policyEnabled: Output? = null

    private var sseSpecification: Output? = null

    private var tags: Output>? = null

    private var verifiedAccessInstanceId: Output? = null

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

    /**
     * @param value The AWS Verified Access policy document.
     */
    @JvmName("pjgcxnhkhxtshfnm")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value The status of the Verified Access policy.
     */
    @JvmName("jqbbofgcbdiiiebt")
    public suspend fun policyEnabled(`value`: Output) {
        this.policyEnabled = value
    }

    /**
     * @param value The configuration options for customer provided KMS encryption.
     */
    @JvmName("fqfwfnhlwanuxmau")
    public suspend fun sseSpecification(`value`: Output) {
        this.sseSpecification = value
    }

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

    @JvmName("vhjbvcbjfndaanpy")
    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("mlddtsdjduhecyuv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the AWS Verified Access instance.
     */
    @JvmName("muaryjjjxrhvmebq")
    public suspend fun verifiedAccessInstanceId(`value`: Output) {
        this.verifiedAccessInstanceId = value
    }

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

    /**
     * @param value The AWS Verified Access policy document.
     */
    @JvmName("bxlsalywjfbdyoib")
    public suspend fun policyDocument(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyDocument = mapped
    }

    /**
     * @param value The status of the Verified Access policy.
     */
    @JvmName("gcfxeehytqquyaal")
    public suspend fun policyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyEnabled = mapped
    }

    /**
     * @param value The configuration options for customer provided KMS encryption.
     */
    @JvmName("agtqcsjnfdwlrken")
    public suspend fun sseSpecification(`value`: VerifiedAccessGroupSseSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sseSpecification = mapped
    }

    /**
     * @param argument The configuration options for customer provided KMS encryption.
     */
    @JvmName("xkevyggsyfqwcwtg")
    public suspend fun sseSpecification(argument: suspend VerifiedAccessGroupSseSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = VerifiedAccessGroupSseSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sseSpecification = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("pmmjgxtvoympcxpw")
    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("oifilqxjdysahsny")
    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("dpualpyfyhlkyswm")
    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("xtqygoxeewrjcjqv")
    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("qokvpmanlfxxqhug")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): VerifiedAccessGroupArgs = VerifiedAccessGroupArgs(
        description = description,
        policyDocument = policyDocument,
        policyEnabled = policyEnabled,
        sseSpecification = sseSpecification,
        tags = tags,
        verifiedAccessInstanceId = verifiedAccessInstanceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy