GetMainVersions

The alicloud.emr.getMainVersions data source provides a collection of emr main versions available in Alibaba Cloud account when create a emr cluster.

NOTE: Available in 1.59.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Emr.GetMainVersions.InvokeAsync(new AliCloud.Emr.GetMainVersionsArgs
        {
            ClusterTypes = 
            {
                "HADOOP",
                "ZOOKEEPER",
            },
            EmrVersion = "EMR-3.22.0",
        }));
        this.FirstMainVersion = @default.Apply(@default => @default.MainVersions[0].EmrVersion);
        this.ThisClusterTypes = @default.Apply(@default => @default.MainVersions[0].ClusterTypes);
    }

    [Output("firstMainVersion")]
    public Output<string> FirstMainVersion { get; set; }
    [Output("thisClusterTypes")]
    public Output<string> ThisClusterTypes { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.emr.get_main_versions(cluster_types=[
        "HADOOP",
        "ZOOKEEPER",
    ],
    emr_version="EMR-3.22.0")
pulumi.export("firstMainVersion", default.main_versions[0]["emrVersion"])
pulumi.export("thisClusterTypes", default.main_versions[0]["clusterTypes"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultMainVersions = pulumi.output(alicloud.emr.getMainVersions({
    clusterTypes: [
        "HADOOP",
        "ZOOKEEPER",
    ],
    emrVersion: "EMR-3.22.0",
}, { async: true }));

export const firstMainVersion = defaultMainVersions.mainVersions[0].emrVersion;
export const thisClusterTypes = defaultMainVersions.mainVersions[0].clusterTypes;

Using GetMainVersions

function getMainVersions(args: GetMainVersionsArgs, opts?: InvokeOptions): Promise<GetMainVersionsResult>
function  get_main_versions(cluster_types=None, emr_version=None, output_file=None, opts=None)
func GetMainVersions(ctx *Context, args *GetMainVersionsArgs, opts ...InvokeOption) (*GetMainVersionsResult, error)
public static class GetMainVersions {
    public static Task<GetMainVersionsResult> InvokeAsync(GetMainVersionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterTypes List<string>

The supported clusterType of this emr version. Possible values may be any one or combination of these: [“HADOOP”, “DRUID”, “KAFKA”, “ZOOKEEPER”, “FLINK”, “CLICKHOUSE”]

EmrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

OutputFile string
ClusterTypes []string

The supported clusterType of this emr version. Possible values may be any one or combination of these: [“HADOOP”, “DRUID”, “KAFKA”, “ZOOKEEPER”, “FLINK”, “CLICKHOUSE”]

EmrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

OutputFile string
clusterTypes string[]

The supported clusterType of this emr version. Possible values may be any one or combination of these: [“HADOOP”, “DRUID”, “KAFKA”, “ZOOKEEPER”, “FLINK”, “CLICKHOUSE”]

emrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

outputFile string
cluster_types List[str]

The supported clusterType of this emr version. Possible values may be any one or combination of these: [“HADOOP”, “DRUID”, “KAFKA”, “ZOOKEEPER”, “FLINK”, “CLICKHOUSE”]

emr_version str

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

output_file str

GetMainVersions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of emr instance types IDs.

MainVersions List<Pulumi.AliCloud.Emr.Outputs.GetMainVersionsMainVersion>

A list of versions of the emr cluster instance. Each element contains the following attributes:

ClusterTypes List<string>
EmrVersion string

The version of the emr cluster instance.

OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of emr instance types IDs.

MainVersions []GetMainVersionsMainVersion

A list of versions of the emr cluster instance. Each element contains the following attributes:

ClusterTypes []string
EmrVersion string

The version of the emr cluster instance.

OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of emr instance types IDs.

mainVersions GetMainVersionsMainVersion[]

A list of versions of the emr cluster instance. Each element contains the following attributes:

clusterTypes string[]
emrVersion string

The version of the emr cluster instance.

outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of emr instance types IDs.

main_versions List[GetMainVersionsMainVersion]

A list of versions of the emr cluster instance. Each element contains the following attributes:

cluster_types List[str]
emr_version str

The version of the emr cluster instance.

output_file str

Supporting Types

GetMainVersionsMainVersion

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ClusterTypes List<string>

A list of cluster types the emr cluster supported. Possible values: HADOOP, ZOOKEEPER, KAFKA, DRUID.

EmrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

ImageId string

The image id of the emr cluster instance.

ClusterTypes []string

A list of cluster types the emr cluster supported. Possible values: HADOOP, ZOOKEEPER, KAFKA, DRUID.

EmrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

ImageId string

The image id of the emr cluster instance.

clusterTypes string[]

A list of cluster types the emr cluster supported. Possible values: HADOOP, ZOOKEEPER, KAFKA, DRUID.

emrVersion string

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

imageId string

The image id of the emr cluster instance.

clusterTypes List[str]

A list of cluster types the emr cluster supported. Possible values: HADOOP, ZOOKEEPER, KAFKA, DRUID.

emrVersion str

The version of the emr cluster instance. Possible values: EMR-4.0.0, EMR-3.23.0, EMR-3.22.0.

image_id str

The image id of the emr cluster instance.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.