AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.emrcontainers.getVirtualCluster
Explore with Pulumi AI
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:
- Virtual
Cluster stringId - ID of the cluster.
- Dictionary<string, string>
- Key-value mapping of resource tags.
- Virtual
Cluster stringId - ID of the cluster.
- map[string]string
- Key-value mapping of resource tags.
- virtual
Cluster StringId - ID of the cluster.
- Map<String,String>
- Key-value mapping of resource tags.
- virtual
Cluster stringId - ID of the cluster.
- {[key: string]: string}
- Key-value mapping of resource tags.
- virtual_
cluster_ strid - ID of the cluster.
- Mapping[str, str]
- Key-value mapping of resource tags.
- virtual
Cluster StringId - ID of the cluster.
- Map<String>
- Key-value mapping of resource tags.
getVirtualCluster Result
The following output properties are available:
- Arn string
- ARN of the cluster.
- Container
Providers List<GetVirtual Cluster Container Provider> - Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
- Created
At 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
. - Dictionary<string, string>
- Key-value mapping of resource tags.
- Virtual
Cluster stringId
- Arn string
- ARN of the cluster.
- Container
Providers []GetVirtual Cluster Container Provider - Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
- Created
At 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
. - map[string]string
- Key-value mapping of resource tags.
- Virtual
Cluster stringId
- arn String
- ARN of the cluster.
- container
Providers List<GetVirtual Cluster Container Provider> - Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
- created
At 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
. - Map<String,String>
- Key-value mapping of resource tags.
- virtual
Cluster StringId
- arn string
- ARN of the cluster.
- container
Providers GetVirtual Cluster Container Provider[] - Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
- created
At 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
. - {[key: string]: string}
- Key-value mapping of resource tags.
- virtual
Cluster stringId
- arn str
- ARN of the cluster.
- container_
providers Sequence[GetVirtual Cluster Container Provider] - 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
. - Mapping[str, str]
- Key-value mapping of resource tags.
- virtual_
cluster_ strid
- arn String
- ARN of the cluster.
- container
Providers List<Property Map> - Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster.
- created
At 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
. - Map<String>
- Key-value mapping of resource tags.
- virtual
Cluster StringId
Supporting Types
GetVirtualClusterContainerProvider
- Id string
- The name of the container provider that is running your EMR Containers cluster
- Infos
List<Get
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
- Infos
[]Get
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
- infos
List<Get
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
- infos
Get
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
- infos
Sequence[Get
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
- infos List<Property Map>
- Nested list containing information about the configuration of the container provider
- type String
- The type of the container provider
GetVirtualClusterContainerProviderInfo
- Eks
Infos List<GetVirtual Cluster Container Provider Info Eks Info> - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- Eks
Infos []GetVirtual Cluster Container Provider Info Eks Info - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Infos List<GetVirtual Cluster Container Provider Info Eks Info> - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Infos GetVirtual Cluster Container Provider Info Eks Info[] - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks_
infos Sequence[GetVirtual Cluster Container Provider Info Eks Info] - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
- eks
Infos 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.