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

com.pulumi.awsnative.ec2.kotlin.VerifiedAccessTrustProviderArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.VerifiedAccessTrustProviderArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.SseSpecificationPropertiesArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.SseSpecificationPropertiesArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessTrustProviderDeviceOptionsArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessTrustProviderDeviceOptionsArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessTrustProviderOidcOptionsArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VerifiedAccessTrustProviderOidcOptionsArgsBuilder
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

/**
 * The AWS::EC2::VerifiedAccessTrustProvider type describes a verified access trust provider
 * @property description A description for the Amazon Web Services Verified Access trust provider.
 * @property deviceOptions The options for device-identity trust provider.
 * @property deviceTrustProviderType The type of device-based trust provider. Possible values: jamf|crowdstrike
 * @property oidcOptions The options for an OpenID Connect-compatible user-identity trust provider.
 * @property policyReferenceName The identifier to be used when working with policy rules.
 * @property sseSpecification The configuration options for customer provided KMS encryption.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property trustProviderType Type of trust provider. Possible values: user|device
 * @property userTrustProviderType The type of device-based trust provider. Possible values: oidc|iam-identity-center
 */
public data class VerifiedAccessTrustProviderArgs(
    public val description: Output? = null,
    public val deviceOptions: Output? = null,
    public val deviceTrustProviderType: Output? = null,
    public val oidcOptions: Output? = null,
    public val policyReferenceName: Output? = null,
    public val sseSpecification: Output? = null,
    public val tags: Output>? = null,
    public val trustProviderType: Output? = null,
    public val userTrustProviderType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VerifiedAccessTrustProviderArgs =
        com.pulumi.awsnative.ec2.VerifiedAccessTrustProviderArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .deviceOptions(deviceOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deviceTrustProviderType(deviceTrustProviderType?.applyValue({ args0 -> args0 }))
            .oidcOptions(oidcOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .policyReferenceName(policyReferenceName?.applyValue({ args0 -> args0 }))
            .sseSpecification(sseSpecification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .trustProviderType(trustProviderType?.applyValue({ args0 -> args0 }))
            .userTrustProviderType(userTrustProviderType?.applyValue({ args0 -> args0 })).build()
}

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

    private var deviceOptions: Output? = null

    private var deviceTrustProviderType: Output? = null

    private var oidcOptions: Output? = null

    private var policyReferenceName: Output? = null

    private var sseSpecification: Output? = null

    private var tags: Output>? = null

    private var trustProviderType: Output? = null

    private var userTrustProviderType: Output? = null

    /**
     * @param value A description for the Amazon Web Services Verified Access trust provider.
     */
    @JvmName("cxfbrblasjhflqih")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The options for device-identity trust provider.
     */
    @JvmName("jbbdehwsjjfmwxda")
    public suspend fun deviceOptions(`value`: Output) {
        this.deviceOptions = value
    }

    /**
     * @param value The type of device-based trust provider. Possible values: jamf|crowdstrike
     */
    @JvmName("fwvmsgykpsslpcae")
    public suspend fun deviceTrustProviderType(`value`: Output) {
        this.deviceTrustProviderType = value
    }

    /**
     * @param value The options for an OpenID Connect-compatible user-identity trust provider.
     */
    @JvmName("owttnohbdllepdak")
    public suspend fun oidcOptions(`value`: Output) {
        this.oidcOptions = value
    }

    /**
     * @param value The identifier to be used when working with policy rules.
     */
    @JvmName("brksbfymmkdnulku")
    public suspend fun policyReferenceName(`value`: Output) {
        this.policyReferenceName = value
    }

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

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

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

    /**
     * @param value Type of trust provider. Possible values: user|device
     */
    @JvmName("ejwbklmamwmunwie")
    public suspend fun trustProviderType(`value`: Output) {
        this.trustProviderType = value
    }

    /**
     * @param value The type of device-based trust provider. Possible values: oidc|iam-identity-center
     */
    @JvmName("yietytswdiieydwh")
    public suspend fun userTrustProviderType(`value`: Output) {
        this.userTrustProviderType = value
    }

    /**
     * @param value A description for the Amazon Web Services Verified Access trust provider.
     */
    @JvmName("fuyjqxrvpwftpifx")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The options for device-identity trust provider.
     */
    @JvmName("lgmtvwstfxukwqca")
    public suspend fun deviceOptions(`value`: VerifiedAccessTrustProviderDeviceOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceOptions = mapped
    }

    /**
     * @param argument The options for device-identity trust provider.
     */
    @JvmName("yfsfjdtpwelmtkvi")
    public suspend fun deviceOptions(argument: suspend VerifiedAccessTrustProviderDeviceOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = VerifiedAccessTrustProviderDeviceOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.deviceOptions = mapped
    }

    /**
     * @param value The type of device-based trust provider. Possible values: jamf|crowdstrike
     */
    @JvmName("olfkaahxveqqlkgh")
    public suspend fun deviceTrustProviderType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceTrustProviderType = mapped
    }

    /**
     * @param value The options for an OpenID Connect-compatible user-identity trust provider.
     */
    @JvmName("hceofdbulwmecsjb")
    public suspend fun oidcOptions(`value`: VerifiedAccessTrustProviderOidcOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oidcOptions = mapped
    }

    /**
     * @param argument The options for an OpenID Connect-compatible user-identity trust provider.
     */
    @JvmName("hdldvoajdryjrsxr")
    public suspend fun oidcOptions(argument: suspend VerifiedAccessTrustProviderOidcOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = VerifiedAccessTrustProviderOidcOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.oidcOptions = mapped
    }

    /**
     * @param value The identifier to be used when working with policy rules.
     */
    @JvmName("hgmbtcixylgvmvwn")
    public suspend fun policyReferenceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyReferenceName = mapped
    }

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

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

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

    /**
     * @param value Type of trust provider. Possible values: user|device
     */
    @JvmName("ywipvbgjejcnawif")
    public suspend fun trustProviderType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustProviderType = mapped
    }

    /**
     * @param value The type of device-based trust provider. Possible values: oidc|iam-identity-center
     */
    @JvmName("voqokectvdygoksr")
    public suspend fun userTrustProviderType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userTrustProviderType = mapped
    }

    internal fun build(): VerifiedAccessTrustProviderArgs = VerifiedAccessTrustProviderArgs(
        description = description,
        deviceOptions = deviceOptions,
        deviceTrustProviderType = deviceTrustProviderType,
        oidcOptions = oidcOptions,
        policyReferenceName = policyReferenceName,
        sseSpecification = sseSpecification,
        tags = tags,
        trustProviderType = trustProviderType,
        userTrustProviderType = userTrustProviderType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy