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

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi

aws.emrcontainers.VirtualCluster

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi

    Manages an EMR Containers (EMR on EKS) Virtual Cluster.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.emrcontainers.VirtualCluster("example", {
        containerProvider: {
            id: exampleAwsEksCluster.name,
            type: "EKS",
            info: {
                eksInfo: {
                    namespace: "default",
                },
            },
        },
        name: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.emrcontainers.VirtualCluster("example",
        container_provider=aws.emrcontainers.VirtualClusterContainerProviderArgs(
            id=example_aws_eks_cluster["name"],
            type="EKS",
            info=aws.emrcontainers.VirtualClusterContainerProviderInfoArgs(
                eks_info=aws.emrcontainers.VirtualClusterContainerProviderInfoEksInfoArgs(
                    namespace="default",
                ),
            ),
        ),
        name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrcontainers"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := emrcontainers.NewVirtualCluster(ctx, "example", &emrcontainers.VirtualClusterArgs{
    			ContainerProvider: &emrcontainers.VirtualClusterContainerProviderArgs{
    				Id:   pulumi.Any(exampleAwsEksCluster.Name),
    				Type: pulumi.String("EKS"),
    				Info: &emrcontainers.VirtualClusterContainerProviderInfoArgs{
    					EksInfo: &emrcontainers.VirtualClusterContainerProviderInfoEksInfoArgs{
    						Namespace: pulumi.String("default"),
    					},
    				},
    			},
    			Name: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.EmrContainers.VirtualCluster("example", new()
        {
            ContainerProvider = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderArgs
            {
                Id = exampleAwsEksCluster.Name,
                Type = "EKS",
                Info = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderInfoArgs
                {
                    EksInfo = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderInfoEksInfoArgs
                    {
                        Namespace = "default",
                    },
                },
            },
            Name = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.emrcontainers.VirtualCluster;
    import com.pulumi.aws.emrcontainers.VirtualClusterArgs;
    import com.pulumi.aws.emrcontainers.inputs.VirtualClusterContainerProviderArgs;
    import com.pulumi.aws.emrcontainers.inputs.VirtualClusterContainerProviderInfoArgs;
    import com.pulumi.aws.emrcontainers.inputs.VirtualClusterContainerProviderInfoEksInfoArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new VirtualCluster("example", VirtualClusterArgs.builder()        
                .containerProvider(VirtualClusterContainerProviderArgs.builder()
                    .id(exampleAwsEksCluster.name())
                    .type("EKS")
                    .info(VirtualClusterContainerProviderInfoArgs.builder()
                        .eksInfo(VirtualClusterContainerProviderInfoEksInfoArgs.builder()
                            .namespace("default")
                            .build())
                        .build())
                    .build())
                .name("example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:emrcontainers:VirtualCluster
        properties:
          containerProvider:
            id: ${exampleAwsEksCluster.name}
            type: EKS
            info:
              eksInfo:
                namespace: default
          name: example
    

    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[Mapping[str, str]] = 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: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.

    Example

    The following reference example uses placeholder values for all input properties.

    var virtualClusterResource = new Aws.EmrContainers.VirtualCluster("virtualClusterResource", new()
    {
        ContainerProvider = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderArgs
        {
            Id = "string",
            Info = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderInfoArgs
            {
                EksInfo = new Aws.EmrContainers.Inputs.VirtualClusterContainerProviderInfoEksInfoArgs
                {
                    Namespace = "string",
                },
            },
            Type = "string",
        },
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := emrcontainers.NewVirtualCluster(ctx, "virtualClusterResource", &emrcontainers.VirtualClusterArgs{
    	ContainerProvider: &emrcontainers.VirtualClusterContainerProviderArgs{
    		Id: pulumi.String("string"),
    		Info: &emrcontainers.VirtualClusterContainerProviderInfoArgs{
    			EksInfo: &emrcontainers.VirtualClusterContainerProviderInfoEksInfoArgs{
    				Namespace: pulumi.String("string"),
    			},
    		},
    		Type: pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var virtualClusterResource = new VirtualCluster("virtualClusterResource", VirtualClusterArgs.builder()        
        .containerProvider(VirtualClusterContainerProviderArgs.builder()
            .id("string")
            .info(VirtualClusterContainerProviderInfoArgs.builder()
                .eksInfo(VirtualClusterContainerProviderInfoEksInfoArgs.builder()
                    .namespace("string")
                    .build())
                .build())
            .type("string")
            .build())
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    virtual_cluster_resource = aws.emrcontainers.VirtualCluster("virtualClusterResource",
        container_provider=aws.emrcontainers.VirtualClusterContainerProviderArgs(
            id="string",
            info=aws.emrcontainers.VirtualClusterContainerProviderInfoArgs(
                eks_info=aws.emrcontainers.VirtualClusterContainerProviderInfoEksInfoArgs(
                    namespace="string",
                ),
            ),
            type="string",
        ),
        name="string",
        tags={
            "string": "string",
        })
    
    const virtualClusterResource = new aws.emrcontainers.VirtualCluster("virtualClusterResource", {
        containerProvider: {
            id: "string",
            info: {
                eksInfo: {
                    namespace: "string",
                },
            },
            type: "string",
        },
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:emrcontainers:VirtualCluster
    properties:
        containerProvider:
            id: string
            info:
                eksInfo:
                    namespace: string
            type: string
        name: string
        tags:
            string: string
    

    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 VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    Name string
    Name of the virtual cluster.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    ContainerProvider VirtualClusterContainerProviderArgs
    Configuration block for the container provider associated with your cluster.
    Name string
    Name of the virtual cluster.
    Tags map[string]string
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    containerProvider VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    name String
    Name of the virtual cluster.
    tags Map<String,String>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    containerProvider VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    name string
    Name of the virtual cluster.
    tags {[key: string]: string}
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    container_provider VirtualClusterContainerProviderArgs
    Configuration block for the container provider associated with your cluster.
    name str
    Name of the virtual cluster.
    tags Mapping[str, str]
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    containerProvider Property Map
    Configuration block for the container provider associated with your cluster.
    name String
    Name of the virtual cluster.
    tags Map<String>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string
    ARN of the cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing VirtualCluster Resource

    Get an existing VirtualCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualClusterState, opts?: CustomResourceOptions): VirtualCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            container_provider: Optional[VirtualClusterContainerProviderArgs] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> VirtualCluster
    func GetVirtualCluster(ctx *Context, name string, id IDInput, state *VirtualClusterState, opts ...ResourceOption) (*VirtualCluster, error)
    public static VirtualCluster Get(string name, Input<string> id, VirtualClusterState? state, CustomResourceOptions? opts = null)
    public static VirtualCluster get(String name, Output<String> id, VirtualClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the cluster.
    ContainerProvider VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    Name string
    Name of the virtual cluster.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the cluster.
    ContainerProvider VirtualClusterContainerProviderArgs
    Configuration block for the container provider associated with your cluster.
    Name string
    Name of the virtual cluster.
    Tags map[string]string
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the cluster.
    containerProvider VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    name String
    Name of the virtual cluster.
    tags Map<String,String>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the cluster.
    containerProvider VirtualClusterContainerProvider
    Configuration block for the container provider associated with your cluster.
    name string
    Name of the virtual cluster.
    tags {[key: string]: string}
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the cluster.
    container_provider VirtualClusterContainerProviderArgs
    Configuration block for the container provider associated with your cluster.
    name str
    Name of the virtual cluster.
    tags Mapping[str, str]
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the cluster.
    containerProvider Property Map
    Configuration block for the container provider associated with your cluster.
    name String
    Name of the virtual cluster.
    tags Map<String>
    Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    VirtualClusterContainerProvider, VirtualClusterContainerProviderArgs

    Id string
    The name of the container provider that is running your EMR Containers cluster
    Info VirtualClusterContainerProviderInfo
    Nested list containing information about the configuration of the container provider
    Type string
    The type of the container provider
    Id string
    The name of the container provider that is running your EMR Containers cluster
    Info VirtualClusterContainerProviderInfo
    Nested list containing information about the configuration of the container provider
    Type string
    The type of the container provider
    id String
    The name of the container provider that is running your EMR Containers cluster
    info VirtualClusterContainerProviderInfo
    Nested list containing information about the configuration of the container provider
    type String
    The type of the container provider
    id string
    The name of the container provider that is running your EMR Containers cluster
    info VirtualClusterContainerProviderInfo
    Nested list containing information about the configuration of the container provider
    type string
    The type of the container provider
    id str
    The name of the container provider that is running your EMR Containers cluster
    info VirtualClusterContainerProviderInfo
    Nested list containing information about the configuration of the container provider
    type str
    The type of the container provider
    id String
    The name of the container provider that is running your EMR Containers cluster
    info Property Map
    Nested list containing information about the configuration of the container provider
    type String
    The type of the container provider

    VirtualClusterContainerProviderInfo, VirtualClusterContainerProviderInfoArgs

    EksInfo VirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    EksInfo VirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfo VirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfo VirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eks_info VirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfo Property Map
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running

    VirtualClusterContainerProviderInfoEksInfo, VirtualClusterContainerProviderInfoEksInfoArgs

    Namespace string
    The namespace where the EMR Containers cluster is running
    Namespace string
    The namespace where the EMR Containers cluster is running
    namespace String
    The namespace where the EMR Containers cluster is running
    namespace string
    The namespace where the EMR Containers cluster is running
    namespace str
    The namespace where the EMR Containers cluster is running
    namespace String
    The namespace where the EMR Containers cluster is running

    Import

    Using pulumi import, import EKS Clusters using the id. For example:

    $ pulumi import aws:emrcontainers/virtualCluster:VirtualCluster example a1b2c3d4e5f6g7h8i9j10k11l
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.31.0 published on Monday, Apr 15, 2024 by Pulumi