Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

getClusters

This data source provides the Emr Clusters of the current Alibaba Cloud user.

NOTE: Available in v1.146.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testAccClusters";
        var defaultResourceGroups = Output.Create(AliCloud.ResourceManager.GetResourceGroups.InvokeAsync(new AliCloud.ResourceManager.GetResourceGroupsArgs
        {
            Status = "OK",
        }));
        var defaultMainVersions = Output.Create(AliCloud.Emr.GetMainVersions.InvokeAsync());
        var defaultInstanceTypes = defaultMainVersions.Apply(defaultMainVersions => Output.Create(AliCloud.Emr.GetInstanceTypes.InvokeAsync(new AliCloud.Emr.GetInstanceTypesArgs
        {
            DestinationResource = "InstanceType",
            ClusterType = defaultMainVersions.MainVersions?[0]?.ClusterTypes?[0],
            SupportLocalStorage = false,
            InstanceChargeType = "PostPaid",
            SupportNodeTypes = 
            {
                "MASTER",
                "CORE",
                "TASK",
            },
        })));
        var dataDisk = Output.Tuple(defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes).Apply(values =>
        {
            var defaultMainVersions = values.Item1;
            var defaultInstanceTypes = values.Item2;
            var defaultInstanceTypes1 = values.Item3;
            return Output.Create(AliCloud.Emr.GetDiskTypes.InvokeAsync(new AliCloud.Emr.GetDiskTypesArgs
            {
                DestinationResource = "DataDisk",
                ClusterType = defaultMainVersions.MainVersions?[0]?.ClusterTypes?[0],
                InstanceChargeType = "PostPaid",
                InstanceType = defaultInstanceTypes.Types?[0]?.Id,
                ZoneId = defaultInstanceTypes1.Types?[0]?.ZoneId,
            }));
        });
        var systemDisk = Output.Tuple(defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes).Apply(values =>
        {
            var defaultMainVersions = values.Item1;
            var defaultInstanceTypes = values.Item2;
            var defaultInstanceTypes1 = values.Item3;
            return Output.Create(AliCloud.Emr.GetDiskTypes.InvokeAsync(new AliCloud.Emr.GetDiskTypesArgs
            {
                DestinationResource = "SystemDisk",
                ClusterType = defaultMainVersions.MainVersions?[0]?.ClusterTypes?[0],
                InstanceChargeType = "PostPaid",
                InstanceType = defaultInstanceTypes.Types?[0]?.Id,
                ZoneId = defaultInstanceTypes1.Types?[0]?.ZoneId,
            }));
        });
        var defaultNetworks = Output.Create(AliCloud.Vpc.GetNetworks.InvokeAsync(new AliCloud.Vpc.GetNetworksArgs
        {
            NameRegex = "default-NODELETING",
        }));
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new AliCloud.Ecs.SecurityGroupArgs
        {
            VpcId = defaultNetworks.Apply(defaultNetworks => defaultNetworks.Ids?[0]),
        });
        var defaultSwitches = Output.Tuple(defaultNetworks, defaultInstanceTypes).Apply(values =>
        {
            var defaultNetworks = values.Item1;
            var defaultInstanceTypes = values.Item2;
            return Output.Create(AliCloud.Vpc.GetSwitches.InvokeAsync(new AliCloud.Vpc.GetSwitchesArgs
            {
                VpcId = defaultNetworks.Ids?[0],
                ZoneId = defaultInstanceTypes.Types?[0]?.ZoneId,
            }));
        });
        var defaultRole = new AliCloud.Ram.Role("defaultRole", new AliCloud.Ram.RoleArgs
        {
            Document = @"    {
        ""Statement"": [
        {
            ""Action"": ""sts:AssumeRole"",
            ""Effect"": ""Allow"",
            ""Principal"": {
            ""Service"": [
                ""emr.aliyuncs.com"",
                ""ecs.aliyuncs.com""
            ]
            }
        }
        ],
        ""Version"": ""1""
    }
",
            Description = "this is a role test.",
            Force = true,
        });
        var defaultCluster = new AliCloud.Emr.Cluster("defaultCluster", new AliCloud.Emr.ClusterArgs
        {
            EmrVer = defaultMainVersions.Apply(defaultMainVersions => defaultMainVersions.MainVersions?[0]?.EmrVersion),
            ClusterType = defaultMainVersions.Apply(defaultMainVersions => defaultMainVersions.MainVersions?[0]?.ClusterTypes?[0]),
            HostGroups = 
            {
                new AliCloud.Emr.Inputs.ClusterHostGroupArgs
                {
                    HostGroupName = "master_group",
                    HostGroupType = "MASTER",
                    NodeCount = "2",
                    InstanceType = defaultInstanceTypes.Apply(defaultInstanceTypes => defaultInstanceTypes.Types?[0]?.Id),
                    DiskType = dataDisk.Apply(dataDisk => dataDisk.Types?[0]?.Value),
                    DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values =>
                    {
                        var dataDisk = values.Item1;
                        var dataDisk1 = values.Item2;
                        return dataDisk.Types?[0]?.Min > 160 ? dataDisk1.Types?[0]?.Min : 160;
                    }),
                    DiskCount = "1",
                    SysDiskType = systemDisk.Apply(systemDisk => systemDisk.Types?[0]?.Value),
                    SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values =>
                    {
                        var systemDisk = values.Item1;
                        var systemDisk1 = values.Item2;
                        return systemDisk.Types?[0]?.Min > 160 ? systemDisk1.Types?[0]?.Min : 160;
                    }),
                },
                new AliCloud.Emr.Inputs.ClusterHostGroupArgs
                {
                    HostGroupName = "core_group",
                    HostGroupType = "CORE",
                    NodeCount = "3",
                    InstanceType = defaultInstanceTypes.Apply(defaultInstanceTypes => defaultInstanceTypes.Types?[0]?.Id),
                    DiskType = dataDisk.Apply(dataDisk => dataDisk.Types?[0]?.Value),
                    DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values =>
                    {
                        var dataDisk = values.Item1;
                        var dataDisk1 = values.Item2;
                        return dataDisk.Types?[0]?.Min > 160 ? dataDisk1.Types?[0]?.Min : 160;
                    }),
                    DiskCount = "4",
                    SysDiskType = systemDisk.Apply(systemDisk => systemDisk.Types?[0]?.Value),
                    SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values =>
                    {
                        var systemDisk = values.Item1;
                        var systemDisk1 = values.Item2;
                        return systemDisk.Types?[0]?.Min > 160 ? systemDisk1.Types?[0]?.Min : 160;
                    }),
                },
                new AliCloud.Emr.Inputs.ClusterHostGroupArgs
                {
                    HostGroupName = "task_group",
                    HostGroupType = "TASK",
                    NodeCount = "2",
                    InstanceType = defaultInstanceTypes.Apply(defaultInstanceTypes => defaultInstanceTypes.Types?[0]?.Id),
                    DiskType = dataDisk.Apply(dataDisk => dataDisk.Types?[0]?.Value),
                    DiskCapacity = Output.Tuple(dataDisk, dataDisk).Apply(values =>
                    {
                        var dataDisk = values.Item1;
                        var dataDisk1 = values.Item2;
                        return dataDisk.Types?[0]?.Min > 160 ? dataDisk1.Types?[0]?.Min : 160;
                    }),
                    DiskCount = "4",
                    SysDiskType = systemDisk.Apply(systemDisk => systemDisk.Types?[0]?.Value),
                    SysDiskCapacity = Output.Tuple(systemDisk, systemDisk).Apply(values =>
                    {
                        var systemDisk = values.Item1;
                        var systemDisk1 = values.Item2;
                        return systemDisk.Types?[0]?.Min > 160 ? systemDisk1.Types?[0]?.Min : 160;
                    }),
                },
            },
            HighAvailabilityEnable = true,
            ZoneId = defaultInstanceTypes.Apply(defaultInstanceTypes => defaultInstanceTypes.Types?[0]?.ZoneId),
            SecurityGroupId = defaultSecurityGroup.Id,
            IsOpenPublicIp = true,
            ChargeType = "PostPaid",
            VswitchId = defaultSwitches.Apply(defaultSwitches => defaultSwitches.Ids?[0]),
            UserDefinedEmrEcsRole = defaultRole.Name,
            SshEnable = true,
            MasterPwd = "ABCtest1234!",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "acceptance test" },
            },
        });
        var ids = Output.Create(AliCloud.Emr.GetClusters.InvokeAsync());
        this.EmrClusterId1 = ids.Apply(ids => ids.Clusters?[0]?.Id);
        var nameRegex = AliCloud.Emr.GetClusters.Invoke(new AliCloud.Emr.GetClustersInvokeArgs
        {
            NameRegex = defaultCluster.Name,
        });
        this.EmrClusterId2 = nameRegex.Apply(nameRegex => nameRegex.Clusters?[0]?.Id);
    }

    [Output("emrClusterId1")]
    public Output<string> EmrClusterId1 { get; set; }
    [Output("emrClusterId2")]
    public Output<string> EmrClusterId2 { get; set; }
}

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.emr.EmrFunctions;
import com.pulumi.alicloud.emr.inputs.GetMainVersionsArgs;
import com.pulumi.alicloud.ecp.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.emr.inputs.GetDiskTypesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.cloudconnect.inputs.GetNetworksArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ram.Role;
import com.pulumi.alicloud.ram.RoleArgs;
import com.pulumi.alicloud.emr.Cluster;
import com.pulumi.alicloud.emr.ClusterArgs;
import com.pulumi.alicloud.emr.inputs.ClusterHostGroupArgs;
import com.pulumi.alicloud.adb.inputs.GetClustersArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("tf-testAccClusters");
        final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
            .status("OK")
            .build());

        final var defaultMainVersions = EmrFunctions.getMainVersions();

        final var defaultInstanceTypes = EmrFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
            .destinationResource("InstanceType")
            .clusterType(defaultMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
            .supportLocalStorage(false)
            .instanceChargeType("PostPaid")
            .supportNodeTypes(            
                "MASTER",
                "CORE",
                "TASK")
            .build());

        final var dataDisk = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
            .destinationResource("DataDisk")
            .clusterType(defaultMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
            .instanceChargeType("PostPaid")
            .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
            .zoneId(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
            .build());

        final var systemDisk = EmrFunctions.getDiskTypes(GetDiskTypesArgs.builder()
            .destinationResource("SystemDisk")
            .clusterType(defaultMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
            .instanceChargeType("PostPaid")
            .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
            .zoneId(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
            .build());

        final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("default-NODELETING")
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .build());

        final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
            .build());

        var defaultRole = new Role("defaultRole", RoleArgs.builder()        
            .document("""
    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }
            """)
            .description("this is a role test.")
            .force(true)
            .build());

        var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()        
            .emrVer(defaultMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].emrVersion()))
            .clusterType(defaultMainVersions.applyValue(getMainVersionsResult -> getMainVersionsResult.mainVersions()[0].clusterTypes()[0]))
            .hostGroups(            
                ClusterHostGroupArgs.builder()
                    .hostGroupName("master_group")
                    .hostGroupType("MASTER")
                    .nodeCount("2")
                    .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
                    .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .diskCount("1")
                    .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .build(),
                ClusterHostGroupArgs.builder()
                    .hostGroupName("core_group")
                    .hostGroupType("CORE")
                    .nodeCount("3")
                    .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
                    .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .diskCount("4")
                    .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .build(),
                ClusterHostGroupArgs.builder()
                    .hostGroupName("task_group")
                    .hostGroupType("TASK")
                    .nodeCount("2")
                    .instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].id()))
                    .diskType(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .diskCapacity(dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? dataDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .diskCount("4")
                    .sysDiskType(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].value()))
                    .sysDiskCapacity(systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) > 160 ? systemDisk.applyValue(getDiskTypesResult -> getDiskTypesResult.types()[0].min()) : 160)
                    .build())
            .highAvailabilityEnable(true)
            .zoneId(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.types()[0].zoneId()))
            .securityGroupId(defaultSecurityGroup.id())
            .isOpenPublicIp(true)
            .chargeType("PostPaid")
            .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
            .userDefinedEmrEcsRole(defaultRole.name())
            .sshEnable(true)
            .masterPwd("ABCtest1234!")
            .tags(Map.ofEntries(
                Map.entry("Created", "TF"),
                Map.entry("For", "acceptance test")
            ))
            .build());

        final var ids = EmrFunctions.getClusters();

        ctx.export("emrClusterId1", ids.applyValue(getClustersResult -> getClustersResult.clusters()[0].id()));
        final var nameRegex = EmrFunctions.getClusters(GetClustersArgs.builder()
            .nameRegex(defaultCluster.name())
            .build());

        ctx.export("emrClusterId2", nameRegex.applyValue(getClustersResult -> getClustersResult).applyValue(nameRegex -> nameRegex.applyValue(getClustersResult -> getClustersResult.clusters()[0].id())));
    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testAccClusters"
