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

com.pulumi.aws.verifiedaccess.kotlin.GroupArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.verifiedaccess.kotlin

import com.pulumi.aws.verifiedaccess.GroupArgs.builder
import com.pulumi.aws.verifiedaccess.kotlin.inputs.GroupSseConfigurationArgs
import com.pulumi.aws.verifiedaccess.kotlin.inputs.GroupSseConfigurationArgsBuilder
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 Group.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.verifiedaccess.Group("example", {verifiedaccessInstanceId: exampleAwsVerifiedaccessInstance.id});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.verifiedaccess.Group("example", verifiedaccess_instance_id=example_aws_verifiedaccess_instance["id"])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.VerifiedAccess.Group("example", new()
 *     {
 *         VerifiedaccessInstanceId = exampleAwsVerifiedaccessInstance.Id,
 *     });
 * });
 * ```
 * ```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.NewGroup(ctx, "example", &verifiedaccess.GroupArgs{
 * 			VerifiedaccessInstanceId: pulumi.Any(exampleAwsVerifiedaccessInstance.Id),
 * 		})
 * 		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.Group;
 * import com.pulumi.aws.verifiedaccess.GroupArgs;
 * 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 Group("example", GroupArgs.builder()
 *             .verifiedaccessInstanceId(exampleAwsVerifiedaccessInstance.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:verifiedaccess:Group
 *     properties:
 *       verifiedaccessInstanceId: ${exampleAwsVerifiedaccessInstance.id}
 * ```
 * 
 * ### Usage with KMS Key
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const testKey = new aws.kms.Key("test_key", {description: "KMS key for Verified Access Group test"});
 * const test = new aws.verifiedaccess.Group("test", {
 *     verifiedaccessInstanceId: testAwsVerifiedaccessInstanceTrustProviderAttachment.verifiedaccessInstanceId,
 *     sseConfiguration: {
 *         kmsKeyArn: testKey.arn,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * test_key = aws.kms.Key("test_key", description="KMS key for Verified Access Group test")
 * test = aws.verifiedaccess.Group("test",
 *     verifiedaccess_instance_id=test_aws_verifiedaccess_instance_trust_provider_attachment["verifiedaccessInstanceId"],
 *     sse_configuration={
 *         "kms_key_arn": test_key.arn,
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var testKey = new Aws.Kms.Key("test_key", new()
 *     {
 *         Description = "KMS key for Verified Access Group test",
 *     });
 *     var test = new Aws.VerifiedAccess.Group("test", new()
 *     {
 *         VerifiedaccessInstanceId = testAwsVerifiedaccessInstanceTrustProviderAttachment.VerifiedaccessInstanceId,
 *         SseConfiguration = new Aws.VerifiedAccess.Inputs.GroupSseConfigurationArgs
 *         {
 *             KmsKeyArn = testKey.Arn,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
 * 	"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 {
 * 		testKey, err := kms.NewKey(ctx, "test_key", &kms.KeyArgs{
 * 			Description: pulumi.String("KMS key for Verified Access Group test"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = verifiedaccess.NewGroup(ctx, "test", &verifiedaccess.GroupArgs{
 * 			VerifiedaccessInstanceId: pulumi.Any(testAwsVerifiedaccessInstanceTrustProviderAttachment.VerifiedaccessInstanceId),
 * 			SseConfiguration: &verifiedaccess.GroupSseConfigurationArgs{
 * 				KmsKeyArn: testKey.Arn,
 * 			},
 * 		})
 * 		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.kms.Key;
 * import com.pulumi.aws.kms.KeyArgs;
 * import com.pulumi.aws.verifiedaccess.Group;
 * import com.pulumi.aws.verifiedaccess.GroupArgs;
 * import com.pulumi.aws.verifiedaccess.inputs.GroupSseConfigurationArgs;
 * 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 testKey = new Key("testKey", KeyArgs.builder()
 *             .description("KMS key for Verified Access Group test")
 *             .build());
 *         var test = new Group("test", GroupArgs.builder()
 *             .verifiedaccessInstanceId(testAwsVerifiedaccessInstanceTrustProviderAttachment.verifiedaccessInstanceId())
 *             .sseConfiguration(GroupSseConfigurationArgs.builder()
 *                 .kmsKeyArn(testKey.arn())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   testKey:
 *     type: aws:kms:Key
 *     name: test_key
 *     properties:
 *       description: KMS key for Verified Access Group test
 *   test:
 *     type: aws:verifiedaccess:Group
 *     properties:
 *       verifiedaccessInstanceId: ${testAwsVerifiedaccessInstanceTrustProviderAttachment.verifiedaccessInstanceId}
 *       sseConfiguration:
 *         kmsKeyArn: ${testKey.arn}
 * ```
 * 
 * @property description Description of the verified access group.
 * @property policyDocument The policy document that is associated with this resource.
 * @property sseConfiguration Configuration block to use KMS keys for server-side encryption.
 * @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 verifiedaccessInstanceId The id of the verified access instance this group is associated with.
 * The following arguments are optional:
 */
public data class GroupArgs(
    public val description: Output? = null,
    public val policyDocument: Output? = null,
    public val sseConfiguration: Output? = null,
    public val tags: Output>? = null,
    public val verifiedaccessInstanceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.verifiedaccess.GroupArgs =
        com.pulumi.aws.verifiedaccess.GroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
            .sseConfiguration(sseConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .verifiedaccessInstanceId(verifiedaccessInstanceId?.applyValue({ args0 -> args0 })).build()
}

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

    private var policyDocument: Output? = null

    private var sseConfiguration: Output? = null

    private var tags: Output>? = null

    private var verifiedaccessInstanceId: Output? = null

    /**
     * @param value Description of the verified access group.
     */
    @JvmName("uxwyoxrbsruelbgw")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The policy document that is associated with this resource.
     */
    @JvmName("bywuoaaegomoycci")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value Configuration block to use KMS keys for server-side encryption.
     */
    @JvmName("ynmfhnuvrgxovcgq")
    public suspend fun sseConfiguration(`value`: Output) {
        this.sseConfiguration = 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("chllfiqutepirjuo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The id of the verified access instance this group is associated with.
     * The following arguments are optional:
     */
    @JvmName("acwnlbefnvojemvv")
    public suspend fun verifiedaccessInstanceId(`value`: Output) {
        this.verifiedaccessInstanceId = value
    }

    /**
     * @param value Description of the verified access group.
     */
    @JvmName("vvkjgtcgrfxmbmxj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The policy document that is associated with this resource.
     */
    @JvmName("lrtdsnwkpvmcmupi")
    public suspend fun policyDocument(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyDocument = mapped
    }

    /**
     * @param value Configuration block to use KMS keys for server-side encryption.
     */
    @JvmName("kbrybwxmnphvrgcj")
    public suspend fun sseConfiguration(`value`: GroupSseConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sseConfiguration = mapped
    }

    /**
     * @param argument Configuration block to use KMS keys for server-side encryption.
     */
    @JvmName("fnsmgrltrmjdijho")
    public suspend fun sseConfiguration(argument: suspend GroupSseConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = GroupSseConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sseConfiguration = 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("kmjpuoqqhvjvcmhl")
    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("uywhjkjeeemclxwe")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The id of the verified access instance this group is associated with.
     * The following arguments are optional:
     */
    @JvmName("cuqmxksmylcisljf")
    public suspend fun verifiedaccessInstanceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifiedaccessInstanceId = mapped
    }

    internal fun build(): GroupArgs = GroupArgs(
        description = description,
        policyDocument = policyDocument,
        sseConfiguration = sseConfiguration,
        tags = tags,
        verifiedaccessInstanceId = verifiedaccessInstanceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy