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

com.pulumi.awsnative.ec2.kotlin.VerifiedAccessGroup.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.kotlin.outputs.VerifiedAccessGroupSseSpecification
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.ec2.kotlin.outputs.VerifiedAccessGroupSseSpecification.Companion.toKotlin as verifiedAccessGroupSseSpecificationToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin

/**
 * Builder for [VerifiedAccessGroup].
 */
@PulumiTagMarker
public class VerifiedAccessGroupResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: VerifiedAccessGroupArgs = VerifiedAccessGroupArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend VerifiedAccessGroupArgsBuilder.() -> Unit) {
        val builder = VerifiedAccessGroupArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): VerifiedAccessGroup {
        val builtJavaResource = com.pulumi.awsnative.ec2.VerifiedAccessGroup(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return VerifiedAccessGroup(builtJavaResource)
    }
}

/**
 * The AWS::EC2::VerifiedAccessGroup resource creates an AWS EC2 Verified Access Group.
 */
public class VerifiedAccessGroup internal constructor(
    override val javaResource: com.pulumi.awsnative.ec2.VerifiedAccessGroup,
) : KotlinCustomResource(javaResource, VerifiedAccessGroupMapper) {
    /**
     * Time this Verified Access Group was created.
     */
    public val creationTime: Output
        get() = javaResource.creationTime().applyValue({ args0 -> args0 })

    /**
     * A description for the AWS Verified Access group.
     */
    public val description: Output?
        get() = javaResource.description().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Time this Verified Access Group was last updated.
     */
    public val lastUpdatedTime: Output
        get() = javaResource.lastUpdatedTime().applyValue({ args0 -> args0 })

    /**
     * The AWS account number that owns the group.
     */
    public val owner: Output
        get() = javaResource.owner().applyValue({ args0 -> args0 })

    /**
     * The AWS Verified Access policy document.
     */
    public val policyDocument: Output?
        get() = javaResource.policyDocument().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The status of the Verified Access policy.
     */
    public val policyEnabled: Output?
        get() = javaResource.policyEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The configuration options for customer provided KMS encryption.
     */
    public val sseSpecification: Output?
        get() = javaResource.sseSpecification().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> verifiedAccessGroupSseSpecificationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * An array of key-value pairs to apply to this resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })

    /**
     * The ARN of the Verified Access group.
     */
    public val verifiedAccessGroupArn: Output
        get() = javaResource.verifiedAccessGroupArn().applyValue({ args0 -> args0 })

    /**
     * The ID of the AWS Verified Access group.
     */
    public val verifiedAccessGroupId: Output
        get() = javaResource.verifiedAccessGroupId().applyValue({ args0 -> args0 })

    /**
     * The ID of the AWS Verified Access instance.
     */
    public val verifiedAccessInstanceId: Output
        get() = javaResource.verifiedAccessInstanceId().applyValue({ args0 -> args0 })
}

public object VerifiedAccessGroupMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.ec2.VerifiedAccessGroup::class == javaResource::class

    override fun map(javaResource: Resource): VerifiedAccessGroup = VerifiedAccessGroup(
        javaResource
            as com.pulumi.awsnative.ec2.VerifiedAccessGroup,
    )
}

/**
 * @see [VerifiedAccessGroup].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [VerifiedAccessGroup].
 */
public suspend fun verifiedAccessGroup(
    name: String,
    block: suspend VerifiedAccessGroupResourceBuilder.() -> Unit,
): VerifiedAccessGroup {
    val builder = VerifiedAccessGroupResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [VerifiedAccessGroup].
 * @param name The _unique_ name of the resulting resource.
 */
public fun verifiedAccessGroup(name: String): VerifiedAccessGroup {
    val builder = VerifiedAccessGroupResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy