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

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.emrcontainers.getVirtualCluster

Explore with Pulumi AI

aws logo

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

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Retrieve information about an EMR Containers (EMR on EKS) Virtual Cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.emrcontainers.getVirtualCluster({
        virtualClusterId: "example id",
    });
    export const name = example.then(example => example.name);
    export const arn = example.then(example => example.arn);
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.emrcontainers.get_virtual_cluster(virtual_cluster_id="example id")
    pulumi.export("name", example.name)
    pulumi.export("arn", example.arn)
    
    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 {
    		example, err := emrcontainers.LookupVirtualCluster(ctx, &emrcontainers.LookupVirtualClusterArgs{
    			VirtualClusterId: "example id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("name", example.Name)
    		ctx.Export("arn", example.Arn)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.EmrContainers.GetVirtualCluster.Invoke(new()
        {
            VirtualClusterId = "example id",
        });
    
        return new Dictionary<string, object?>
        {
            ["name"] = example.Apply(getVirtualClusterResult => getVirtualClusterResult.Name),
            ["arn"] = example.Apply(getVirtualClusterResult => getVirtualClusterResult.Arn),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.emrcontainers.EmrcontainersFunctions;
    import com.pulumi.aws.emrcontainers.inputs.GetVirtualClusterArgs;
    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 example = EmrcontainersFunctions.getVirtualCluster(GetVirtualClusterArgs.builder()
                .virtualClusterId("example id")
                .build());
    
            ctx.export("name", example.applyValue(getVirtualClusterResult -> getVirtualClusterResult.name()));
            ctx.export("arn", example.applyValue(getVirtualClusterResult -> getVirtualClusterResult.arn()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:emrcontainers:getVirtualCluster
          Arguments:
            virtualClusterId: example id
    outputs:
      name: ${example.name}
      arn: ${example.arn}
    

    Using getVirtualCluster

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVirtualCluster(args: GetVirtualClusterArgs, opts?: InvokeOptions): Promise<GetVirtualClusterResult>
    function getVirtualClusterOutput(args: GetVirtualClusterOutputArgs, opts?: InvokeOptions): Output<GetVirtualClusterResult>
    def get_virtual_cluster(tags: Optional[Mapping[str, str]] = None,
                            virtual_cluster_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetVirtualClusterResult
    def get_virtual_cluster_output(tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                            virtual_cluster_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetVirtualClusterResult]
    func LookupVirtualCluster(ctx *Context, args *LookupVirtualClusterArgs, opts ...InvokeOption) (*LookupVirtualClusterResult, error)
    func LookupVirtualClusterOutput(ctx *Context, args *LookupVirtualClusterOutputArgs, opts ...InvokeOption) LookupVirtualClusterResultOutput

    > Note: This function is named LookupVirtualCluster in the Go SDK.

    public static class GetVirtualCluster 
    {
        public static Task<GetVirtualClusterResult> InvokeAsync(GetVirtualClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualClusterResult> Invoke(GetVirtualClusterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualClusterResult> getVirtualCluster(GetVirtualClusterArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:emrcontainers/getVirtualCluster:getVirtualCluster
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VirtualClusterId string
    ID of the cluster.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags.
    VirtualClusterId string
    ID of the cluster.
    Tags map[string]string
    Key-value mapping of resource tags.
    virtualClusterId String
    ID of the cluster.
    tags Map<String,String>
    Key-value mapping of resource tags.
    virtualClusterId string
    ID of the cluster.
    tags {[key: string]: string}
    Key-value mapping of resource tags.
    virtual_cluster_id str
    ID of the cluster.
    tags Mapping[str, str]
    Key-value mapping of resource tags.
    virtualClusterId String
    ID of the cluster.
    tags Map<String>
    Key-value mapping of resource tags.

    getVirtualCluster Result

    The following output properties are available:

    Arn string
    ARN of the cluster.
    ContainerProviders List<GetVirtualClusterContainerProvider>
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    CreatedAt string
    Unix epoch time stamp in seconds for when the cluster was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the cluster.
    State string
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    Tags Dictionary<string, string>
    Key-value mapping of resource tags.
    VirtualClusterId string
    Arn string
    ARN of the cluster.
    ContainerProviders []GetVirtualClusterContainerProvider
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    CreatedAt string
    Unix epoch time stamp in seconds for when the cluster was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the cluster.
    State string
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    Tags map[string]string
    Key-value mapping of resource tags.
    VirtualClusterId string
    arn String
    ARN of the cluster.
    containerProviders List<GetVirtualClusterContainerProvider>
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    createdAt String
    Unix epoch time stamp in seconds for when the cluster was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the cluster.
    state String
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    tags Map<String,String>
    Key-value mapping of resource tags.
    virtualClusterId String
    arn string
    ARN of the cluster.
    containerProviders GetVirtualClusterContainerProvider[]
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    createdAt string
    Unix epoch time stamp in seconds for when the cluster was created.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the cluster.
    state string
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    tags {[key: string]: string}
    Key-value mapping of resource tags.
    virtualClusterId string
    arn str
    ARN of the cluster.
    container_providers Sequence[GetVirtualClusterContainerProvider]
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    created_at str
    Unix epoch time stamp in seconds for when the cluster was created.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the cluster.
    state str
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    tags Mapping[str, str]
    Key-value mapping of resource tags.
    virtual_cluster_id str
    arn String
    ARN of the cluster.
    containerProviders List<Property Map>
    Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
    createdAt String
    Unix epoch time stamp in seconds for when the cluster was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the cluster.
    state String
    Status of the EKS cluster. One of RUNNING, TERMINATING, TERMINATED, ARRESTED.
    tags Map<String>
    Key-value mapping of resource tags.
    virtualClusterId String

    Supporting Types

    GetVirtualClusterContainerProvider

    Id string
    The name of the container provider that is running your EMR Containers cluster
    Infos List<GetVirtualClusterContainerProviderInfo>
    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
    Infos []GetVirtualClusterContainerProviderInfo
    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
    infos List<GetVirtualClusterContainerProviderInfo>
    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
    infos GetVirtualClusterContainerProviderInfo[]
    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
    infos Sequence[GetVirtualClusterContainerProviderInfo]
    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
    infos List<Property Map>
    Nested list containing information about the configuration of the container provider
    type String
    The type of the container provider

    GetVirtualClusterContainerProviderInfo

    EksInfos List<GetVirtualClusterContainerProviderInfoEksInfo>
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    EksInfos []GetVirtualClusterContainerProviderInfoEksInfo
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfos List<GetVirtualClusterContainerProviderInfoEksInfo>
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfos GetVirtualClusterContainerProviderInfoEksInfo[]
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eks_infos Sequence[GetVirtualClusterContainerProviderInfoEksInfo]
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    eksInfos List<Property Map>
    Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running

    GetVirtualClusterContainerProviderInfoEksInfo

    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

    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.42.0 published on Wednesday, Jun 26, 2024 by Pulumi