default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
default_main_versions = alicloud.emr.get_main_versions()
default_instance_types = alicloud.emr.get_instance_types(destination_resource="InstanceType",
    cluster_type=default_main_versions.main_versions[0].cluster_types[0],
    support_local_storage=False,
    instance_charge_type="PostPaid",
    support_node_types=[
        "MASTER",
        "CORE",
        "TASK",
    ])
data_disk = alicloud.emr.get_disk_types(destination_resource="DataDisk",
    cluster_type=default_main_versions.main_versions[0].cluster_types[0],
    instance_charge_type="PostPaid",
    instance_type=default_instance_types.types[0].id,
    zone_id=default_instance_types.types[0].zone_id)
system_disk = alicloud.emr.get_disk_types(destination_resource="SystemDisk",
    cluster_type=default_main_versions.main_versions[0].cluster_types[0],
    instance_charge_type="PostPaid",
    instance_type=default_instance_types.types[0].id,
    zone_id=default_instance_types.types[0].zone_id)
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_networks.ids[0])
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
    zone_id=default_instance_types.types[0].zone_id)
default_role = alicloud.ram.Role("defaultRole",
    document="""    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }
""",
    description="this is a role test.",
    force=True)
default_cluster = alicloud.emr.Cluster("defaultCluster",
    emr_ver=default_main_versions.main_versions[0].emr_version,
    cluster_type=default_main_versions.main_versions[0].cluster_types[0],
    host_groups=[
        alicloud.emr.ClusterHostGroupArgs(
            host_group_name="master_group",
            host_group_type="MASTER",
            node_count="2",
            instance_type=default_instance_types.types[0].id,
            disk_type=data_disk.types[0].value,
            disk_capacity=data_disk.types[0].min if data_disk.types[0].min > 160 else "160",
            disk_count="1",
            sys_disk_type=system_disk.types[0].value,
            sys_disk_capacity=system_disk.types[0].min if system_disk.types[0].min > 160 else "160",
        ),
        alicloud.emr.ClusterHostGroupArgs(
            host_group_name="core_group",
            host_group_type="CORE",
            node_count="3",
            instance_type=default_instance_types.types[0].id,
            disk_type=data_disk.types[0].value,
            disk_capacity=data_disk.types[0].min if data_disk.types[0].min > 160 else "160",
            disk_count="4",
            sys_disk_type=system_disk.types[0].value,
            sys_disk_capacity=system_disk.types[0].min if system_disk.types[0].min > 160 else "160",
        ),
        alicloud.emr.ClusterHostGroupArgs(
            host_group_name="task_group",
            host_group_type="TASK",
            node_count="2",
            instance_type=default_instance_types.types[0].id,
            disk_type=data_disk.types[0].value,
            disk_capacity=data_disk.types[0].min if data_disk.types[0].min > 160 else "160",
            disk_count="4",
            sys_disk_type=system_disk.types[0].value,
            sys_disk_capacity=system_disk.types[0].min if system_disk.types[0].min > 160 else "160",
        ),
    ],
    high_availability_enable=True,
    zone_id=default_instance_types.types[0].zone_id,
    security_group_id=default_security_group.id,
    is_open_public_ip=True,
    charge_type="PostPaid",
    vswitch_id=default_switches.ids[0],
    user_defined_emr_ecs_role=default_role.name,
    ssh_enable=True,
    master_pwd="ABCtest1234!",
    tags={
        "Created": "TF",
        "For": "acceptance test",
    })
