GetDiskTypes

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Emr.GetDiskTypes.InvokeAsync(new AliCloud.Emr.GetDiskTypesArgs
        {
            ClusterType = "HADOOP",
            DestinationResource = "DataDisk",
            InstanceChargeType = "PostPaid",
            InstanceType = "ecs.g5.xlarge",
            ZoneId = "cn-huhehaote-a",
        }));
        this.DataDiskType = @default.Apply(@default => @default.Types[0].Value);
    }

    [Output("dataDiskType")]
    public Output<string> DataDiskType { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.emr.get_disk_types(cluster_type="HADOOP",
    destination_resource="DataDisk",
    instance_charge_type="PostPaid",
    instance_type="ecs.g5.xlarge",
    zone_id="cn-huhehaote-a")
pulumi.export("dataDiskType", default.types[0]["value"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultDiskTypes = pulumi.output(alicloud.emr.getDiskTypes({
    clusterType: "HADOOP",
    destinationResource: "DataDisk",
    instanceChargeType: "PostPaid",
    instanceType: "ecs.g5.xlarge",
    zoneId: "cn-huhehaote-a",
}, { async: true }));

export const dataDiskType = defaultDiskTypes.types[0].value;

Using GetDiskTypes

function getDiskTypes(args: GetDiskTypesArgs, opts?: InvokeOptions): Promise<GetDiskTypesResult>
function  get_disk_types(cluster_type=None, destination_resource=None, instance_charge_type=None, instance_type=None, output_file=None, zone_id=None, opts=None)
func GetDiskTypes(ctx *Context, args *GetDiskTypesArgs, opts ...InvokeOption) (*GetDiskTypesResult, error)
public static class GetDiskTypes {
    public static Task<GetDiskTypesResult> InvokeAsync(GetDiskTypesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

DestinationResource string

The destination resource of emr cluster instance

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

InstanceType string

The ecs instance type of create emr cluster instance.

OutputFile string
ZoneId string

The Zone to create emr cluster instance.

ClusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

DestinationResource string

The destination resource of emr cluster instance

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

InstanceType string

The ecs instance type of create emr cluster instance.

OutputFile string
ZoneId string

The Zone to create emr cluster instance.

clusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

destinationResource string

The destination resource of emr cluster instance

instanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

instanceType string

The ecs instance type of create emr cluster instance.

outputFile string
zoneId 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_type str

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

instance_type str

The ecs instance type of create emr cluster instance.

output_file str
zone_id str

The Zone to create emr cluster instance.

GetDiskTypes Result

The following output properties are available:

ClusterType string
DestinationResource 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.

InstanceChargeType string
InstanceType string
Types List<Pulumi.AliCloud.Emr.Outputs.GetDiskTypesType>

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

OutputFile string
ZoneId string
ClusterType string
DestinationResource string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of data disk and system disk type IDs.

InstanceChargeType string
InstanceType string
Types []GetDiskTypesType

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

OutputFile string
ZoneId string
clusterType string
destinationResource string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of data disk and system disk type IDs.

instanceChargeType string
instanceType string
types GetDiskTypesType[]

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

outputFile string
zoneId string
cluster_type str
destination_resource str
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of data disk and system disk type IDs.

instance_charge_type str
instance_type str
types List[GetDiskTypesType]

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

output_file str
zone_id str

Supporting Types

GetDiskTypesType

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Max int

The maximum value of the data disk to supported the specific instance type

Min int

The mininum value of the data disk to supported the specific instance type

Value string

The value of the data disk or system disk

Max int

The maximum value of the data disk to supported the specific instance type

Min int

The mininum value of the data disk to supported the specific instance type

Value string

The value of the data disk or system disk

max number

The maximum value of the data disk to supported the specific instance type

min number

The mininum value of the data disk to supported the specific instance type

value string

The value of the data disk or system disk

max float

The maximum value of the data disk to supported the specific instance type

min float

The mininum value of the data disk to supported the specific instance type

value str

The value of the data disk or system disk

Package Details

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