aws-native logo
AWS Native v0.54.0, Mar 21 23

aws-native.emrcontainers.VirtualCluster

Resource Schema of AWS::EMRContainers::VirtualCluster Type

Example Usage

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var testVirtualCluster = new AwsNative.EMRContainers.VirtualCluster("testVirtualCluster", new()
    {
        Name = "VirtualClusterName",
        ContainerProvider = new AwsNative.EMRContainers.Inputs.VirtualClusterContainerProviderArgs
        {
            Type = "EKS",
            Id = "EKSClusterName",
            Info = new AwsNative.EMRContainers.Inputs.VirtualClusterContainerInfoArgs
            {
                EksInfo = new AwsNative.EMRContainers.Inputs.VirtualClusterEksInfoArgs
                {
                    Namespace = "EKSNamespace",
                },
            },
        },
        Tags = new[]
        {
            new AwsNative.EMRContainers.Inputs.VirtualClusterTagArgs
            {
                Key = "Key1",
                Value = "Value1",
            },
        },
    });

    return new Dictionary<string, object?>
    {
        ["primaryId"] = null,
    };
});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/emrcontainers"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := emrcontainers.NewVirtualCluster(ctx, "testVirtualCluster", &emrcontainers.VirtualClusterArgs{
			Name: pulumi.String("VirtualClusterName"),
			ContainerProvider: &emrcontainers.VirtualClusterContainerProviderArgs{
				Type: pulumi.String("EKS"),
				Id:   pulumi.String("EKSClusterName"),
				Info: &emrcontainers.VirtualClusterContainerInfoArgs{
					EksInfo: &emrcontainers.VirtualClusterEksInfoArgs{
						Namespace: pulumi.String("EKSNamespace"),
					},
				},
			},
			Tags: []emrcontainers.VirtualClusterTagArgs{
				{
					Key:   pulumi.String("Key1"),
					Value: pulumi.String("Value1"),
				},
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("primaryId", nil)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

test_virtual_cluster = aws_native.emrcontainers.VirtualCluster("testVirtualCluster",
    name="VirtualClusterName",
    container_provider=aws_native.emrcontainers.VirtualClusterContainerProviderArgs(
        type="EKS",
        id="EKSClusterName",
        info=aws_native.emrcontainers.VirtualClusterContainerInfoArgs(
            eks_info=aws_native.emrcontainers.VirtualClusterEksInfoArgs(
                namespace="EKSNamespace",
            ),
        ),
    ),
    tags=[aws_native.emrcontainers.VirtualClusterTagArgs(
        key="Key1",
        value="Value1",
    )])
pulumi.export("primaryId", None)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const testVirtualCluster = new aws_native.emrcontainers.VirtualCluster("testVirtualCluster", {
    name: "VirtualClusterName",
    containerProvider: {
        type: "EKS",
        id: "EKSClusterName",
        info: {
            eksInfo: {
                namespace: "EKSNamespace",
            },
        },
    },
    tags: [{
        key: "Key1",
        value: "Value1",
    }],
});
export const primaryId = undefined;

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var testVirtualCluster = new AwsNative.EMRContainers.VirtualCluster("testVirtualCluster", new()
    {
        Name = "VirtualClusterName",
        ContainerProvider = new AwsNative.EMRContainers.Inputs.VirtualClusterContainerProviderArgs
        {
            Type = "EKS",
            Id = "EKSClusterName",
            Info = new AwsNative.EMRContainers.Inputs.VirtualClusterContainerInfoArgs
            {
                EksInfo = new AwsNative.EMRContainers.Inputs.VirtualClusterEksInfoArgs
                {
                    Namespace = "EKSNamespace",
                },
            },
        },
        Tags = new[]
        {
            new AwsNative.EMRContainers.Inputs.VirtualClusterTagArgs
            {
                Key = "Key1",
                Value = "Value1",
            },
        },
    });

    return new Dictionary<string, object?>
    {
        ["primaryId"] = testVirtualCluster.Id,
    };
});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/emrcontainers"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testVirtualCluster, err := emrcontainers.NewVirtualCluster(ctx, "testVirtualCluster", &emrcontainers.VirtualClusterArgs{
			Name: pulumi.String("VirtualClusterName"),
			ContainerProvider: &emrcontainers.VirtualClusterContainerProviderArgs{
				Type: pulumi.String("EKS"),
				Id:   pulumi.String("EKSClusterName"),
				Info: &emrcontainers.VirtualClusterContainerInfoArgs{
					EksInfo: &emrcontainers.VirtualClusterEksInfoArgs{
						Namespace: pulumi.String("EKSNamespace"),
					},
				},
			},
			Tags: []emrcontainers.VirtualClusterTagArgs{
				{
					Key:   pulumi.String("Key1"),
					Value: pulumi.String("Value1"),
				},
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("primaryId", testVirtualCluster.ID())
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

test_virtual_cluster = aws_native.emrcontainers.VirtualCluster("testVirtualCluster",
    name="VirtualClusterName",
    container_provider=aws_native.emrcontainers.VirtualClusterContainerProviderArgs(
        type="EKS",
        id="EKSClusterName",
        info=aws_native.emrcontainers.VirtualClusterContainerInfoArgs(
            eks_info=aws_native.emrcontainers.VirtualClusterEksInfoArgs(
                namespace="EKSNamespace",
            ),
        ),
    ),
    tags=[aws_native.emrcontainers.VirtualClusterTagArgs(
        key="Key1",
        value="Value1",
    )])
pulumi.export("primaryId", test_virtual_cluster.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const testVirtualCluster = new aws_native.emrcontainers.VirtualCluster("testVirtualCluster", {
    name: "VirtualClusterName",
    containerProvider: {
        type: "EKS",
        id: "EKSClusterName",
        info: {
            eksInfo: {
                namespace: "EKSNamespace",
            },
        },
    },
    tags: [{
        key: "Key1",
        value: "Value1",
    }],
});
export const primaryId = testVirtualCluster.id;

Coming soon!

Create VirtualCluster Resource

new VirtualCluster(name: string, args: VirtualClusterArgs, opts?: CustomResourceOptions);
@overload
def VirtualCluster(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   container_provider: Optional[VirtualClusterContainerProviderArgs] = None,
                   name: Optional[str] = None,
                   tags: Optional[Sequence[VirtualClusterTagArgs]] = None)
@overload
def VirtualCluster(resource_name: str,
                   args: VirtualClusterArgs,
                   opts: Optional[ResourceOptions] = None)
func NewVirtualCluster(ctx *Context, name string, args VirtualClusterArgs, opts ...ResourceOption) (*VirtualCluster, error)
public VirtualCluster(string name, VirtualClusterArgs args, CustomResourceOptions? opts = null)
public VirtualCluster(String name, VirtualClusterArgs args)
public VirtualCluster(String name, VirtualClusterArgs args, CustomResourceOptions options)
type: aws-native:emrcontainers:VirtualCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VirtualClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args VirtualClusterArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VirtualClusterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VirtualClusterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VirtualClusterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VirtualCluster Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The VirtualCluster resource accepts the following input properties:

ContainerProvider Pulumi.AwsNative.EMRContainers.Inputs.VirtualClusterContainerProviderArgs

Container provider of the virtual cluster.

Name string

Name of the virtual cluster.

Tags List<Pulumi.AwsNative.EMRContainers.Inputs.VirtualClusterTagArgs>

An array of key-value pairs to apply to this virtual cluster.

ContainerProvider VirtualClusterContainerProviderArgs

Container provider of the virtual cluster.

Name string

Name of the virtual cluster.

Tags []VirtualClusterTagArgs

An array of key-value pairs to apply to this virtual cluster.

containerProvider VirtualClusterContainerProviderArgs

Container provider of the virtual cluster.

name String

Name of the virtual cluster.

tags List<VirtualClusterTagArgs>

An array of key-value pairs to apply to this virtual cluster.

containerProvider VirtualClusterContainerProviderArgs

Container provider of the virtual cluster.

name string

Name of the virtual cluster.

tags VirtualClusterTagArgs[]

An array of key-value pairs to apply to this virtual cluster.

container_provider VirtualClusterContainerProviderArgs

Container provider of the virtual cluster.

name str

Name of the virtual cluster.

tags Sequence[VirtualClusterTagArgs]

An array of key-value pairs to apply to this virtual cluster.

containerProvider Property Map

Container provider of the virtual cluster.

name String

Name of the virtual cluster.

tags List<Property Map>

An array of key-value pairs to apply to this virtual cluster.

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualCluster resource produces the following output properties:

Arn string
Id string

The provider-assigned unique ID for this managed resource.

Arn string
Id string

The provider-assigned unique ID for this managed resource.

arn String
id String

The provider-assigned unique ID for this managed resource.

arn string
id string

The provider-assigned unique ID for this managed resource.

arn str
id str

The provider-assigned unique ID for this managed resource.

arn String
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

VirtualClusterContainerInfo

VirtualClusterContainerProvider

Id string

The ID of the container cluster

Info Pulumi.AwsNative.EMRContainers.Inputs.VirtualClusterContainerInfo
Type string

The type of the container provider

Id string

The ID of the container cluster

Info VirtualClusterContainerInfo
Type string

The type of the container provider

id String

The ID of the container cluster

info VirtualClusterContainerInfo
type String

The type of the container provider

id string

The ID of the container cluster

info VirtualClusterContainerInfo
type string

The type of the container provider

id str

The ID of the container cluster

info VirtualClusterContainerInfo
type str

The type of the container provider

id String

The ID of the container cluster

info Property Map
type String

The type of the container provider

VirtualClusterEksInfo

Namespace string
Namespace string
namespace String
namespace string
namespace String

VirtualClusterTag

Key string

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Value string

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Key string

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Value string

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

key String

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

value String

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

key string

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

value string

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

key str

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

value str

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

key String

The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

value String

The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0