ids = alicloud.emr.get_clusters()
pulumi.export("emrClusterId1", ids.clusters[0].id)
name_regex = alicloud.emr.get_clusters_output(name_regex=default_cluster.name)
pulumi.export("emrClusterId2", name_regex.clusters[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccClusters";
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
    status: "OK",
});
const defaultMainVersions = alicloud.emr.getMainVersions({});
const defaultInstanceTypes = defaultMainVersions.then(defaultMainVersions => alicloud.emr.getInstanceTypes({
    destinationResource: "InstanceType",
    clusterType: defaultMainVersions.mainVersions?[0]?.clusterTypes?[0],
    supportLocalStorage: false,
    instanceChargeType: "PostPaid",
    supportNodeTypes: [
        "MASTER",
        "CORE",
        "TASK",
    ],
}));
const dataDisk = Promise.all([defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes]).then(([defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes1]) => alicloud.emr.getDiskTypes({
    destinationResource: "DataDisk",
    clusterType: defaultMainVersions.mainVersions?[0]?.clusterTypes?[0],
    instanceChargeType: "PostPaid",
    instanceType: defaultInstanceTypes.types?[0]?.id,
    zoneId: defaultInstanceTypes1.types?[0]?.zoneId,
}));
const systemDisk = Promise.all([defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes]).then(([defaultMainVersions, defaultInstanceTypes, defaultInstanceTypes1]) => alicloud.emr.getDiskTypes({
    destinationResource: "SystemDisk",
    clusterType: defaultMainVersions.mainVersions?[0]?.clusterTypes?[0],
    instanceChargeType: "PostPaid",
    instanceType: defaultInstanceTypes.types?[0]?.id,
    zoneId: defaultInstanceTypes1.types?[0]?.zoneId,
}));
const defaultNetworks = alicloud.vpc.getNetworks({
    nameRegex: "default-NODELETING",
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?[0])});
const defaultSwitches = Promise.all([defaultNetworks, defaultInstanceTypes]).then(([defaultNetworks, defaultInstanceTypes]) => alicloud.vpc.getSwitches({
    vpcId: defaultNetworks.ids?[0],
    zoneId: defaultInstanceTypes.types?[0]?.zoneId,
}));
const defaultRole = new alicloud.ram.Role("defaultRole", {
    document: `    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }
`,
    description: "this is a role test.",
    force: true,
});
const defaultCluster = new alicloud.emr.Cluster("defaultCluster", {
    emrVer: defaultMainVersions.then(defaultMainVersions => defaultMainVersions.mainVersions?[0]?.emrVersion),
    clusterType: defaultMainVersions.then(defaultMainVersions => defaultMainVersions.mainVersions?[0]?.clusterTypes?[0]),
    hostGroups: [
        {
            hostGroupName: "master_group",
            hostGroupType: "MASTER",
            nodeCount: "2",
            instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.types?[0]?.id),
            diskType: dataDisk.then(dataDisk => dataDisk.types?[0]?.value),
            diskCapacity: Promise.all([dataDisk, dataDisk]).then(([dataDisk, dataDisk1]) => dataDisk.types?[0]?.min > 160 ? dataDisk1.types?[0]?.min : 160),
            diskCount: "1",
            sysDiskType: systemDisk.then(systemDisk => systemDisk.types?[0]?.value),
            sysDiskCapacity: Promise.all([systemDisk, systemDisk]).then(([systemDisk, systemDisk1]) => systemDisk.types?[0]?.min > 160 ? systemDisk1.types?[0]?.min : 160),
        },
        {
            hostGroupName: "core_group",
            hostGroupType: "CORE",
            nodeCount: "3",
            instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.types?[0]?.id),
            diskType: dataDisk.then(dataDisk => dataDisk.types?[0]?.value),
            diskCapacity: Promise.all([dataDisk, dataDisk]).then(([dataDisk, dataDisk1]) => dataDisk.types?[0]?.min > 160 ? dataDisk1.types?[0]?.min : 160),
            diskCount: "4",
            sysDiskType: systemDisk.then(systemDisk => systemDisk.types?[0]?.value),
            sysDiskCapacity: Promise.all([systemDisk, systemDisk]).then(([systemDisk, systemDisk1]) => systemDisk.types?[0]?.min > 160 ? systemDisk1.types?[0]?.min : 160),
        },
        {
            hostGroupName: "task_group",
            hostGroupType: "TASK",
            nodeCount: "2",
            instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.types?[0]?.id),
            diskType: dataDisk.then(dataDisk => dataDisk.types?[0]?.value),
            diskCapacity: Promise.all([dataDisk, dataDisk]).then(([dataDisk, dataDisk1]) => dataDisk.types?[0]?.min > 160 ? dataDisk1.types?[0]?.min : 160),
            diskCount: "4",
            sysDiskType: systemDisk.then(systemDisk => systemDisk.types?[0]?.value),
            sysDiskCapacity: Promise.all([systemDisk, systemDisk]).then(([systemDisk, systemDisk1]) => systemDisk.types?[0]?.min > 160 ? systemDisk1.types?[0]?.min : 160),
        },
    ],
    highAvailabilityEnable: true,
    zoneId: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.types?[0]?.zoneId),
    securityGroupId: defaultSecurityGroup.id,
    isOpenPublicIp: true,
    chargeType: "PostPaid",
    vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?[0]),
    userDefinedEmrEcsRole: defaultRole.name,
    sshEnable: true,
    masterPwd: "ABCtest1234!",
    tags: {
        Created: "TF",
        For: "acceptance test",
    },
});
const ids = alicloud.emr.getClusters({});
export const emrClusterId1 = ids.then(ids => ids.clusters?[0]?.id);
const nameRegex = alicloud.emr.getClustersOutput({
    nameRegex: defaultCluster.name,
});
export const emrClusterId2 = nameRegex.apply(nameRegex => nameRegex.clusters?[0]?.id);

Coming soon!

Using getClusters

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 getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
function getClustersOutput(args: GetClustersOutputArgs, opts?: InvokeOptions): Output<GetClustersResult>
def get_clusters(cluster_name: Optional[str] = None,
                 cluster_type_lists: Optional[Sequence[str]] = None,
                 create_type: Optional[str] = None,
                 default_status: Optional[bool] = None,
                 deposit_type: Optional[str] = None,
                 enable_details: Optional[bool] = None,
                 ids: Optional[Sequence[str]] = None,
                 is_desc: Optional[bool] = None,
                 machine_type: Optional[str] = None,
                 name_regex: Optional[str] = None,
                 output_file: Optional[str] = None,
                 page_number: Optional[int] = None,
                 page_size: Optional[int] = None,
                 resource_group_id: Optional[str] = None,
                 status_lists: Optional[Sequence[str]] = None,
                 vpc_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetClustersResult
def get_clusters_output(cluster_name: Optional[pulumi.Input[str]] = None,
                 cluster_type_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 create_type: Optional[pulumi.Input[str]] = None,
                 default_status: Optional[pulumi.Input[bool]] = None,
                 deposit_type: Optional[pulumi.Input[str]] = None,
                 enable_details: Optional[pulumi.Input[bool]] = None,
                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 is_desc: Optional[pulumi.Input[bool]] = None,
                 machine_type: Optional[pulumi.Input[str]] = None,
                 name_regex: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 page_number: Optional[pulumi.Input[int]] = None,
                 page_size: Optional[pulumi.Input[int]] = None,
                 resource_group_id: Optional[pulumi.Input[str]] = None,
                 status_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 vpc_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetClustersResult]
func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
func GetClustersOutput(ctx *Context, args *GetClustersOutputArgs, opts ...InvokeOption) GetClustersResultOutput

> Note: This function is named GetClusters in the Go SDK.

public static class GetClusters 
{
    public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:emr/getClusters:getClusters
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ClusterName string

The name of the associated cluster.

ClusterTypeLists List<string>

The cluster type list.

CreateType string

How to create a cluster.

DefaultStatus bool

The default status.

DepositType string

The hosting type of the cluster.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Cluster IDs.

IsDesc bool

The is desc.

MachineType string

The host type of the cluster. The default is ECS.

NameRegex string

A regex string to filter results by Cluster name.

OutputFile string
PageNumber int
PageSize int
ResourceGroupId string

The Resource Group ID.

StatusLists List<string>

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

VpcId string

The VPC ID.

ClusterName string

The name of the associated cluster.

ClusterTypeLists []string

The cluster type list.

CreateType string

How to create a cluster.

DefaultStatus bool

The default status.

DepositType string

The hosting type of the cluster.

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Cluster IDs.

IsDesc bool

The is desc.

MachineType string

The host type of the cluster. The default is ECS.

NameRegex string

A regex string to filter results by Cluster name.

OutputFile string
PageNumber int
PageSize int
ResourceGroupId string

The Resource Group ID.

StatusLists []string

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

VpcId string

The VPC ID.

clusterName String

The name of the associated cluster.

clusterTypeLists List<String>

The cluster type list.

createType String

How to create a cluster.

defaultStatus Boolean

The default status.

depositType String

The hosting type of the cluster.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Cluster IDs.

isDesc Boolean

The is desc.

machineType String

The host type of the cluster. The default is ECS.

nameRegex String

A regex string to filter results by Cluster name.

outputFile String
pageNumber Integer
pageSize Integer
resourceGroupId String

The Resource Group ID.

statusLists List<String>

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

vpcId String

The VPC ID.

clusterName string

The name of the associated cluster.

clusterTypeLists string[]

The cluster type list.

createType string

How to create a cluster.

defaultStatus boolean

The default status.

depositType string

The hosting type of the cluster.

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Cluster IDs.

isDesc boolean

The is desc.

machineType string

The host type of the cluster. The default is ECS.

nameRegex string

A regex string to filter results by Cluster name.

outputFile string
pageNumber number
pageSize number
resourceGroupId string

The Resource Group ID.

statusLists string[]

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

vpcId string

The VPC ID.

cluster_name str

The name of the associated cluster.

cluster_type_lists Sequence[str]

The cluster type list.

create_type str

How to create a cluster.

default_status bool

The default status.

deposit_type str

The hosting type of the cluster.

enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of Cluster IDs.

is_desc bool

The is desc.

machine_type str

The host type of the cluster. The default is ECS.

name_regex str

A regex string to filter results by Cluster name.

output_file str
page_number int
page_size int
resource_group_id str

The Resource Group ID.

status_lists Sequence[str]

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

vpc_id str

The VPC ID.

clusterName String

The name of the associated cluster.

clusterTypeLists List<String>

The cluster type list.

createType String

How to create a cluster.

defaultStatus Boolean

The default status.

depositType String

The hosting type of the cluster.

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Cluster IDs.

isDesc Boolean

The is desc.

machineType String

The host type of the cluster. The default is ECS.

nameRegex String

A regex string to filter results by Cluster name.

outputFile String
pageNumber Number
pageSize Number
resourceGroupId String

The Resource Group ID.

statusLists List<String>

The status list. Valid values: ABNORMAL, CREATE_FAILED, CREATING, IDLE, RELEASED, RELEASE_FAILED, RELEASING, RUNNING, WAIT_FOR_PAY.

vpcId String

The VPC ID.

getClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Emr.Outputs.GetClustersCluster>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
TotalCount int
ClusterName string
ClusterTypeLists List<string>
CreateType string
DefaultStatus bool
DepositType string
EnableDetails bool
IsDesc bool
MachineType string
NameRegex string
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
StatusLists List<string>
VpcId string
Clusters []GetClustersCluster
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
TotalCount int
ClusterName string
ClusterTypeLists []string
CreateType string
DefaultStatus bool
DepositType string
EnableDetails bool
IsDesc bool
MachineType string
NameRegex string
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
StatusLists []string
VpcId string
clusters List<GetClustersCluster>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
totalCount Integer
clusterName String
clusterTypeLists List<String>
createType String
defaultStatus Boolean
depositType String
enableDetails Boolean
isDesc Boolean
machineType String
nameRegex String
outputFile String
pageNumber Integer
pageSize Integer
resourceGroupId String
statusLists List<String>
vpcId String
clusters GetClustersCluster[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
totalCount number
clusterName string
clusterTypeLists string[]
createType string
defaultStatus boolean
depositType string
enableDetails boolean
isDesc boolean
machineType string
nameRegex string
outputFile string
pageNumber number
pageSize number
resourceGroupId string
statusLists string[]
vpcId string
clusters Sequence[GetClustersCluster]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
total_count int
cluster_name str
cluster_type_lists Sequence[str]
create_type str
default_status bool
deposit_type str
enable_details bool
is_desc bool
machine_type str
name_regex str
output_file str
page_number int
page_size int
resource_group_id str
status_lists Sequence[str]
vpc_id str
clusters List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
totalCount Number
clusterName String
clusterTypeLists List<String>
createType String
defaultStatus Boolean
depositType String
enableDetails Boolean
isDesc Boolean
machineType String
nameRegex String
outputFile String
pageNumber Number
pageSize Number
resourceGroupId String
statusLists List<String>
vpcId String

Supporting Types

GetClustersCluster

AccessInfos List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterAccessInfo>

Cluster connection information.

AutoScalingAllowed bool

Whether flexible expansion is allowed.

AutoScalingByLoadAllowed bool

Whether to allow expansion by load.

AutoScalingEnable bool

Whether to enable elastic expansion.

AutoScalingSpotWithLimitAllowed bool

Whether to allow the use of elastic scaling bidding instances.

BootstrapActionLists List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterBootstrapActionList>

List of boot actions.

BootstrapFailed bool

The result of the boot operation.

ClusterId string

The ID of the associated cluster.

ClusterName string

The name of the associated cluster.

CreateResource string

Cluster tag, no need to pay attention.

CreateTime string

Creation time.

CreateType string

How to create a cluster.

DepositType string

The hosting type of the cluster.

EasEnable bool

High security cluster.

ExpiredTime string

Timeout time.

ExtraInfo string

Additional information for Stack.

HasUncompletedOrder bool
HighAvailabilityEnable bool

High availability cluster.

HostGroupLists List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterHostGroupList>

List of cluster machine groups.

HostPoolInfos List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterHostPoolInfo>

Machine pool information.

Id string
ImageId string

The ID of the image used to create the cluster.

LocalMetaDb bool

Whether to use Hive local Metabase.

MachineType string

The host type of the cluster. The default is ECS.

MetaStoreType string

Metadata type:

NetType string

Cluster network type.

PaymentType string

The payment type of the resource.

Period int

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

RelateClusterInfos List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterRelateClusterInfo>

The information of the primary cluster associated with the Gateway.

ResizeDiskEnable bool

Whether to allow disk expansion:

RunningTime int

The time (in seconds) that has been running.

SecurityGroupId string

The ID of the security group.

SecurityGroupName string

The name of the security group.

SoftwareInfos List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterSoftwareInfo>

Service list.

StartTime string

Cluster startup time.

Status string

The cluster status.

StopTime string

Cluster stop time.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Type string

Disk type.

UserDefinedEmrEcsRole string

The EMR permission name used.

UserId string

The user ID.

VpcId string

The VPC ID.

VswitchId string

The vswitch id.

ZoneId string

The zone ID.

AccessInfos []GetClustersClusterAccessInfo

Cluster connection information.

AutoScalingAllowed bool

Whether flexible expansion is allowed.

AutoScalingByLoadAllowed bool

Whether to allow expansion by load.

AutoScalingEnable bool

Whether to enable elastic expansion.

AutoScalingSpotWithLimitAllowed bool

Whether to allow the use of elastic scaling bidding instances.

BootstrapActionLists []GetClustersClusterBootstrapActionList

List of boot actions.

BootstrapFailed bool

The result of the boot operation.

ClusterId string

The ID of the associated cluster.

ClusterName string

The name of the associated cluster.

CreateResource string

Cluster tag, no need to pay attention.

CreateTime string

Creation time.

CreateType string

How to create a cluster.

DepositType string

The hosting type of the cluster.

EasEnable bool

High security cluster.

ExpiredTime string

Timeout time.

ExtraInfo string

Additional information for Stack.

HasUncompletedOrder bool
HighAvailabilityEnable bool

High availability cluster.

HostGroupLists []GetClustersClusterHostGroupList

List of cluster machine groups.

HostPoolInfos []GetClustersClusterHostPoolInfo

Machine pool information.

Id string
ImageId string

The ID of the image used to create the cluster.

LocalMetaDb bool

Whether to use Hive local Metabase.

MachineType string

The host type of the cluster. The default is ECS.

MetaStoreType string

Metadata type:

NetType string

Cluster network type.

PaymentType string

The payment type of the resource.

Period int

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

RelateClusterInfos []GetClustersClusterRelateClusterInfo

The information of the primary cluster associated with the Gateway.

ResizeDiskEnable bool

Whether to allow disk expansion:

RunningTime int

The time (in seconds) that has been running.

SecurityGroupId string

The ID of the security group.

SecurityGroupName string

The name of the security group.

SoftwareInfos []GetClustersClusterSoftwareInfo

Service list.

StartTime string

Cluster startup time.

Status string

The cluster status.

StopTime string

Cluster stop time.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

Type string

Disk type.

UserDefinedEmrEcsRole string

The EMR permission name used.

UserId string

The user ID.

VpcId string

The VPC ID.

VswitchId string

The vswitch id.

ZoneId string

The zone ID.

accessInfos List<GetClustersClusterAccessInfo>

Cluster connection information.

autoScalingAllowed Boolean

Whether flexible expansion is allowed.

autoScalingByLoadAllowed Boolean

Whether to allow expansion by load.

autoScalingEnable Boolean

Whether to enable elastic expansion.

autoScalingSpotWithLimitAllowed Boolean

Whether to allow the use of elastic scaling bidding instances.

bootstrapActionLists List<GetClustersClusterBootstrapActionList>

List of boot actions.

bootstrapFailed Boolean

The result of the boot operation.

clusterId String

The ID of the associated cluster.

clusterName String

The name of the associated cluster.

createResource String

Cluster tag, no need to pay attention.

createTime String

Creation time.

createType String

How to create a cluster.

depositType String

The hosting type of the cluster.

easEnable Boolean

High security cluster.

expiredTime String

Timeout time.

extraInfo String

Additional information for Stack.

hasUncompletedOrder Boolean
highAvailabilityEnable Boolean

High availability cluster.

hostGroupLists List<GetClustersClusterHostGroupList>

List of cluster machine groups.

hostPoolInfos List<GetClustersClusterHostPoolInfo>

Machine pool information.

id String
imageId String

The ID of the image used to create the cluster.

localMetaDb Boolean

Whether to use Hive local Metabase.

machineType String

The host type of the cluster. The default is ECS.

metaStoreType String

Metadata type:

netType String

Cluster network type.

paymentType String

The payment type of the resource.

period Integer

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

relateClusterInfos List<GetClustersClusterRelateClusterInfo>

The information of the primary cluster associated with the Gateway.

resizeDiskEnable Boolean

Whether to allow disk expansion:

runningTime Integer

The time (in seconds) that has been running.

securityGroupId String

The ID of the security group.

securityGroupName String

The name of the security group.

softwareInfos List<GetClustersClusterSoftwareInfo>

Service list.

startTime String

Cluster startup time.

status String

The cluster status.

stopTime String

Cluster stop time.

tags Map<String,Object>

A mapping of tags to assign to the resource.

type String

Disk type.

userDefinedEmrEcsRole String

The EMR permission name used.

userId String

The user ID.

vpcId String

The VPC ID.

vswitchId String

The vswitch id.

zoneId String

The zone ID.

accessInfos GetClustersClusterAccessInfo[]

Cluster connection information.

autoScalingAllowed boolean

Whether flexible expansion is allowed.

autoScalingByLoadAllowed boolean

Whether to allow expansion by load.

autoScalingEnable boolean

Whether to enable elastic expansion.

autoScalingSpotWithLimitAllowed boolean

Whether to allow the use of elastic scaling bidding instances.

bootstrapActionLists GetClustersClusterBootstrapActionList[]

List of boot actions.

bootstrapFailed boolean

The result of the boot operation.

clusterId string

The ID of the associated cluster.

clusterName string

The name of the associated cluster.

createResource string

Cluster tag, no need to pay attention.

createTime string

Creation time.

createType string

How to create a cluster.

depositType string

The hosting type of the cluster.

easEnable boolean

High security cluster.

expiredTime string

Timeout time.

extraInfo string

Additional information for Stack.

hasUncompletedOrder boolean
highAvailabilityEnable boolean

High availability cluster.

hostGroupLists GetClustersClusterHostGroupList[]

List of cluster machine groups.

hostPoolInfos GetClustersClusterHostPoolInfo[]

Machine pool information.

id string
imageId string

The ID of the image used to create the cluster.

localMetaDb boolean

Whether to use Hive local Metabase.

machineType string

The host type of the cluster. The default is ECS.

metaStoreType string

Metadata type:

netType string

Cluster network type.

paymentType string

The payment type of the resource.

period number

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

relateClusterInfos GetClustersClusterRelateClusterInfo[]

The information of the primary cluster associated with the Gateway.

resizeDiskEnable boolean

Whether to allow disk expansion:

runningTime number

The time (in seconds) that has been running.

securityGroupId string

The ID of the security group.

securityGroupName string

The name of the security group.

softwareInfos GetClustersClusterSoftwareInfo[]

Service list.

startTime string

Cluster startup time.

status string

The cluster status.

stopTime string

Cluster stop time.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

type string

Disk type.

userDefinedEmrEcsRole string

The EMR permission name used.

userId string

The user ID.

vpcId string

The VPC ID.

vswitchId string

The vswitch id.

zoneId string

The zone ID.

access_infos Sequence[GetClustersClusterAccessInfo]

Cluster connection information.

auto_scaling_allowed bool

Whether flexible expansion is allowed.

auto_scaling_by_load_allowed bool

Whether to allow expansion by load.

auto_scaling_enable bool

Whether to enable elastic expansion.

auto_scaling_spot_with_limit_allowed bool

Whether to allow the use of elastic scaling bidding instances.

bootstrap_action_lists Sequence[GetClustersClusterBootstrapActionList]

List of boot actions.

bootstrap_failed bool

The result of the boot operation.

cluster_id str

The ID of the associated cluster.

cluster_name str

The name of the associated cluster.

create_resource str

Cluster tag, no need to pay attention.

create_time str

Creation time.

create_type str

How to create a cluster.

deposit_type str

The hosting type of the cluster.

eas_enable bool

High security cluster.

expired_time str

Timeout time.

extra_info str

Additional information for Stack.

has_uncompleted_order bool
high_availability_enable bool

High availability cluster.

host_group_lists Sequence[GetClustersClusterHostGroupList]

List of cluster machine groups.

host_pool_infos Sequence[GetClustersClusterHostPoolInfo]

Machine pool information.

id str
image_id str

The ID of the image used to create the cluster.

local_meta_db bool

Whether to use Hive local Metabase.

machine_type str

The host type of the cluster. The default is ECS.

meta_store_type str

Metadata type:

net_type str

Cluster network type.

payment_type str

The payment type of the resource.

period int

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

relate_cluster_infos Sequence[GetClustersClusterRelateClusterInfo]

The information of the primary cluster associated with the Gateway.

resize_disk_enable bool

Whether to allow disk expansion:

running_time int

The time (in seconds) that has been running.

security_group_id str

The ID of the security group.

security_group_name str

The name of the security group.

software_infos Sequence[GetClustersClusterSoftwareInfo]

Service list.

start_time str

Cluster startup time.

status str

The cluster status.

stop_time str

Cluster stop time.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

type str

Disk type.

user_defined_emr_ecs_role str

The EMR permission name used.

user_id str

The user ID.

vpc_id str

The VPC ID.

vswitch_id str

The vswitch id.

zone_id str

The zone ID.

accessInfos List<Property Map>

Cluster connection information.

autoScalingAllowed Boolean

Whether flexible expansion is allowed.

autoScalingByLoadAllowed Boolean

Whether to allow expansion by load.

autoScalingEnable Boolean

Whether to enable elastic expansion.

autoScalingSpotWithLimitAllowed Boolean

Whether to allow the use of elastic scaling bidding instances.

bootstrapActionLists List<Property Map>

List of boot actions.

bootstrapFailed Boolean

The result of the boot operation.

clusterId String

The ID of the associated cluster.

clusterName String

The name of the associated cluster.

createResource String

Cluster tag, no need to pay attention.

createTime String

Creation time.

createType String

How to create a cluster.

depositType String

The hosting type of the cluster.

easEnable Boolean

High security cluster.

expiredTime String

Timeout time.

extraInfo String

Additional information for Stack.

hasUncompletedOrder Boolean
highAvailabilityEnable Boolean

High availability cluster.

hostGroupLists List<Property Map>

List of cluster machine groups.

hostPoolInfos List<Property Map>

Machine pool information.

id String
imageId String

The ID of the image used to create the cluster.

localMetaDb Boolean

Whether to use Hive local Metabase.

machineType String

The host type of the cluster. The default is ECS.

metaStoreType String

Metadata type:

netType String

Cluster network type.

paymentType String

The payment type of the resource.

period Number

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

relateClusterInfos List<Property Map>

The information of the primary cluster associated with the Gateway.

resizeDiskEnable Boolean

Whether to allow disk expansion:

runningTime Number

The time (in seconds) that has been running.

securityGroupId String

The ID of the security group.

securityGroupName String

The name of the security group.

softwareInfos List<Property Map>

Service list.

startTime String

Cluster startup time.

status String

The cluster status.

stopTime String

Cluster stop time.

tags Map<Any>

A mapping of tags to assign to the resource.

type String

Disk type.

userDefinedEmrEcsRole String

The EMR permission name used.

userId String

The user ID.

vpcId String

The VPC ID.

vswitchId String

The vswitch id.

zoneId String

The zone ID.

GetClustersClusterAccessInfo

ZkLinks []GetClustersClusterAccessInfoZkLink

Link address information list of ZooKeeper.

zkLinks List<GetClustersClusterAccessInfoZkLink>

Link address information list of ZooKeeper.

zkLinks GetClustersClusterAccessInfoZkLink[]

Link address information list of ZooKeeper.

zk_links Sequence[GetClustersClusterAccessInfoZkLink]

Link address information list of ZooKeeper.

zkLinks List<Property Map>

Link address information list of ZooKeeper.

Link string

The access link address of ZooKeeper.

Port string

The port of ZooKeeper.

Link string

The access link address of ZooKeeper.

Port string

The port of ZooKeeper.

link String

The access link address of ZooKeeper.

port String

The port of ZooKeeper.

link string

The access link address of ZooKeeper.

port string

The port of ZooKeeper.

link str

The access link address of ZooKeeper.

port str

The port of ZooKeeper.

link String

The access link address of ZooKeeper.

port String

The port of ZooKeeper.

GetClustersClusterBootstrapActionList

Arg string

Parameters of the boot operation.

Name string

The internal name of the service.

Path string

Boot operation script path.

Arg string

Parameters of the boot operation.

Name string

The internal name of the service.

Path string

Boot operation script path.

arg String

Parameters of the boot operation.

name String

The internal name of the service.

path String

Boot operation script path.

arg string

Parameters of the boot operation.

name string

The internal name of the service.

path string

Boot operation script path.

arg str

Parameters of the boot operation.

name str

The internal name of the service.

path str

Boot operation script path.

arg String

Parameters of the boot operation.

name String

The internal name of the service.

path String

Boot operation script path.

GetClustersClusterHostGroupList

BandWidth string

Bandwidth.

ChargeType string

Payment Type.

CpuCore int

The number of CPU cores.

DiskCapacity int

Data disk capacity.

DiskCount int

The number of data disks.

DiskType string

System disk type:

HostGroupChangeType string

The current operation type of the machine Group:

HostGroupId string

The ID of the machine group.

HostGroupName string

The name of the machine group.

HostGroupType string

Role of host in cluster:

InstanceType string

Machine Group instance.

MemoryCapacity int

Memory size.

NodeCount int

The number of machine group nodes.

Nodes List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterHostGroupListNode>

Machine node.

Period string

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

BandWidth string

Bandwidth.

ChargeType string

Payment Type.

CpuCore int

The number of CPU cores.

DiskCapacity int

Data disk capacity.

DiskCount int

The number of data disks.

DiskType string

System disk type:

HostGroupChangeType string

The current operation type of the machine Group:

HostGroupId string

The ID of the machine group.

HostGroupName string

The name of the machine group.

HostGroupType string

Role of host in cluster:

InstanceType string

Machine Group instance.

MemoryCapacity int

Memory size.

NodeCount int

The number of machine group nodes.

Nodes []GetClustersClusterHostGroupListNode

Machine node.

Period string

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

bandWidth String

Bandwidth.

chargeType String

Payment Type.

cpuCore Integer

The number of CPU cores.

diskCapacity Integer

Data disk capacity.

diskCount Integer

The number of data disks.

diskType String

System disk type:

hostGroupChangeType String

The current operation type of the machine Group:

hostGroupId String

The ID of the machine group.

hostGroupName String

The name of the machine group.

hostGroupType String

Role of host in cluster:

instanceType String

Machine Group instance.

memoryCapacity Integer

Memory size.

nodeCount Integer

The number of machine group nodes.

nodes List<GetClustersClusterHostGroupListNode>

Machine node.

period String

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

bandWidth string

Bandwidth.

chargeType string

Payment Type.

cpuCore number

The number of CPU cores.

diskCapacity number

Data disk capacity.

diskCount number

The number of data disks.

diskType string

System disk type:

hostGroupChangeType string

The current operation type of the machine Group:

hostGroupId string

The ID of the machine group.

hostGroupName string

The name of the machine group.

hostGroupType string

Role of host in cluster:

instanceType string

Machine Group instance.

memoryCapacity number

Memory size.

nodeCount number

The number of machine group nodes.

nodes GetClustersClusterHostGroupListNode[]

Machine node.

period string

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

band_width str

Bandwidth.

charge_type str

Payment Type.

cpu_core int

The number of CPU cores.

disk_capacity int

Data disk capacity.

disk_count int

The number of data disks.

disk_type str

System disk type:

host_group_change_type str

The current operation type of the machine Group:

host_group_id str

The ID of the machine group.

host_group_name str

The name of the machine group.

host_group_type str

Role of host in cluster:

instance_type str

Machine Group instance.

memory_capacity int

Memory size.

node_count int

The number of machine group nodes.

nodes Sequence[GetClustersClusterHostGroupListNode]

Machine node.

period str

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

bandWidth String

Bandwidth.

chargeType String

Payment Type.

cpuCore Number

The number of CPU cores.

diskCapacity Number

Data disk capacity.

diskCount Number

The number of data disks.

diskType String

System disk type:

hostGroupChangeType String

The current operation type of the machine Group:

hostGroupId String

The ID of the machine group.

hostGroupName String

The name of the machine group.

hostGroupType String

Role of host in cluster:

instanceType String

Machine Group instance.

memoryCapacity Number

Memory size.

nodeCount Number

The number of machine group nodes.

nodes List<Property Map>

Machine node.

period String

The package year and month time of the machine group. The Valid Values : 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36.

GetClustersClusterHostGroupListNode

CreateTime string

Creation time.

DiskInfos List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterHostGroupListNodeDiskInfo>

Disk information.

EmrExpiredTime string

The timeout of the EMR.

ExpiredTime string

Timeout time.

InnerIp string

The Intranet IP of the EMR.

InstanceId string

The ID of the ECS instance.

PubIp string

Public IP address.

Status string

The cluster status.

SupportIpv6 bool

Whether IPV6 is supported.

ZoneId string

The zone ID.

CreateTime string

Creation time.

DiskInfos []GetClustersClusterHostGroupListNodeDiskInfo

Disk information.

EmrExpiredTime string

The timeout of the EMR.

ExpiredTime string

Timeout time.

InnerIp string

The Intranet IP of the EMR.

InstanceId string

The ID of the ECS instance.

PubIp string

Public IP address.

Status string

The cluster status.

SupportIpv6 bool

Whether IPV6 is supported.

ZoneId string

The zone ID.

createTime String

Creation time.

diskInfos List<GetClustersClusterHostGroupListNodeDiskInfo>

Disk information.

emrExpiredTime String

The timeout of the EMR.

expiredTime String

Timeout time.

innerIp String

The Intranet IP of the EMR.

instanceId String

The ID of the ECS instance.

pubIp String

Public IP address.

status String

The cluster status.

supportIpv6 Boolean

Whether IPV6 is supported.

zoneId String

The zone ID.

createTime string

Creation time.

diskInfos GetClustersClusterHostGroupListNodeDiskInfo[]

Disk information.

emrExpiredTime string

The timeout of the EMR.

expiredTime string

Timeout time.

innerIp string

The Intranet IP of the EMR.

instanceId string

The ID of the ECS instance.

pubIp string

Public IP address.

status string

The cluster status.

supportIpv6 boolean

Whether IPV6 is supported.

zoneId string

The zone ID.

create_time str

Creation time.

disk_infos Sequence[GetClustersClusterHostGroupListNodeDiskInfo]

Disk information.

emr_expired_time str

The timeout of the EMR.

expired_time str

Timeout time.

inner_ip str

The Intranet IP of the EMR.

instance_id str

The ID of the ECS instance.

pub_ip str

Public IP address.

status str

The cluster status.

support_ipv6 bool

Whether IPV6 is supported.

zone_id str

The zone ID.

createTime String

Creation time.

diskInfos List<Property Map>

Disk information.

emrExpiredTime String

The timeout of the EMR.

expiredTime String

Timeout time.

innerIp String

The Intranet IP of the EMR.

instanceId String

The ID of the ECS instance.

pubIp String

Public IP address.

status String

The cluster status.

supportIpv6 Boolean

Whether IPV6 is supported.

zoneId String

The zone ID.

GetClustersClusterHostGroupListNodeDiskInfo

Device string

The disk name.

DiskId string

The ID of the disk.

DiskName string

The disk name.

Size int

Disk capacity.

Type string

Disk type.

Device string

The disk name.

DiskId string

The ID of the disk.

DiskName string

The disk name.

Size int

Disk capacity.

Type string

Disk type.

device String

The disk name.

diskId String

The ID of the disk.

diskName String

The disk name.

size Integer

Disk capacity.

type String

Disk type.

device string

The disk name.

diskId string

The ID of the disk.

diskName string

The disk name.

size number

Disk capacity.

type string

Disk type.

device str

The disk name.

disk_id str

The ID of the disk.

disk_name str

The disk name.

size int

Disk capacity.

type str

Disk type.

device String

The disk name.

diskId String

The ID of the disk.

diskName String

The disk name.

size Number

Disk capacity.

type String

Disk type.

GetClustersClusterHostPoolInfo

HpBizId string

Machine pool ID.

HpName string

The name of the machine pool.

HpBizId string

Machine pool ID.

HpName string

The name of the machine pool.

hpBizId String

Machine pool ID.

hpName String

The name of the machine pool.

hpBizId string

Machine pool ID.

hpName string

The name of the machine pool.

hp_biz_id str

Machine pool ID.

hp_name str

The name of the machine pool.

hpBizId String

Machine pool ID.

hpName String

The name of the machine pool.

GetClustersClusterRelateClusterInfo

ClusterId string

The ID of the associated cluster.

ClusterName string

The name of the associated cluster.

ClusterType string

Cluster type:

Status string

The cluster status.

ClusterId string

The ID of the associated cluster.

ClusterName string

The name of the associated cluster.

ClusterType string

Cluster type:

Status string

The cluster status.

clusterId String

The ID of the associated cluster.

clusterName String

The name of the associated cluster.

clusterType String

Cluster type:

status String

The cluster status.

clusterId string

The ID of the associated cluster.

clusterName string

The name of the associated cluster.

clusterType string

Cluster type:

status string

The cluster status.

cluster_id str

The ID of the associated cluster.

cluster_name str

The name of the associated cluster.

cluster_type str

Cluster type:

status str

The cluster status.

clusterId String

The ID of the associated cluster.

clusterName String

The name of the associated cluster.

clusterType String

Cluster type:

status String

The cluster status.

GetClustersClusterSoftwareInfo

ClusterType string

Cluster type:

EmrVer string

E-MapReduce version number.

Softwares List<Pulumi.AliCloud.Emr.Inputs.GetClustersClusterSoftwareInfoSoftware>

Service list.

ClusterType string

Cluster type:

EmrVer string

E-MapReduce version number.

Softwares []GetClustersClusterSoftwareInfoSoftware

Service list.

clusterType String

Cluster type:

emrVer String

E-MapReduce version number.

softwares List<GetClustersClusterSoftwareInfoSoftware>

Service list.

clusterType string

Cluster type:

emrVer string

E-MapReduce version number.

softwares GetClustersClusterSoftwareInfoSoftware[]

Service list.

cluster_type str

Cluster type:

emr_ver str

E-MapReduce version number.

softwares Sequence[GetClustersClusterSoftwareInfoSoftware]

Service list.

clusterType String

Cluster type:

emrVer String

E-MapReduce version number.

softwares List<Property Map>

Service list.

GetClustersClusterSoftwareInfoSoftware

DisplayName string

The name of the service.

Name string

The internal name of the service.

OnlyDisplay bool

Whether it shows.

StartTpe int

Startup type.

Version string

Service version.

DisplayName string

The name of the service.

Name string

The internal name of the service.

OnlyDisplay bool

Whether it shows.

StartTpe int

Startup type.

Version string

Service version.

displayName String

The name of the service.

name String

The internal name of the service.

onlyDisplay Boolean

Whether it shows.

startTpe Integer

Startup type.

version String

Service version.

displayName string

The name of the service.

name string

The internal name of the service.

onlyDisplay boolean

Whether it shows.

startTpe number

Startup type.

version string

Service version.

display_name str

The name of the service.

name str

The internal name of the service.

only_display bool

Whether it shows.

start_tpe int

Startup type.

version str

Service version.

displayName String

The name of the service.

name String

The internal name of the service.

onlyDisplay Boolean

Whether it shows.

startTpe Number

Startup type.

version String

Service version.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.