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

com.pulumi.aws.verifiedaccess.kotlin.TrustProviderArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.verifiedaccess.kotlin

import com.pulumi.aws.verifiedaccess.TrustProviderArgs.builder
import com.pulumi.aws.verifiedaccess.kotlin.inputs.TrustProviderDeviceOptionsArgs
import com.pulumi.aws.verifiedaccess.kotlin.inputs.TrustProviderDeviceOptionsArgsBuilder
import com.pulumi.aws.verifiedaccess.kotlin.inputs.TrustProviderOidcOptionsArgs
import com.pulumi.aws.verifiedaccess.kotlin.inputs.TrustProviderOidcOptionsArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource for managing a Verified Access Trust Provider.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.verifiedaccess.TrustProvider("example", {
 *     policyReferenceName: "example",
 *     trustProviderType: "user",
 *     userTrustProviderType: "iam-identity-center",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.verifiedaccess.TrustProvider("example",
 *     policy_reference_name="example",
 *     trust_provider_type="user",
 *     user_trust_provider_type="iam-identity-center")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.VerifiedAccess.TrustProvider("example", new()
 *     {
 *         PolicyReferenceName = "example",
 *         TrustProviderType = "user",
 *         UserTrustProviderType = "iam-identity-center",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedaccess"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := verifiedaccess.NewTrustProvider(ctx, "example", &verifiedaccess.TrustProviderArgs{
 * 			PolicyReferenceName:   pulumi.String("example"),
 * 			TrustProviderType:     pulumi.String("user"),
 * 			UserTrustProviderType: pulumi.String("iam-identity-center"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.verifiedaccess.TrustProvider;
 * import com.pulumi.aws.verifiedaccess.TrustProviderArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new TrustProvider("example", TrustProviderArgs.builder()
 *             .policyReferenceName("example")
 *             .trustProviderType("user")
 *             .userTrustProviderType("iam-identity-center")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:verifiedaccess:TrustProvider
 *     properties:
 *       policyReferenceName: example
 *       trustProviderType: user
 *       userTrustProviderType: iam-identity-center
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import Transfer Workflows using the  `id`. For example:
 * ```sh
 * $ pulumi import aws:verifiedaccess/trustProvider:TrustProvider example vatp-8012925589
 * ```
 * @property description A description for the AWS Verified Access trust provider.
 * @property deviceOptions A block of options for device identity based trust providers.
 * @property deviceTrustProviderType The type of device-based trust provider.
 * @property oidcOptions The OpenID Connect details for an oidc-type, user-identity based trust provider.
 * @property policyReferenceName The identifier to be used when working with policy rules.
 * @property tags Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property trustProviderType The type of trust provider can be either user or device-based.
 * The following arguments are optional:
 * @property userTrustProviderType The type of user-based trust provider.
 */
public data class TrustProviderArgs(
    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 tags: Output>? = null,
    public val trustProviderType: Output? = null,
    public val userTrustProviderType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.verifiedaccess.TrustProviderArgs =
        com.pulumi.aws.verifiedaccess.TrustProviderArgs.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 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trustProviderType(trustProviderType?.applyValue({ args0 -> args0 }))
            .userTrustProviderType(userTrustProviderType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TrustProviderArgs].
 */
@PulumiTagMarker
public class TrustProviderArgsBuilder 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 tags: Output>? = null

    private var trustProviderType: Output? = null

    private var userTrustProviderType: Output? = null

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

    /**
     * @param value A block of options for device identity based trust providers.
     */
    @JvmName("iupfjyhnealbyjwi")
    public suspend fun deviceOptions(`value`: Output) {
        this.deviceOptions = value
    }

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

    /**
     * @param value The OpenID Connect details for an oidc-type, user-identity based trust provider.
     */
    @JvmName("bnylevqnyjwcrxhv")
    public suspend fun oidcOptions(`value`: Output) {
        this.oidcOptions = value
    }

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

    /**
     * @param value Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("donmktxakqipydgy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The type of trust provider can be either user or device-based.
     * The following arguments are optional:
     */
    @JvmName("dgtwnhapajdgbkjn")
    public suspend fun trustProviderType(`value`: Output) {
        this.trustProviderType = value
    }

    /**
     * @param value The type of user-based trust provider.
     */
    @JvmName("dmaccgwswqlbreqp")
    public suspend fun userTrustProviderType(`value`: Output) {
        this.userTrustProviderType = value
    }

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

    /**
     * @param value A block of options for device identity based trust providers.
     */
    @JvmName("mjckyxwhqdoeptms")
    public suspend fun deviceOptions(`value`: TrustProviderDeviceOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceOptions = mapped
    }

    /**
     * @param argument A block of options for device identity based trust providers.
     */
    @JvmName("acgvbmtogunhdimv")
    public suspend fun deviceOptions(argument: suspend TrustProviderDeviceOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TrustProviderDeviceOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.deviceOptions = mapped
    }

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

    /**
     * @param value The OpenID Connect details for an oidc-type, user-identity based trust provider.
     */
    @JvmName("dgwglivrqgfctdab")
    public suspend fun oidcOptions(`value`: TrustProviderOidcOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oidcOptions = mapped
    }

    /**
     * @param argument The OpenID Connect details for an oidc-type, user-identity based trust provider.
     */
    @JvmName("klvenumwrgboguoi")
    public suspend fun oidcOptions(argument: suspend TrustProviderOidcOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TrustProviderOidcOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.oidcOptions = mapped
    }

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

    /**
     * @param value Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("qgqkgdjbvcgygueg")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("vpktbgmkfsdateyf")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of trust provider can be either user or device-based.
     * The following arguments are optional:
     */
    @JvmName("eyjkkcjixhcqipgq")
    public suspend fun trustProviderType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustProviderType = mapped
    }

    /**
     * @param value The type of user-based trust provider.
     */
    @JvmName("cucoispmyyevyhnl")
    public suspend fun userTrustProviderType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userTrustProviderType = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy