aws.emrcontainers.VirtualCluster
Explore with Pulumi AI
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={
"id": example_aws_eks_cluster["name"],
"type": "EKS",
"info": {
"eks_info": {
"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.
Constructor 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={
"id": "string",
"info": {
"eks_info": {
"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
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:
- Container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- Name string
- Name of the virtual cluster.
- 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.
- Container
Provider VirtualCluster Container Provider Args - Configuration block for the container provider associated with your cluster.
- Name string
- Name of the virtual cluster.
- 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.
- container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- name String
- Name of the virtual cluster.
- 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.
- container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- name string
- Name of the virtual cluster.
- {[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 VirtualCluster Container Provider Args - Configuration block for the container provider associated with your cluster.
- name str
- Name of the virtual cluster.
- 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.
- container
Provider Property Map - Configuration block for the container provider associated with your cluster.
- name String
- Name of the virtual cluster.
- 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:
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.
- Arn string
- ARN of the cluster.
- Container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- Name string
- Name of the virtual cluster.
- 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. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the cluster.
- Container
Provider VirtualCluster Container Provider Args - Configuration block for the container provider associated with your cluster.
- Name string
- Name of the virtual cluster.
- 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. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the cluster.
- container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- name String
- Name of the virtual cluster.
- 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. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the cluster.
- container
Provider VirtualCluster Container Provider - Configuration block for the container provider associated with your cluster.
- name string
- Name of the virtual cluster.
- {[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. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the cluster.
- container_
provider VirtualCluster Container Provider Args - Configuration block for the container provider associated with your cluster.
- name str
- Name of the virtual cluster.
- 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. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the cluster.
- container
Provider Property Map - Configuration block for the container provider associated with your cluster.
- name String
- Name of the virtual cluster.
- 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. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
VirtualClusterContainerProvider, VirtualClusterContainerProviderArgs
- Id string
- The name of the container provider that is running your EMR Containers cluster
- Info
Virtual
Cluster Container Provider Info - 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
Virtual
Cluster Container Provider Info - 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
Virtual
Cluster Container Provider Info - 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
Virtual
Cluster Container Provider Info - 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
Virtual
Cluster Container Provider Info - 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
- Eks
Info VirtualCluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- Eks
Info VirtualCluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Info VirtualCluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Info VirtualCluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks_
info VirtualCluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Info 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.