Show / Hide Table of Contents

Class GetMainVersions

Inheritance
System.Object
GetMainVersions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Emr
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetMainVersions

Methods

View Source

InvokeAsync(GetMainVersionsArgs, InvokeOptions)

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+

{{% examples %}}

Example Usage

{{% example %}}

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; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetMainVersionsResult> InvokeAsync(GetMainVersionsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetMainVersionsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetMainVersionsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.