Метод | Описание | |
---|---|---|
Invoke ( GetMainVersionsInvokeArgs? args = null, InvokeOptions? options = null ) : Output |
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 %}} ```csharp 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 %}}
|
|
InvokeAsync ( GetMainVersionsArgs? args = null, InvokeOptions? options = null ) : Task |
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 %}} ```csharp 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 %}}
|
public static Invoke ( GetMainVersionsInvokeArgs? args = null, InvokeOptions? options = null ) : Output |
||
args | GetMainVersionsInvokeArgs? | |
options | InvokeOptions? | |
Результат | Output |
public static InvokeAsync ( GetMainVersionsArgs? args = null, InvokeOptions? options = null ) : Task |
||
args | GetMainVersionsArgs? | |
options | InvokeOptions? | |
Результат | Task |