com.pulumi.aws.verifiedaccess.kotlin.GroupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy