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:
- 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:
PrePaidandPostPaid. Default toPostPaid.- Instance
Type string The ecs instance type of create emr cluster instance.
- Output
File string - 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:
PrePaidandPostPaid. Default toPostPaid.- Instance
Type string The ecs instance type of create emr cluster instance.
- Output
File string - 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:
PrePaidandPostPaid. Default toPostPaid.- instance
Type string The ecs instance type of create emr cluster instance.
- output
File string - 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:
PrePaidandPostPaid. Default toPostPaid.- 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:
- 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 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 List[str]
A list of data disk and system disk type IDs.
- instance_
charge_ strtype - instance_
type str - types
List[Get
Disk Types Type] 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.