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:
- Cluster
Types 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”]
- Emr
Version string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- Output
File string
- Cluster
Types []string 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 string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- Output
File string
- cluster
Types string[] 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 string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- output
File 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.
- Main
Versions List<Pulumi.Ali Cloud. Emr. Outputs. Get Main Versions Main Version> A list of versions of the emr cluster instance. Each element contains the following attributes:
- Cluster
Types List<string> - Emr
Version string The version of the emr cluster instance.
- Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of emr instance types IDs.
- Main
Versions []GetMain Versions Main Version A list of versions of the emr cluster instance. Each element contains the following attributes:
- Cluster
Types []string - Emr
Version string The version of the emr cluster instance.
- Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of emr instance types IDs.
- main
Versions GetMain Versions Main Version[] A list of versions of the emr cluster instance. Each element contains the following attributes:
- cluster
Types string[] - emr
Version string The version of the emr cluster instance.
- output
File 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[GetMain Versions Main Version] 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.
- Cluster
Types List<string> A list of cluster types the emr cluster supported. Possible values:
HADOOP,ZOOKEEPER,KAFKA,DRUID.- Emr
Version string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- Image
Id string The image id of the emr cluster instance.
- Cluster
Types []string A list of cluster types the emr cluster supported. Possible values:
HADOOP,ZOOKEEPER,KAFKA,DRUID.- Emr
Version string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- Image
Id string The image id of the emr cluster instance.
- cluster
Types string[] A list of cluster types the emr cluster supported. Possible values:
HADOOP,ZOOKEEPER,KAFKA,DRUID.- emr
Version string The version of the emr cluster instance. Possible values:
EMR-4.0.0,EMR-3.23.0,EMR-3.22.0.- image
Id string The image id of the emr cluster instance.
- cluster
Types List[str] A list of cluster types the emr cluster supported. Possible values:
HADOOP,ZOOKEEPER,KAFKA,DRUID.- emr
Version 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
alicloudTerraform Provider.