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

com.pulumi.gcp.container.kotlin.AwsCluster.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterAuthorization
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterBinaryAuthorization
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterControlPlane
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterFleet
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterLoggingConfig
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterNetworking
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterWorkloadIdentityConfig
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.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterAuthorization.Companion.toKotlin as awsClusterAuthorizationToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterBinaryAuthorization.Companion.toKotlin as awsClusterBinaryAuthorizationToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterControlPlane.Companion.toKotlin as awsClusterControlPlaneToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterFleet.Companion.toKotlin as awsClusterFleetToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterLoggingConfig.Companion.toKotlin as awsClusterLoggingConfigToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterNetworking.Companion.toKotlin as awsClusterNetworkingToKotlin
import com.pulumi.gcp.container.kotlin.outputs.AwsClusterWorkloadIdentityConfig.Companion.toKotlin as awsClusterWorkloadIdentityConfigToKotlin

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

    public var args: AwsClusterArgs = AwsClusterArgs()

    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 AwsClusterArgsBuilder.() -> Unit) {
        val builder = AwsClusterArgsBuilder()
        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(): AwsCluster {
        val builtJavaResource = com.pulumi.gcp.container.AwsCluster(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return AwsCluster(builtJavaResource)
    }
}

/**
 * An Anthos cluster running on AWS.
 * For more information, see:
 * * [Multicloud overview](https://cloud.google.com/anthos/clusters/docs/multi-cloud)
 * ## Example Usage
 * ### Basic_aws_cluster
 * A basic example of a containeraws cluster
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const versions = gcp.container.getAwsVersions({
 *     project: "my-project-name",
 *     location: "us-west1",
 * });
 * const primary = new gcp.container.AwsCluster("primary", {
 *     authorization: {
 *         adminUsers: [{
 *             username: "[email protected]",
 *         }],
 *         adminGroups: [{
 *             group: "[email protected]",
 *         }],
 *     },
 *     awsRegion: "my-aws-region",
 *     controlPlane: {
 *         awsServicesAuthentication: {
 *             roleArn: "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             roleSessionName: "my--1p-dev-session",
 *         },
 *         configEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         databaseEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         iamInstanceProfile: "my--1p-dev-controlplane",
 *         subnetIds: ["subnet-00000000000000000"],
 *         version: versions.then(versions => versions.validVersions?.[0]),
 *         instanceType: "t3.medium",
 *         mainVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "GP3",
 *         },
 *         proxyConfig: {
 *             secretArn: "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secretVersion: "12345678-ABCD-EFGH-IJKL-987654321098",
 *         },
 *         rootVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "GP3",
 *         },
 *         securityGroupIds: ["sg-00000000000000000"],
 *         sshConfig: {
 *             ec2KeyPair: "my--1p-dev-ssh",
 *         },
 *         tags: {
 *             owner: "[email protected]",
 *         },
 *     },
 *     fleet: {
 *         project: "my-project-number",
 *     },
 *     location: "us-west1",
 *     name: "name",
 *     networking: {
 *         podAddressCidrBlocks: ["10.2.0.0/16"],
 *         serviceAddressCidrBlocks: ["10.1.0.0/16"],
 *         vpcId: "vpc-00000000000000000",
 *     },
 *     annotations: {
 *         "label-one": "value-one",
 *     },
 *     description: "A sample aws cluster",
 *     project: "my-project-name",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * versions = gcp.container.get_aws_versions(project="my-project-name",
 *     location="us-west1")
 * primary = gcp.container.AwsCluster("primary",
 *     authorization=gcp.container.AwsClusterAuthorizationArgs(
 *         admin_users=[gcp.container.AwsClusterAuthorizationAdminUserArgs(
 *             username="[email protected]",
 *         )],
 *         admin_groups=[gcp.container.AwsClusterAuthorizationAdminGroupArgs(
 *             group="[email protected]",
 *         )],
 *     ),
 *     aws_region="my-aws-region",
 *     control_plane=gcp.container.AwsClusterControlPlaneArgs(
 *         aws_services_authentication=gcp.container.AwsClusterControlPlaneAwsServicesAuthenticationArgs(
 *             role_arn="arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             role_session_name="my--1p-dev-session",
 *         ),
 *         config_encryption=gcp.container.AwsClusterControlPlaneConfigEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         database_encryption=gcp.container.AwsClusterControlPlaneDatabaseEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         iam_instance_profile="my--1p-dev-controlplane",
 *         subnet_ids=["subnet-00000000000000000"],
 *         version=versions.valid_versions[0],
 *         instance_type="t3.medium",
 *         main_volume=gcp.container.AwsClusterControlPlaneMainVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="GP3",
 *         ),
 *         proxy_config=gcp.container.AwsClusterControlPlaneProxyConfigArgs(
 *             secret_arn="arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secret_version="12345678-ABCD-EFGH-IJKL-987654321098",
 *         ),
 *         root_volume=gcp.container.AwsClusterControlPlaneRootVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="GP3",
 *         ),
 *         security_group_ids=["sg-00000000000000000"],
 *         ssh_config=gcp.container.AwsClusterControlPlaneSshConfigArgs(
 *             ec2_key_pair="my--1p-dev-ssh",
 *         ),
 *         tags={
 *             "owner": "[email protected]",
 *         },
 *     ),
 *     fleet=gcp.container.AwsClusterFleetArgs(
 *         project="my-project-number",
 *     ),
 *     location="us-west1",
 *     name="name",
 *     networking=gcp.container.AwsClusterNetworkingArgs(
 *         pod_address_cidr_blocks=["10.2.0.0/16"],
 *         service_address_cidr_blocks=["10.1.0.0/16"],
 *         vpc_id="vpc-00000000000000000",
 *     ),
 *     annotations={
 *         "label-one": "value-one",
 *     },
 *     description="A sample aws cluster",
 *     project="my-project-name")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var versions = Gcp.Container.GetAwsVersions.Invoke(new()
 *     {
 *         Project = "my-project-name",
 *         Location = "us-west1",
 *     });
 *     var primary = new Gcp.Container.AwsCluster("primary", new()
 *     {
 *         Authorization = new Gcp.Container.Inputs.AwsClusterAuthorizationArgs
 *         {
 *             AdminUsers = new[]
 *             {
 *                 new Gcp.Container.Inputs.AwsClusterAuthorizationAdminUserArgs
 *                 {
 *                     Username = "[email protected]",
 *                 },
 *             },
 *             AdminGroups = new[]
 *             {
 *                 new Gcp.Container.Inputs.AwsClusterAuthorizationAdminGroupArgs
 *                 {
 *                     Group = "[email protected]",
 *                 },
 *             },
 *         },
 *         AwsRegion = "my-aws-region",
 *         ControlPlane = new Gcp.Container.Inputs.AwsClusterControlPlaneArgs
 *         {
 *             AwsServicesAuthentication = new Gcp.Container.Inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs
 *             {
 *                 RoleArn = "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *                 RoleSessionName = "my--1p-dev-session",
 *             },
 *             ConfigEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneConfigEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             DatabaseEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneDatabaseEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             IamInstanceProfile = "my--1p-dev-controlplane",
 *             SubnetIds = new[]
 *             {
 *                 "subnet-00000000000000000",
 *             },
 *             Version = versions.Apply(getAwsVersionsResult => getAwsVersionsResult.ValidVersions[0]),
 *             InstanceType = "t3.medium",
 *             MainVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneMainVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "GP3",
 *             },
 *             ProxyConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneProxyConfigArgs
 *             {
 *                 SecretArn = "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *                 SecretVersion = "12345678-ABCD-EFGH-IJKL-987654321098",
 *             },
 *             RootVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneRootVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "GP3",
 *             },
 *             SecurityGroupIds = new[]
 *             {
 *                 "sg-00000000000000000",
 *             },
 *             SshConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneSshConfigArgs
 *             {
 *                 Ec2KeyPair = "my--1p-dev-ssh",
 *             },
 *             Tags =
 *             {
 *                 { "owner", "[email protected]" },
 *             },
 *         },
 *         Fleet = new Gcp.Container.Inputs.AwsClusterFleetArgs
 *         {
 *             Project = "my-project-number",
 *         },
 *         Location = "us-west1",
 *         Name = "name",
 *         Networking = new Gcp.Container.Inputs.AwsClusterNetworkingArgs
 *         {
 *             PodAddressCidrBlocks = new[]
 *             {
 *                 "10.2.0.0/16",
 *             },
 *             ServiceAddressCidrBlocks = new[]
 *             {
 *                 "10.1.0.0/16",
 *             },
 *             VpcId = "vpc-00000000000000000",
 *         },
 *         Annotations =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *         Description = "A sample aws cluster",
 *         Project = "my-project-name",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		versions, err := container.GetAwsVersions(ctx, &container.GetAwsVersionsArgs{
 * 			Project:  pulumi.StringRef("my-project-name"),
 * 			Location: pulumi.StringRef("us-west1"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = container.NewAwsCluster(ctx, "primary", &container.AwsClusterArgs{
 * 			Authorization: &container.AwsClusterAuthorizationArgs{
 * 				AdminUsers: container.AwsClusterAuthorizationAdminUserArray{
 * 					&container.AwsClusterAuthorizationAdminUserArgs{
 * 						Username: pulumi.String("[email protected]"),
 * 					},
 * 				},
 * 				AdminGroups: container.AwsClusterAuthorizationAdminGroupArray{
 * 					&container.AwsClusterAuthorizationAdminGroupArgs{
 * 						Group: pulumi.String("[email protected]"),
 * 					},
 * 				},
 * 			},
 * 			AwsRegion: pulumi.String("my-aws-region"),
 * 			ControlPlane: &container.AwsClusterControlPlaneArgs{
 * 				AwsServicesAuthentication: &container.AwsClusterControlPlaneAwsServicesAuthenticationArgs{
 * 					RoleArn:         pulumi.String("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform"),
 * 					RoleSessionName: pulumi.String("my--1p-dev-session"),
 * 				},
 * 				ConfigEncryption: &container.AwsClusterControlPlaneConfigEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				DatabaseEncryption: &container.AwsClusterControlPlaneDatabaseEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				IamInstanceProfile: pulumi.String("my--1p-dev-controlplane"),
 * 				SubnetIds: pulumi.StringArray{
 * 					pulumi.String("subnet-00000000000000000"),
 * 				},
 * 				Version:      pulumi.String(versions.ValidVersions[0]),
 * 				InstanceType: pulumi.String("t3.medium"),
 * 				MainVolume: &container.AwsClusterControlPlaneMainVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("GP3"),
 * 				},
 * 				ProxyConfig: &container.AwsClusterControlPlaneProxyConfigArgs{
 * 					SecretArn:     pulumi.String("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF"),
 * 					SecretVersion: pulumi.String("12345678-ABCD-EFGH-IJKL-987654321098"),
 * 				},
 * 				RootVolume: &container.AwsClusterControlPlaneRootVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("GP3"),
 * 				},
 * 				SecurityGroupIds: pulumi.StringArray{
 * 					pulumi.String("sg-00000000000000000"),
 * 				},
 * 				SshConfig: &container.AwsClusterControlPlaneSshConfigArgs{
 * 					Ec2KeyPair: pulumi.String("my--1p-dev-ssh"),
 * 				},
 * 				Tags: pulumi.StringMap{
 * 					"owner": pulumi.String("[email protected]"),
 * 				},
 * 			},
 * 			Fleet: &container.AwsClusterFleetArgs{
 * 				Project: pulumi.String("my-project-number"),
 * 			},
 * 			Location: pulumi.String("us-west1"),
 * 			Name:     pulumi.String("name"),
 * 			Networking: &container.AwsClusterNetworkingArgs{
 * 				PodAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.2.0.0/16"),
 * 				},
 * 				ServiceAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.1.0.0/16"),
 * 				},
 * 				VpcId: pulumi.String("vpc-00000000000000000"),
 * 			},
 * 			Annotations: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 			Description: pulumi.String("A sample aws cluster"),
 * 			Project:     pulumi.String("my-project-name"),
 * 		})
 * 		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.gcp.container.ContainerFunctions;
 * import com.pulumi.gcp.container.inputs.GetAwsVersionsArgs;
 * import com.pulumi.gcp.container.AwsCluster;
 * import com.pulumi.gcp.container.AwsClusterArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterAuthorizationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneConfigEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneDatabaseEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneMainVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneProxyConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneRootVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneSshConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterFleetArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterNetworkingArgs;
 * 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) {
 *         final var versions = ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
 *             .project("my-project-name")
 *             .location("us-west1")
 *             .build());
 *         var primary = new AwsCluster("primary", AwsClusterArgs.builder()
 *             .authorization(AwsClusterAuthorizationArgs.builder()
 *                 .adminUsers(AwsClusterAuthorizationAdminUserArgs.builder()
 *                     .username("[email protected]")
 *                     .build())
 *                 .adminGroups(AwsClusterAuthorizationAdminGroupArgs.builder()
 *                     .group("[email protected]")
 *                     .build())
 *                 .build())
 *             .awsRegion("my-aws-region")
 *             .controlPlane(AwsClusterControlPlaneArgs.builder()
 *                 .awsServicesAuthentication(AwsClusterControlPlaneAwsServicesAuthenticationArgs.builder()
 *                     .roleArn("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform")
 *                     .roleSessionName("my--1p-dev-session")
 *                     .build())
 *                 .configEncryption(AwsClusterControlPlaneConfigEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .databaseEncryption(AwsClusterControlPlaneDatabaseEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .iamInstanceProfile("my--1p-dev-controlplane")
 *                 .subnetIds("subnet-00000000000000000")
 *                 .version(versions.applyValue(getAwsVersionsResult -> getAwsVersionsResult.validVersions()[0]))
 *                 .instanceType("t3.medium")
 *                 .mainVolume(AwsClusterControlPlaneMainVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("GP3")
 *                     .build())
 *                 .proxyConfig(AwsClusterControlPlaneProxyConfigArgs.builder()
 *                     .secretArn("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF")
 *                     .secretVersion("12345678-ABCD-EFGH-IJKL-987654321098")
 *                     .build())
 *                 .rootVolume(AwsClusterControlPlaneRootVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("GP3")
 *                     .build())
 *                 .securityGroupIds("sg-00000000000000000")
 *                 .sshConfig(AwsClusterControlPlaneSshConfigArgs.builder()
 *                     .ec2KeyPair("my--1p-dev-ssh")
 *                     .build())
 *                 .tags(Map.of("owner", "[email protected]"))
 *                 .build())
 *             .fleet(AwsClusterFleetArgs.builder()
 *                 .project("my-project-number")
 *                 .build())
 *             .location("us-west1")
 *             .name("name")
 *             .networking(AwsClusterNetworkingArgs.builder()
 *                 .podAddressCidrBlocks("10.2.0.0/16")
 *                 .serviceAddressCidrBlocks("10.1.0.0/16")
 *                 .vpcId("vpc-00000000000000000")
 *                 .build())
 *             .annotations(Map.of("label-one", "value-one"))
 *             .description("A sample aws cluster")
 *             .project("my-project-name")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:container:AwsCluster
 *     properties:
 *       authorization:
 *         adminUsers:
 *           - username: [email protected]
 *         adminGroups:
 *           - group: [email protected]
 *       awsRegion: my-aws-region
 *       controlPlane:
 *         awsServicesAuthentication:
 *           roleArn: arn:aws:iam::012345678910:role/my--1p-dev-oneplatform
 *           roleSessionName: my--1p-dev-session
 *         configEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         databaseEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         iamInstanceProfile: my--1p-dev-controlplane
 *         subnetIds:
 *           - subnet-00000000000000000
 *         version: ${versions.validVersions[0]}
 *         instanceType: t3.medium
 *         mainVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: GP3
 *         proxyConfig:
 *           secretArn: arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF
 *           secretVersion: 12345678-ABCD-EFGH-IJKL-987654321098
 *         rootVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: GP3
 *         securityGroupIds:
 *           - sg-00000000000000000
 *         sshConfig:
 *           ec2KeyPair: my--1p-dev-ssh
 *         tags:
 *           owner: [email protected]
 *       fleet:
 *         project: my-project-number
 *       location: us-west1
 *       name: name
 *       networking:
 *         podAddressCidrBlocks:
 *           - 10.2.0.0/16
 *         serviceAddressCidrBlocks:
 *           - 10.1.0.0/16
 *         vpcId: vpc-00000000000000000
 *       annotations:
 *         label-one: value-one
 *       description: A sample aws cluster
 *       project: my-project-name
 * variables:
 *   versions:
 *     fn::invoke:
 *       Function: gcp:container:getAwsVersions
 *       Arguments:
 *         project: my-project-name
 *         location: us-west1
 * ```
 * 
 * ### Basic_enum_aws_cluster
 * A basic example of a containeraws cluster with lowercase enums
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const versions = gcp.container.getAwsVersions({
 *     project: "my-project-name",
 *     location: "us-west1",
 * });
 * const primary = new gcp.container.AwsCluster("primary", {
 *     authorization: {
 *         adminUsers: [{
 *             username: "[email protected]",
 *         }],
 *     },
 *     awsRegion: "my-aws-region",
 *     controlPlane: {
 *         awsServicesAuthentication: {
 *             roleArn: "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             roleSessionName: "my--1p-dev-session",
 *         },
 *         configEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         databaseEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         iamInstanceProfile: "my--1p-dev-controlplane",
 *         subnetIds: ["subnet-00000000000000000"],
 *         version: versions.then(versions => versions.validVersions?.[0]),
 *         instanceType: "t3.medium",
 *         mainVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "gp3",
 *         },
 *         proxyConfig: {
 *             secretArn: "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secretVersion: "12345678-ABCD-EFGH-IJKL-987654321098",
 *         },
 *         rootVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "gp3",
 *         },
 *         securityGroupIds: ["sg-00000000000000000"],
 *         sshConfig: {
 *             ec2KeyPair: "my--1p-dev-ssh",
 *         },
 *         tags: {
 *             owner: "[email protected]",
 *         },
 *     },
 *     fleet: {
 *         project: "my-project-number",
 *     },
 *     location: "us-west1",
 *     name: "name",
 *     networking: {
 *         podAddressCidrBlocks: ["10.2.0.0/16"],
 *         serviceAddressCidrBlocks: ["10.1.0.0/16"],
 *         vpcId: "vpc-00000000000000000",
 *     },
 *     annotations: {
 *         "label-one": "value-one",
 *     },
 *     description: "A sample aws cluster",
 *     project: "my-project-name",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * versions = gcp.container.get_aws_versions(project="my-project-name",
 *     location="us-west1")
 * primary = gcp.container.AwsCluster("primary",
 *     authorization=gcp.container.AwsClusterAuthorizationArgs(
 *         admin_users=[gcp.container.AwsClusterAuthorizationAdminUserArgs(
 *             username="[email protected]",
 *         )],
 *     ),
 *     aws_region="my-aws-region",
 *     control_plane=gcp.container.AwsClusterControlPlaneArgs(
 *         aws_services_authentication=gcp.container.AwsClusterControlPlaneAwsServicesAuthenticationArgs(
 *             role_arn="arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             role_session_name="my--1p-dev-session",
 *         ),
 *         config_encryption=gcp.container.AwsClusterControlPlaneConfigEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         database_encryption=gcp.container.AwsClusterControlPlaneDatabaseEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         iam_instance_profile="my--1p-dev-controlplane",
 *         subnet_ids=["subnet-00000000000000000"],
 *         version=versions.valid_versions[0],
 *         instance_type="t3.medium",
 *         main_volume=gcp.container.AwsClusterControlPlaneMainVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="gp3",
 *         ),
 *         proxy_config=gcp.container.AwsClusterControlPlaneProxyConfigArgs(
 *             secret_arn="arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secret_version="12345678-ABCD-EFGH-IJKL-987654321098",
 *         ),
 *         root_volume=gcp.container.AwsClusterControlPlaneRootVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="gp3",
 *         ),
 *         security_group_ids=["sg-00000000000000000"],
 *         ssh_config=gcp.container.AwsClusterControlPlaneSshConfigArgs(
 *             ec2_key_pair="my--1p-dev-ssh",
 *         ),
 *         tags={
 *             "owner": "[email protected]",
 *         },
 *     ),
 *     fleet=gcp.container.AwsClusterFleetArgs(
 *         project="my-project-number",
 *     ),
 *     location="us-west1",
 *     name="name",
 *     networking=gcp.container.AwsClusterNetworkingArgs(
 *         pod_address_cidr_blocks=["10.2.0.0/16"],
 *         service_address_cidr_blocks=["10.1.0.0/16"],
 *         vpc_id="vpc-00000000000000000",
 *     ),
 *     annotations={
 *         "label-one": "value-one",
 *     },
 *     description="A sample aws cluster",
 *     project="my-project-name")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var versions = Gcp.Container.GetAwsVersions.Invoke(new()
 *     {
 *         Project = "my-project-name",
 *         Location = "us-west1",
 *     });
 *     var primary = new Gcp.Container.AwsCluster("primary", new()
 *     {
 *         Authorization = new Gcp.Container.Inputs.AwsClusterAuthorizationArgs
 *         {
 *             AdminUsers = new[]
 *             {
 *                 new Gcp.Container.Inputs.AwsClusterAuthorizationAdminUserArgs
 *                 {
 *                     Username = "[email protected]",
 *                 },
 *             },
 *         },
 *         AwsRegion = "my-aws-region",
 *         ControlPlane = new Gcp.Container.Inputs.AwsClusterControlPlaneArgs
 *         {
 *             AwsServicesAuthentication = new Gcp.Container.Inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs
 *             {
 *                 RoleArn = "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *                 RoleSessionName = "my--1p-dev-session",
 *             },
 *             ConfigEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneConfigEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             DatabaseEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneDatabaseEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             IamInstanceProfile = "my--1p-dev-controlplane",
 *             SubnetIds = new[]
 *             {
 *                 "subnet-00000000000000000",
 *             },
 *             Version = versions.Apply(getAwsVersionsResult => getAwsVersionsResult.ValidVersions[0]),
 *             InstanceType = "t3.medium",
 *             MainVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneMainVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "gp3",
 *             },
 *             ProxyConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneProxyConfigArgs
 *             {
 *                 SecretArn = "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *                 SecretVersion = "12345678-ABCD-EFGH-IJKL-987654321098",
 *             },
 *             RootVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneRootVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "gp3",
 *             },
 *             SecurityGroupIds = new[]
 *             {
 *                 "sg-00000000000000000",
 *             },
 *             SshConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneSshConfigArgs
 *             {
 *                 Ec2KeyPair = "my--1p-dev-ssh",
 *             },
 *             Tags =
 *             {
 *                 { "owner", "[email protected]" },
 *             },
 *         },
 *         Fleet = new Gcp.Container.Inputs.AwsClusterFleetArgs
 *         {
 *             Project = "my-project-number",
 *         },
 *         Location = "us-west1",
 *         Name = "name",
 *         Networking = new Gcp.Container.Inputs.AwsClusterNetworkingArgs
 *         {
 *             PodAddressCidrBlocks = new[]
 *             {
 *                 "10.2.0.0/16",
 *             },
 *             ServiceAddressCidrBlocks = new[]
 *             {
 *                 "10.1.0.0/16",
 *             },
 *             VpcId = "vpc-00000000000000000",
 *         },
 *         Annotations =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *         Description = "A sample aws cluster",
 *         Project = "my-project-name",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		versions, err := container.GetAwsVersions(ctx, &container.GetAwsVersionsArgs{
 * 			Project:  pulumi.StringRef("my-project-name"),
 * 			Location: pulumi.StringRef("us-west1"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = container.NewAwsCluster(ctx, "primary", &container.AwsClusterArgs{
 * 			Authorization: &container.AwsClusterAuthorizationArgs{
 * 				AdminUsers: container.AwsClusterAuthorizationAdminUserArray{
 * 					&container.AwsClusterAuthorizationAdminUserArgs{
 * 						Username: pulumi.String("[email protected]"),
 * 					},
 * 				},
 * 			},
 * 			AwsRegion: pulumi.String("my-aws-region"),
 * 			ControlPlane: &container.AwsClusterControlPlaneArgs{
 * 				AwsServicesAuthentication: &container.AwsClusterControlPlaneAwsServicesAuthenticationArgs{
 * 					RoleArn:         pulumi.String("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform"),
 * 					RoleSessionName: pulumi.String("my--1p-dev-session"),
 * 				},
 * 				ConfigEncryption: &container.AwsClusterControlPlaneConfigEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				DatabaseEncryption: &container.AwsClusterControlPlaneDatabaseEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				IamInstanceProfile: pulumi.String("my--1p-dev-controlplane"),
 * 				SubnetIds: pulumi.StringArray{
 * 					pulumi.String("subnet-00000000000000000"),
 * 				},
 * 				Version:      pulumi.String(versions.ValidVersions[0]),
 * 				InstanceType: pulumi.String("t3.medium"),
 * 				MainVolume: &container.AwsClusterControlPlaneMainVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("gp3"),
 * 				},
 * 				ProxyConfig: &container.AwsClusterControlPlaneProxyConfigArgs{
 * 					SecretArn:     pulumi.String("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF"),
 * 					SecretVersion: pulumi.String("12345678-ABCD-EFGH-IJKL-987654321098"),
 * 				},
 * 				RootVolume: &container.AwsClusterControlPlaneRootVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("gp3"),
 * 				},
 * 				SecurityGroupIds: pulumi.StringArray{
 * 					pulumi.String("sg-00000000000000000"),
 * 				},
 * 				SshConfig: &container.AwsClusterControlPlaneSshConfigArgs{
 * 					Ec2KeyPair: pulumi.String("my--1p-dev-ssh"),
 * 				},
 * 				Tags: pulumi.StringMap{
 * 					"owner": pulumi.String("[email protected]"),
 * 				},
 * 			},
 * 			Fleet: &container.AwsClusterFleetArgs{
 * 				Project: pulumi.String("my-project-number"),
 * 			},
 * 			Location: pulumi.String("us-west1"),
 * 			Name:     pulumi.String("name"),
 * 			Networking: &container.AwsClusterNetworkingArgs{
 * 				PodAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.2.0.0/16"),
 * 				},
 * 				ServiceAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.1.0.0/16"),
 * 				},
 * 				VpcId: pulumi.String("vpc-00000000000000000"),
 * 			},
 * 			Annotations: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 			Description: pulumi.String("A sample aws cluster"),
 * 			Project:     pulumi.String("my-project-name"),
 * 		})
 * 		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.gcp.container.ContainerFunctions;
 * import com.pulumi.gcp.container.inputs.GetAwsVersionsArgs;
 * import com.pulumi.gcp.container.AwsCluster;
 * import com.pulumi.gcp.container.AwsClusterArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterAuthorizationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneConfigEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneDatabaseEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneMainVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneProxyConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneRootVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneSshConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterFleetArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterNetworkingArgs;
 * 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) {
 *         final var versions = ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
 *             .project("my-project-name")
 *             .location("us-west1")
 *             .build());
 *         var primary = new AwsCluster("primary", AwsClusterArgs.builder()
 *             .authorization(AwsClusterAuthorizationArgs.builder()
 *                 .adminUsers(AwsClusterAuthorizationAdminUserArgs.builder()
 *                     .username("[email protected]")
 *                     .build())
 *                 .build())
 *             .awsRegion("my-aws-region")
 *             .controlPlane(AwsClusterControlPlaneArgs.builder()
 *                 .awsServicesAuthentication(AwsClusterControlPlaneAwsServicesAuthenticationArgs.builder()
 *                     .roleArn("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform")
 *                     .roleSessionName("my--1p-dev-session")
 *                     .build())
 *                 .configEncryption(AwsClusterControlPlaneConfigEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .databaseEncryption(AwsClusterControlPlaneDatabaseEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .iamInstanceProfile("my--1p-dev-controlplane")
 *                 .subnetIds("subnet-00000000000000000")
 *                 .version(versions.applyValue(getAwsVersionsResult -> getAwsVersionsResult.validVersions()[0]))
 *                 .instanceType("t3.medium")
 *                 .mainVolume(AwsClusterControlPlaneMainVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("gp3")
 *                     .build())
 *                 .proxyConfig(AwsClusterControlPlaneProxyConfigArgs.builder()
 *                     .secretArn("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF")
 *                     .secretVersion("12345678-ABCD-EFGH-IJKL-987654321098")
 *                     .build())
 *                 .rootVolume(AwsClusterControlPlaneRootVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("gp3")
 *                     .build())
 *                 .securityGroupIds("sg-00000000000000000")
 *                 .sshConfig(AwsClusterControlPlaneSshConfigArgs.builder()
 *                     .ec2KeyPair("my--1p-dev-ssh")
 *                     .build())
 *                 .tags(Map.of("owner", "[email protected]"))
 *                 .build())
 *             .fleet(AwsClusterFleetArgs.builder()
 *                 .project("my-project-number")
 *                 .build())
 *             .location("us-west1")
 *             .name("name")
 *             .networking(AwsClusterNetworkingArgs.builder()
 *                 .podAddressCidrBlocks("10.2.0.0/16")
 *                 .serviceAddressCidrBlocks("10.1.0.0/16")
 *                 .vpcId("vpc-00000000000000000")
 *                 .build())
 *             .annotations(Map.of("label-one", "value-one"))
 *             .description("A sample aws cluster")
 *             .project("my-project-name")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:container:AwsCluster
 *     properties:
 *       authorization:
 *         adminUsers:
 *           - username: [email protected]
 *       awsRegion: my-aws-region
 *       controlPlane:
 *         awsServicesAuthentication:
 *           roleArn: arn:aws:iam::012345678910:role/my--1p-dev-oneplatform
 *           roleSessionName: my--1p-dev-session
 *         configEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         databaseEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         iamInstanceProfile: my--1p-dev-controlplane
 *         subnetIds:
 *           - subnet-00000000000000000
 *         version: ${versions.validVersions[0]}
 *         instanceType: t3.medium
 *         mainVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: gp3
 *         proxyConfig:
 *           secretArn: arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF
 *           secretVersion: 12345678-ABCD-EFGH-IJKL-987654321098
 *         rootVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: gp3
 *         securityGroupIds:
 *           - sg-00000000000000000
 *         sshConfig:
 *           ec2KeyPair: my--1p-dev-ssh
 *         tags:
 *           owner: [email protected]
 *       fleet:
 *         project: my-project-number
 *       location: us-west1
 *       name: name
 *       networking:
 *         podAddressCidrBlocks:
 *           - 10.2.0.0/16
 *         serviceAddressCidrBlocks:
 *           - 10.1.0.0/16
 *         vpcId: vpc-00000000000000000
 *       annotations:
 *         label-one: value-one
 *       description: A sample aws cluster
 *       project: my-project-name
 * variables:
 *   versions:
 *     fn::invoke:
 *       Function: gcp:container:getAwsVersions
 *       Arguments:
 *         project: my-project-name
 *         location: us-west1
 * ```
 * 
 * ### Beta_basic_enum_aws_cluster
 * A basic example of a containeraws cluster with lowercase enums (beta)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const versions = gcp.container.getAwsVersions({
 *     project: "my-project-name",
 *     location: "us-west1",
 * });
 * const primary = new gcp.container.AwsCluster("primary", {
 *     authorization: {
 *         adminUsers: [{
 *             username: "[email protected]",
 *         }],
 *     },
 *     awsRegion: "my-aws-region",
 *     controlPlane: {
 *         awsServicesAuthentication: {
 *             roleArn: "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             roleSessionName: "my--1p-dev-session",
 *         },
 *         configEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         databaseEncryption: {
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         },
 *         iamInstanceProfile: "my--1p-dev-controlplane",
 *         subnetIds: ["subnet-00000000000000000"],
 *         version: versions.then(versions => versions.validVersions?.[0]),
 *         instanceType: "t3.medium",
 *         mainVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "gp3",
 *         },
 *         proxyConfig: {
 *             secretArn: "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secretVersion: "12345678-ABCD-EFGH-IJKL-987654321098",
 *         },
 *         rootVolume: {
 *             iops: 3000,
 *             kmsKeyArn: "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             sizeGib: 10,
 *             volumeType: "gp3",
 *         },
 *         securityGroupIds: ["sg-00000000000000000"],
 *         sshConfig: {
 *             ec2KeyPair: "my--1p-dev-ssh",
 *         },
 *         tags: {
 *             owner: "[email protected]",
 *         },
 *         instancePlacement: {
 *             tenancy: "dedicated",
 *         },
 *     },
 *     fleet: {
 *         project: "my-project-number",
 *     },
 *     location: "us-west1",
 *     name: "name",
 *     networking: {
 *         podAddressCidrBlocks: ["10.2.0.0/16"],
 *         serviceAddressCidrBlocks: ["10.1.0.0/16"],
 *         vpcId: "vpc-00000000000000000",
 *     },
 *     annotations: {
 *         "label-one": "value-one",
 *     },
 *     description: "A sample aws cluster",
 *     project: "my-project-name",
 *     loggingConfig: {
 *         componentConfig: {
 *             enableComponents: [
 *                 "system_components",
 *                 "workloads",
 *             ],
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * versions = gcp.container.get_aws_versions(project="my-project-name",
 *     location="us-west1")
 * primary = gcp.container.AwsCluster("primary",
 *     authorization=gcp.container.AwsClusterAuthorizationArgs(
 *         admin_users=[gcp.container.AwsClusterAuthorizationAdminUserArgs(
 *             username="[email protected]",
 *         )],
 *     ),
 *     aws_region="my-aws-region",
 *     control_plane=gcp.container.AwsClusterControlPlaneArgs(
 *         aws_services_authentication=gcp.container.AwsClusterControlPlaneAwsServicesAuthenticationArgs(
 *             role_arn="arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *             role_session_name="my--1p-dev-session",
 *         ),
 *         config_encryption=gcp.container.AwsClusterControlPlaneConfigEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         database_encryption=gcp.container.AwsClusterControlPlaneDatabaseEncryptionArgs(
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *         ),
 *         iam_instance_profile="my--1p-dev-controlplane",
 *         subnet_ids=["subnet-00000000000000000"],
 *         version=versions.valid_versions[0],
 *         instance_type="t3.medium",
 *         main_volume=gcp.container.AwsClusterControlPlaneMainVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="gp3",
 *         ),
 *         proxy_config=gcp.container.AwsClusterControlPlaneProxyConfigArgs(
 *             secret_arn="arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *             secret_version="12345678-ABCD-EFGH-IJKL-987654321098",
 *         ),
 *         root_volume=gcp.container.AwsClusterControlPlaneRootVolumeArgs(
 *             iops=3000,
 *             kms_key_arn="arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             size_gib=10,
 *             volume_type="gp3",
 *         ),
 *         security_group_ids=["sg-00000000000000000"],
 *         ssh_config=gcp.container.AwsClusterControlPlaneSshConfigArgs(
 *             ec2_key_pair="my--1p-dev-ssh",
 *         ),
 *         tags={
 *             "owner": "[email protected]",
 *         },
 *         instance_placement=gcp.container.AwsClusterControlPlaneInstancePlacementArgs(
 *             tenancy="dedicated",
 *         ),
 *     ),
 *     fleet=gcp.container.AwsClusterFleetArgs(
 *         project="my-project-number",
 *     ),
 *     location="us-west1",
 *     name="name",
 *     networking=gcp.container.AwsClusterNetworkingArgs(
 *         pod_address_cidr_blocks=["10.2.0.0/16"],
 *         service_address_cidr_blocks=["10.1.0.0/16"],
 *         vpc_id="vpc-00000000000000000",
 *     ),
 *     annotations={
 *         "label-one": "value-one",
 *     },
 *     description="A sample aws cluster",
 *     project="my-project-name",
 *     logging_config=gcp.container.AwsClusterLoggingConfigArgs(
 *         component_config=gcp.container.AwsClusterLoggingConfigComponentConfigArgs(
 *             enable_components=[
 *                 "system_components",
 *                 "workloads",
 *             ],
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var versions = Gcp.Container.GetAwsVersions.Invoke(new()
 *     {
 *         Project = "my-project-name",
 *         Location = "us-west1",
 *     });
 *     var primary = new Gcp.Container.AwsCluster("primary", new()
 *     {
 *         Authorization = new Gcp.Container.Inputs.AwsClusterAuthorizationArgs
 *         {
 *             AdminUsers = new[]
 *             {
 *                 new Gcp.Container.Inputs.AwsClusterAuthorizationAdminUserArgs
 *                 {
 *                     Username = "[email protected]",
 *                 },
 *             },
 *         },
 *         AwsRegion = "my-aws-region",
 *         ControlPlane = new Gcp.Container.Inputs.AwsClusterControlPlaneArgs
 *         {
 *             AwsServicesAuthentication = new Gcp.Container.Inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs
 *             {
 *                 RoleArn = "arn:aws:iam::012345678910:role/my--1p-dev-oneplatform",
 *                 RoleSessionName = "my--1p-dev-session",
 *             },
 *             ConfigEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneConfigEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             DatabaseEncryption = new Gcp.Container.Inputs.AwsClusterControlPlaneDatabaseEncryptionArgs
 *             {
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *             },
 *             IamInstanceProfile = "my--1p-dev-controlplane",
 *             SubnetIds = new[]
 *             {
 *                 "subnet-00000000000000000",
 *             },
 *             Version = versions.Apply(getAwsVersionsResult => getAwsVersionsResult.ValidVersions[0]),
 *             InstanceType = "t3.medium",
 *             MainVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneMainVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "gp3",
 *             },
 *             ProxyConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneProxyConfigArgs
 *             {
 *                 SecretArn = "arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF",
 *                 SecretVersion = "12345678-ABCD-EFGH-IJKL-987654321098",
 *             },
 *             RootVolume = new Gcp.Container.Inputs.AwsClusterControlPlaneRootVolumeArgs
 *             {
 *                 Iops = 3000,
 *                 KmsKeyArn = "arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111",
 *                 SizeGib = 10,
 *                 VolumeType = "gp3",
 *             },
 *             SecurityGroupIds = new[]
 *             {
 *                 "sg-00000000000000000",
 *             },
 *             SshConfig = new Gcp.Container.Inputs.AwsClusterControlPlaneSshConfigArgs
 *             {
 *                 Ec2KeyPair = "my--1p-dev-ssh",
 *             },
 *             Tags =
 *             {
 *                 { "owner", "[email protected]" },
 *             },
 *             InstancePlacement = new Gcp.Container.Inputs.AwsClusterControlPlaneInstancePlacementArgs
 *             {
 *                 Tenancy = "dedicated",
 *             },
 *         },
 *         Fleet = new Gcp.Container.Inputs.AwsClusterFleetArgs
 *         {
 *             Project = "my-project-number",
 *         },
 *         Location = "us-west1",
 *         Name = "name",
 *         Networking = new Gcp.Container.Inputs.AwsClusterNetworkingArgs
 *         {
 *             PodAddressCidrBlocks = new[]
 *             {
 *                 "10.2.0.0/16",
 *             },
 *             ServiceAddressCidrBlocks = new[]
 *             {
 *                 "10.1.0.0/16",
 *             },
 *             VpcId = "vpc-00000000000000000",
 *         },
 *         Annotations =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *         Description = "A sample aws cluster",
 *         Project = "my-project-name",
 *         LoggingConfig = new Gcp.Container.Inputs.AwsClusterLoggingConfigArgs
 *         {
 *             ComponentConfig = new Gcp.Container.Inputs.AwsClusterLoggingConfigComponentConfigArgs
 *             {
 *                 EnableComponents = new[]
 *                 {
 *                     "system_components",
 *                     "workloads",
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		versions, err := container.GetAwsVersions(ctx, &container.GetAwsVersionsArgs{
 * 			Project:  pulumi.StringRef("my-project-name"),
 * 			Location: pulumi.StringRef("us-west1"),
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = container.NewAwsCluster(ctx, "primary", &container.AwsClusterArgs{
 * 			Authorization: &container.AwsClusterAuthorizationArgs{
 * 				AdminUsers: container.AwsClusterAuthorizationAdminUserArray{
 * 					&container.AwsClusterAuthorizationAdminUserArgs{
 * 						Username: pulumi.String("[email protected]"),
 * 					},
 * 				},
 * 			},
 * 			AwsRegion: pulumi.String("my-aws-region"),
 * 			ControlPlane: &container.AwsClusterControlPlaneArgs{
 * 				AwsServicesAuthentication: &container.AwsClusterControlPlaneAwsServicesAuthenticationArgs{
 * 					RoleArn:         pulumi.String("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform"),
 * 					RoleSessionName: pulumi.String("my--1p-dev-session"),
 * 				},
 * 				ConfigEncryption: &container.AwsClusterControlPlaneConfigEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				DatabaseEncryption: &container.AwsClusterControlPlaneDatabaseEncryptionArgs{
 * 					KmsKeyArn: pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 				},
 * 				IamInstanceProfile: pulumi.String("my--1p-dev-controlplane"),
 * 				SubnetIds: pulumi.StringArray{
 * 					pulumi.String("subnet-00000000000000000"),
 * 				},
 * 				Version:      pulumi.String(versions.ValidVersions[0]),
 * 				InstanceType: pulumi.String("t3.medium"),
 * 				MainVolume: &container.AwsClusterControlPlaneMainVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("gp3"),
 * 				},
 * 				ProxyConfig: &container.AwsClusterControlPlaneProxyConfigArgs{
 * 					SecretArn:     pulumi.String("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF"),
 * 					SecretVersion: pulumi.String("12345678-ABCD-EFGH-IJKL-987654321098"),
 * 				},
 * 				RootVolume: &container.AwsClusterControlPlaneRootVolumeArgs{
 * 					Iops:       pulumi.Int(3000),
 * 					KmsKeyArn:  pulumi.String("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111"),
 * 					SizeGib:    pulumi.Int(10),
 * 					VolumeType: pulumi.String("gp3"),
 * 				},
 * 				SecurityGroupIds: pulumi.StringArray{
 * 					pulumi.String("sg-00000000000000000"),
 * 				},
 * 				SshConfig: &container.AwsClusterControlPlaneSshConfigArgs{
 * 					Ec2KeyPair: pulumi.String("my--1p-dev-ssh"),
 * 				},
 * 				Tags: pulumi.StringMap{
 * 					"owner": pulumi.String("[email protected]"),
 * 				},
 * 				InstancePlacement: &container.AwsClusterControlPlaneInstancePlacementArgs{
 * 					Tenancy: pulumi.String("dedicated"),
 * 				},
 * 			},
 * 			Fleet: &container.AwsClusterFleetArgs{
 * 				Project: pulumi.String("my-project-number"),
 * 			},
 * 			Location: pulumi.String("us-west1"),
 * 			Name:     pulumi.String("name"),
 * 			Networking: &container.AwsClusterNetworkingArgs{
 * 				PodAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.2.0.0/16"),
 * 				},
 * 				ServiceAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("10.1.0.0/16"),
 * 				},
 * 				VpcId: pulumi.String("vpc-00000000000000000"),
 * 			},
 * 			Annotations: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 			Description: pulumi.String("A sample aws cluster"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			LoggingConfig: &container.AwsClusterLoggingConfigArgs{
 * 				ComponentConfig: &container.AwsClusterLoggingConfigComponentConfigArgs{
 * 					EnableComponents: pulumi.StringArray{
 * 						pulumi.String("system_components"),
 * 						pulumi.String("workloads"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.gcp.container.ContainerFunctions;
 * import com.pulumi.gcp.container.inputs.GetAwsVersionsArgs;
 * import com.pulumi.gcp.container.AwsCluster;
 * import com.pulumi.gcp.container.AwsClusterArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterAuthorizationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneConfigEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneDatabaseEncryptionArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneMainVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneProxyConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneRootVolumeArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneSshConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneInstancePlacementArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterFleetArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterNetworkingArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterLoggingConfigArgs;
 * import com.pulumi.gcp.container.inputs.AwsClusterLoggingConfigComponentConfigArgs;
 * 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) {
 *         final var versions = ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
 *             .project("my-project-name")
 *             .location("us-west1")
 *             .build());
 *         var primary = new AwsCluster("primary", AwsClusterArgs.builder()
 *             .authorization(AwsClusterAuthorizationArgs.builder()
 *                 .adminUsers(AwsClusterAuthorizationAdminUserArgs.builder()
 *                     .username("[email protected]")
 *                     .build())
 *                 .build())
 *             .awsRegion("my-aws-region")
 *             .controlPlane(AwsClusterControlPlaneArgs.builder()
 *                 .awsServicesAuthentication(AwsClusterControlPlaneAwsServicesAuthenticationArgs.builder()
 *                     .roleArn("arn:aws:iam::012345678910:role/my--1p-dev-oneplatform")
 *                     .roleSessionName("my--1p-dev-session")
 *                     .build())
 *                 .configEncryption(AwsClusterControlPlaneConfigEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .databaseEncryption(AwsClusterControlPlaneDatabaseEncryptionArgs.builder()
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .build())
 *                 .iamInstanceProfile("my--1p-dev-controlplane")
 *                 .subnetIds("subnet-00000000000000000")
 *                 .version(versions.applyValue(getAwsVersionsResult -> getAwsVersionsResult.validVersions()[0]))
 *                 .instanceType("t3.medium")
 *                 .mainVolume(AwsClusterControlPlaneMainVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("gp3")
 *                     .build())
 *                 .proxyConfig(AwsClusterControlPlaneProxyConfigArgs.builder()
 *                     .secretArn("arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF")
 *                     .secretVersion("12345678-ABCD-EFGH-IJKL-987654321098")
 *                     .build())
 *                 .rootVolume(AwsClusterControlPlaneRootVolumeArgs.builder()
 *                     .iops(3000)
 *                     .kmsKeyArn("arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111")
 *                     .sizeGib(10)
 *                     .volumeType("gp3")
 *                     .build())
 *                 .securityGroupIds("sg-00000000000000000")
 *                 .sshConfig(AwsClusterControlPlaneSshConfigArgs.builder()
 *                     .ec2KeyPair("my--1p-dev-ssh")
 *                     .build())
 *                 .tags(Map.of("owner", "[email protected]"))
 *                 .instancePlacement(AwsClusterControlPlaneInstancePlacementArgs.builder()
 *                     .tenancy("dedicated")
 *                     .build())
 *                 .build())
 *             .fleet(AwsClusterFleetArgs.builder()
 *                 .project("my-project-number")
 *                 .build())
 *             .location("us-west1")
 *             .name("name")
 *             .networking(AwsClusterNetworkingArgs.builder()
 *                 .podAddressCidrBlocks("10.2.0.0/16")
 *                 .serviceAddressCidrBlocks("10.1.0.0/16")
 *                 .vpcId("vpc-00000000000000000")
 *                 .build())
 *             .annotations(Map.of("label-one", "value-one"))
 *             .description("A sample aws cluster")
 *             .project("my-project-name")
 *             .loggingConfig(AwsClusterLoggingConfigArgs.builder()
 *                 .componentConfig(AwsClusterLoggingConfigComponentConfigArgs.builder()
 *                     .enableComponents(
 *                         "system_components",
 *                         "workloads")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:container:AwsCluster
 *     properties:
 *       authorization:
 *         adminUsers:
 *           - username: [email protected]
 *       awsRegion: my-aws-region
 *       controlPlane:
 *         awsServicesAuthentication:
 *           roleArn: arn:aws:iam::012345678910:role/my--1p-dev-oneplatform
 *           roleSessionName: my--1p-dev-session
 *         configEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         databaseEncryption:
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *         iamInstanceProfile: my--1p-dev-controlplane
 *         subnetIds:
 *           - subnet-00000000000000000
 *         version: ${versions.validVersions[0]}
 *         instanceType: t3.medium
 *         mainVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: gp3
 *         proxyConfig:
 *           secretArn: arn:aws:secretsmanager:us-west-2:126285863215:secret:proxy_config20210824150329476300000001-ABCDEF
 *           secretVersion: 12345678-ABCD-EFGH-IJKL-987654321098
 *         rootVolume:
 *           iops: 3000
 *           kmsKeyArn: arn:aws:kms:my-aws-region:012345678910:key/12345678-1234-1234-1234-123456789111
 *           sizeGib: 10
 *           volumeType: gp3
 *         securityGroupIds:
 *           - sg-00000000000000000
 *         sshConfig:
 *           ec2KeyPair: my--1p-dev-ssh
 *         tags:
 *           owner: [email protected]
 *         instancePlacement:
 *           tenancy: dedicated
 *       fleet:
 *         project: my-project-number
 *       location: us-west1
 *       name: name
 *       networking:
 *         podAddressCidrBlocks:
 *           - 10.2.0.0/16
 *         serviceAddressCidrBlocks:
 *           - 10.1.0.0/16
 *         vpcId: vpc-00000000000000000
 *       annotations:
 *         label-one: value-one
 *       description: A sample aws cluster
 *       project: my-project-name
 *       loggingConfig:
 *         componentConfig:
 *           enableComponents:
 *             - system_components
 *             - workloads
 * variables:
 *   versions:
 *     fn::invoke:
 *       Function: gcp:container:getAwsVersions
 *       Arguments:
 *         project: my-project-name
 *         location: us-west1
 * ```
 * 
 * ## Import
 * Cluster can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/awsClusters/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, Cluster can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:container/awsCluster:AwsCluster default projects/{{project}}/locations/{{location}}/awsClusters/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:container/awsCluster:AwsCluster default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:container/awsCluster:AwsCluster default {{location}}/{{name}}
 * ```
 */
public class AwsCluster internal constructor(
    override val javaResource: com.pulumi.gcp.container.AwsCluster,
) : KotlinCustomResource(javaResource, AwsClusterMapper) {
    /**
     * Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of
     * all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required),
     * separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with
     * alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. **Note**: This field is
     * non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
     * `effective_annotations` for all of the annotations present on the resource.
     */
    public val annotations: Output>?
        get() = javaResource.annotations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    /**
     * Configuration related to the cluster RBAC settings.
     */
    public val authorization: Output
        get() = javaResource.authorization().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterAuthorizationToKotlin(args0)
            })
        })

    /**
     * The AWS region where the cluster runs. Each Google Cloud region supports a subset of nearby AWS regions. You can call to list all supported AWS regions within a given Google Cloud region.
     */
    public val awsRegion: Output
        get() = javaResource.awsRegion().applyValue({ args0 -> args0 })

    /**
     * Configuration options for the Binary Authorization feature.
     */
    public val binaryAuthorization: Output
        get() = javaResource.binaryAuthorization().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterBinaryAuthorizationToKotlin(args0)
            })
        })

    /**
     * Configuration related to the cluster control plane.
     */
    public val controlPlane: Output
        get() = javaResource.controlPlane().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterControlPlaneToKotlin(args0)
            })
        })

    /**
     * Output only. The time at which this cluster was created.
     */
    public val createTime: Output
        get() = javaResource.createTime().applyValue({ args0 -> args0 })

    /**
     * Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.
     */
    public val description: Output?
        get() = javaResource.description().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val effectiveAnnotations: Output>
        get() = javaResource.effectiveAnnotations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * Output only. The endpoint of the cluster's API server.
     */
    public val endpoint: Output
        get() = javaResource.endpoint().applyValue({ args0 -> args0 })

    /**
     * Allows clients to perform consistent read-modify-writes through optimistic concurrency control. May be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
     */
    public val etag: Output
        get() = javaResource.etag().applyValue({ args0 -> args0 })

    /**
     * Fleet configuration.
     */
    public val fleet: Output
        get() = javaResource.fleet().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterFleetToKotlin(args0)
            })
        })

    /**
     * The location for the resource
     */
    public val location: Output
        get() = javaResource.location().applyValue({ args0 -> args0 })

    /**
     * Logging configuration.
     */
    public val loggingConfig: Output
        get() = javaResource.loggingConfig().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterLoggingConfigToKotlin(args0)
            })
        })

    /**
     * The name of this resource.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * Cluster-wide networking configuration.
     */
    public val networking: Output
        get() = javaResource.networking().applyValue({ args0 ->
            args0.let({ args0 ->
                awsClusterNetworkingToKotlin(args0)
            })
        })

    /**
     * The project for the resource
     */
    public val project: Output
        get() = javaResource.project().applyValue({ args0 -> args0 })

    /**
     * Output only. If set, there are currently changes in flight to the cluster.
     */
    public val reconciling: Output
        get() = javaResource.reconciling().applyValue({ args0 -> args0 })

    /**
     * Output only. The current state of the cluster. Possible values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING, STOPPING, ERROR, DEGRADED
     */
    public val state: Output
        get() = javaResource.state().applyValue({ args0 -> args0 })

    /**
     * Output only. A globally unique identifier for the cluster.
     */
    public val uid: Output
        get() = javaResource.uid().applyValue({ args0 -> args0 })

    /**
     * Output only. The time at which this cluster was last updated.
     */
    public val updateTime: Output
        get() = javaResource.updateTime().applyValue({ args0 -> args0 })

    /**
     * Output only. Workload Identity settings.
     */
    public val workloadIdentityConfigs: Output>
        get() = javaResource.workloadIdentityConfigs().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> awsClusterWorkloadIdentityConfigToKotlin(args0) })
            })
        })
}

public object AwsClusterMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.gcp.container.AwsCluster::class == javaResource::class

    override fun map(javaResource: Resource): AwsCluster = AwsCluster(
        javaResource as
            com.pulumi.gcp.container.AwsCluster,
    )
}

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy