Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.emr.getDiskTypes
Explore with Pulumi AI
The alicloud.emr.getDiskTypes
data source provides a collection of data disk and
system disk types available in Alibaba Cloud account when create a emr cluster.
NOTE: Available in 1.60.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.emr.getDiskTypes({
destinationResource: "DataDisk",
instanceChargeType: "PostPaid",
clusterType: "HADOOP",
instanceType: "ecs.g5.xlarge",
zoneId: "cn-huhehaote-a",
});
export const dataDiskType = _default.then(_default => _default.types?.[0]?.value);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.emr.get_disk_types(destination_resource="DataDisk",
instance_charge_type="PostPaid",
cluster_type="HADOOP",
instance_type="ecs.g5.xlarge",
zone_id="cn-huhehaote-a")
pulumi.export("dataDiskType", default.types[0].value)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
DestinationResource: "DataDisk",
InstanceChargeType: "PostPaid",
ClusterType: "HADOOP",
InstanceType: "ecs.g5.xlarge",
ZoneId: pulumi.StringRef("cn-huhehaote-a"),
}, nil)
if err != nil {
return err
}
ctx.Export("dataDiskType", _default.Types[0].Value)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Emr.GetDiskTypes.Invoke(new()
{
DestinationResource = "DataDisk",
InstanceChargeType = "PostPaid",
ClusterType = "HADOOP",
InstanceType = "ecs.g5.xlarge",
ZoneId = "cn-huhehaote-a",
});
return new Dictionary<string, object?>
{
["dataDiskType"] = @default.Apply(@default => @default.Apply(getDiskTypesResult => getDiskTypesResult.Types[0]?.Value)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.emr.EmrFunctions;
import com.pulumi.alicloud.emr.inputs.GetDiskTypesArgs;
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 default = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
.destinationResource("DataDisk")
.instanceChargeType("PostPaid")
.clusterType("HADOOP")
.instanceType("ecs.g5.xlarge")
.zoneId("cn-huhehaote-a")
.build());
ctx.export("dataDiskType", default_.types()[0].value());
}
}
variables:
default:
fn::invoke:
Function: alicloud:emr:getDiskTypes
Arguments:
destinationResource: DataDisk
instanceChargeType: PostPaid
clusterType: HADOOP
instanceType: ecs.g5.xlarge
zoneId: cn-huhehaote-a
outputs:
dataDiskType: ${default.types[0].value}
Using getDiskTypes
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 getDiskTypes(args: GetDiskTypesArgs, opts?: InvokeOptions): Promise<GetDiskTypesResult>
function getDiskTypesOutput(args: GetDiskTypesOutputArgs, opts?: InvokeOptions): Output<GetDiskTypesResult>
def get_disk_types(cluster_type: Optional[str] = None,
destination_resource: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_type: Optional[str] = None,
output_file: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiskTypesResult
def get_disk_types_output(cluster_type: Optional[pulumi.Input[str]] = None,
destination_resource: Optional[pulumi.Input[str]] = None,
instance_charge_type: Optional[pulumi.Input[str]] = None,
instance_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiskTypesResult]
func GetDiskTypes(ctx *Context, args *GetDiskTypesArgs, opts ...InvokeOption) (*GetDiskTypesResult, error)
func GetDiskTypesOutput(ctx *Context, args *GetDiskTypesOutputArgs, opts ...InvokeOption) GetDiskTypesResultOutput
> Note: This function is named GetDiskTypes
in the Go SDK.
public static class GetDiskTypes
{
public static Task<GetDiskTypesResult> InvokeAsync(GetDiskTypesArgs args, InvokeOptions? opts = null)
public static Output<GetDiskTypesResult> Invoke(GetDiskTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiskTypesResult> getDiskTypes(GetDiskTypesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:emr/getDiskTypes:getDiskTypes
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Type string - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - Destination
Resource string - The destination resource of emr cluster instance
- Instance
Charge stringType - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - Instance
Type string - The ecs instance type of create emr cluster instance.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Zone
Id string - The Zone to create emr cluster instance.
- Cluster
Type string - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - Destination
Resource string - The destination resource of emr cluster instance
- Instance
Charge stringType - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - Instance
Type string - The ecs instance type of create emr cluster instance.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Zone
Id string - The Zone to create emr cluster instance.
- cluster
Type String - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - destination
Resource String - The destination resource of emr cluster instance
- instance
Charge StringType - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - instance
Type String - The ecs instance type of create emr cluster instance.
- output
File String - File name where to save data source results (after running
pulumi preview
). - zone
Id String - The Zone to create emr cluster instance.
- cluster
Type string - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - destination
Resource string - The destination resource of emr cluster instance
- instance
Charge stringType - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - instance
Type string - The ecs instance type of create emr cluster instance.
- output
File string - File name where to save data source results (after running
pulumi preview
). - zone
Id string - The Zone to create emr cluster instance.
- cluster_
type str - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - destination_
resource str - The destination resource of emr cluster instance
- instance_
charge_ strtype - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - instance_
type str - The ecs instance type of create emr cluster instance.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - zone_
id str - The Zone to create emr cluster instance.
- cluster
Type String - The cluster type of the emr cluster instance. Possible values:
HADOOP
,KAFKA
,ZOOKEEPER
,DRUID
. - destination
Resource String - The destination resource of emr cluster instance
- instance
Charge StringType - Filter the results by charge type. Valid values:
PrePaid
andPostPaid
. Default toPostPaid
. - instance
Type String - The ecs instance type of create emr cluster instance.
- output
File String - File name where to save data source results (after running
pulumi preview
). - zone
Id String - The Zone to create emr cluster instance.
getDiskTypes Result
The following output properties are available:
- Cluster
Type string - Destination
Resource string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of data disk and system disk type IDs.
- Instance
Charge stringType - Instance
Type string - Types
List<Pulumi.
Ali Cloud. Emr. Outputs. Get Disk Types Type> - A list of emr instance types. Each element contains the following attributes:
- Output
File string - Zone
Id string
- Cluster
Type string - Destination
Resource string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of data disk and system disk type IDs.
- Instance
Charge stringType - Instance
Type string - Types
[]Get
Disk Types Type - A list of emr instance types. Each element contains the following attributes:
- Output
File string - Zone
Id string
- cluster
Type String - destination
Resource String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of data disk and system disk type IDs.
- instance
Charge StringType - instance
Type String - types
List<Get
Disk Types Type> - A list of emr instance types. Each element contains the following attributes:
- output
File String - zone
Id String
- cluster
Type string - destination
Resource string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of data disk and system disk type IDs.
- instance
Charge stringType - instance
Type string - types
Get
Disk Types Type[] - A list of emr instance types. Each element contains the following attributes:
- output
File string - zone
Id string
- cluster_
type str - destination_
resource str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of data disk and system disk type IDs.
- instance_
charge_ strtype - instance_
type str - types
Sequence[Get
Disk Types Type] - A list of emr instance types. Each element contains the following attributes:
- output_
file str - zone_
id str
- cluster
Type String - destination
Resource String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of data disk and system disk type IDs.
- instance
Charge StringType - instance
Type String - types List<Property Map>
- A list of emr instance types. Each element contains the following attributes:
- output
File String - zone
Id String
Supporting Types
GetDiskTypesType
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.