1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. emrcontainers
  5. VirtualCluster

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.emrcontainers.VirtualCluster

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Resource Schema of AWS::EMRContainers::VirtualCluster Type

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    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.Inputs.TagArgs
                {
                    Key = "Key1",
                    Value = "Value1",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["primaryId"] = null,
        };
    });
    
    package main
    
    import (
    	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
    	"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: aws.TagArray{
    				&aws.TagArgs{
    					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={
            "type": "EKS",
            "id": "EKSClusterName",
            "info": {
                "eks_info": {
                    "namespace": "EKSNamespace",
                },
            },
        },
        tags=[{
            "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 System.Linq;
    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.Inputs.TagArgs
                {
                    Key = "Key1",
                    Value = "Value1",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["primaryId"] = testVirtualCluster.Id,
        };
    });
    
    package main
    
    import (
    	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
    	"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: aws.TagArray{
    				&aws.TagArgs{
    					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={
            "type": "EKS",
            "id": "EKSClusterName",
            "info": {
                "eks_info": {
                    "namespace": "EKSNamespace",
                },
            },
        },
        tags=[{
            "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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualCluster(name: string, args: VirtualClusterArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualCluster(resource_name: str,
                       args: VirtualClusterArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualCluster(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       container_provider: Optional[VirtualClusterContainerProviderArgs] = None,
                       name: Optional[str] = None,
                       tags: Optional[Sequence[_root_inputs.TagArgs]] = 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.
    
    

    Parameters

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualCluster resource accepts the following input properties:

    ContainerProvider Pulumi.AwsNative.EmrContainers.Inputs.VirtualClusterContainerProvider
    Container provider of the virtual cluster.
    Name string
    Name of the virtual cluster.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    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 TagArgs
    An array of key-value pairs to apply to this virtual cluster.
    containerProvider VirtualClusterContainerProvider
    Container provider of the virtual cluster.
    name String
    Name of the virtual cluster.
    tags List<Tag>
    An array of key-value pairs to apply to this virtual cluster.
    containerProvider VirtualClusterContainerProvider
    Container provider of the virtual cluster.
    name string
    Name of the virtual cluster.
    tags Tag[]
    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[TagArgs]
    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
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    AwsId string
    Id of the virtual cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    AwsId string
    Id of the virtual cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    awsId String
    Id of the virtual cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    awsId string
    Id of the virtual cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    aws_id str
    Id of the virtual cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the project, such as arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example .
    awsId String
    Id of the virtual cluster.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    VirtualClusterContainerInfo, VirtualClusterContainerInfoArgs

    EksInfo Pulumi.AwsNative.EmrContainers.Inputs.VirtualClusterEksInfo
    The information about the Amazon EKS cluster.
    EksInfo VirtualClusterEksInfo
    The information about the Amazon EKS cluster.
    eksInfo VirtualClusterEksInfo
    The information about the Amazon EKS cluster.
    eksInfo VirtualClusterEksInfo
    The information about the Amazon EKS cluster.
    eks_info VirtualClusterEksInfo
    The information about the Amazon EKS cluster.
    eksInfo Property Map
    The information about the Amazon EKS cluster.

    VirtualClusterContainerProvider, VirtualClusterContainerProviderArgs

    Id string
    The ID of the container cluster
    Info Pulumi.AwsNative.EmrContainers.Inputs.VirtualClusterContainerInfo
    The information about the container cluster.
    Type string
    The type of the container provider
    Id string
    The ID of the container cluster
    Info VirtualClusterContainerInfo
    The information about the container cluster.
    Type string
    The type of the container provider
    id String
    The ID of the container cluster
    info VirtualClusterContainerInfo
    The information about the container cluster.
    type String
    The type of the container provider
    id string
    The ID of the container cluster
    info VirtualClusterContainerInfo
    The information about the container cluster.
    type string
    The type of the container provider
    id str
    The ID of the container cluster
    info VirtualClusterContainerInfo
    The information about the container cluster.
    type str
    The type of the container provider
    id String
    The ID of the container cluster
    info Property Map
    The information about the container cluster.
    type String
    The type of the container provider

    VirtualClusterEksInfo, VirtualClusterEksInfoArgs

    Namespace string

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    Namespace string

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    namespace String

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    namespace string

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    namespace str

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    namespace String

    The namespaces of the EKS cluster.

    Minimum : 1

    Maximum : 63

    Pattern : [a-z0-9]([-a-z0-9]*[a-z0-9])?

    Package Details

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

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi