emr

package
v3.63.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// Boot action parameters.
	BootstrapActions ClusterBootstrapActionArrayOutput `pulumi:"bootstrapActions"`
	// Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported 'GATEWAY' available in 1.61.0+.
	ClusterType pulumi.StringOutput `pulumi:"clusterType"`
	// The custom configurations of emr-cluster service.
	Configs ClusterConfigArrayOutput `pulumi:"configs"`
	// Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
	DepositType pulumi.StringPtrOutput `pulumi:"depositType"`
	// High security cluster (true) or not. Default value is false.
	EasEnable pulumi.BoolPtrOutput `pulumi:"easEnable"`
	// EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
	EmrVer pulumi.StringOutput `pulumi:"emrVer"`
	// High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
	HighAvailabilityEnable pulumi.BoolPtrOutput `pulumi:"highAvailabilityEnable"`
	// Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
	HostGroups ClusterHostGroupArrayOutput `pulumi:"hostGroups"`
	// Whether the MASTER node has a public IP address enabled. Default value is false.
	IsOpenPublicIp pulumi.BoolPtrOutput `pulumi:"isOpenPublicIp"`
	// Ssh key pair.
	KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"`
	// Master ssh password.
	MasterPwd pulumi.StringPtrOutput `pulumi:"masterPwd"`
	// The configuration of emr-cluster service component metadata storage. If meta store type is ’user_rds’, this should be specified.
	MetaStoreConf ClusterMetaStoreConfPtrOutput `pulumi:"metaStoreConf"`
	// The type of emr-cluster service component metadata storage. ’dlf’ or ’local’ or ’user_rds’ .
	MetaStoreType pulumi.StringOutput `pulumi:"metaStoreType"`
	// The configurations of emr-cluster service modification after cluster created.
	ModifyClusterServiceConfig ClusterModifyClusterServiceConfigPtrOutput `pulumi:"modifyClusterServiceConfig"`
	// The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
	Name pulumi.StringOutput `pulumi:"name"`
	// Optional software list.
	OptionSoftwareLists pulumi.StringArrayOutput `pulumi:"optionSoftwareLists"`
	// If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// This specify the related cluster id, if this cluster is a Gateway.
	RelatedClusterId pulumi.StringPtrOutput `pulumi:"relatedClusterId"`
	// The Id of resource group which the emr-cluster belongs.
	ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
	// Security Group ID for Cluster, you can also specify this key for each host group.
	SecurityGroupId pulumi.StringPtrOutput `pulumi:"securityGroupId"`
	// If this is set true, we can ssh into cluster. Default value is false.
	SshEnable pulumi.BoolPtrOutput `pulumi:"sshEnable"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Use local metadb. Default is false.
	UseLocalMetadb pulumi.BoolPtrOutput `pulumi:"useLocalMetadb"`
	// Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
	UserDefinedEmrEcsRole pulumi.StringPtrOutput `pulumi:"userDefinedEmrEcsRole"`
	// Global vswitch id, you can also specify it in host group.
	VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
	// Zone ID, e.g. cn-huhehaote-a
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a EMR Cluster resource. With this you can create, read, and release EMR Cluster.

> **DEPRECATED:** This resource has been deprecated from version `1.204.0`. Please use new resource emrv2_cluster.

> **NOTE:** Available in 1.57.0+.

## Example Usage

### 1. Create A Cluster

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := emr.GetMainVersions(ctx, &emr.GetMainVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceTypes, err := emr.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			SupportLocalStorage: pulumi.BoolRef(false),
			InstanceChargeType:  "PostPaid",
			SupportNodeTypes: []string{
				"MASTER",
				"CORE",
				"TASK",
			},
		}, nil)
		if err != nil {
			return err
		}
		dataDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "DataDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		systemDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "SystemDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		var tmp0 float64
		if vpcId == "" {
			tmp0 = 1
		} else {
			tmp0 = 0
		}
		var vpc []*vpc.Network
		for index := 0; index < tmp0; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewNetwork(ctx, fmt.Sprintf("vpc-%v", key0), &vpc.NetworkArgs{
				Name:      pulumi.Any(vpcName),
				CidrBlock: pulumi.Any(vpcCidr),
			})
			if err != nil {
				return err
			}
			vpc = append(vpc, __res)
		}
		var tmp1 pulumi.String
		if vpcId == "" {
			tmp1 = vpc[0].ID()
		} else {
			tmp1 = pulumi.Any(vpcId)
		}
		var tmp2 float64
		if securityGroupId == "" {
			tmp2 = 1
		} else {
			tmp2 = 0
		}
		var defaultSecurityGroup []*ecs.SecurityGroup
		for index := 0; index < tmp2; index++ {
			key0 := index
			_ := index
			__res, err := ecs.NewSecurityGroup(ctx, fmt.Sprintf("default-%v", key0), &ecs.SecurityGroupArgs{
				Name:  pulumi.Any(securityGroupName),
				VpcId: pulumi.String(tmp1),
			})
			if err != nil {
				return err
			}
			defaultSecurityGroup = append(defaultSecurityGroup, __res)
		}
		var tmp3 pulumi.String
		if availabilityZone == "" {
			tmp3 = pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId)
		} else {
			tmp3 = pulumi.Any(availabilityZone)
		}
		var tmp4 pulumi.String
		if vpcId == "" {
			tmp4 = vpc[0].ID()
		} else {
			tmp4 = pulumi.Any(vpcId)
		}
		// VSwitch Resource for Module
		var tmp5 float64
		if vswitchId == "" {
			tmp5 = 1
		} else {
			tmp5 = 0
		}
		var vswitch []*vpc.Switch
		for index := 0; index < tmp5; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("vswitch-%v", key0), &vpc.SwitchArgs{
				AvailabilityZone: pulumi.String(tmp3),
				VswitchName:      pulumi.Any(vswitchName),
				CidrBlock:        pulumi.Any(vswitchCidr),
				VpcId:            pulumi.String(tmp4),
			})
			if err != nil {
				return err
			}
			vswitch = append(vswitch, __res)
		}
		// Ram role Resource for Module
		defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
			Name: pulumi.Any(ramName),
			Document: pulumi.String(`    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }

`),

			Description: pulumi.String("this is a role test."),
			Force:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		var tmp6 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp6 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp6 = pulumi.String("160")
		}
		var tmp7 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp7 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp7 = pulumi.String("160")
		}
		var tmp8 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp8 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp8 = pulumi.String("160")
		}
		var tmp9 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp9 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp9 = pulumi.String("160")
		}
		var tmp10 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp10 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp10 = pulumi.String("160")
		}
		var tmp11 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp11 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp11 = pulumi.String("160")
		}
		var tmp12 pulumi.String
		if securityGroupId == "" {
			tmp12 = defaultSecurityGroup[0].ID()
		} else {
			tmp12 = pulumi.Any(securityGroupId)
		}
		var tmp13 pulumi.String
		if vswitchId == "" {
			tmp13 = vswitch[0].ID()
		} else {
			tmp13 = pulumi.Any(vswitchId)
		}
		_, err = emr.NewCluster(ctx, "default", &emr.ClusterArgs{
			Name:        pulumi.String("terraform-create-cluster-test"),
			EmrVer:      pulumi.String(_default.MainVersions[0].EmrVersion),
			ClusterType: pulumi.String(_default.MainVersions[0].ClusterTypes[0]),
			HostGroups: emr.ClusterHostGroupArray{
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("master_group"),
					HostGroupType:   pulumi.String("MASTER"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp6),
					DiskCount:       pulumi.String("1"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp7),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("core_group"),
					HostGroupType:   pulumi.String("CORE"),
					NodeCount:       pulumi.String("3"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp8),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp9),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("task_group"),
					HostGroupType:   pulumi.String("TASK"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp10),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp11),
				},
			},
			HighAvailabilityEnable: pulumi.Bool(true),
			ZoneId:                 pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId),
			SecurityGroupId:        pulumi.String(tmp12),
			IsOpenPublicIp:         pulumi.Bool(true),
			ChargeType:             pulumi.String("PostPaid"),
			VswitchId:              pulumi.String(tmp13),
			UserDefinedEmrEcsRole:  defaultRole.Name,
			SshEnable:              pulumi.Bool(true),
			MasterPwd:              pulumi.String("ABCtest1234!"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### 2. Scale Up The hosts of EMR Cluster are orginized as host group. Scaling up/down is operating host group.

In the case of scaling up cluster, we should add the nodeCount of some host group.

> **NOTE:** Scaling up is only applicable to CORE and TASK group. Cost time of scaling up will vary with the number of scaling-up nodes. Scaling down is only applicable to TASK group. If you want to scale down CORE group, please submit tickets or contact EMR support team.

As the following case, we scale up the TASK group 2 nodes by increasing host_group.node_count by 2.

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := emr.GetMainVersions(ctx, &emr.GetMainVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceTypes, err := emr.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			SupportLocalStorage: pulumi.BoolRef(false),
			InstanceChargeType:  "PostPaid",
			SupportNodeTypes: []string{
				"MASTER",
				"CORE",
				"TASK",
			},
		}, nil)
		if err != nil {
			return err
		}
		dataDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "DataDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		systemDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "SystemDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		var tmp0 float64
		if vpcId == "" {
			tmp0 = 1
		} else {
			tmp0 = 0
		}
		var vpc []*vpc.Network
		for index := 0; index < tmp0; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewNetwork(ctx, fmt.Sprintf("vpc-%v", key0), &vpc.NetworkArgs{
				Name:      pulumi.Any(vpcName),
				CidrBlock: pulumi.Any(vpcCidr),
			})
			if err != nil {
				return err
			}
			vpc = append(vpc, __res)
		}
		var tmp1 pulumi.String
		if vpcId == "" {
			tmp1 = vpc[0].ID()
		} else {
			tmp1 = pulumi.Any(vpcId)
		}
		var tmp2 float64
		if securityGroupId == "" {
			tmp2 = 1
		} else {
			tmp2 = 0
		}
		var defaultSecurityGroup []*ecs.SecurityGroup
		for index := 0; index < tmp2; index++ {
			key0 := index
			_ := index
			__res, err := ecs.NewSecurityGroup(ctx, fmt.Sprintf("default-%v", key0), &ecs.SecurityGroupArgs{
				Name:  pulumi.Any(securityGroupName),
				VpcId: pulumi.String(tmp1),
			})
			if err != nil {
				return err
			}
			defaultSecurityGroup = append(defaultSecurityGroup, __res)
		}
		var tmp3 pulumi.String
		if availabilityZone == "" {
			tmp3 = pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId)
		} else {
			tmp3 = pulumi.Any(availabilityZone)
		}
		var tmp4 pulumi.String
		if vpcId == "" {
			tmp4 = vpc[0].ID()
		} else {
			tmp4 = pulumi.Any(vpcId)
		}
		// VSwitch Resource for Module
		var tmp5 float64
		if vswitchId == "" {
			tmp5 = 1
		} else {
			tmp5 = 0
		}
		var vswitch []*vpc.Switch
		for index := 0; index < tmp5; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("vswitch-%v", key0), &vpc.SwitchArgs{
				AvailabilityZone: pulumi.String(tmp3),
				VswitchName:      pulumi.Any(vswitchName),
				CidrBlock:        pulumi.Any(vswitchCidr),
				VpcId:            pulumi.String(tmp4),
			})
			if err != nil {
				return err
			}
			vswitch = append(vswitch, __res)
		}
		// Ram role Resource for Module
		defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
			Name: pulumi.Any(ramName),
			Document: pulumi.String(`    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }

`),

			Description: pulumi.String("this is a role test."),
			Force:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		var tmp6 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp6 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp6 = pulumi.String("160")
		}
		var tmp7 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp7 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp7 = pulumi.String("160")
		}
		var tmp8 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp8 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp8 = pulumi.String("160")
		}
		var tmp9 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp9 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp9 = pulumi.String("160")
		}
		var tmp10 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp10 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp10 = pulumi.String("160")
		}
		var tmp11 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp11 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp11 = pulumi.String("160")
		}
		var tmp12 pulumi.String
		if securityGroupId == "" {
			tmp12 = defaultSecurityGroup[0].ID()
		} else {
			tmp12 = pulumi.Any(securityGroupId)
		}
		var tmp13 pulumi.String
		if vswitchId == "" {
			tmp13 = vswitch[0].ID()
		} else {
			tmp13 = pulumi.Any(vswitchId)
		}
		_, err = emr.NewCluster(ctx, "default", &emr.ClusterArgs{
			Name:        pulumi.String("terraform-resize-cluster-test"),
			EmrVer:      pulumi.String(_default.MainVersions[0].EmrVersion),
			ClusterType: pulumi.String(_default.MainVersions[0].ClusterTypes[0]),
			HostGroups: emr.ClusterHostGroupArray{
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("master_group"),
					HostGroupType:   pulumi.String("MASTER"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp6),
					DiskCount:       pulumi.String("1"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp7),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("core_group"),
					HostGroupType:   pulumi.String("CORE"),
					NodeCount:       pulumi.String("3"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp8),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp9),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("task_group"),
					HostGroupType:   pulumi.String("TASK"),
					NodeCount:       pulumi.String("4"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp10),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp11),
				},
			},
			HighAvailabilityEnable: pulumi.Bool(true),
			ZoneId:                 pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId),
			SecurityGroupId:        pulumi.String(tmp12),
			IsOpenPublicIp:         pulumi.Bool(true),
			ChargeType:             pulumi.String("PostPaid"),
			VswitchId:              pulumi.String(tmp13),
			UserDefinedEmrEcsRole:  defaultRole.Name,
			SshEnable:              pulumi.Bool(true),
			MasterPwd:              pulumi.String("ABCtest1234!"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### 3. Scale Down

In the case of scaling down a cluster, we need to specified the host group and the instance list.

> **NOTE:** Graceful decommission of hadoop cluster has been supported Available in 1.168.0+.

The following is an example. We scale down the cluster by decreasing the node count by 2, and specifying the scale-down instance list.

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := emr.GetMainVersions(ctx, &emr.GetMainVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceTypes, err := emr.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			SupportLocalStorage: pulumi.BoolRef(false),
			InstanceChargeType:  "PostPaid",
			SupportNodeTypes: []string{
				"MASTER",
				"CORE",
				"TASK",
			},
		}, nil)
		if err != nil {
			return err
		}
		dataDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "DataDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		systemDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "SystemDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		var tmp0 float64
		if vpcId == "" {
			tmp0 = 1
		} else {
			tmp0 = 0
		}
		var vpc []*vpc.Network
		for index := 0; index < tmp0; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewNetwork(ctx, fmt.Sprintf("vpc-%v", key0), &vpc.NetworkArgs{
				Name:      pulumi.Any(vpcName),
				CidrBlock: pulumi.Any(vpcCidr),
			})
			if err != nil {
				return err
			}
			vpc = append(vpc, __res)
		}
		var tmp1 pulumi.String
		if vpcId == "" {
			tmp1 = vpc[0].ID()
		} else {
			tmp1 = pulumi.Any(vpcId)
		}
		var tmp2 float64
		if securityGroupId == "" {
			tmp2 = 1
		} else {
			tmp2 = 0
		}
		var defaultSecurityGroup []*ecs.SecurityGroup
		for index := 0; index < tmp2; index++ {
			key0 := index
			_ := index
			__res, err := ecs.NewSecurityGroup(ctx, fmt.Sprintf("default-%v", key0), &ecs.SecurityGroupArgs{
				Name:  pulumi.Any(securityGroupName),
				VpcId: pulumi.String(tmp1),
			})
			if err != nil {
				return err
			}
			defaultSecurityGroup = append(defaultSecurityGroup, __res)
		}
		var tmp3 pulumi.String
		if availabilityZone == "" {
			tmp3 = pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId)
		} else {
			tmp3 = pulumi.Any(availabilityZone)
		}
		var tmp4 pulumi.String
		if vpcId == "" {
			tmp4 = vpc[0].ID()
		} else {
			tmp4 = pulumi.Any(vpcId)
		}
		// VSwitch Resource for Module
		var tmp5 float64
		if vswitchId == "" {
			tmp5 = 1
		} else {
			tmp5 = 0
		}
		var vswitch []*vpc.Switch
		for index := 0; index < tmp5; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("vswitch-%v", key0), &vpc.SwitchArgs{
				AvailabilityZone: pulumi.String(tmp3),
				VswitchName:      pulumi.Any(vswitchName),
				CidrBlock:        pulumi.Any(vswitchCidr),
				VpcId:            pulumi.String(tmp4),
			})
			if err != nil {
				return err
			}
			vswitch = append(vswitch, __res)
		}
		// Ram role Resource for Module
		defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
			Name: pulumi.Any(ramName),
			Document: pulumi.String(`    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }

`),

			Description: pulumi.String("this is a role test."),
			Force:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		var tmp6 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp6 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp6 = pulumi.String("160")
		}
		var tmp7 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp7 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp7 = pulumi.String("160")
		}
		var tmp8 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp8 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp8 = pulumi.String("160")
		}
		var tmp9 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp9 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp9 = pulumi.String("160")
		}
		var tmp10 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp10 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp10 = pulumi.String("160")
		}
		var tmp11 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp11 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp11 = pulumi.String("160")
		}
		var tmp12 pulumi.String
		if securityGroupId == "" {
			tmp12 = defaultSecurityGroup[0].ID()
		} else {
			tmp12 = pulumi.Any(securityGroupId)
		}
		var tmp13 pulumi.String
		if vswitchId == "" {
			tmp13 = vswitch[0].ID()
		} else {
			tmp13 = pulumi.Any(vswitchId)
		}
		_, err = emr.NewCluster(ctx, "default", &emr.ClusterArgs{
			Name:        pulumi.String("terraform-resize-cluster-test"),
			EmrVer:      pulumi.String(_default.MainVersions[0].EmrVersion),
			ClusterType: pulumi.String(_default.MainVersions[0].ClusterTypes[0]),
			HostGroups: emr.ClusterHostGroupArray{
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("master_group"),
					HostGroupType:   pulumi.String("MASTER"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp6),
					DiskCount:       pulumi.String("1"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp7),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("core_group"),
					HostGroupType:   pulumi.String("CORE"),
					NodeCount:       pulumi.String("3"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp8),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp9),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("task_group"),
					HostGroupType:   pulumi.String("TASK"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp10),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp11),
				},
			},
			HighAvailabilityEnable: pulumi.Bool(true),
			ZoneId:                 pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId),
			SecurityGroupId:        pulumi.String(tmp12),
			IsOpenPublicIp:         pulumi.Bool(true),
			ChargeType:             pulumi.String("PostPaid"),
			VswitchId:              pulumi.String(tmp13),
			UserDefinedEmrEcsRole:  defaultRole.Name,
			SshEnable:              pulumi.Bool(true),
			MasterPwd:              pulumi.String("ABCtest1234!"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### 4. Create a emr gateway cluster

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := emr.GetMainVersions(ctx, &emr.GetMainVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceTypes, err := emr.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			SupportLocalStorage: pulumi.BoolRef(false),
			InstanceChargeType:  "PostPaid",
			SupportNodeTypes: []string{
				"GATEWAY",
			},
		}, nil)
		if err != nil {
			return err
		}
		dataDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "DataDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		systemDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "SystemDisk",
			ClusterType:         _default.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		var tmp0 float64
		if vpcId == "" {
			tmp0 = 1
		} else {
			tmp0 = 0
		}
		var vpc []*vpc.Network
		for index := 0; index < tmp0; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewNetwork(ctx, fmt.Sprintf("vpc-%v", key0), &vpc.NetworkArgs{
				Name:      pulumi.Any(vpcName),
				CidrBlock: pulumi.Any(vpcCidr),
			})
			if err != nil {
				return err
			}
			vpc = append(vpc, __res)
		}
		var tmp1 pulumi.String
		if vpcId == "" {
			tmp1 = vpc[0].ID()
		} else {
			tmp1 = pulumi.Any(vpcId)
		}
		var tmp2 float64
		if securityGroupId == "" {
			tmp2 = 1
		} else {
			tmp2 = 0
		}
		var defaultSecurityGroup []*ecs.SecurityGroup
		for index := 0; index < tmp2; index++ {
			key0 := index
			_ := index
			__res, err := ecs.NewSecurityGroup(ctx, fmt.Sprintf("default-%v", key0), &ecs.SecurityGroupArgs{
				Name:  pulumi.Any(securityGroupName),
				VpcId: pulumi.String(tmp1),
			})
			if err != nil {
				return err
			}
			defaultSecurityGroup = append(defaultSecurityGroup, __res)
		}
		var tmp3 pulumi.String
		if availabilityZone == "" {
			tmp3 = pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId)
		} else {
			tmp3 = pulumi.Any(availabilityZone)
		}
		var tmp4 pulumi.String
		if vpcId == "" {
			tmp4 = vpc[0].ID()
		} else {
			tmp4 = pulumi.Any(vpcId)
		}
		// VSwitch Resource for Module
		var tmp5 float64
		if vswitchId == "" {
			tmp5 = 1
		} else {
			tmp5 = 0
		}
		var vswitch []*vpc.Switch
		for index := 0; index < tmp5; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("vswitch-%v", key0), &vpc.SwitchArgs{
				AvailabilityZone: pulumi.String(tmp3),
				VswitchName:      pulumi.Any(vswitchName),
				CidrBlock:        pulumi.Any(vswitchCidr),
				VpcId:            pulumi.String(tmp4),
			})
			if err != nil {
				return err
			}
			vswitch = append(vswitch, __res)
		}
		// Ram role Resource for Module
		defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
			Name: pulumi.Any(ramName),
			Document: pulumi.String(`    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }

`),

			Description: pulumi.String("this is a role test."),
			Force:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		var tmp6 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp6 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp6 = pulumi.String("160")
		}
		var tmp7 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp7 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp7 = pulumi.String("160")
		}
		var tmp8 pulumi.String
		if securityGroupId == "" {
			tmp8 = defaultSecurityGroup[0].ID()
		} else {
			tmp8 = pulumi.Any(securityGroupId)
		}
		var tmp9 pulumi.String
		if vswitchId == "" {
			tmp9 = vswitch[0].ID()
		} else {
			tmp9 = pulumi.Any(vswitchId)
		}
		_, err = emr.NewCluster(ctx, "gateway", &emr.ClusterArgs{
			Name:        pulumi.String("terraform-gateway-cluster-test"),
			EmrVer:      pulumi.String(_default.MainVersions[0].EmrVersion),
			ClusterType: pulumi.String("GATEWAY"),
			HostGroups: emr.ClusterHostGroupArray{
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("master_group"),
					HostGroupType:   pulumi.String("GATEWAY"),
					NodeCount:       pulumi.String("1"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp6),
					DiskCount:       pulumi.String("1"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp7),
				},
			},
			HighAvailabilityEnable: pulumi.Bool(true),
			ZoneId:                 pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId),
			SecurityGroupId:        pulumi.String(tmp8),
			IsOpenPublicIp:         pulumi.Bool(true),
			ChargeType:             pulumi.String("PostPaid"),
			VswitchId:              pulumi.String(tmp9),
			UserDefinedEmrEcsRole:  defaultRole.Name,
			SshEnable:              pulumi.Bool(true),
			MasterPwd:              pulumi.String("ABCtest1234!"),
			RelatedClusterId:       pulumi.Any(relatedClusterId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Aliclioud E-MapReduce cluster can be imported using the id e.g.

```sh $ pulumi import alicloud:emr/cluster:Cluster default C-B47FB8FE96C67XXXX ```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	// Boot action parameters.
	BootstrapActions ClusterBootstrapActionArrayInput
	// Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.
	ChargeType pulumi.StringPtrInput
	// EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported 'GATEWAY' available in 1.61.0+.
	ClusterType pulumi.StringInput
	// The custom configurations of emr-cluster service.
	Configs ClusterConfigArrayInput
	// Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
	DepositType pulumi.StringPtrInput
	// High security cluster (true) or not. Default value is false.
	EasEnable pulumi.BoolPtrInput
	// EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
	EmrVer pulumi.StringInput
	// High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
	HighAvailabilityEnable pulumi.BoolPtrInput
	// Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
	HostGroups ClusterHostGroupArrayInput
	// Whether the MASTER node has a public IP address enabled. Default value is false.
	IsOpenPublicIp pulumi.BoolPtrInput
	// Ssh key pair.
	KeyPairName pulumi.StringPtrInput
	// Master ssh password.
	MasterPwd pulumi.StringPtrInput
	// The configuration of emr-cluster service component metadata storage. If meta store type is ’user_rds’, this should be specified.
	MetaStoreConf ClusterMetaStoreConfPtrInput
	// The type of emr-cluster service component metadata storage. ’dlf’ or ’local’ or ’user_rds’ .
	MetaStoreType pulumi.StringPtrInput
	// The configurations of emr-cluster service modification after cluster created.
	ModifyClusterServiceConfig ClusterModifyClusterServiceConfigPtrInput
	// The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
	Name pulumi.StringPtrInput
	// Optional software list.
	OptionSoftwareLists pulumi.StringArrayInput
	// If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
	Period pulumi.IntPtrInput
	// This specify the related cluster id, if this cluster is a Gateway.
	RelatedClusterId pulumi.StringPtrInput
	// The Id of resource group which the emr-cluster belongs.
	ResourceGroupId pulumi.StringPtrInput
	// Security Group ID for Cluster, you can also specify this key for each host group.
	SecurityGroupId pulumi.StringPtrInput
	// If this is set true, we can ssh into cluster. Default value is false.
	SshEnable pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Use local metadb. Default is false.
	UseLocalMetadb pulumi.BoolPtrInput
	// Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
	UserDefinedEmrEcsRole pulumi.StringPtrInput
	// Global vswitch id, you can also specify it in host group.
	VswitchId pulumi.StringPtrInput
	// Zone ID, e.g. cn-huhehaote-a
	ZoneId pulumi.StringInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterBootstrapAction

type ClusterBootstrapAction struct {
	// bootstrap action args, e.g. "--a=b".
	Arg *string `pulumi:"arg"`
	// bootstrap action execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ . Default value: "FAILED_BLOCKED
	ExecutionFailStrategy *string `pulumi:"executionFailStrategy"`
	// bootstrap action execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ . Default value: "BEFORE_INSTALL".
	ExecutionMoment *string `pulumi:"executionMoment"`
	// bootstrap action execution target, you can specify the host group name, e.g. "coreGroup". If this is not specified, the bootstrap action execution target is whole cluster.
	ExecutionTarget *string `pulumi:"executionTarget"`
	// The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
	Name *string `pulumi:"name"`
	// bootstrap action path, e.g. "oss://bucket/path".
	Path *string `pulumi:"path"`
}

type ClusterBootstrapActionArgs

type ClusterBootstrapActionArgs struct {
	// bootstrap action args, e.g. "--a=b".
	Arg pulumi.StringPtrInput `pulumi:"arg"`
	// bootstrap action execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ . Default value: "FAILED_BLOCKED
	ExecutionFailStrategy pulumi.StringPtrInput `pulumi:"executionFailStrategy"`
	// bootstrap action execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ . Default value: "BEFORE_INSTALL".
	ExecutionMoment pulumi.StringPtrInput `pulumi:"executionMoment"`
	// bootstrap action execution target, you can specify the host group name, e.g. "coreGroup". If this is not specified, the bootstrap action execution target is whole cluster.
	ExecutionTarget pulumi.StringPtrInput `pulumi:"executionTarget"`
	// The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
	Name pulumi.StringPtrInput `pulumi:"name"`
	// bootstrap action path, e.g. "oss://bucket/path".
	Path pulumi.StringPtrInput `pulumi:"path"`
}

func (ClusterBootstrapActionArgs) ElementType

func (ClusterBootstrapActionArgs) ElementType() reflect.Type

func (ClusterBootstrapActionArgs) ToClusterBootstrapActionOutput

func (i ClusterBootstrapActionArgs) ToClusterBootstrapActionOutput() ClusterBootstrapActionOutput

func (ClusterBootstrapActionArgs) ToClusterBootstrapActionOutputWithContext

func (i ClusterBootstrapActionArgs) ToClusterBootstrapActionOutputWithContext(ctx context.Context) ClusterBootstrapActionOutput

type ClusterBootstrapActionArray

type ClusterBootstrapActionArray []ClusterBootstrapActionInput

func (ClusterBootstrapActionArray) ElementType

func (ClusterBootstrapActionArray) ToClusterBootstrapActionArrayOutput

func (i ClusterBootstrapActionArray) ToClusterBootstrapActionArrayOutput() ClusterBootstrapActionArrayOutput

func (ClusterBootstrapActionArray) ToClusterBootstrapActionArrayOutputWithContext

func (i ClusterBootstrapActionArray) ToClusterBootstrapActionArrayOutputWithContext(ctx context.Context) ClusterBootstrapActionArrayOutput

type ClusterBootstrapActionArrayInput

type ClusterBootstrapActionArrayInput interface {
	pulumi.Input

	ToClusterBootstrapActionArrayOutput() ClusterBootstrapActionArrayOutput
	ToClusterBootstrapActionArrayOutputWithContext(context.Context) ClusterBootstrapActionArrayOutput
}

ClusterBootstrapActionArrayInput is an input type that accepts ClusterBootstrapActionArray and ClusterBootstrapActionArrayOutput values. You can construct a concrete instance of `ClusterBootstrapActionArrayInput` via:

ClusterBootstrapActionArray{ ClusterBootstrapActionArgs{...} }

type ClusterBootstrapActionArrayOutput

type ClusterBootstrapActionArrayOutput struct{ *pulumi.OutputState }

func (ClusterBootstrapActionArrayOutput) ElementType

func (ClusterBootstrapActionArrayOutput) Index

func (ClusterBootstrapActionArrayOutput) ToClusterBootstrapActionArrayOutput

func (o ClusterBootstrapActionArrayOutput) ToClusterBootstrapActionArrayOutput() ClusterBootstrapActionArrayOutput

func (ClusterBootstrapActionArrayOutput) ToClusterBootstrapActionArrayOutputWithContext

func (o ClusterBootstrapActionArrayOutput) ToClusterBootstrapActionArrayOutputWithContext(ctx context.Context) ClusterBootstrapActionArrayOutput

type ClusterBootstrapActionInput

type ClusterBootstrapActionInput interface {
	pulumi.Input

	ToClusterBootstrapActionOutput() ClusterBootstrapActionOutput
	ToClusterBootstrapActionOutputWithContext(context.Context) ClusterBootstrapActionOutput
}

ClusterBootstrapActionInput is an input type that accepts ClusterBootstrapActionArgs and ClusterBootstrapActionOutput values. You can construct a concrete instance of `ClusterBootstrapActionInput` via:

ClusterBootstrapActionArgs{...}

type ClusterBootstrapActionOutput

type ClusterBootstrapActionOutput struct{ *pulumi.OutputState }

func (ClusterBootstrapActionOutput) Arg

bootstrap action args, e.g. "--a=b".

func (ClusterBootstrapActionOutput) ElementType

func (ClusterBootstrapActionOutput) ExecutionFailStrategy added in v3.22.0

func (o ClusterBootstrapActionOutput) ExecutionFailStrategy() pulumi.StringPtrOutput

bootstrap action execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ . Default value: "FAILED_BLOCKED

func (ClusterBootstrapActionOutput) ExecutionMoment added in v3.22.0

bootstrap action execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ . Default value: "BEFORE_INSTALL".

func (ClusterBootstrapActionOutput) ExecutionTarget added in v3.22.0

bootstrap action execution target, you can specify the host group name, e.g. "coreGroup". If this is not specified, the bootstrap action execution target is whole cluster.

func (ClusterBootstrapActionOutput) Name

The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".

func (ClusterBootstrapActionOutput) Path

bootstrap action path, e.g. "oss://bucket/path".

func (ClusterBootstrapActionOutput) ToClusterBootstrapActionOutput

func (o ClusterBootstrapActionOutput) ToClusterBootstrapActionOutput() ClusterBootstrapActionOutput

func (ClusterBootstrapActionOutput) ToClusterBootstrapActionOutputWithContext

func (o ClusterBootstrapActionOutput) ToClusterBootstrapActionOutputWithContext(ctx context.Context) ClusterBootstrapActionOutput

type ClusterConfig added in v3.29.0

type ClusterConfig struct {
	// Custom configuration service config key, e.g. ’dfs.replication’.
	ConfigKey string `pulumi:"configKey"`
	// Custom configuration service config value, e.g. ’3’.
	ConfigValue string `pulumi:"configValue"`
	// Custom configuration service file name, e.g. ’hdfs-site’.
	FileName    string `pulumi:"fileName"`
	ServiceName string `pulumi:"serviceName"`
}

type ClusterConfigArgs added in v3.29.0

type ClusterConfigArgs struct {
	// Custom configuration service config key, e.g. ’dfs.replication’.
	ConfigKey pulumi.StringInput `pulumi:"configKey"`
	// Custom configuration service config value, e.g. ’3’.
	ConfigValue pulumi.StringInput `pulumi:"configValue"`
	// Custom configuration service file name, e.g. ’hdfs-site’.
	FileName    pulumi.StringInput `pulumi:"fileName"`
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
}

func (ClusterConfigArgs) ElementType added in v3.29.0

func (ClusterConfigArgs) ElementType() reflect.Type

func (ClusterConfigArgs) ToClusterConfigOutput added in v3.29.0

func (i ClusterConfigArgs) ToClusterConfigOutput() ClusterConfigOutput

func (ClusterConfigArgs) ToClusterConfigOutputWithContext added in v3.29.0

func (i ClusterConfigArgs) ToClusterConfigOutputWithContext(ctx context.Context) ClusterConfigOutput

type ClusterConfigArray added in v3.29.0

type ClusterConfigArray []ClusterConfigInput

func (ClusterConfigArray) ElementType added in v3.29.0

func (ClusterConfigArray) ElementType() reflect.Type

func (ClusterConfigArray) ToClusterConfigArrayOutput added in v3.29.0

func (i ClusterConfigArray) ToClusterConfigArrayOutput() ClusterConfigArrayOutput

func (ClusterConfigArray) ToClusterConfigArrayOutputWithContext added in v3.29.0

func (i ClusterConfigArray) ToClusterConfigArrayOutputWithContext(ctx context.Context) ClusterConfigArrayOutput

type ClusterConfigArrayInput added in v3.29.0

type ClusterConfigArrayInput interface {
	pulumi.Input

	ToClusterConfigArrayOutput() ClusterConfigArrayOutput
	ToClusterConfigArrayOutputWithContext(context.Context) ClusterConfigArrayOutput
}

ClusterConfigArrayInput is an input type that accepts ClusterConfigArray and ClusterConfigArrayOutput values. You can construct a concrete instance of `ClusterConfigArrayInput` via:

ClusterConfigArray{ ClusterConfigArgs{...} }

type ClusterConfigArrayOutput added in v3.29.0

type ClusterConfigArrayOutput struct{ *pulumi.OutputState }

func (ClusterConfigArrayOutput) ElementType added in v3.29.0

func (ClusterConfigArrayOutput) ElementType() reflect.Type

func (ClusterConfigArrayOutput) Index added in v3.29.0

func (ClusterConfigArrayOutput) ToClusterConfigArrayOutput added in v3.29.0

func (o ClusterConfigArrayOutput) ToClusterConfigArrayOutput() ClusterConfigArrayOutput

func (ClusterConfigArrayOutput) ToClusterConfigArrayOutputWithContext added in v3.29.0

func (o ClusterConfigArrayOutput) ToClusterConfigArrayOutputWithContext(ctx context.Context) ClusterConfigArrayOutput

type ClusterConfigInput added in v3.29.0

type ClusterConfigInput interface {
	pulumi.Input

	ToClusterConfigOutput() ClusterConfigOutput
	ToClusterConfigOutputWithContext(context.Context) ClusterConfigOutput
}

ClusterConfigInput is an input type that accepts ClusterConfigArgs and ClusterConfigOutput values. You can construct a concrete instance of `ClusterConfigInput` via:

ClusterConfigArgs{...}

type ClusterConfigOutput added in v3.29.0

type ClusterConfigOutput struct{ *pulumi.OutputState }

func (ClusterConfigOutput) ConfigKey added in v3.29.0

func (o ClusterConfigOutput) ConfigKey() pulumi.StringOutput

Custom configuration service config key, e.g. ’dfs.replication’.

func (ClusterConfigOutput) ConfigValue added in v3.29.0

func (o ClusterConfigOutput) ConfigValue() pulumi.StringOutput

Custom configuration service config value, e.g. ’3’.

func (ClusterConfigOutput) ElementType added in v3.29.0

func (ClusterConfigOutput) ElementType() reflect.Type

func (ClusterConfigOutput) FileName added in v3.29.0

Custom configuration service file name, e.g. ’hdfs-site’.

func (ClusterConfigOutput) ServiceName added in v3.29.0

func (o ClusterConfigOutput) ServiceName() pulumi.StringOutput

func (ClusterConfigOutput) ToClusterConfigOutput added in v3.29.0

func (o ClusterConfigOutput) ToClusterConfigOutput() ClusterConfigOutput

func (ClusterConfigOutput) ToClusterConfigOutputWithContext added in v3.29.0

func (o ClusterConfigOutput) ToClusterConfigOutputWithContext(ctx context.Context) ClusterConfigOutput

type ClusterHostGroup

type ClusterHostGroup struct {
	// Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
	AutoRenew *bool `pulumi:"autoRenew"`
	// Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.
	ChargeType *string `pulumi:"chargeType"`
	// Graceful decommission timeout, unit: seconds.
	DecommissionTimeout *int `pulumi:"decommissionTimeout"`
	// Data disk capacity.
	DiskCapacity *string `pulumi:"diskCapacity"`
	// Data disk count.
	DiskCount *string `pulumi:"diskCount"`
	// Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
	DiskType *string `pulumi:"diskType"`
	// Enable hadoop cluster of task node graceful decommission, ’true’ or ‘false’ . Default value: false.
	EnableGracefulDecommission *bool   `pulumi:"enableGracefulDecommission"`
	GpuDriver                  *string `pulumi:"gpuDriver"`
	// host group name.
	HostGroupName *string `pulumi:"hostGroupName"`
	// host group type, supported value: MASTER, CORE or TASK, supported 'GATEWAY' available in 1.61.0+.
	HostGroupType *string `pulumi:"hostGroupType"`
	// Instance list for cluster scale down. This value follows the json format, e.g. ["instanceId1","instanceId2"]. escape character for " is \".
	InstanceList *string `pulumi:"instanceList"`
	// Host Ecs instance type.
	InstanceType *string `pulumi:"instanceType"`
	// Host number in this group.
	NodeCount *string `pulumi:"nodeCount"`
	// If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
	Period *int `pulumi:"period"`
	// System disk capacity.
	SysDiskCapacity *string `pulumi:"sysDiskCapacity"`
	// System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
	SysDiskType *string `pulumi:"sysDiskType"`
}

type ClusterHostGroupArgs

type ClusterHostGroupArgs struct {
	// Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
	AutoRenew pulumi.BoolPtrInput `pulumi:"autoRenew"`
	// Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.
	ChargeType pulumi.StringPtrInput `pulumi:"chargeType"`
	// Graceful decommission timeout, unit: seconds.
	DecommissionTimeout pulumi.IntPtrInput `pulumi:"decommissionTimeout"`
	// Data disk capacity.
	DiskCapacity pulumi.StringPtrInput `pulumi:"diskCapacity"`
	// Data disk count.
	DiskCount pulumi.StringPtrInput `pulumi:"diskCount"`
	// Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
	DiskType pulumi.StringPtrInput `pulumi:"diskType"`
	// Enable hadoop cluster of task node graceful decommission, ’true’ or ‘false’ . Default value: false.
	EnableGracefulDecommission pulumi.BoolPtrInput   `pulumi:"enableGracefulDecommission"`
	GpuDriver                  pulumi.StringPtrInput `pulumi:"gpuDriver"`
	// host group name.
	HostGroupName pulumi.StringPtrInput `pulumi:"hostGroupName"`
	// host group type, supported value: MASTER, CORE or TASK, supported 'GATEWAY' available in 1.61.0+.
	HostGroupType pulumi.StringPtrInput `pulumi:"hostGroupType"`
	// Instance list for cluster scale down. This value follows the json format, e.g. ["instanceId1","instanceId2"]. escape character for " is \".
	InstanceList pulumi.StringPtrInput `pulumi:"instanceList"`
	// Host Ecs instance type.
	InstanceType pulumi.StringPtrInput `pulumi:"instanceType"`
	// Host number in this group.
	NodeCount pulumi.StringPtrInput `pulumi:"nodeCount"`
	// If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
	Period pulumi.IntPtrInput `pulumi:"period"`
	// System disk capacity.
	SysDiskCapacity pulumi.StringPtrInput `pulumi:"sysDiskCapacity"`
	// System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
	SysDiskType pulumi.StringPtrInput `pulumi:"sysDiskType"`
}

func (ClusterHostGroupArgs) ElementType

func (ClusterHostGroupArgs) ElementType() reflect.Type

func (ClusterHostGroupArgs) ToClusterHostGroupOutput

func (i ClusterHostGroupArgs) ToClusterHostGroupOutput() ClusterHostGroupOutput

func (ClusterHostGroupArgs) ToClusterHostGroupOutputWithContext

func (i ClusterHostGroupArgs) ToClusterHostGroupOutputWithContext(ctx context.Context) ClusterHostGroupOutput

type ClusterHostGroupArray

type ClusterHostGroupArray []ClusterHostGroupInput

func (ClusterHostGroupArray) ElementType

func (ClusterHostGroupArray) ElementType() reflect.Type

func (ClusterHostGroupArray) ToClusterHostGroupArrayOutput

func (i ClusterHostGroupArray) ToClusterHostGroupArrayOutput() ClusterHostGroupArrayOutput

func (ClusterHostGroupArray) ToClusterHostGroupArrayOutputWithContext

func (i ClusterHostGroupArray) ToClusterHostGroupArrayOutputWithContext(ctx context.Context) ClusterHostGroupArrayOutput

type ClusterHostGroupArrayInput

type ClusterHostGroupArrayInput interface {
	pulumi.Input

	ToClusterHostGroupArrayOutput() ClusterHostGroupArrayOutput
	ToClusterHostGroupArrayOutputWithContext(context.Context) ClusterHostGroupArrayOutput
}

ClusterHostGroupArrayInput is an input type that accepts ClusterHostGroupArray and ClusterHostGroupArrayOutput values. You can construct a concrete instance of `ClusterHostGroupArrayInput` via:

ClusterHostGroupArray{ ClusterHostGroupArgs{...} }

type ClusterHostGroupArrayOutput

type ClusterHostGroupArrayOutput struct{ *pulumi.OutputState }

func (ClusterHostGroupArrayOutput) ElementType

func (ClusterHostGroupArrayOutput) Index

func (ClusterHostGroupArrayOutput) ToClusterHostGroupArrayOutput

func (o ClusterHostGroupArrayOutput) ToClusterHostGroupArrayOutput() ClusterHostGroupArrayOutput

func (ClusterHostGroupArrayOutput) ToClusterHostGroupArrayOutputWithContext

func (o ClusterHostGroupArrayOutput) ToClusterHostGroupArrayOutputWithContext(ctx context.Context) ClusterHostGroupArrayOutput

type ClusterHostGroupInput

type ClusterHostGroupInput interface {
	pulumi.Input

	ToClusterHostGroupOutput() ClusterHostGroupOutput
	ToClusterHostGroupOutputWithContext(context.Context) ClusterHostGroupOutput
}

ClusterHostGroupInput is an input type that accepts ClusterHostGroupArgs and ClusterHostGroupOutput values. You can construct a concrete instance of `ClusterHostGroupInput` via:

ClusterHostGroupArgs{...}

type ClusterHostGroupOutput

type ClusterHostGroupOutput struct{ *pulumi.OutputState }

func (ClusterHostGroupOutput) AutoRenew

Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.

func (ClusterHostGroupOutput) ChargeType

Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.

func (ClusterHostGroupOutput) DecommissionTimeout added in v3.20.0

func (o ClusterHostGroupOutput) DecommissionTimeout() pulumi.IntPtrOutput

Graceful decommission timeout, unit: seconds.

func (ClusterHostGroupOutput) DiskCapacity

Data disk capacity.

func (ClusterHostGroupOutput) DiskCount

Data disk count.

func (ClusterHostGroupOutput) DiskType

Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.

func (ClusterHostGroupOutput) ElementType

func (ClusterHostGroupOutput) ElementType() reflect.Type

func (ClusterHostGroupOutput) EnableGracefulDecommission added in v3.20.0

func (o ClusterHostGroupOutput) EnableGracefulDecommission() pulumi.BoolPtrOutput

Enable hadoop cluster of task node graceful decommission, ’true’ or ‘false’ . Default value: false.

func (ClusterHostGroupOutput) GpuDriver

func (ClusterHostGroupOutput) HostGroupName

func (o ClusterHostGroupOutput) HostGroupName() pulumi.StringPtrOutput

host group name.

func (ClusterHostGroupOutput) HostGroupType

func (o ClusterHostGroupOutput) HostGroupType() pulumi.StringPtrOutput

host group type, supported value: MASTER, CORE or TASK, supported 'GATEWAY' available in 1.61.0+.

func (ClusterHostGroupOutput) InstanceList

Instance list for cluster scale down. This value follows the json format, e.g. ["instanceId1","instanceId2"]. escape character for " is \".

func (ClusterHostGroupOutput) InstanceType

Host Ecs instance type.

func (ClusterHostGroupOutput) NodeCount

Host number in this group.

func (ClusterHostGroupOutput) Period

If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.

func (ClusterHostGroupOutput) SysDiskCapacity

func (o ClusterHostGroupOutput) SysDiskCapacity() pulumi.StringPtrOutput

System disk capacity.

func (ClusterHostGroupOutput) SysDiskType

System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.

func (ClusterHostGroupOutput) ToClusterHostGroupOutput

func (o ClusterHostGroupOutput) ToClusterHostGroupOutput() ClusterHostGroupOutput

func (ClusterHostGroupOutput) ToClusterHostGroupOutputWithContext

func (o ClusterHostGroupOutput) ToClusterHostGroupOutputWithContext(ctx context.Context) ClusterHostGroupOutput

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMetaStoreConf added in v3.29.0

type ClusterMetaStoreConf struct {
	// Custom rds database password.
	DbPassword string `pulumi:"dbPassword"`
	// Custom rds database connection url.
	DbUrl string `pulumi:"dbUrl"`
	// Custom rds database user name.
	DbUserName string `pulumi:"dbUserName"`
}

type ClusterMetaStoreConfArgs added in v3.29.0

type ClusterMetaStoreConfArgs struct {
	// Custom rds database password.
	DbPassword pulumi.StringInput `pulumi:"dbPassword"`
	// Custom rds database connection url.
	DbUrl pulumi.StringInput `pulumi:"dbUrl"`
	// Custom rds database user name.
	DbUserName pulumi.StringInput `pulumi:"dbUserName"`
}

func (ClusterMetaStoreConfArgs) ElementType added in v3.29.0

func (ClusterMetaStoreConfArgs) ElementType() reflect.Type

func (ClusterMetaStoreConfArgs) ToClusterMetaStoreConfOutput added in v3.29.0

func (i ClusterMetaStoreConfArgs) ToClusterMetaStoreConfOutput() ClusterMetaStoreConfOutput

func (ClusterMetaStoreConfArgs) ToClusterMetaStoreConfOutputWithContext added in v3.29.0

func (i ClusterMetaStoreConfArgs) ToClusterMetaStoreConfOutputWithContext(ctx context.Context) ClusterMetaStoreConfOutput

func (ClusterMetaStoreConfArgs) ToClusterMetaStoreConfPtrOutput added in v3.29.0

func (i ClusterMetaStoreConfArgs) ToClusterMetaStoreConfPtrOutput() ClusterMetaStoreConfPtrOutput

func (ClusterMetaStoreConfArgs) ToClusterMetaStoreConfPtrOutputWithContext added in v3.29.0

func (i ClusterMetaStoreConfArgs) ToClusterMetaStoreConfPtrOutputWithContext(ctx context.Context) ClusterMetaStoreConfPtrOutput

type ClusterMetaStoreConfInput added in v3.29.0

type ClusterMetaStoreConfInput interface {
	pulumi.Input

	ToClusterMetaStoreConfOutput() ClusterMetaStoreConfOutput
	ToClusterMetaStoreConfOutputWithContext(context.Context) ClusterMetaStoreConfOutput
}

ClusterMetaStoreConfInput is an input type that accepts ClusterMetaStoreConfArgs and ClusterMetaStoreConfOutput values. You can construct a concrete instance of `ClusterMetaStoreConfInput` via:

ClusterMetaStoreConfArgs{...}

type ClusterMetaStoreConfOutput added in v3.29.0

type ClusterMetaStoreConfOutput struct{ *pulumi.OutputState }

func (ClusterMetaStoreConfOutput) DbPassword added in v3.29.0

Custom rds database password.

func (ClusterMetaStoreConfOutput) DbUrl added in v3.29.0

Custom rds database connection url.

func (ClusterMetaStoreConfOutput) DbUserName added in v3.29.0

Custom rds database user name.

func (ClusterMetaStoreConfOutput) ElementType added in v3.29.0

func (ClusterMetaStoreConfOutput) ElementType() reflect.Type

func (ClusterMetaStoreConfOutput) ToClusterMetaStoreConfOutput added in v3.29.0

func (o ClusterMetaStoreConfOutput) ToClusterMetaStoreConfOutput() ClusterMetaStoreConfOutput

func (ClusterMetaStoreConfOutput) ToClusterMetaStoreConfOutputWithContext added in v3.29.0

func (o ClusterMetaStoreConfOutput) ToClusterMetaStoreConfOutputWithContext(ctx context.Context) ClusterMetaStoreConfOutput

func (ClusterMetaStoreConfOutput) ToClusterMetaStoreConfPtrOutput added in v3.29.0

func (o ClusterMetaStoreConfOutput) ToClusterMetaStoreConfPtrOutput() ClusterMetaStoreConfPtrOutput

func (ClusterMetaStoreConfOutput) ToClusterMetaStoreConfPtrOutputWithContext added in v3.29.0

func (o ClusterMetaStoreConfOutput) ToClusterMetaStoreConfPtrOutputWithContext(ctx context.Context) ClusterMetaStoreConfPtrOutput

type ClusterMetaStoreConfPtrInput added in v3.29.0

type ClusterMetaStoreConfPtrInput interface {
	pulumi.Input

	ToClusterMetaStoreConfPtrOutput() ClusterMetaStoreConfPtrOutput
	ToClusterMetaStoreConfPtrOutputWithContext(context.Context) ClusterMetaStoreConfPtrOutput
}

ClusterMetaStoreConfPtrInput is an input type that accepts ClusterMetaStoreConfArgs, ClusterMetaStoreConfPtr and ClusterMetaStoreConfPtrOutput values. You can construct a concrete instance of `ClusterMetaStoreConfPtrInput` via:

        ClusterMetaStoreConfArgs{...}

or:

        nil

func ClusterMetaStoreConfPtr added in v3.29.0

func ClusterMetaStoreConfPtr(v *ClusterMetaStoreConfArgs) ClusterMetaStoreConfPtrInput

type ClusterMetaStoreConfPtrOutput added in v3.29.0

type ClusterMetaStoreConfPtrOutput struct{ *pulumi.OutputState }

func (ClusterMetaStoreConfPtrOutput) DbPassword added in v3.29.0

Custom rds database password.

func (ClusterMetaStoreConfPtrOutput) DbUrl added in v3.29.0

Custom rds database connection url.

func (ClusterMetaStoreConfPtrOutput) DbUserName added in v3.29.0

Custom rds database user name.

func (ClusterMetaStoreConfPtrOutput) Elem added in v3.29.0

func (ClusterMetaStoreConfPtrOutput) ElementType added in v3.29.0

func (ClusterMetaStoreConfPtrOutput) ToClusterMetaStoreConfPtrOutput added in v3.29.0

func (o ClusterMetaStoreConfPtrOutput) ToClusterMetaStoreConfPtrOutput() ClusterMetaStoreConfPtrOutput

func (ClusterMetaStoreConfPtrOutput) ToClusterMetaStoreConfPtrOutputWithContext added in v3.29.0

func (o ClusterMetaStoreConfPtrOutput) ToClusterMetaStoreConfPtrOutputWithContext(ctx context.Context) ClusterMetaStoreConfPtrOutput

type ClusterModifyClusterServiceConfig added in v3.29.0

type ClusterModifyClusterServiceConfig struct {
	// Cluster service configuration modification comment, e.g. "Modify tez configuration".
	Comment *string `pulumi:"comment"`
	// Cluster service configuration modification params, e.g. ’{"hdfs-site":{"dfs.replication":"3"}}’.
	ConfigParams string `pulumi:"configParams"`
	// Cluster service configuration modification type.
	ConfigType *string `pulumi:"configType"`
	// Cluster service configuration modification custom params, e.g. ’{"tez-site":{"key":{"Value":"value"}}}’.
	CustomConfigParams *string `pulumi:"customConfigParams"`
	// Cluster service configuration modification related gateway cluster id list.
	GatewayClusterIdLists []string `pulumi:"gatewayClusterIdLists"`
	// Cluster service configuration modification node group id, e.g. ’G-XXX’.
	GroupId *string `pulumi:"groupId"`
	// Cluster service configuration modification host instance id, e.g. ’i-bp146tnrkq4tcxxxxx’.
	HostInstanceId *string `pulumi:"hostInstanceId"`
	// Cluster service configuration modification refresh host config, ’true’ or ’false’.
	RefreshHostConfig *bool  `pulumi:"refreshHostConfig"`
	ServiceName       string `pulumi:"serviceName"`
}

type ClusterModifyClusterServiceConfigArgs added in v3.29.0

type ClusterModifyClusterServiceConfigArgs struct {
	// Cluster service configuration modification comment, e.g. "Modify tez configuration".
	Comment pulumi.StringPtrInput `pulumi:"comment"`
	// Cluster service configuration modification params, e.g. ’{"hdfs-site":{"dfs.replication":"3"}}’.
	ConfigParams pulumi.StringInput `pulumi:"configParams"`
	// Cluster service configuration modification type.
	ConfigType pulumi.StringPtrInput `pulumi:"configType"`
	// Cluster service configuration modification custom params, e.g. ’{"tez-site":{"key":{"Value":"value"}}}’.
	CustomConfigParams pulumi.StringPtrInput `pulumi:"customConfigParams"`
	// Cluster service configuration modification related gateway cluster id list.
	GatewayClusterIdLists pulumi.StringArrayInput `pulumi:"gatewayClusterIdLists"`
	// Cluster service configuration modification node group id, e.g. ’G-XXX’.
	GroupId pulumi.StringPtrInput `pulumi:"groupId"`
	// Cluster service configuration modification host instance id, e.g. ’i-bp146tnrkq4tcxxxxx’.
	HostInstanceId pulumi.StringPtrInput `pulumi:"hostInstanceId"`
	// Cluster service configuration modification refresh host config, ’true’ or ’false’.
	RefreshHostConfig pulumi.BoolPtrInput `pulumi:"refreshHostConfig"`
	ServiceName       pulumi.StringInput  `pulumi:"serviceName"`
}

func (ClusterModifyClusterServiceConfigArgs) ElementType added in v3.29.0

func (ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigOutput added in v3.29.0

func (i ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigOutput() ClusterModifyClusterServiceConfigOutput

func (ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigOutputWithContext added in v3.29.0

func (i ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigOutputWithContext(ctx context.Context) ClusterModifyClusterServiceConfigOutput

func (ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigPtrOutput added in v3.29.0

func (i ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigPtrOutput() ClusterModifyClusterServiceConfigPtrOutput

func (ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigPtrOutputWithContext added in v3.29.0

func (i ClusterModifyClusterServiceConfigArgs) ToClusterModifyClusterServiceConfigPtrOutputWithContext(ctx context.Context) ClusterModifyClusterServiceConfigPtrOutput

type ClusterModifyClusterServiceConfigInput added in v3.29.0

type ClusterModifyClusterServiceConfigInput interface {
	pulumi.Input

	ToClusterModifyClusterServiceConfigOutput() ClusterModifyClusterServiceConfigOutput
	ToClusterModifyClusterServiceConfigOutputWithContext(context.Context) ClusterModifyClusterServiceConfigOutput
}

ClusterModifyClusterServiceConfigInput is an input type that accepts ClusterModifyClusterServiceConfigArgs and ClusterModifyClusterServiceConfigOutput values. You can construct a concrete instance of `ClusterModifyClusterServiceConfigInput` via:

ClusterModifyClusterServiceConfigArgs{...}

type ClusterModifyClusterServiceConfigOutput added in v3.29.0

type ClusterModifyClusterServiceConfigOutput struct{ *pulumi.OutputState }

func (ClusterModifyClusterServiceConfigOutput) Comment added in v3.29.0

Cluster service configuration modification comment, e.g. "Modify tez configuration".

func (ClusterModifyClusterServiceConfigOutput) ConfigParams added in v3.29.0

Cluster service configuration modification params, e.g. ’{"hdfs-site":{"dfs.replication":"3"}}’.

func (ClusterModifyClusterServiceConfigOutput) ConfigType added in v3.29.0

Cluster service configuration modification type.

func (ClusterModifyClusterServiceConfigOutput) CustomConfigParams added in v3.29.0

Cluster service configuration modification custom params, e.g. ’{"tez-site":{"key":{"Value":"value"}}}’.

func (ClusterModifyClusterServiceConfigOutput) ElementType added in v3.29.0

func (ClusterModifyClusterServiceConfigOutput) GatewayClusterIdLists added in v3.29.0

Cluster service configuration modification related gateway cluster id list.

func (ClusterModifyClusterServiceConfigOutput) GroupId added in v3.29.0

Cluster service configuration modification node group id, e.g. ’G-XXX’.

func (ClusterModifyClusterServiceConfigOutput) HostInstanceId added in v3.29.0

Cluster service configuration modification host instance id, e.g. ’i-bp146tnrkq4tcxxxxx’.

func (ClusterModifyClusterServiceConfigOutput) RefreshHostConfig added in v3.29.0

Cluster service configuration modification refresh host config, ’true’ or ’false’.

func (ClusterModifyClusterServiceConfigOutput) ServiceName added in v3.29.0

func (ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigOutput added in v3.29.0

func (o ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigOutput() ClusterModifyClusterServiceConfigOutput

func (ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigOutputWithContext added in v3.29.0

func (o ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigOutputWithContext(ctx context.Context) ClusterModifyClusterServiceConfigOutput

func (ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigPtrOutput added in v3.29.0

func (o ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigPtrOutput() ClusterModifyClusterServiceConfigPtrOutput

func (ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigPtrOutputWithContext added in v3.29.0

func (o ClusterModifyClusterServiceConfigOutput) ToClusterModifyClusterServiceConfigPtrOutputWithContext(ctx context.Context) ClusterModifyClusterServiceConfigPtrOutput

type ClusterModifyClusterServiceConfigPtrInput added in v3.29.0

type ClusterModifyClusterServiceConfigPtrInput interface {
	pulumi.Input

	ToClusterModifyClusterServiceConfigPtrOutput() ClusterModifyClusterServiceConfigPtrOutput
	ToClusterModifyClusterServiceConfigPtrOutputWithContext(context.Context) ClusterModifyClusterServiceConfigPtrOutput
}

ClusterModifyClusterServiceConfigPtrInput is an input type that accepts ClusterModifyClusterServiceConfigArgs, ClusterModifyClusterServiceConfigPtr and ClusterModifyClusterServiceConfigPtrOutput values. You can construct a concrete instance of `ClusterModifyClusterServiceConfigPtrInput` via:

        ClusterModifyClusterServiceConfigArgs{...}

or:

        nil

type ClusterModifyClusterServiceConfigPtrOutput added in v3.29.0

type ClusterModifyClusterServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (ClusterModifyClusterServiceConfigPtrOutput) Comment added in v3.29.0

Cluster service configuration modification comment, e.g. "Modify tez configuration".

func (ClusterModifyClusterServiceConfigPtrOutput) ConfigParams added in v3.29.0

Cluster service configuration modification params, e.g. ’{"hdfs-site":{"dfs.replication":"3"}}’.

func (ClusterModifyClusterServiceConfigPtrOutput) ConfigType added in v3.29.0

Cluster service configuration modification type.

func (ClusterModifyClusterServiceConfigPtrOutput) CustomConfigParams added in v3.29.0

Cluster service configuration modification custom params, e.g. ’{"tez-site":{"key":{"Value":"value"}}}’.

func (ClusterModifyClusterServiceConfigPtrOutput) Elem added in v3.29.0

func (ClusterModifyClusterServiceConfigPtrOutput) ElementType added in v3.29.0

func (ClusterModifyClusterServiceConfigPtrOutput) GatewayClusterIdLists added in v3.29.0

Cluster service configuration modification related gateway cluster id list.

func (ClusterModifyClusterServiceConfigPtrOutput) GroupId added in v3.29.0

Cluster service configuration modification node group id, e.g. ’G-XXX’.

func (ClusterModifyClusterServiceConfigPtrOutput) HostInstanceId added in v3.29.0

Cluster service configuration modification host instance id, e.g. ’i-bp146tnrkq4tcxxxxx’.

func (ClusterModifyClusterServiceConfigPtrOutput) RefreshHostConfig added in v3.29.0

Cluster service configuration modification refresh host config, ’true’ or ’false’.

func (ClusterModifyClusterServiceConfigPtrOutput) ServiceName added in v3.29.0

func (ClusterModifyClusterServiceConfigPtrOutput) ToClusterModifyClusterServiceConfigPtrOutput added in v3.29.0

func (o ClusterModifyClusterServiceConfigPtrOutput) ToClusterModifyClusterServiceConfigPtrOutput() ClusterModifyClusterServiceConfigPtrOutput

func (ClusterModifyClusterServiceConfigPtrOutput) ToClusterModifyClusterServiceConfigPtrOutputWithContext added in v3.29.0

func (o ClusterModifyClusterServiceConfigPtrOutput) ToClusterModifyClusterServiceConfigPtrOutputWithContext(ctx context.Context) ClusterModifyClusterServiceConfigPtrOutput

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) BootstrapActions added in v3.27.0

func (o ClusterOutput) BootstrapActions() ClusterBootstrapActionArrayOutput

Boot action parameters.

func (ClusterOutput) ChargeType added in v3.27.0

func (o ClusterOutput) ChargeType() pulumi.StringPtrOutput

Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.

func (ClusterOutput) ClusterType added in v3.27.0

func (o ClusterOutput) ClusterType() pulumi.StringOutput

EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported 'GATEWAY' available in 1.61.0+.

func (ClusterOutput) Configs added in v3.29.0

The custom configurations of emr-cluster service.

func (ClusterOutput) DepositType added in v3.27.0

func (o ClusterOutput) DepositType() pulumi.StringPtrOutput

Cluster deposit type, HALF_MANAGED or FULL_MANAGED.

func (ClusterOutput) EasEnable added in v3.27.0

func (o ClusterOutput) EasEnable() pulumi.BoolPtrOutput

High security cluster (true) or not. Default value is false.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) EmrVer added in v3.27.0

func (o ClusterOutput) EmrVer() pulumi.StringOutput

EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.

func (ClusterOutput) HighAvailabilityEnable added in v3.27.0

func (o ClusterOutput) HighAvailabilityEnable() pulumi.BoolPtrOutput

High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.

func (ClusterOutput) HostGroups added in v3.27.0

Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).

func (ClusterOutput) IsOpenPublicIp added in v3.27.0

func (o ClusterOutput) IsOpenPublicIp() pulumi.BoolPtrOutput

Whether the MASTER node has a public IP address enabled. Default value is false.

func (ClusterOutput) KeyPairName added in v3.27.0

func (o ClusterOutput) KeyPairName() pulumi.StringPtrOutput

Ssh key pair.

func (ClusterOutput) MasterPwd added in v3.27.0

func (o ClusterOutput) MasterPwd() pulumi.StringPtrOutput

Master ssh password.

func (ClusterOutput) MetaStoreConf added in v3.29.0

func (o ClusterOutput) MetaStoreConf() ClusterMetaStoreConfPtrOutput

The configuration of emr-cluster service component metadata storage. If meta store type is ’user_rds’, this should be specified.

func (ClusterOutput) MetaStoreType added in v3.29.0

func (o ClusterOutput) MetaStoreType() pulumi.StringOutput

The type of emr-cluster service component metadata storage. ’dlf’ or ’local’ or ’user_rds’ .

func (ClusterOutput) ModifyClusterServiceConfig added in v3.29.0

func (o ClusterOutput) ModifyClusterServiceConfig() ClusterModifyClusterServiceConfigPtrOutput

The configurations of emr-cluster service modification after cluster created.

func (ClusterOutput) Name added in v3.27.0

The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".

func (ClusterOutput) OptionSoftwareLists added in v3.27.0

func (o ClusterOutput) OptionSoftwareLists() pulumi.StringArrayOutput

Optional software list.

func (ClusterOutput) Period added in v3.27.0

func (o ClusterOutput) Period() pulumi.IntPtrOutput

If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.

func (ClusterOutput) RelatedClusterId added in v3.27.0

func (o ClusterOutput) RelatedClusterId() pulumi.StringPtrOutput

This specify the related cluster id, if this cluster is a Gateway.

func (ClusterOutput) ResourceGroupId added in v3.29.0

func (o ClusterOutput) ResourceGroupId() pulumi.StringPtrOutput

The Id of resource group which the emr-cluster belongs.

func (ClusterOutput) SecurityGroupId added in v3.27.0

func (o ClusterOutput) SecurityGroupId() pulumi.StringPtrOutput

Security Group ID for Cluster, you can also specify this key for each host group.

func (ClusterOutput) SshEnable added in v3.27.0

func (o ClusterOutput) SshEnable() pulumi.BoolPtrOutput

If this is set true, we can ssh into cluster. Default value is false.

func (ClusterOutput) Tags added in v3.27.0

A mapping of tags to assign to the resource.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (ClusterOutput) UseLocalMetadb added in v3.27.0

func (o ClusterOutput) UseLocalMetadb() pulumi.BoolPtrOutput

Use local metadb. Default is false.

func (ClusterOutput) UserDefinedEmrEcsRole added in v3.27.0

func (o ClusterOutput) UserDefinedEmrEcsRole() pulumi.StringPtrOutput

Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.

func (ClusterOutput) VswitchId added in v3.27.0

func (o ClusterOutput) VswitchId() pulumi.StringPtrOutput

Global vswitch id, you can also specify it in host group.

func (ClusterOutput) ZoneId added in v3.27.0

func (o ClusterOutput) ZoneId() pulumi.StringOutput

Zone ID, e.g. cn-huhehaote-a

type ClusterState

type ClusterState struct {
	// Boot action parameters.
	BootstrapActions ClusterBootstrapActionArrayInput
	// Charge Type for this cluster. Supported value: PostPaid or PrePaid. Default value: PostPaid.
	ChargeType pulumi.StringPtrInput
	// EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported 'GATEWAY' available in 1.61.0+.
	ClusterType pulumi.StringPtrInput
	// The custom configurations of emr-cluster service.
	Configs ClusterConfigArrayInput
	// Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
	DepositType pulumi.StringPtrInput
	// High security cluster (true) or not. Default value is false.
	EasEnable pulumi.BoolPtrInput
	// EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
	EmrVer pulumi.StringPtrInput
	// High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
	HighAvailabilityEnable pulumi.BoolPtrInput
	// Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
	HostGroups ClusterHostGroupArrayInput
	// Whether the MASTER node has a public IP address enabled. Default value is false.
	IsOpenPublicIp pulumi.BoolPtrInput
	// Ssh key pair.
	KeyPairName pulumi.StringPtrInput
	// Master ssh password.
	MasterPwd pulumi.StringPtrInput
	// The configuration of emr-cluster service component metadata storage. If meta store type is ’user_rds’, this should be specified.
	MetaStoreConf ClusterMetaStoreConfPtrInput
	// The type of emr-cluster service component metadata storage. ’dlf’ or ’local’ or ’user_rds’ .
	MetaStoreType pulumi.StringPtrInput
	// The configurations of emr-cluster service modification after cluster created.
	ModifyClusterServiceConfig ClusterModifyClusterServiceConfigPtrInput
	// The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
	Name pulumi.StringPtrInput
	// Optional software list.
	OptionSoftwareLists pulumi.StringArrayInput
	// If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
	Period pulumi.IntPtrInput
	// This specify the related cluster id, if this cluster is a Gateway.
	RelatedClusterId pulumi.StringPtrInput
	// The Id of resource group which the emr-cluster belongs.
	ResourceGroupId pulumi.StringPtrInput
	// Security Group ID for Cluster, you can also specify this key for each host group.
	SecurityGroupId pulumi.StringPtrInput
	// If this is set true, we can ssh into cluster. Default value is false.
	SshEnable pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Use local metadb. Default is false.
	UseLocalMetadb pulumi.BoolPtrInput
	// Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
	UserDefinedEmrEcsRole pulumi.StringPtrInput
	// Global vswitch id, you can also specify it in host group.
	VswitchId pulumi.StringPtrInput
	// Zone ID, e.g. cn-huhehaote-a
	ZoneId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type GetClustersArgs added in v3.11.0

type GetClustersArgs struct {
	// The cluster name.
	ClusterName *string `pulumi:"clusterName"`
	// The cluster type list.
	ClusterTypeLists []string `pulumi:"clusterTypeLists"`
	// How to create a cluster. Valid values: `ON-DEMAND`, `MANUAL`.
	CreateType *string `pulumi:"createType"`
	// The default status.
	DefaultStatus *bool `pulumi:"defaultStatus"`
	// The hosting type of the cluster. Valid values: `HALF_MANAGED`, `MANAGED`.
	DepositType *string `pulumi:"depositType"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Cluster IDs.
	Ids []string `pulumi:"ids"`
	// The is desc.
	IsDesc *bool `pulumi:"isDesc"`
	// The host type of the cluster. The default is ECS. Valid values: `DOCKER`, `ECS`, `PYHSICAL_MACHINE`, `ECS_FROM_ECM_HOSTPOOL`.
	MachineType *string `pulumi:"machineType"`
	// A regex string to filter results by Cluster name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The Resource Group ID.
	ResourceGroupId *string `pulumi:"resourceGroupId"`
	// The status list. Valid values: `ABNORMAL`, `CREATE_FAILED`, `CREATING`, `IDLE`, `RELEASED`, `RELEASE_FAILED`, `RELEASING`, `RUNNING`, `WAIT_FOR_PAY`.
	StatusLists []string `pulumi:"statusLists"`
	// The VPC ID.
	VpcId *string `pulumi:"vpcId"`
}

A collection of arguments for invoking getClusters.

type GetClustersCluster added in v3.11.0

type GetClustersCluster struct {
	// Cluster connection information.
	AccessInfos []GetClustersClusterAccessInfo `pulumi:"accessInfos"`
	// Whether flexible expansion is allowed.
	AutoScalingAllowed bool `pulumi:"autoScalingAllowed"`
	// Whether to allow expansion by load.
	AutoScalingByLoadAllowed bool `pulumi:"autoScalingByLoadAllowed"`
	// Whether to enable elastic expansion.
	AutoScalingEnable bool `pulumi:"autoScalingEnable"`
	// Whether to allow the use of elastic scaling bidding instances.
	AutoScalingSpotWithLimitAllowed bool `pulumi:"autoScalingSpotWithLimitAllowed"`
	// List of boot actions.
	BootstrapActionLists []GetClustersClusterBootstrapActionList `pulumi:"bootstrapActionLists"`
	// The result of the boot operation.
	BootstrapFailed bool `pulumi:"bootstrapFailed"`
	// The first ID of the resource.
	ClusterId string `pulumi:"clusterId"`
	// The ClusterName.
	ClusterName string `pulumi:"clusterName"`
	// Cluster tag, no need to pay attention.
	CreateResource string `pulumi:"createResource"`
	// The creation time of the resource.
	CreateTime string `pulumi:"createTime"`
	// How to create a cluster.
	CreateType string `pulumi:"createType"`
	// The hosting type of the cluster.
	DepositType string `pulumi:"depositType"`
	// High security cluster.
	EasEnable bool `pulumi:"easEnable"`
	// The expiration time of the cluster.
	ExpiredTime string `pulumi:"expiredTime"`
	// Additional information for Stack.
	ExtraInfo           string `pulumi:"extraInfo"`
	HasUncompletedOrder bool   `pulumi:"hasUncompletedOrder"`
	// High availability cluster.
	HighAvailabilityEnable bool `pulumi:"highAvailabilityEnable"`
	// List of cluster machine groups.
	HostGroupLists []GetClustersClusterHostGroupList `pulumi:"hostGroupLists"`
	// Machine pool information.
	HostPoolInfos []GetClustersClusterHostPoolInfo `pulumi:"hostPoolInfos"`
	Id            string                           `pulumi:"id"`
	// The ID of the image used to create the cluster.
	ImageId string `pulumi:"imageId"`
	// Whether to use Hive local Metabase.
	LocalMetaDb bool `pulumi:"localMetaDb"`
	// The host type of the cluster. The default is ECS.
	MachineType string `pulumi:"machineType"`
	// Metadata type:
	MetaStoreType string `pulumi:"metaStoreType"`
	// Cluster network type.
	NetType string `pulumi:"netType"`
	// The payment type of the resource.
	PaymentType string `pulumi:"paymentType"`
	// 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`.
	Period int `pulumi:"period"`
	// The information of the primary cluster associated with the Gateway.
	RelateClusterInfos []GetClustersClusterRelateClusterInfo `pulumi:"relateClusterInfos"`
	// Whether to allow disk expansion:
	ResizeDiskEnable bool `pulumi:"resizeDiskEnable"`
	// The time (in seconds) that has been running.
	RunningTime int `pulumi:"runningTime"`
	// The ID of the security group.
	SecurityGroupId string `pulumi:"securityGroupId"`
	// The name of the security group.
	SecurityGroupName string `pulumi:"securityGroupName"`
	// Service list.
	SoftwareInfos []GetClustersClusterSoftwareInfo `pulumi:"softwareInfos"`
	// Cluster startup time.
	StartTime string `pulumi:"startTime"`
	// The cluster status.
	Status string `pulumi:"status"`
	// Cluster stop time.
	StopTime string `pulumi:"stopTime"`
	// A mapping of tags to assign to the resource.
	Tags map[string]string `pulumi:"tags"`
	// Disk type.
	Type string `pulumi:"type"`
	// The EMR permission name used.
	UserDefinedEmrEcsRole string `pulumi:"userDefinedEmrEcsRole"`
	// The user ID.
	UserId string `pulumi:"userId"`
	// The VPC ID.
	VpcId string `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID.
	ZoneId string `pulumi:"zoneId"`
}

type GetClustersClusterAccessInfo added in v3.11.0

type GetClustersClusterAccessInfo struct {
	// Link address information list of ZooKeeper.
	ZkLinks []GetClustersClusterAccessInfoZkLink `pulumi:"zkLinks"`
}

type GetClustersClusterAccessInfoArgs added in v3.11.0

type GetClustersClusterAccessInfoArgs struct {
	// Link address information list of ZooKeeper.
	ZkLinks GetClustersClusterAccessInfoZkLinkArrayInput `pulumi:"zkLinks"`
}

func (GetClustersClusterAccessInfoArgs) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoArgs) ToGetClustersClusterAccessInfoOutput added in v3.11.0

func (i GetClustersClusterAccessInfoArgs) ToGetClustersClusterAccessInfoOutput() GetClustersClusterAccessInfoOutput

func (GetClustersClusterAccessInfoArgs) ToGetClustersClusterAccessInfoOutputWithContext added in v3.11.0

func (i GetClustersClusterAccessInfoArgs) ToGetClustersClusterAccessInfoOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoOutput

type GetClustersClusterAccessInfoArray added in v3.11.0

type GetClustersClusterAccessInfoArray []GetClustersClusterAccessInfoInput

func (GetClustersClusterAccessInfoArray) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoArray) ToGetClustersClusterAccessInfoArrayOutput added in v3.11.0

func (i GetClustersClusterAccessInfoArray) ToGetClustersClusterAccessInfoArrayOutput() GetClustersClusterAccessInfoArrayOutput

func (GetClustersClusterAccessInfoArray) ToGetClustersClusterAccessInfoArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterAccessInfoArray) ToGetClustersClusterAccessInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoArrayOutput

type GetClustersClusterAccessInfoArrayInput added in v3.11.0

type GetClustersClusterAccessInfoArrayInput interface {
	pulumi.Input

	ToGetClustersClusterAccessInfoArrayOutput() GetClustersClusterAccessInfoArrayOutput
	ToGetClustersClusterAccessInfoArrayOutputWithContext(context.Context) GetClustersClusterAccessInfoArrayOutput
}

GetClustersClusterAccessInfoArrayInput is an input type that accepts GetClustersClusterAccessInfoArray and GetClustersClusterAccessInfoArrayOutput values. You can construct a concrete instance of `GetClustersClusterAccessInfoArrayInput` via:

GetClustersClusterAccessInfoArray{ GetClustersClusterAccessInfoArgs{...} }

type GetClustersClusterAccessInfoArrayOutput added in v3.11.0

type GetClustersClusterAccessInfoArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterAccessInfoArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoArrayOutput) Index added in v3.11.0

func (GetClustersClusterAccessInfoArrayOutput) ToGetClustersClusterAccessInfoArrayOutput added in v3.11.0

func (o GetClustersClusterAccessInfoArrayOutput) ToGetClustersClusterAccessInfoArrayOutput() GetClustersClusterAccessInfoArrayOutput

func (GetClustersClusterAccessInfoArrayOutput) ToGetClustersClusterAccessInfoArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterAccessInfoArrayOutput) ToGetClustersClusterAccessInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoArrayOutput

type GetClustersClusterAccessInfoInput added in v3.11.0

type GetClustersClusterAccessInfoInput interface {
	pulumi.Input

	ToGetClustersClusterAccessInfoOutput() GetClustersClusterAccessInfoOutput
	ToGetClustersClusterAccessInfoOutputWithContext(context.Context) GetClustersClusterAccessInfoOutput
}

GetClustersClusterAccessInfoInput is an input type that accepts GetClustersClusterAccessInfoArgs and GetClustersClusterAccessInfoOutput values. You can construct a concrete instance of `GetClustersClusterAccessInfoInput` via:

GetClustersClusterAccessInfoArgs{...}

type GetClustersClusterAccessInfoOutput added in v3.11.0

type GetClustersClusterAccessInfoOutput struct{ *pulumi.OutputState }

func (GetClustersClusterAccessInfoOutput) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoOutput) ToGetClustersClusterAccessInfoOutput added in v3.11.0

func (o GetClustersClusterAccessInfoOutput) ToGetClustersClusterAccessInfoOutput() GetClustersClusterAccessInfoOutput

func (GetClustersClusterAccessInfoOutput) ToGetClustersClusterAccessInfoOutputWithContext added in v3.11.0

func (o GetClustersClusterAccessInfoOutput) ToGetClustersClusterAccessInfoOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoOutput

Link address information list of ZooKeeper.

type GetClustersClusterAccessInfoZkLink struct {
	// The access link address of ZooKeeper.
	Link string `pulumi:"link"`
	// The port of ZooKeeper.
	Port string `pulumi:"port"`
}

type GetClustersClusterAccessInfoZkLinkArgs added in v3.11.0

type GetClustersClusterAccessInfoZkLinkArgs struct {
	// The access link address of ZooKeeper.
	Link pulumi.StringInput `pulumi:"link"`
	// The port of ZooKeeper.
	Port pulumi.StringInput `pulumi:"port"`
}

func (GetClustersClusterAccessInfoZkLinkArgs) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoZkLinkArgs) ToGetClustersClusterAccessInfoZkLinkOutput added in v3.11.0

func (i GetClustersClusterAccessInfoZkLinkArgs) ToGetClustersClusterAccessInfoZkLinkOutput() GetClustersClusterAccessInfoZkLinkOutput

func (GetClustersClusterAccessInfoZkLinkArgs) ToGetClustersClusterAccessInfoZkLinkOutputWithContext added in v3.11.0

func (i GetClustersClusterAccessInfoZkLinkArgs) ToGetClustersClusterAccessInfoZkLinkOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoZkLinkOutput

type GetClustersClusterAccessInfoZkLinkArray added in v3.11.0

type GetClustersClusterAccessInfoZkLinkArray []GetClustersClusterAccessInfoZkLinkInput

func (GetClustersClusterAccessInfoZkLinkArray) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoZkLinkArray) ToGetClustersClusterAccessInfoZkLinkArrayOutput added in v3.11.0

func (i GetClustersClusterAccessInfoZkLinkArray) ToGetClustersClusterAccessInfoZkLinkArrayOutput() GetClustersClusterAccessInfoZkLinkArrayOutput

func (GetClustersClusterAccessInfoZkLinkArray) ToGetClustersClusterAccessInfoZkLinkArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterAccessInfoZkLinkArray) ToGetClustersClusterAccessInfoZkLinkArrayOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoZkLinkArrayOutput

type GetClustersClusterAccessInfoZkLinkArrayInput added in v3.11.0

type GetClustersClusterAccessInfoZkLinkArrayInput interface {
	pulumi.Input

	ToGetClustersClusterAccessInfoZkLinkArrayOutput() GetClustersClusterAccessInfoZkLinkArrayOutput
	ToGetClustersClusterAccessInfoZkLinkArrayOutputWithContext(context.Context) GetClustersClusterAccessInfoZkLinkArrayOutput
}

GetClustersClusterAccessInfoZkLinkArrayInput is an input type that accepts GetClustersClusterAccessInfoZkLinkArray and GetClustersClusterAccessInfoZkLinkArrayOutput values. You can construct a concrete instance of `GetClustersClusterAccessInfoZkLinkArrayInput` via:

GetClustersClusterAccessInfoZkLinkArray{ GetClustersClusterAccessInfoZkLinkArgs{...} }

type GetClustersClusterAccessInfoZkLinkArrayOutput added in v3.11.0

type GetClustersClusterAccessInfoZkLinkArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterAccessInfoZkLinkArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterAccessInfoZkLinkArrayOutput) Index added in v3.11.0

func (GetClustersClusterAccessInfoZkLinkArrayOutput) ToGetClustersClusterAccessInfoZkLinkArrayOutput added in v3.11.0

func (o GetClustersClusterAccessInfoZkLinkArrayOutput) ToGetClustersClusterAccessInfoZkLinkArrayOutput() GetClustersClusterAccessInfoZkLinkArrayOutput

func (GetClustersClusterAccessInfoZkLinkArrayOutput) ToGetClustersClusterAccessInfoZkLinkArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterAccessInfoZkLinkArrayOutput) ToGetClustersClusterAccessInfoZkLinkArrayOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoZkLinkArrayOutput

type GetClustersClusterAccessInfoZkLinkInput added in v3.11.0

type GetClustersClusterAccessInfoZkLinkInput interface {
	pulumi.Input

	ToGetClustersClusterAccessInfoZkLinkOutput() GetClustersClusterAccessInfoZkLinkOutput
	ToGetClustersClusterAccessInfoZkLinkOutputWithContext(context.Context) GetClustersClusterAccessInfoZkLinkOutput
}

GetClustersClusterAccessInfoZkLinkInput is an input type that accepts GetClustersClusterAccessInfoZkLinkArgs and GetClustersClusterAccessInfoZkLinkOutput values. You can construct a concrete instance of `GetClustersClusterAccessInfoZkLinkInput` via:

GetClustersClusterAccessInfoZkLinkArgs{...}

type GetClustersClusterAccessInfoZkLinkOutput added in v3.11.0

type GetClustersClusterAccessInfoZkLinkOutput struct{ *pulumi.OutputState }

func (GetClustersClusterAccessInfoZkLinkOutput) ElementType added in v3.11.0

The access link address of ZooKeeper.

func (GetClustersClusterAccessInfoZkLinkOutput) Port added in v3.11.0

The port of ZooKeeper.

func (GetClustersClusterAccessInfoZkLinkOutput) ToGetClustersClusterAccessInfoZkLinkOutput added in v3.11.0

func (o GetClustersClusterAccessInfoZkLinkOutput) ToGetClustersClusterAccessInfoZkLinkOutput() GetClustersClusterAccessInfoZkLinkOutput

func (GetClustersClusterAccessInfoZkLinkOutput) ToGetClustersClusterAccessInfoZkLinkOutputWithContext added in v3.11.0

func (o GetClustersClusterAccessInfoZkLinkOutput) ToGetClustersClusterAccessInfoZkLinkOutputWithContext(ctx context.Context) GetClustersClusterAccessInfoZkLinkOutput

type GetClustersClusterArgs added in v3.11.0

type GetClustersClusterArgs struct {
	// Cluster connection information.
	AccessInfos GetClustersClusterAccessInfoArrayInput `pulumi:"accessInfos"`
	// Whether flexible expansion is allowed.
	AutoScalingAllowed pulumi.BoolInput `pulumi:"autoScalingAllowed"`
	// Whether to allow expansion by load.
	AutoScalingByLoadAllowed pulumi.BoolInput `pulumi:"autoScalingByLoadAllowed"`
	// Whether to enable elastic expansion.
	AutoScalingEnable pulumi.BoolInput `pulumi:"autoScalingEnable"`
	// Whether to allow the use of elastic scaling bidding instances.
	AutoScalingSpotWithLimitAllowed pulumi.BoolInput `pulumi:"autoScalingSpotWithLimitAllowed"`
	// List of boot actions.
	BootstrapActionLists GetClustersClusterBootstrapActionListArrayInput `pulumi:"bootstrapActionLists"`
	// The result of the boot operation.
	BootstrapFailed pulumi.BoolInput `pulumi:"bootstrapFailed"`
	// The first ID of the resource.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The ClusterName.
	ClusterName pulumi.StringInput `pulumi:"clusterName"`
	// Cluster tag, no need to pay attention.
	CreateResource pulumi.StringInput `pulumi:"createResource"`
	// The creation time of the resource.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// How to create a cluster.
	CreateType pulumi.StringInput `pulumi:"createType"`
	// The hosting type of the cluster.
	DepositType pulumi.StringInput `pulumi:"depositType"`
	// High security cluster.
	EasEnable pulumi.BoolInput `pulumi:"easEnable"`
	// The expiration time of the cluster.
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// Additional information for Stack.
	ExtraInfo           pulumi.StringInput `pulumi:"extraInfo"`
	HasUncompletedOrder pulumi.BoolInput   `pulumi:"hasUncompletedOrder"`
	// High availability cluster.
	HighAvailabilityEnable pulumi.BoolInput `pulumi:"highAvailabilityEnable"`
	// List of cluster machine groups.
	HostGroupLists GetClustersClusterHostGroupListArrayInput `pulumi:"hostGroupLists"`
	// Machine pool information.
	HostPoolInfos GetClustersClusterHostPoolInfoArrayInput `pulumi:"hostPoolInfos"`
	Id            pulumi.StringInput                       `pulumi:"id"`
	// The ID of the image used to create the cluster.
	ImageId pulumi.StringInput `pulumi:"imageId"`
	// Whether to use Hive local Metabase.
	LocalMetaDb pulumi.BoolInput `pulumi:"localMetaDb"`
	// The host type of the cluster. The default is ECS.
	MachineType pulumi.StringInput `pulumi:"machineType"`
	// Metadata type:
	MetaStoreType pulumi.StringInput `pulumi:"metaStoreType"`
	// Cluster network type.
	NetType pulumi.StringInput `pulumi:"netType"`
	// The payment type of the resource.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// 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`.
	Period pulumi.IntInput `pulumi:"period"`
	// The information of the primary cluster associated with the Gateway.
	RelateClusterInfos GetClustersClusterRelateClusterInfoArrayInput `pulumi:"relateClusterInfos"`
	// Whether to allow disk expansion:
	ResizeDiskEnable pulumi.BoolInput `pulumi:"resizeDiskEnable"`
	// The time (in seconds) that has been running.
	RunningTime pulumi.IntInput `pulumi:"runningTime"`
	// The ID of the security group.
	SecurityGroupId pulumi.StringInput `pulumi:"securityGroupId"`
	// The name of the security group.
	SecurityGroupName pulumi.StringInput `pulumi:"securityGroupName"`
	// Service list.
	SoftwareInfos GetClustersClusterSoftwareInfoArrayInput `pulumi:"softwareInfos"`
	// Cluster startup time.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The cluster status.
	Status pulumi.StringInput `pulumi:"status"`
	// Cluster stop time.
	StopTime pulumi.StringInput `pulumi:"stopTime"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput `pulumi:"tags"`
	// Disk type.
	Type pulumi.StringInput `pulumi:"type"`
	// The EMR permission name used.
	UserDefinedEmrEcsRole pulumi.StringInput `pulumi:"userDefinedEmrEcsRole"`
	// The user ID.
	UserId pulumi.StringInput `pulumi:"userId"`
	// The VPC ID.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetClustersClusterArgs) ElementType added in v3.11.0

func (GetClustersClusterArgs) ElementType() reflect.Type

func (GetClustersClusterArgs) ToGetClustersClusterOutput added in v3.11.0

func (i GetClustersClusterArgs) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterArgs) ToGetClustersClusterOutputWithContext added in v3.11.0

func (i GetClustersClusterArgs) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

type GetClustersClusterArray added in v3.11.0

type GetClustersClusterArray []GetClustersClusterInput

func (GetClustersClusterArray) ElementType added in v3.11.0

func (GetClustersClusterArray) ElementType() reflect.Type

func (GetClustersClusterArray) ToGetClustersClusterArrayOutput added in v3.11.0

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterArrayInput added in v3.11.0

type GetClustersClusterArrayInput interface {
	pulumi.Input

	ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
	ToGetClustersClusterArrayOutputWithContext(context.Context) GetClustersClusterArrayOutput
}

GetClustersClusterArrayInput is an input type that accepts GetClustersClusterArray and GetClustersClusterArrayOutput values. You can construct a concrete instance of `GetClustersClusterArrayInput` via:

GetClustersClusterArray{ GetClustersClusterArgs{...} }

type GetClustersClusterArrayOutput added in v3.11.0

type GetClustersClusterArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterArrayOutput) Index added in v3.11.0

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput added in v3.11.0

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterBootstrapActionList added in v3.11.0

type GetClustersClusterBootstrapActionList struct {
	// Parameters of the boot operation.
	Arg string `pulumi:"arg"`
	// The name of the boot operation.
	Name string `pulumi:"name"`
	// Boot operation script path.
	Path string `pulumi:"path"`
}

type GetClustersClusterBootstrapActionListArgs added in v3.11.0

type GetClustersClusterBootstrapActionListArgs struct {
	// Parameters of the boot operation.
	Arg pulumi.StringInput `pulumi:"arg"`
	// The name of the boot operation.
	Name pulumi.StringInput `pulumi:"name"`
	// Boot operation script path.
	Path pulumi.StringInput `pulumi:"path"`
}

func (GetClustersClusterBootstrapActionListArgs) ElementType added in v3.11.0

func (GetClustersClusterBootstrapActionListArgs) ToGetClustersClusterBootstrapActionListOutput added in v3.11.0

func (i GetClustersClusterBootstrapActionListArgs) ToGetClustersClusterBootstrapActionListOutput() GetClustersClusterBootstrapActionListOutput

func (GetClustersClusterBootstrapActionListArgs) ToGetClustersClusterBootstrapActionListOutputWithContext added in v3.11.0

func (i GetClustersClusterBootstrapActionListArgs) ToGetClustersClusterBootstrapActionListOutputWithContext(ctx context.Context) GetClustersClusterBootstrapActionListOutput

type GetClustersClusterBootstrapActionListArray added in v3.11.0

type GetClustersClusterBootstrapActionListArray []GetClustersClusterBootstrapActionListInput

func (GetClustersClusterBootstrapActionListArray) ElementType added in v3.11.0

func (GetClustersClusterBootstrapActionListArray) ToGetClustersClusterBootstrapActionListArrayOutput added in v3.11.0

func (i GetClustersClusterBootstrapActionListArray) ToGetClustersClusterBootstrapActionListArrayOutput() GetClustersClusterBootstrapActionListArrayOutput

func (GetClustersClusterBootstrapActionListArray) ToGetClustersClusterBootstrapActionListArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterBootstrapActionListArray) ToGetClustersClusterBootstrapActionListArrayOutputWithContext(ctx context.Context) GetClustersClusterBootstrapActionListArrayOutput

type GetClustersClusterBootstrapActionListArrayInput added in v3.11.0

type GetClustersClusterBootstrapActionListArrayInput interface {
	pulumi.Input

	ToGetClustersClusterBootstrapActionListArrayOutput() GetClustersClusterBootstrapActionListArrayOutput
	ToGetClustersClusterBootstrapActionListArrayOutputWithContext(context.Context) GetClustersClusterBootstrapActionListArrayOutput
}

GetClustersClusterBootstrapActionListArrayInput is an input type that accepts GetClustersClusterBootstrapActionListArray and GetClustersClusterBootstrapActionListArrayOutput values. You can construct a concrete instance of `GetClustersClusterBootstrapActionListArrayInput` via:

GetClustersClusterBootstrapActionListArray{ GetClustersClusterBootstrapActionListArgs{...} }

type GetClustersClusterBootstrapActionListArrayOutput added in v3.11.0

type GetClustersClusterBootstrapActionListArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterBootstrapActionListArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterBootstrapActionListArrayOutput) Index added in v3.11.0

func (GetClustersClusterBootstrapActionListArrayOutput) ToGetClustersClusterBootstrapActionListArrayOutput added in v3.11.0

func (o GetClustersClusterBootstrapActionListArrayOutput) ToGetClustersClusterBootstrapActionListArrayOutput() GetClustersClusterBootstrapActionListArrayOutput

func (GetClustersClusterBootstrapActionListArrayOutput) ToGetClustersClusterBootstrapActionListArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterBootstrapActionListArrayOutput) ToGetClustersClusterBootstrapActionListArrayOutputWithContext(ctx context.Context) GetClustersClusterBootstrapActionListArrayOutput

type GetClustersClusterBootstrapActionListInput added in v3.11.0

type GetClustersClusterBootstrapActionListInput interface {
	pulumi.Input

	ToGetClustersClusterBootstrapActionListOutput() GetClustersClusterBootstrapActionListOutput
	ToGetClustersClusterBootstrapActionListOutputWithContext(context.Context) GetClustersClusterBootstrapActionListOutput
}

GetClustersClusterBootstrapActionListInput is an input type that accepts GetClustersClusterBootstrapActionListArgs and GetClustersClusterBootstrapActionListOutput values. You can construct a concrete instance of `GetClustersClusterBootstrapActionListInput` via:

GetClustersClusterBootstrapActionListArgs{...}

type GetClustersClusterBootstrapActionListOutput added in v3.11.0

type GetClustersClusterBootstrapActionListOutput struct{ *pulumi.OutputState }

func (GetClustersClusterBootstrapActionListOutput) Arg added in v3.11.0

Parameters of the boot operation.

func (GetClustersClusterBootstrapActionListOutput) ElementType added in v3.11.0

func (GetClustersClusterBootstrapActionListOutput) Name added in v3.11.0

The name of the boot operation.

func (GetClustersClusterBootstrapActionListOutput) Path added in v3.11.0

Boot operation script path.

func (GetClustersClusterBootstrapActionListOutput) ToGetClustersClusterBootstrapActionListOutput added in v3.11.0

func (o GetClustersClusterBootstrapActionListOutput) ToGetClustersClusterBootstrapActionListOutput() GetClustersClusterBootstrapActionListOutput

func (GetClustersClusterBootstrapActionListOutput) ToGetClustersClusterBootstrapActionListOutputWithContext added in v3.11.0

func (o GetClustersClusterBootstrapActionListOutput) ToGetClustersClusterBootstrapActionListOutputWithContext(ctx context.Context) GetClustersClusterBootstrapActionListOutput

type GetClustersClusterHostGroupList added in v3.11.0

type GetClustersClusterHostGroupList struct {
	// Bandwidth.
	BandWidth string `pulumi:"bandWidth"`
	// Payment Type.
	ChargeType string `pulumi:"chargeType"`
	// The number of CPU cores.
	CpuCore int `pulumi:"cpuCore"`
	// Data disk capacity.
	DiskCapacity int `pulumi:"diskCapacity"`
	// The number of data disks.
	DiskCount int `pulumi:"diskCount"`
	// System disk type:
	DiskType string `pulumi:"diskType"`
	// The current operation type of the machine Group:
	HostGroupChangeType string `pulumi:"hostGroupChangeType"`
	// The ID of the machine group.
	HostGroupId string `pulumi:"hostGroupId"`
	// The name of the machine group.
	HostGroupName string `pulumi:"hostGroupName"`
	// Role of host in cluster:
	HostGroupType string `pulumi:"hostGroupType"`
	// Machine Group instance.
	InstanceType string `pulumi:"instanceType"`
	// Memory size.
	MemoryCapacity int `pulumi:"memoryCapacity"`
	// The number of machine group nodes.
	NodeCount int `pulumi:"nodeCount"`
	// Machine node.
	Nodes []GetClustersClusterHostGroupListNode `pulumi:"nodes"`
	// Package year and month time (days).
	Period string `pulumi:"period"`
}

type GetClustersClusterHostGroupListArgs added in v3.11.0

type GetClustersClusterHostGroupListArgs struct {
	// Bandwidth.
	BandWidth pulumi.StringInput `pulumi:"bandWidth"`
	// Payment Type.
	ChargeType pulumi.StringInput `pulumi:"chargeType"`
	// The number of CPU cores.
	CpuCore pulumi.IntInput `pulumi:"cpuCore"`
	// Data disk capacity.
	DiskCapacity pulumi.IntInput `pulumi:"diskCapacity"`
	// The number of data disks.
	DiskCount pulumi.IntInput `pulumi:"diskCount"`
	// System disk type:
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// The current operation type of the machine Group:
	HostGroupChangeType pulumi.StringInput `pulumi:"hostGroupChangeType"`
	// The ID of the machine group.
	HostGroupId pulumi.StringInput `pulumi:"hostGroupId"`
	// The name of the machine group.
	HostGroupName pulumi.StringInput `pulumi:"hostGroupName"`
	// Role of host in cluster:
	HostGroupType pulumi.StringInput `pulumi:"hostGroupType"`
	// Machine Group instance.
	InstanceType pulumi.StringInput `pulumi:"instanceType"`
	// Memory size.
	MemoryCapacity pulumi.IntInput `pulumi:"memoryCapacity"`
	// The number of machine group nodes.
	NodeCount pulumi.IntInput `pulumi:"nodeCount"`
	// Machine node.
	Nodes GetClustersClusterHostGroupListNodeArrayInput `pulumi:"nodes"`
	// Package year and month time (days).
	Period pulumi.StringInput `pulumi:"period"`
}

func (GetClustersClusterHostGroupListArgs) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListArgs) ToGetClustersClusterHostGroupListOutput added in v3.11.0

func (i GetClustersClusterHostGroupListArgs) ToGetClustersClusterHostGroupListOutput() GetClustersClusterHostGroupListOutput

func (GetClustersClusterHostGroupListArgs) ToGetClustersClusterHostGroupListOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListArgs) ToGetClustersClusterHostGroupListOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListOutput

type GetClustersClusterHostGroupListArray added in v3.11.0

type GetClustersClusterHostGroupListArray []GetClustersClusterHostGroupListInput

func (GetClustersClusterHostGroupListArray) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListArray) ToGetClustersClusterHostGroupListArrayOutput added in v3.11.0

func (i GetClustersClusterHostGroupListArray) ToGetClustersClusterHostGroupListArrayOutput() GetClustersClusterHostGroupListArrayOutput

func (GetClustersClusterHostGroupListArray) ToGetClustersClusterHostGroupListArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListArray) ToGetClustersClusterHostGroupListArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListArrayOutput

type GetClustersClusterHostGroupListArrayInput added in v3.11.0

type GetClustersClusterHostGroupListArrayInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListArrayOutput() GetClustersClusterHostGroupListArrayOutput
	ToGetClustersClusterHostGroupListArrayOutputWithContext(context.Context) GetClustersClusterHostGroupListArrayOutput
}

GetClustersClusterHostGroupListArrayInput is an input type that accepts GetClustersClusterHostGroupListArray and GetClustersClusterHostGroupListArrayOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListArrayInput` via:

GetClustersClusterHostGroupListArray{ GetClustersClusterHostGroupListArgs{...} }

type GetClustersClusterHostGroupListArrayOutput added in v3.11.0

type GetClustersClusterHostGroupListArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListArrayOutput) Index added in v3.11.0

func (GetClustersClusterHostGroupListArrayOutput) ToGetClustersClusterHostGroupListArrayOutput added in v3.11.0

func (o GetClustersClusterHostGroupListArrayOutput) ToGetClustersClusterHostGroupListArrayOutput() GetClustersClusterHostGroupListArrayOutput

func (GetClustersClusterHostGroupListArrayOutput) ToGetClustersClusterHostGroupListArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListArrayOutput) ToGetClustersClusterHostGroupListArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListArrayOutput

type GetClustersClusterHostGroupListInput added in v3.11.0

type GetClustersClusterHostGroupListInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListOutput() GetClustersClusterHostGroupListOutput
	ToGetClustersClusterHostGroupListOutputWithContext(context.Context) GetClustersClusterHostGroupListOutput
}

GetClustersClusterHostGroupListInput is an input type that accepts GetClustersClusterHostGroupListArgs and GetClustersClusterHostGroupListOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListInput` via:

GetClustersClusterHostGroupListArgs{...}

type GetClustersClusterHostGroupListNode added in v3.11.0

type GetClustersClusterHostGroupListNode struct {
	// Creation time.
	CreateTime string `pulumi:"createTime"`
	// Disk information.
	DiskInfos []GetClustersClusterHostGroupListNodeDiskInfo `pulumi:"diskInfos"`
	// The timeout of the EMR.
	EmrExpiredTime string `pulumi:"emrExpiredTime"`
	// Timeout time.
	ExpiredTime string `pulumi:"expiredTime"`
	// The Intranet IP of the EMR.
	InnerIp string `pulumi:"innerIp"`
	// The ID of the ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// Public IP address.
	PubIp string `pulumi:"pubIp"`
	// Status.
	Status string `pulumi:"status"`
	// Whether IPV6 is supported.
	SupportIpv6 bool `pulumi:"supportIpv6"`
	// The zone ID.
	ZoneId string `pulumi:"zoneId"`
}

type GetClustersClusterHostGroupListNodeArgs added in v3.11.0

type GetClustersClusterHostGroupListNodeArgs struct {
	// Creation time.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Disk information.
	DiskInfos GetClustersClusterHostGroupListNodeDiskInfoArrayInput `pulumi:"diskInfos"`
	// The timeout of the EMR.
	EmrExpiredTime pulumi.StringInput `pulumi:"emrExpiredTime"`
	// Timeout time.
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// The Intranet IP of the EMR.
	InnerIp pulumi.StringInput `pulumi:"innerIp"`
	// The ID of the ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Public IP address.
	PubIp pulumi.StringInput `pulumi:"pubIp"`
	// Status.
	Status pulumi.StringInput `pulumi:"status"`
	// Whether IPV6 is supported.
	SupportIpv6 pulumi.BoolInput `pulumi:"supportIpv6"`
	// The zone ID.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetClustersClusterHostGroupListNodeArgs) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeArgs) ToGetClustersClusterHostGroupListNodeOutput added in v3.11.0

func (i GetClustersClusterHostGroupListNodeArgs) ToGetClustersClusterHostGroupListNodeOutput() GetClustersClusterHostGroupListNodeOutput

func (GetClustersClusterHostGroupListNodeArgs) ToGetClustersClusterHostGroupListNodeOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListNodeArgs) ToGetClustersClusterHostGroupListNodeOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeOutput

type GetClustersClusterHostGroupListNodeArray added in v3.11.0

type GetClustersClusterHostGroupListNodeArray []GetClustersClusterHostGroupListNodeInput

func (GetClustersClusterHostGroupListNodeArray) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeArray) ToGetClustersClusterHostGroupListNodeArrayOutput added in v3.11.0

func (i GetClustersClusterHostGroupListNodeArray) ToGetClustersClusterHostGroupListNodeArrayOutput() GetClustersClusterHostGroupListNodeArrayOutput

func (GetClustersClusterHostGroupListNodeArray) ToGetClustersClusterHostGroupListNodeArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListNodeArray) ToGetClustersClusterHostGroupListNodeArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeArrayOutput

type GetClustersClusterHostGroupListNodeArrayInput added in v3.11.0

type GetClustersClusterHostGroupListNodeArrayInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListNodeArrayOutput() GetClustersClusterHostGroupListNodeArrayOutput
	ToGetClustersClusterHostGroupListNodeArrayOutputWithContext(context.Context) GetClustersClusterHostGroupListNodeArrayOutput
}

GetClustersClusterHostGroupListNodeArrayInput is an input type that accepts GetClustersClusterHostGroupListNodeArray and GetClustersClusterHostGroupListNodeArrayOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListNodeArrayInput` via:

GetClustersClusterHostGroupListNodeArray{ GetClustersClusterHostGroupListNodeArgs{...} }

type GetClustersClusterHostGroupListNodeArrayOutput added in v3.11.0

type GetClustersClusterHostGroupListNodeArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListNodeArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeArrayOutput) Index added in v3.11.0

func (GetClustersClusterHostGroupListNodeArrayOutput) ToGetClustersClusterHostGroupListNodeArrayOutput added in v3.11.0

func (o GetClustersClusterHostGroupListNodeArrayOutput) ToGetClustersClusterHostGroupListNodeArrayOutput() GetClustersClusterHostGroupListNodeArrayOutput

func (GetClustersClusterHostGroupListNodeArrayOutput) ToGetClustersClusterHostGroupListNodeArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListNodeArrayOutput) ToGetClustersClusterHostGroupListNodeArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeArrayOutput

type GetClustersClusterHostGroupListNodeDiskInfo added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfo struct {
	// The disk name.
	Device string `pulumi:"device"`
	// The ID of the disk.
	DiskId string `pulumi:"diskId"`
	// The disk name.
	DiskName string `pulumi:"diskName"`
	// Disk capacity.
	Size int `pulumi:"size"`
	// Disk type.
	Type string `pulumi:"type"`
}

type GetClustersClusterHostGroupListNodeDiskInfoArgs added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoArgs struct {
	// The disk name.
	Device pulumi.StringInput `pulumi:"device"`
	// The ID of the disk.
	DiskId pulumi.StringInput `pulumi:"diskId"`
	// The disk name.
	DiskName pulumi.StringInput `pulumi:"diskName"`
	// Disk capacity.
	Size pulumi.IntInput `pulumi:"size"`
	// Disk type.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetClustersClusterHostGroupListNodeDiskInfoArgs) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoArgs) ToGetClustersClusterHostGroupListNodeDiskInfoOutput added in v3.11.0

func (i GetClustersClusterHostGroupListNodeDiskInfoArgs) ToGetClustersClusterHostGroupListNodeDiskInfoOutput() GetClustersClusterHostGroupListNodeDiskInfoOutput

func (GetClustersClusterHostGroupListNodeDiskInfoArgs) ToGetClustersClusterHostGroupListNodeDiskInfoOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListNodeDiskInfoArgs) ToGetClustersClusterHostGroupListNodeDiskInfoOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeDiskInfoOutput

type GetClustersClusterHostGroupListNodeDiskInfoArray added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoArray []GetClustersClusterHostGroupListNodeDiskInfoInput

func (GetClustersClusterHostGroupListNodeDiskInfoArray) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoArray) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutput added in v3.11.0

func (i GetClustersClusterHostGroupListNodeDiskInfoArray) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutput() GetClustersClusterHostGroupListNodeDiskInfoArrayOutput

func (GetClustersClusterHostGroupListNodeDiskInfoArray) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterHostGroupListNodeDiskInfoArray) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeDiskInfoArrayOutput

type GetClustersClusterHostGroupListNodeDiskInfoArrayInput added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoArrayInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutput() GetClustersClusterHostGroupListNodeDiskInfoArrayOutput
	ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutputWithContext(context.Context) GetClustersClusterHostGroupListNodeDiskInfoArrayOutput
}

GetClustersClusterHostGroupListNodeDiskInfoArrayInput is an input type that accepts GetClustersClusterHostGroupListNodeDiskInfoArray and GetClustersClusterHostGroupListNodeDiskInfoArrayOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListNodeDiskInfoArrayInput` via:

GetClustersClusterHostGroupListNodeDiskInfoArray{ GetClustersClusterHostGroupListNodeDiskInfoArgs{...} }

type GetClustersClusterHostGroupListNodeDiskInfoArrayOutput added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListNodeDiskInfoArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoArrayOutput) Index added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoArrayOutput) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutput added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoArrayOutput) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListNodeDiskInfoArrayOutput) ToGetClustersClusterHostGroupListNodeDiskInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeDiskInfoArrayOutput

type GetClustersClusterHostGroupListNodeDiskInfoInput added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListNodeDiskInfoOutput() GetClustersClusterHostGroupListNodeDiskInfoOutput
	ToGetClustersClusterHostGroupListNodeDiskInfoOutputWithContext(context.Context) GetClustersClusterHostGroupListNodeDiskInfoOutput
}

GetClustersClusterHostGroupListNodeDiskInfoInput is an input type that accepts GetClustersClusterHostGroupListNodeDiskInfoArgs and GetClustersClusterHostGroupListNodeDiskInfoOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListNodeDiskInfoInput` via:

GetClustersClusterHostGroupListNodeDiskInfoArgs{...}

type GetClustersClusterHostGroupListNodeDiskInfoOutput added in v3.11.0

type GetClustersClusterHostGroupListNodeDiskInfoOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) Device added in v3.11.0

The disk name.

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) DiskId added in v3.11.0

The ID of the disk.

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) DiskName added in v3.11.0

The disk name.

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) Size added in v3.11.0

Disk capacity.

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) ToGetClustersClusterHostGroupListNodeDiskInfoOutput added in v3.11.0

func (o GetClustersClusterHostGroupListNodeDiskInfoOutput) ToGetClustersClusterHostGroupListNodeDiskInfoOutput() GetClustersClusterHostGroupListNodeDiskInfoOutput

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) ToGetClustersClusterHostGroupListNodeDiskInfoOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListNodeDiskInfoOutput) ToGetClustersClusterHostGroupListNodeDiskInfoOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeDiskInfoOutput

func (GetClustersClusterHostGroupListNodeDiskInfoOutput) Type added in v3.11.0

Disk type.

type GetClustersClusterHostGroupListNodeInput added in v3.11.0

type GetClustersClusterHostGroupListNodeInput interface {
	pulumi.Input

	ToGetClustersClusterHostGroupListNodeOutput() GetClustersClusterHostGroupListNodeOutput
	ToGetClustersClusterHostGroupListNodeOutputWithContext(context.Context) GetClustersClusterHostGroupListNodeOutput
}

GetClustersClusterHostGroupListNodeInput is an input type that accepts GetClustersClusterHostGroupListNodeArgs and GetClustersClusterHostGroupListNodeOutput values. You can construct a concrete instance of `GetClustersClusterHostGroupListNodeInput` via:

GetClustersClusterHostGroupListNodeArgs{...}

type GetClustersClusterHostGroupListNodeOutput added in v3.11.0

type GetClustersClusterHostGroupListNodeOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListNodeOutput) CreateTime added in v3.11.0

Creation time.

func (GetClustersClusterHostGroupListNodeOutput) DiskInfos added in v3.11.0

Disk information.

func (GetClustersClusterHostGroupListNodeOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListNodeOutput) EmrExpiredTime added in v3.11.0

The timeout of the EMR.

func (GetClustersClusterHostGroupListNodeOutput) ExpiredTime added in v3.11.0

Timeout time.

func (GetClustersClusterHostGroupListNodeOutput) InnerIp added in v3.11.0

The Intranet IP of the EMR.

func (GetClustersClusterHostGroupListNodeOutput) InstanceId added in v3.11.0

The ID of the ECS instance.

func (GetClustersClusterHostGroupListNodeOutput) PubIp added in v3.11.0

Public IP address.

func (GetClustersClusterHostGroupListNodeOutput) Status added in v3.11.0

Status.

func (GetClustersClusterHostGroupListNodeOutput) SupportIpv6 added in v3.11.0

Whether IPV6 is supported.

func (GetClustersClusterHostGroupListNodeOutput) ToGetClustersClusterHostGroupListNodeOutput added in v3.11.0

func (o GetClustersClusterHostGroupListNodeOutput) ToGetClustersClusterHostGroupListNodeOutput() GetClustersClusterHostGroupListNodeOutput

func (GetClustersClusterHostGroupListNodeOutput) ToGetClustersClusterHostGroupListNodeOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListNodeOutput) ToGetClustersClusterHostGroupListNodeOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListNodeOutput

func (GetClustersClusterHostGroupListNodeOutput) ZoneId added in v3.11.0

The zone ID.

type GetClustersClusterHostGroupListOutput added in v3.11.0

type GetClustersClusterHostGroupListOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostGroupListOutput) BandWidth added in v3.11.0

Bandwidth.

func (GetClustersClusterHostGroupListOutput) ChargeType added in v3.11.0

Payment Type.

func (GetClustersClusterHostGroupListOutput) CpuCore added in v3.11.0

The number of CPU cores.

func (GetClustersClusterHostGroupListOutput) DiskCapacity added in v3.11.0

Data disk capacity.

func (GetClustersClusterHostGroupListOutput) DiskCount added in v3.11.0

The number of data disks.

func (GetClustersClusterHostGroupListOutput) DiskType added in v3.11.0

System disk type:

func (GetClustersClusterHostGroupListOutput) ElementType added in v3.11.0

func (GetClustersClusterHostGroupListOutput) HostGroupChangeType added in v3.11.0

The current operation type of the machine Group:

func (GetClustersClusterHostGroupListOutput) HostGroupId added in v3.11.0

The ID of the machine group.

func (GetClustersClusterHostGroupListOutput) HostGroupName added in v3.11.0

The name of the machine group.

func (GetClustersClusterHostGroupListOutput) HostGroupType added in v3.11.0

Role of host in cluster:

func (GetClustersClusterHostGroupListOutput) InstanceType added in v3.11.0

Machine Group instance.

func (GetClustersClusterHostGroupListOutput) MemoryCapacity added in v3.11.0

Memory size.

func (GetClustersClusterHostGroupListOutput) NodeCount added in v3.11.0

The number of machine group nodes.

func (GetClustersClusterHostGroupListOutput) Nodes added in v3.11.0

Machine node.

func (GetClustersClusterHostGroupListOutput) Period added in v3.11.0

Package year and month time (days).

func (GetClustersClusterHostGroupListOutput) ToGetClustersClusterHostGroupListOutput added in v3.11.0

func (o GetClustersClusterHostGroupListOutput) ToGetClustersClusterHostGroupListOutput() GetClustersClusterHostGroupListOutput

func (GetClustersClusterHostGroupListOutput) ToGetClustersClusterHostGroupListOutputWithContext added in v3.11.0

func (o GetClustersClusterHostGroupListOutput) ToGetClustersClusterHostGroupListOutputWithContext(ctx context.Context) GetClustersClusterHostGroupListOutput

type GetClustersClusterHostPoolInfo added in v3.11.0

type GetClustersClusterHostPoolInfo struct {
	// Machine pool ID.
	HpBizId string `pulumi:"hpBizId"`
	// The name of the machine pool.
	HpName string `pulumi:"hpName"`
}

type GetClustersClusterHostPoolInfoArgs added in v3.11.0

type GetClustersClusterHostPoolInfoArgs struct {
	// Machine pool ID.
	HpBizId pulumi.StringInput `pulumi:"hpBizId"`
	// The name of the machine pool.
	HpName pulumi.StringInput `pulumi:"hpName"`
}

func (GetClustersClusterHostPoolInfoArgs) ElementType added in v3.11.0

func (GetClustersClusterHostPoolInfoArgs) ToGetClustersClusterHostPoolInfoOutput added in v3.11.0

func (i GetClustersClusterHostPoolInfoArgs) ToGetClustersClusterHostPoolInfoOutput() GetClustersClusterHostPoolInfoOutput

func (GetClustersClusterHostPoolInfoArgs) ToGetClustersClusterHostPoolInfoOutputWithContext added in v3.11.0

func (i GetClustersClusterHostPoolInfoArgs) ToGetClustersClusterHostPoolInfoOutputWithContext(ctx context.Context) GetClustersClusterHostPoolInfoOutput

type GetClustersClusterHostPoolInfoArray added in v3.11.0

type GetClustersClusterHostPoolInfoArray []GetClustersClusterHostPoolInfoInput

func (GetClustersClusterHostPoolInfoArray) ElementType added in v3.11.0

func (GetClustersClusterHostPoolInfoArray) ToGetClustersClusterHostPoolInfoArrayOutput added in v3.11.0

func (i GetClustersClusterHostPoolInfoArray) ToGetClustersClusterHostPoolInfoArrayOutput() GetClustersClusterHostPoolInfoArrayOutput

func (GetClustersClusterHostPoolInfoArray) ToGetClustersClusterHostPoolInfoArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterHostPoolInfoArray) ToGetClustersClusterHostPoolInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterHostPoolInfoArrayOutput

type GetClustersClusterHostPoolInfoArrayInput added in v3.11.0

type GetClustersClusterHostPoolInfoArrayInput interface {
	pulumi.Input

	ToGetClustersClusterHostPoolInfoArrayOutput() GetClustersClusterHostPoolInfoArrayOutput
	ToGetClustersClusterHostPoolInfoArrayOutputWithContext(context.Context) GetClustersClusterHostPoolInfoArrayOutput
}

GetClustersClusterHostPoolInfoArrayInput is an input type that accepts GetClustersClusterHostPoolInfoArray and GetClustersClusterHostPoolInfoArrayOutput values. You can construct a concrete instance of `GetClustersClusterHostPoolInfoArrayInput` via:

GetClustersClusterHostPoolInfoArray{ GetClustersClusterHostPoolInfoArgs{...} }

type GetClustersClusterHostPoolInfoArrayOutput added in v3.11.0

type GetClustersClusterHostPoolInfoArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostPoolInfoArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterHostPoolInfoArrayOutput) Index added in v3.11.0

func (GetClustersClusterHostPoolInfoArrayOutput) ToGetClustersClusterHostPoolInfoArrayOutput added in v3.11.0

func (o GetClustersClusterHostPoolInfoArrayOutput) ToGetClustersClusterHostPoolInfoArrayOutput() GetClustersClusterHostPoolInfoArrayOutput

func (GetClustersClusterHostPoolInfoArrayOutput) ToGetClustersClusterHostPoolInfoArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterHostPoolInfoArrayOutput) ToGetClustersClusterHostPoolInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterHostPoolInfoArrayOutput

type GetClustersClusterHostPoolInfoInput added in v3.11.0

type GetClustersClusterHostPoolInfoInput interface {
	pulumi.Input

	ToGetClustersClusterHostPoolInfoOutput() GetClustersClusterHostPoolInfoOutput
	ToGetClustersClusterHostPoolInfoOutputWithContext(context.Context) GetClustersClusterHostPoolInfoOutput
}

GetClustersClusterHostPoolInfoInput is an input type that accepts GetClustersClusterHostPoolInfoArgs and GetClustersClusterHostPoolInfoOutput values. You can construct a concrete instance of `GetClustersClusterHostPoolInfoInput` via:

GetClustersClusterHostPoolInfoArgs{...}

type GetClustersClusterHostPoolInfoOutput added in v3.11.0

type GetClustersClusterHostPoolInfoOutput struct{ *pulumi.OutputState }

func (GetClustersClusterHostPoolInfoOutput) ElementType added in v3.11.0

func (GetClustersClusterHostPoolInfoOutput) HpBizId added in v3.11.0

Machine pool ID.

func (GetClustersClusterHostPoolInfoOutput) HpName added in v3.11.0

The name of the machine pool.

func (GetClustersClusterHostPoolInfoOutput) ToGetClustersClusterHostPoolInfoOutput added in v3.11.0

func (o GetClustersClusterHostPoolInfoOutput) ToGetClustersClusterHostPoolInfoOutput() GetClustersClusterHostPoolInfoOutput

func (GetClustersClusterHostPoolInfoOutput) ToGetClustersClusterHostPoolInfoOutputWithContext added in v3.11.0

func (o GetClustersClusterHostPoolInfoOutput) ToGetClustersClusterHostPoolInfoOutputWithContext(ctx context.Context) GetClustersClusterHostPoolInfoOutput

type GetClustersClusterInput added in v3.11.0

type GetClustersClusterInput interface {
	pulumi.Input

	ToGetClustersClusterOutput() GetClustersClusterOutput
	ToGetClustersClusterOutputWithContext(context.Context) GetClustersClusterOutput
}

GetClustersClusterInput is an input type that accepts GetClustersClusterArgs and GetClustersClusterOutput values. You can construct a concrete instance of `GetClustersClusterInput` via:

GetClustersClusterArgs{...}

type GetClustersClusterOutput added in v3.11.0

type GetClustersClusterOutput struct{ *pulumi.OutputState }

func (GetClustersClusterOutput) AccessInfos added in v3.11.0

Cluster connection information.

func (GetClustersClusterOutput) AutoScalingAllowed added in v3.11.0

func (o GetClustersClusterOutput) AutoScalingAllowed() pulumi.BoolOutput

Whether flexible expansion is allowed.

func (GetClustersClusterOutput) AutoScalingByLoadAllowed added in v3.11.0

func (o GetClustersClusterOutput) AutoScalingByLoadAllowed() pulumi.BoolOutput

Whether to allow expansion by load.

func (GetClustersClusterOutput) AutoScalingEnable added in v3.11.0

func (o GetClustersClusterOutput) AutoScalingEnable() pulumi.BoolOutput

Whether to enable elastic expansion.

func (GetClustersClusterOutput) AutoScalingSpotWithLimitAllowed added in v3.11.0

func (o GetClustersClusterOutput) AutoScalingSpotWithLimitAllowed() pulumi.BoolOutput

Whether to allow the use of elastic scaling bidding instances.

func (GetClustersClusterOutput) BootstrapActionLists added in v3.11.0

List of boot actions.

func (GetClustersClusterOutput) BootstrapFailed added in v3.11.0

func (o GetClustersClusterOutput) BootstrapFailed() pulumi.BoolOutput

The result of the boot operation.

func (GetClustersClusterOutput) ClusterId added in v3.11.0

The first ID of the resource.

func (GetClustersClusterOutput) ClusterName added in v3.11.0

The ClusterName.

func (GetClustersClusterOutput) CreateResource added in v3.11.0

func (o GetClustersClusterOutput) CreateResource() pulumi.StringOutput

Cluster tag, no need to pay attention.

func (GetClustersClusterOutput) CreateTime added in v3.11.0

The creation time of the resource.

func (GetClustersClusterOutput) CreateType added in v3.11.0

How to create a cluster.

func (GetClustersClusterOutput) DepositType added in v3.11.0

The hosting type of the cluster.

func (GetClustersClusterOutput) EasEnable added in v3.11.0

High security cluster.

func (GetClustersClusterOutput) ElementType added in v3.11.0

func (GetClustersClusterOutput) ElementType() reflect.Type

func (GetClustersClusterOutput) ExpiredTime added in v3.11.0

The expiration time of the cluster.

func (GetClustersClusterOutput) ExtraInfo added in v3.11.0

Additional information for Stack.

func (GetClustersClusterOutput) HasUncompletedOrder added in v3.12.0

func (o GetClustersClusterOutput) HasUncompletedOrder() pulumi.BoolOutput

func (GetClustersClusterOutput) HighAvailabilityEnable added in v3.11.0

func (o GetClustersClusterOutput) HighAvailabilityEnable() pulumi.BoolOutput

High availability cluster.

func (GetClustersClusterOutput) HostGroupLists added in v3.11.0

List of cluster machine groups.

func (GetClustersClusterOutput) HostPoolInfos added in v3.11.0

Machine pool information.

func (GetClustersClusterOutput) Id added in v3.11.0

func (GetClustersClusterOutput) ImageId added in v3.11.0

The ID of the image used to create the cluster.

func (GetClustersClusterOutput) LocalMetaDb added in v3.11.0

func (o GetClustersClusterOutput) LocalMetaDb() pulumi.BoolOutput

Whether to use Hive local Metabase.

func (GetClustersClusterOutput) MachineType added in v3.11.0

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

func (GetClustersClusterOutput) MetaStoreType added in v3.11.0

func (o GetClustersClusterOutput) MetaStoreType() pulumi.StringOutput

Metadata type:

func (GetClustersClusterOutput) NetType added in v3.11.0

Cluster network type.

func (GetClustersClusterOutput) PaymentType added in v3.11.0

The payment type of the resource.

func (GetClustersClusterOutput) Period added in v3.11.0

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`.

func (GetClustersClusterOutput) RelateClusterInfos added in v3.11.0

The information of the primary cluster associated with the Gateway.

func (GetClustersClusterOutput) ResizeDiskEnable added in v3.11.0

func (o GetClustersClusterOutput) ResizeDiskEnable() pulumi.BoolOutput

Whether to allow disk expansion:

func (GetClustersClusterOutput) RunningTime added in v3.11.0

func (o GetClustersClusterOutput) RunningTime() pulumi.IntOutput

The time (in seconds) that has been running.

func (GetClustersClusterOutput) SecurityGroupId added in v3.11.0

func (o GetClustersClusterOutput) SecurityGroupId() pulumi.StringOutput

The ID of the security group.

func (GetClustersClusterOutput) SecurityGroupName added in v3.11.0

func (o GetClustersClusterOutput) SecurityGroupName() pulumi.StringOutput

The name of the security group.

func (GetClustersClusterOutput) SoftwareInfos added in v3.11.0

Service list.

func (GetClustersClusterOutput) StartTime added in v3.11.0

Cluster startup time.

func (GetClustersClusterOutput) Status added in v3.11.0

The cluster status.

func (GetClustersClusterOutput) StopTime added in v3.11.0

Cluster stop time.

func (GetClustersClusterOutput) Tags added in v3.11.0

A mapping of tags to assign to the resource.

func (GetClustersClusterOutput) ToGetClustersClusterOutput added in v3.11.0

func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterOutput) ToGetClustersClusterOutputWithContext added in v3.11.0

func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

func (GetClustersClusterOutput) Type added in v3.12.0

Disk type.

func (GetClustersClusterOutput) UserDefinedEmrEcsRole added in v3.11.0

func (o GetClustersClusterOutput) UserDefinedEmrEcsRole() pulumi.StringOutput

The EMR permission name used.

func (GetClustersClusterOutput) UserId added in v3.11.0

The user ID.

func (GetClustersClusterOutput) VpcId added in v3.11.0

The VPC ID.

func (GetClustersClusterOutput) VswitchId added in v3.11.0

The vswitch id.

func (GetClustersClusterOutput) ZoneId added in v3.11.0

The zone ID.

type GetClustersClusterRelateClusterInfo added in v3.11.0

type GetClustersClusterRelateClusterInfo struct {
	// The ID of the associated cluster.
	ClusterId string `pulumi:"clusterId"`
	// The name of the associated cluster.
	ClusterName string `pulumi:"clusterName"`
	// The cluster type of the associated cluster.
	ClusterType string `pulumi:"clusterType"`
	// The status  of the associated cluster.
	Status string `pulumi:"status"`
}

type GetClustersClusterRelateClusterInfoArgs added in v3.11.0

type GetClustersClusterRelateClusterInfoArgs struct {
	// The ID of the associated cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the associated cluster.
	ClusterName pulumi.StringInput `pulumi:"clusterName"`
	// The cluster type of the associated cluster.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// The status  of the associated cluster.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetClustersClusterRelateClusterInfoArgs) ElementType added in v3.11.0

func (GetClustersClusterRelateClusterInfoArgs) ToGetClustersClusterRelateClusterInfoOutput added in v3.11.0

func (i GetClustersClusterRelateClusterInfoArgs) ToGetClustersClusterRelateClusterInfoOutput() GetClustersClusterRelateClusterInfoOutput

func (GetClustersClusterRelateClusterInfoArgs) ToGetClustersClusterRelateClusterInfoOutputWithContext added in v3.11.0

func (i GetClustersClusterRelateClusterInfoArgs) ToGetClustersClusterRelateClusterInfoOutputWithContext(ctx context.Context) GetClustersClusterRelateClusterInfoOutput

type GetClustersClusterRelateClusterInfoArray added in v3.11.0

type GetClustersClusterRelateClusterInfoArray []GetClustersClusterRelateClusterInfoInput

func (GetClustersClusterRelateClusterInfoArray) ElementType added in v3.11.0

func (GetClustersClusterRelateClusterInfoArray) ToGetClustersClusterRelateClusterInfoArrayOutput added in v3.11.0

func (i GetClustersClusterRelateClusterInfoArray) ToGetClustersClusterRelateClusterInfoArrayOutput() GetClustersClusterRelateClusterInfoArrayOutput

func (GetClustersClusterRelateClusterInfoArray) ToGetClustersClusterRelateClusterInfoArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterRelateClusterInfoArray) ToGetClustersClusterRelateClusterInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterRelateClusterInfoArrayOutput

type GetClustersClusterRelateClusterInfoArrayInput added in v3.11.0

type GetClustersClusterRelateClusterInfoArrayInput interface {
	pulumi.Input

	ToGetClustersClusterRelateClusterInfoArrayOutput() GetClustersClusterRelateClusterInfoArrayOutput
	ToGetClustersClusterRelateClusterInfoArrayOutputWithContext(context.Context) GetClustersClusterRelateClusterInfoArrayOutput
}

GetClustersClusterRelateClusterInfoArrayInput is an input type that accepts GetClustersClusterRelateClusterInfoArray and GetClustersClusterRelateClusterInfoArrayOutput values. You can construct a concrete instance of `GetClustersClusterRelateClusterInfoArrayInput` via:

GetClustersClusterRelateClusterInfoArray{ GetClustersClusterRelateClusterInfoArgs{...} }

type GetClustersClusterRelateClusterInfoArrayOutput added in v3.11.0

type GetClustersClusterRelateClusterInfoArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterRelateClusterInfoArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterRelateClusterInfoArrayOutput) Index added in v3.11.0

func (GetClustersClusterRelateClusterInfoArrayOutput) ToGetClustersClusterRelateClusterInfoArrayOutput added in v3.11.0

func (o GetClustersClusterRelateClusterInfoArrayOutput) ToGetClustersClusterRelateClusterInfoArrayOutput() GetClustersClusterRelateClusterInfoArrayOutput

func (GetClustersClusterRelateClusterInfoArrayOutput) ToGetClustersClusterRelateClusterInfoArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterRelateClusterInfoArrayOutput) ToGetClustersClusterRelateClusterInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterRelateClusterInfoArrayOutput

type GetClustersClusterRelateClusterInfoInput added in v3.11.0

type GetClustersClusterRelateClusterInfoInput interface {
	pulumi.Input

	ToGetClustersClusterRelateClusterInfoOutput() GetClustersClusterRelateClusterInfoOutput
	ToGetClustersClusterRelateClusterInfoOutputWithContext(context.Context) GetClustersClusterRelateClusterInfoOutput
}

GetClustersClusterRelateClusterInfoInput is an input type that accepts GetClustersClusterRelateClusterInfoArgs and GetClustersClusterRelateClusterInfoOutput values. You can construct a concrete instance of `GetClustersClusterRelateClusterInfoInput` via:

GetClustersClusterRelateClusterInfoArgs{...}

type GetClustersClusterRelateClusterInfoOutput added in v3.11.0

type GetClustersClusterRelateClusterInfoOutput struct{ *pulumi.OutputState }

func (GetClustersClusterRelateClusterInfoOutput) ClusterId added in v3.11.0

The ID of the associated cluster.

func (GetClustersClusterRelateClusterInfoOutput) ClusterName added in v3.11.0

The name of the associated cluster.

func (GetClustersClusterRelateClusterInfoOutput) ClusterType added in v3.11.0

The cluster type of the associated cluster.

func (GetClustersClusterRelateClusterInfoOutput) ElementType added in v3.11.0

func (GetClustersClusterRelateClusterInfoOutput) Status added in v3.11.0

The status of the associated cluster.

func (GetClustersClusterRelateClusterInfoOutput) ToGetClustersClusterRelateClusterInfoOutput added in v3.11.0

func (o GetClustersClusterRelateClusterInfoOutput) ToGetClustersClusterRelateClusterInfoOutput() GetClustersClusterRelateClusterInfoOutput

func (GetClustersClusterRelateClusterInfoOutput) ToGetClustersClusterRelateClusterInfoOutputWithContext added in v3.11.0

func (o GetClustersClusterRelateClusterInfoOutput) ToGetClustersClusterRelateClusterInfoOutputWithContext(ctx context.Context) GetClustersClusterRelateClusterInfoOutput

type GetClustersClusterSoftwareInfo added in v3.11.0

type GetClustersClusterSoftwareInfo struct {
	// Cluster type:
	ClusterType string `pulumi:"clusterType"`
	// E-MapReduce version number.
	EmrVer string `pulumi:"emrVer"`
	// Service list.
	Softwares []GetClustersClusterSoftwareInfoSoftware `pulumi:"softwares"`
}

type GetClustersClusterSoftwareInfoArgs added in v3.11.0

type GetClustersClusterSoftwareInfoArgs struct {
	// Cluster type:
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// E-MapReduce version number.
	EmrVer pulumi.StringInput `pulumi:"emrVer"`
	// Service list.
	Softwares GetClustersClusterSoftwareInfoSoftwareArrayInput `pulumi:"softwares"`
}

func (GetClustersClusterSoftwareInfoArgs) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoArgs) ToGetClustersClusterSoftwareInfoOutput added in v3.11.0

func (i GetClustersClusterSoftwareInfoArgs) ToGetClustersClusterSoftwareInfoOutput() GetClustersClusterSoftwareInfoOutput

func (GetClustersClusterSoftwareInfoArgs) ToGetClustersClusterSoftwareInfoOutputWithContext added in v3.11.0

func (i GetClustersClusterSoftwareInfoArgs) ToGetClustersClusterSoftwareInfoOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoOutput

type GetClustersClusterSoftwareInfoArray added in v3.11.0

type GetClustersClusterSoftwareInfoArray []GetClustersClusterSoftwareInfoInput

func (GetClustersClusterSoftwareInfoArray) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoArray) ToGetClustersClusterSoftwareInfoArrayOutput added in v3.11.0

func (i GetClustersClusterSoftwareInfoArray) ToGetClustersClusterSoftwareInfoArrayOutput() GetClustersClusterSoftwareInfoArrayOutput

func (GetClustersClusterSoftwareInfoArray) ToGetClustersClusterSoftwareInfoArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterSoftwareInfoArray) ToGetClustersClusterSoftwareInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoArrayOutput

type GetClustersClusterSoftwareInfoArrayInput added in v3.11.0

type GetClustersClusterSoftwareInfoArrayInput interface {
	pulumi.Input

	ToGetClustersClusterSoftwareInfoArrayOutput() GetClustersClusterSoftwareInfoArrayOutput
	ToGetClustersClusterSoftwareInfoArrayOutputWithContext(context.Context) GetClustersClusterSoftwareInfoArrayOutput
}

GetClustersClusterSoftwareInfoArrayInput is an input type that accepts GetClustersClusterSoftwareInfoArray and GetClustersClusterSoftwareInfoArrayOutput values. You can construct a concrete instance of `GetClustersClusterSoftwareInfoArrayInput` via:

GetClustersClusterSoftwareInfoArray{ GetClustersClusterSoftwareInfoArgs{...} }

type GetClustersClusterSoftwareInfoArrayOutput added in v3.11.0

type GetClustersClusterSoftwareInfoArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterSoftwareInfoArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoArrayOutput) Index added in v3.11.0

func (GetClustersClusterSoftwareInfoArrayOutput) ToGetClustersClusterSoftwareInfoArrayOutput added in v3.11.0

func (o GetClustersClusterSoftwareInfoArrayOutput) ToGetClustersClusterSoftwareInfoArrayOutput() GetClustersClusterSoftwareInfoArrayOutput

func (GetClustersClusterSoftwareInfoArrayOutput) ToGetClustersClusterSoftwareInfoArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterSoftwareInfoArrayOutput) ToGetClustersClusterSoftwareInfoArrayOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoArrayOutput

type GetClustersClusterSoftwareInfoInput added in v3.11.0

type GetClustersClusterSoftwareInfoInput interface {
	pulumi.Input

	ToGetClustersClusterSoftwareInfoOutput() GetClustersClusterSoftwareInfoOutput
	ToGetClustersClusterSoftwareInfoOutputWithContext(context.Context) GetClustersClusterSoftwareInfoOutput
}

GetClustersClusterSoftwareInfoInput is an input type that accepts GetClustersClusterSoftwareInfoArgs and GetClustersClusterSoftwareInfoOutput values. You can construct a concrete instance of `GetClustersClusterSoftwareInfoInput` via:

GetClustersClusterSoftwareInfoArgs{...}

type GetClustersClusterSoftwareInfoOutput added in v3.11.0

type GetClustersClusterSoftwareInfoOutput struct{ *pulumi.OutputState }

func (GetClustersClusterSoftwareInfoOutput) ClusterType added in v3.11.0

Cluster type:

func (GetClustersClusterSoftwareInfoOutput) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoOutput) EmrVer added in v3.11.0

E-MapReduce version number.

func (GetClustersClusterSoftwareInfoOutput) Softwares added in v3.11.0

Service list.

func (GetClustersClusterSoftwareInfoOutput) ToGetClustersClusterSoftwareInfoOutput added in v3.11.0

func (o GetClustersClusterSoftwareInfoOutput) ToGetClustersClusterSoftwareInfoOutput() GetClustersClusterSoftwareInfoOutput

func (GetClustersClusterSoftwareInfoOutput) ToGetClustersClusterSoftwareInfoOutputWithContext added in v3.11.0

func (o GetClustersClusterSoftwareInfoOutput) ToGetClustersClusterSoftwareInfoOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoOutput

type GetClustersClusterSoftwareInfoSoftware added in v3.11.0

type GetClustersClusterSoftwareInfoSoftware struct {
	// The name of the service.
	DisplayName string `pulumi:"displayName"`
	// The internal name of the service.
	Name string `pulumi:"name"`
	// Whether it shows.
	OnlyDisplay bool `pulumi:"onlyDisplay"`
	// Startup type.
	StartTpe int `pulumi:"startTpe"`
	// Service version.
	Version string `pulumi:"version"`
}

type GetClustersClusterSoftwareInfoSoftwareArgs added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareArgs struct {
	// The name of the service.
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// The internal name of the service.
	Name pulumi.StringInput `pulumi:"name"`
	// Whether it shows.
	OnlyDisplay pulumi.BoolInput `pulumi:"onlyDisplay"`
	// Startup type.
	StartTpe pulumi.IntInput `pulumi:"startTpe"`
	// Service version.
	Version pulumi.StringInput `pulumi:"version"`
}

func (GetClustersClusterSoftwareInfoSoftwareArgs) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoSoftwareArgs) ToGetClustersClusterSoftwareInfoSoftwareOutput added in v3.11.0

func (i GetClustersClusterSoftwareInfoSoftwareArgs) ToGetClustersClusterSoftwareInfoSoftwareOutput() GetClustersClusterSoftwareInfoSoftwareOutput

func (GetClustersClusterSoftwareInfoSoftwareArgs) ToGetClustersClusterSoftwareInfoSoftwareOutputWithContext added in v3.11.0

func (i GetClustersClusterSoftwareInfoSoftwareArgs) ToGetClustersClusterSoftwareInfoSoftwareOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoSoftwareOutput

type GetClustersClusterSoftwareInfoSoftwareArray added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareArray []GetClustersClusterSoftwareInfoSoftwareInput

func (GetClustersClusterSoftwareInfoSoftwareArray) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoSoftwareArray) ToGetClustersClusterSoftwareInfoSoftwareArrayOutput added in v3.11.0

func (i GetClustersClusterSoftwareInfoSoftwareArray) ToGetClustersClusterSoftwareInfoSoftwareArrayOutput() GetClustersClusterSoftwareInfoSoftwareArrayOutput

func (GetClustersClusterSoftwareInfoSoftwareArray) ToGetClustersClusterSoftwareInfoSoftwareArrayOutputWithContext added in v3.11.0

func (i GetClustersClusterSoftwareInfoSoftwareArray) ToGetClustersClusterSoftwareInfoSoftwareArrayOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoSoftwareArrayOutput

type GetClustersClusterSoftwareInfoSoftwareArrayInput added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareArrayInput interface {
	pulumi.Input

	ToGetClustersClusterSoftwareInfoSoftwareArrayOutput() GetClustersClusterSoftwareInfoSoftwareArrayOutput
	ToGetClustersClusterSoftwareInfoSoftwareArrayOutputWithContext(context.Context) GetClustersClusterSoftwareInfoSoftwareArrayOutput
}

GetClustersClusterSoftwareInfoSoftwareArrayInput is an input type that accepts GetClustersClusterSoftwareInfoSoftwareArray and GetClustersClusterSoftwareInfoSoftwareArrayOutput values. You can construct a concrete instance of `GetClustersClusterSoftwareInfoSoftwareArrayInput` via:

GetClustersClusterSoftwareInfoSoftwareArray{ GetClustersClusterSoftwareInfoSoftwareArgs{...} }

type GetClustersClusterSoftwareInfoSoftwareArrayOutput added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterSoftwareInfoSoftwareArrayOutput) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoSoftwareArrayOutput) Index added in v3.11.0

func (GetClustersClusterSoftwareInfoSoftwareArrayOutput) ToGetClustersClusterSoftwareInfoSoftwareArrayOutput added in v3.11.0

func (o GetClustersClusterSoftwareInfoSoftwareArrayOutput) ToGetClustersClusterSoftwareInfoSoftwareArrayOutput() GetClustersClusterSoftwareInfoSoftwareArrayOutput

func (GetClustersClusterSoftwareInfoSoftwareArrayOutput) ToGetClustersClusterSoftwareInfoSoftwareArrayOutputWithContext added in v3.11.0

func (o GetClustersClusterSoftwareInfoSoftwareArrayOutput) ToGetClustersClusterSoftwareInfoSoftwareArrayOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoSoftwareArrayOutput

type GetClustersClusterSoftwareInfoSoftwareInput added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareInput interface {
	pulumi.Input

	ToGetClustersClusterSoftwareInfoSoftwareOutput() GetClustersClusterSoftwareInfoSoftwareOutput
	ToGetClustersClusterSoftwareInfoSoftwareOutputWithContext(context.Context) GetClustersClusterSoftwareInfoSoftwareOutput
}

GetClustersClusterSoftwareInfoSoftwareInput is an input type that accepts GetClustersClusterSoftwareInfoSoftwareArgs and GetClustersClusterSoftwareInfoSoftwareOutput values. You can construct a concrete instance of `GetClustersClusterSoftwareInfoSoftwareInput` via:

GetClustersClusterSoftwareInfoSoftwareArgs{...}

type GetClustersClusterSoftwareInfoSoftwareOutput added in v3.11.0

type GetClustersClusterSoftwareInfoSoftwareOutput struct{ *pulumi.OutputState }

func (GetClustersClusterSoftwareInfoSoftwareOutput) DisplayName added in v3.11.0

The name of the service.

func (GetClustersClusterSoftwareInfoSoftwareOutput) ElementType added in v3.11.0

func (GetClustersClusterSoftwareInfoSoftwareOutput) Name added in v3.11.0

The internal name of the service.

func (GetClustersClusterSoftwareInfoSoftwareOutput) OnlyDisplay added in v3.11.0

Whether it shows.

func (GetClustersClusterSoftwareInfoSoftwareOutput) StartTpe added in v3.11.0

Startup type.

func (GetClustersClusterSoftwareInfoSoftwareOutput) ToGetClustersClusterSoftwareInfoSoftwareOutput added in v3.11.0

func (o GetClustersClusterSoftwareInfoSoftwareOutput) ToGetClustersClusterSoftwareInfoSoftwareOutput() GetClustersClusterSoftwareInfoSoftwareOutput

func (GetClustersClusterSoftwareInfoSoftwareOutput) ToGetClustersClusterSoftwareInfoSoftwareOutputWithContext added in v3.11.0

func (o GetClustersClusterSoftwareInfoSoftwareOutput) ToGetClustersClusterSoftwareInfoSoftwareOutputWithContext(ctx context.Context) GetClustersClusterSoftwareInfoSoftwareOutput

func (GetClustersClusterSoftwareInfoSoftwareOutput) Version added in v3.11.0

Service version.

type GetClustersOutputArgs added in v3.11.0

type GetClustersOutputArgs struct {
	// The cluster name.
	ClusterName pulumi.StringPtrInput `pulumi:"clusterName"`
	// The cluster type list.
	ClusterTypeLists pulumi.StringArrayInput `pulumi:"clusterTypeLists"`
	// How to create a cluster. Valid values: `ON-DEMAND`, `MANUAL`.
	CreateType pulumi.StringPtrInput `pulumi:"createType"`
	// The default status.
	DefaultStatus pulumi.BoolPtrInput `pulumi:"defaultStatus"`
	// The hosting type of the cluster. Valid values: `HALF_MANAGED`, `MANAGED`.
	DepositType pulumi.StringPtrInput `pulumi:"depositType"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Cluster IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The is desc.
	IsDesc pulumi.BoolPtrInput `pulumi:"isDesc"`
	// The host type of the cluster. The default is ECS. Valid values: `DOCKER`, `ECS`, `PYHSICAL_MACHINE`, `ECS_FROM_ECM_HOSTPOOL`.
	MachineType pulumi.StringPtrInput `pulumi:"machineType"`
	// A regex string to filter results by Cluster name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The Resource Group ID.
	ResourceGroupId pulumi.StringPtrInput `pulumi:"resourceGroupId"`
	// The status list. Valid values: `ABNORMAL`, `CREATE_FAILED`, `CREATING`, `IDLE`, `RELEASED`, `RELEASE_FAILED`, `RELEASING`, `RUNNING`, `WAIT_FOR_PAY`.
	StatusLists pulumi.StringArrayInput `pulumi:"statusLists"`
	// The VPC ID.
	VpcId pulumi.StringPtrInput `pulumi:"vpcId"`
}

A collection of arguments for invoking getClusters.

func (GetClustersOutputArgs) ElementType added in v3.11.0

func (GetClustersOutputArgs) ElementType() reflect.Type

type GetClustersResult added in v3.11.0

type GetClustersResult struct {
	ClusterName      *string              `pulumi:"clusterName"`
	ClusterTypeLists []string             `pulumi:"clusterTypeLists"`
	Clusters         []GetClustersCluster `pulumi:"clusters"`
	CreateType       *string              `pulumi:"createType"`
	DefaultStatus    *bool                `pulumi:"defaultStatus"`
	DepositType      *string              `pulumi:"depositType"`
	EnableDetails    *bool                `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id              string   `pulumi:"id"`
	Ids             []string `pulumi:"ids"`
	IsDesc          *bool    `pulumi:"isDesc"`
	MachineType     *string  `pulumi:"machineType"`
	NameRegex       *string  `pulumi:"nameRegex"`
	Names           []string `pulumi:"names"`
	OutputFile      *string  `pulumi:"outputFile"`
	PageNumber      *int     `pulumi:"pageNumber"`
	PageSize        *int     `pulumi:"pageSize"`
	ResourceGroupId *string  `pulumi:"resourceGroupId"`
	StatusLists     []string `pulumi:"statusLists"`
	TotalCount      int      `pulumi:"totalCount"`
	VpcId           *string  `pulumi:"vpcId"`
}

A collection of values returned by getClusters.

func GetClusters added in v3.11.0

func GetClusters(ctx *pulumi.Context, args *GetClustersArgs, opts ...pulumi.InvokeOption) (*GetClustersResult, error)

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

> **DEPRECATED:** This datasource has been deprecated from version `1.204.0`. Please use new datasource emrv2_clusters.

> **NOTE:** Available in v1.146.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccClusters"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetMainVersions, err := emr.GetMainVersions(ctx, &emr.GetMainVersionsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceTypes, err := emr.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			ClusterType:         defaultGetMainVersions.MainVersions[0].ClusterTypes[0],
			SupportLocalStorage: pulumi.BoolRef(false),
			InstanceChargeType:  "PostPaid",
			SupportNodeTypes: []string{
				"MASTER",
				"CORE",
				"TASK",
			},
		}, nil)
		if err != nil {
			return err
		}
		dataDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "DataDisk",
			ClusterType:         defaultGetMainVersions.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		systemDisk, err := emr.GetDiskTypes(ctx, &emr.GetDiskTypesArgs{
			DestinationResource: "SystemDisk",
			ClusterType:         defaultGetMainVersions.MainVersions[0].ClusterTypes[0],
			InstanceChargeType:  "PostPaid",
			InstanceType:        defaultGetInstanceTypes.Types[0].Id,
			ZoneId:              pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			Name:  pulumi.String(name),
			VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultGetInstanceTypes.Types[0].ZoneId),
		}, nil)
		if err != nil {
			return err
		}
		defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
			Name: pulumi.String(name),
			Document: pulumi.String(`    {
        "Statement": [
        {
            "Action": "sts:AssumeRole",
            "Effect": "Allow",
            "Principal": {
            "Service": [
                "emr.aliyuncs.com",
                "ecs.aliyuncs.com"
            ]
            }
        }
        ],
        "Version": "1"
    }

`),

			Description: pulumi.String("this is a role test."),
			Force:       pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		var tmp0 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp0 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp0 = pulumi.String("160")
		}
		var tmp1 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp1 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp1 = pulumi.String("160")
		}
		var tmp2 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp2 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp2 = pulumi.String("160")
		}
		var tmp3 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp3 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp3 = pulumi.String("160")
		}
		var tmp4 pulumi.String
		if dataDisk.Types[0].Min > 160 {
			tmp4 = pulumi.Int(dataDisk.Types[0].Min)
		} else {
			tmp4 = pulumi.String("160")
		}
		var tmp5 pulumi.String
		if systemDisk.Types[0].Min > 160 {
			tmp5 = pulumi.Int(systemDisk.Types[0].Min)
		} else {
			tmp5 = pulumi.String("160")
		}
		defaultCluster, err := emr.NewCluster(ctx, "default", &emr.ClusterArgs{
			Name:        pulumi.String(name),
			EmrVer:      pulumi.String(defaultGetMainVersions.MainVersions[0].EmrVersion),
			ClusterType: pulumi.String(defaultGetMainVersions.MainVersions[0].ClusterTypes[0]),
			HostGroups: emr.ClusterHostGroupArray{
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("master_group"),
					HostGroupType:   pulumi.String("MASTER"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp0),
					DiskCount:       pulumi.String("1"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp1),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("core_group"),
					HostGroupType:   pulumi.String("CORE"),
					NodeCount:       pulumi.String("3"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp2),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp3),
				},
				&emr.ClusterHostGroupArgs{
					HostGroupName:   pulumi.String("task_group"),
					HostGroupType:   pulumi.String("TASK"),
					NodeCount:       pulumi.String("2"),
					InstanceType:    pulumi.String(defaultGetInstanceTypes.Types[0].Id),
					DiskType:        pulumi.String(dataDisk.Types[0].Value),
					DiskCapacity:    pulumi.String(tmp4),
					DiskCount:       pulumi.String("4"),
					SysDiskType:     pulumi.String(systemDisk.Types[0].Value),
					SysDiskCapacity: pulumi.String(tmp5),
				},
			},
			HighAvailabilityEnable: pulumi.Bool(true),
			ZoneId:                 pulumi.String(defaultGetInstanceTypes.Types[0].ZoneId),
			SecurityGroupId:        defaultSecurityGroup.ID(),
			IsOpenPublicIp:         pulumi.Bool(true),
			ChargeType:             pulumi.String("PostPaid"),
			VswitchId:              pulumi.String(defaultGetSwitches.Ids[0]),
			UserDefinedEmrEcsRole:  defaultRole.Name,
			SshEnable:              pulumi.Bool(true),
			MasterPwd:              pulumi.String("ABCtest1234!"),
			Tags: pulumi.StringMap{
				"Created": pulumi.String("TF"),
				"For":     pulumi.String("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		ids, err := emr.GetClusters(ctx, &emr.GetClustersArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("emrClusterId1", ids.Clusters[0].Id)
		nameRegex := emr.GetClustersOutput(ctx, emr.GetClustersOutputArgs{
			NameRegex: defaultCluster.Name,
		}, nil)
		ctx.Export("emrClusterId2", nameRegex.ApplyT(func(nameRegex emr.GetClustersResult) (*string, error) {
			return &nameRegex.Clusters[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}

```

type GetClustersResultOutput added in v3.11.0

type GetClustersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusters.

func GetClustersOutput added in v3.11.0

func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput

func (GetClustersResultOutput) ClusterName added in v3.11.0

func (GetClustersResultOutput) ClusterTypeLists added in v3.11.0

func (o GetClustersResultOutput) ClusterTypeLists() pulumi.StringArrayOutput

func (GetClustersResultOutput) Clusters added in v3.11.0

func (GetClustersResultOutput) CreateType added in v3.11.0

func (GetClustersResultOutput) DefaultStatus added in v3.11.0

func (o GetClustersResultOutput) DefaultStatus() pulumi.BoolPtrOutput

func (GetClustersResultOutput) DepositType added in v3.11.0

func (GetClustersResultOutput) ElementType added in v3.11.0

func (GetClustersResultOutput) ElementType() reflect.Type

func (GetClustersResultOutput) EnableDetails added in v3.11.0

func (o GetClustersResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetClustersResultOutput) Id added in v3.11.0

The provider-assigned unique ID for this managed resource.

func (GetClustersResultOutput) Ids added in v3.11.0

func (GetClustersResultOutput) IsDesc added in v3.11.0

func (GetClustersResultOutput) MachineType added in v3.11.0

func (GetClustersResultOutput) NameRegex added in v3.11.0

func (GetClustersResultOutput) Names added in v3.11.0

func (GetClustersResultOutput) OutputFile added in v3.11.0

func (GetClustersResultOutput) PageNumber added in v3.16.0

func (GetClustersResultOutput) PageSize added in v3.16.0

func (GetClustersResultOutput) ResourceGroupId added in v3.11.0

func (o GetClustersResultOutput) ResourceGroupId() pulumi.StringPtrOutput

func (GetClustersResultOutput) StatusLists added in v3.11.0

func (GetClustersResultOutput) ToGetClustersResultOutput added in v3.11.0

func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput

func (GetClustersResultOutput) ToGetClustersResultOutputWithContext added in v3.11.0

func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput

func (GetClustersResultOutput) TotalCount added in v3.16.0

func (o GetClustersResultOutput) TotalCount() pulumi.IntOutput

func (GetClustersResultOutput) VpcId added in v3.11.0

type GetDiskTypesArgs

type GetDiskTypesArgs struct {
	// The cluster type of the emr cluster instance. Possible values: `HADOOP`, `KAFKA`, `ZOOKEEPER`, `DRUID`.
	ClusterType string `pulumi:"clusterType"`
	// The destination resource of emr cluster instance
	DestinationResource string `pulumi:"destinationResource"`
	// Filter the results by charge type. Valid values: `PrePaid` and `PostPaid`. Default to `PostPaid`.
	InstanceChargeType string `pulumi:"instanceChargeType"`
	// The ecs instance type of create emr cluster instance.
	InstanceType string `pulumi:"instanceType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The Zone to create emr cluster instance.
	ZoneId *string `pulumi:"zoneId"`
}

A collection of arguments for invoking getDiskTypes.

type GetDiskTypesOutputArgs added in v3.9.0

type GetDiskTypesOutputArgs struct {
	// The cluster type of the emr cluster instance. Possible values: `HADOOP`, `KAFKA`, `ZOOKEEPER`, `DRUID`.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// The destination resource of emr cluster instance
	DestinationResource pulumi.StringInput `pulumi:"destinationResource"`
	// Filter the results by charge type. Valid values: `PrePaid` and `PostPaid`. Default to `PostPaid`.
	InstanceChargeType pulumi.StringInput `pulumi:"instanceChargeType"`
	// The ecs instance type of create emr cluster instance.
	InstanceType pulumi.StringInput `pulumi:"instanceType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The Zone to create emr cluster instance.
	ZoneId pulumi.StringPtrInput `pulumi:"zoneId"`
}

A collection of arguments for invoking getDiskTypes.

func (GetDiskTypesOutputArgs) ElementType added in v3.9.0

func (GetDiskTypesOutputArgs) ElementType() reflect.Type

type GetDiskTypesResult

type GetDiskTypesResult struct {
	ClusterType         string `pulumi:"clusterType"`
	DestinationResource string `pulumi:"destinationResource"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of data disk and system disk type IDs.
	Ids                []string `pulumi:"ids"`
	InstanceChargeType string   `pulumi:"instanceChargeType"`
	InstanceType       string   `pulumi:"instanceType"`
	OutputFile         *string  `pulumi:"outputFile"`
	// A list of emr instance types. Each element contains the following attributes:
	Types  []GetDiskTypesType `pulumi:"types"`
	ZoneId *string            `pulumi:"zoneId"`
}

A collection of values returned by getDiskTypes.

func GetDiskTypes

func GetDiskTypes(ctx *pulumi.Context, args *GetDiskTypesArgs, opts ...pulumi.InvokeOption) (*GetDiskTypesResult, error)

The `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

```go 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
	})
}

```

type GetDiskTypesResultOutput added in v3.9.0

type GetDiskTypesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDiskTypes.

func GetDiskTypesOutput added in v3.9.0

func GetDiskTypesOutput(ctx *pulumi.Context, args GetDiskTypesOutputArgs, opts ...pulumi.InvokeOption) GetDiskTypesResultOutput

func (GetDiskTypesResultOutput) ClusterType added in v3.9.0

func (GetDiskTypesResultOutput) DestinationResource added in v3.9.0

func (o GetDiskTypesResultOutput) DestinationResource() pulumi.StringOutput

func (GetDiskTypesResultOutput) ElementType added in v3.9.0

func (GetDiskTypesResultOutput) ElementType() reflect.Type

func (GetDiskTypesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetDiskTypesResultOutput) Ids added in v3.9.0

A list of data disk and system disk type IDs.

func (GetDiskTypesResultOutput) InstanceChargeType added in v3.9.0

func (o GetDiskTypesResultOutput) InstanceChargeType() pulumi.StringOutput

func (GetDiskTypesResultOutput) InstanceType added in v3.9.0

func (o GetDiskTypesResultOutput) InstanceType() pulumi.StringOutput

func (GetDiskTypesResultOutput) OutputFile added in v3.9.0

func (GetDiskTypesResultOutput) ToGetDiskTypesResultOutput added in v3.9.0

func (o GetDiskTypesResultOutput) ToGetDiskTypesResultOutput() GetDiskTypesResultOutput

func (GetDiskTypesResultOutput) ToGetDiskTypesResultOutputWithContext added in v3.9.0

func (o GetDiskTypesResultOutput) ToGetDiskTypesResultOutputWithContext(ctx context.Context) GetDiskTypesResultOutput

func (GetDiskTypesResultOutput) Types added in v3.9.0

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

func (GetDiskTypesResultOutput) ZoneId added in v3.9.0

type GetDiskTypesType

type GetDiskTypesType struct {
	// The maximum value of the data disk to supported the specific instance type
	Max int `pulumi:"max"`
	// The mininum value of the data disk to supported the specific instance type
	Min int `pulumi:"min"`
	// The value of the data disk or system disk
	Value string `pulumi:"value"`
}

type GetDiskTypesTypeArgs

type GetDiskTypesTypeArgs struct {
	// The maximum value of the data disk to supported the specific instance type
	Max pulumi.IntInput `pulumi:"max"`
	// The mininum value of the data disk to supported the specific instance type
	Min pulumi.IntInput `pulumi:"min"`
	// The value of the data disk or system disk
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetDiskTypesTypeArgs) ElementType

func (GetDiskTypesTypeArgs) ElementType() reflect.Type

func (GetDiskTypesTypeArgs) ToGetDiskTypesTypeOutput

func (i GetDiskTypesTypeArgs) ToGetDiskTypesTypeOutput() GetDiskTypesTypeOutput

func (GetDiskTypesTypeArgs) ToGetDiskTypesTypeOutputWithContext

func (i GetDiskTypesTypeArgs) ToGetDiskTypesTypeOutputWithContext(ctx context.Context) GetDiskTypesTypeOutput

type GetDiskTypesTypeArray

type GetDiskTypesTypeArray []GetDiskTypesTypeInput

func (GetDiskTypesTypeArray) ElementType

func (GetDiskTypesTypeArray) ElementType() reflect.Type

func (GetDiskTypesTypeArray) ToGetDiskTypesTypeArrayOutput

func (i GetDiskTypesTypeArray) ToGetDiskTypesTypeArrayOutput() GetDiskTypesTypeArrayOutput

func (GetDiskTypesTypeArray) ToGetDiskTypesTypeArrayOutputWithContext

func (i GetDiskTypesTypeArray) ToGetDiskTypesTypeArrayOutputWithContext(ctx context.Context) GetDiskTypesTypeArrayOutput

type GetDiskTypesTypeArrayInput

type GetDiskTypesTypeArrayInput interface {
	pulumi.Input

	ToGetDiskTypesTypeArrayOutput() GetDiskTypesTypeArrayOutput
	ToGetDiskTypesTypeArrayOutputWithContext(context.Context) GetDiskTypesTypeArrayOutput
}

GetDiskTypesTypeArrayInput is an input type that accepts GetDiskTypesTypeArray and GetDiskTypesTypeArrayOutput values. You can construct a concrete instance of `GetDiskTypesTypeArrayInput` via:

GetDiskTypesTypeArray{ GetDiskTypesTypeArgs{...} }

type GetDiskTypesTypeArrayOutput

type GetDiskTypesTypeArrayOutput struct{ *pulumi.OutputState }

func (GetDiskTypesTypeArrayOutput) ElementType

func (GetDiskTypesTypeArrayOutput) Index

func (GetDiskTypesTypeArrayOutput) ToGetDiskTypesTypeArrayOutput

func (o GetDiskTypesTypeArrayOutput) ToGetDiskTypesTypeArrayOutput() GetDiskTypesTypeArrayOutput

func (GetDiskTypesTypeArrayOutput) ToGetDiskTypesTypeArrayOutputWithContext

func (o GetDiskTypesTypeArrayOutput) ToGetDiskTypesTypeArrayOutputWithContext(ctx context.Context) GetDiskTypesTypeArrayOutput

type GetDiskTypesTypeInput

type GetDiskTypesTypeInput interface {
	pulumi.Input

	ToGetDiskTypesTypeOutput() GetDiskTypesTypeOutput
	ToGetDiskTypesTypeOutputWithContext(context.Context) GetDiskTypesTypeOutput
}

GetDiskTypesTypeInput is an input type that accepts GetDiskTypesTypeArgs and GetDiskTypesTypeOutput values. You can construct a concrete instance of `GetDiskTypesTypeInput` via:

GetDiskTypesTypeArgs{...}

type GetDiskTypesTypeOutput

type GetDiskTypesTypeOutput struct{ *pulumi.OutputState }

func (GetDiskTypesTypeOutput) ElementType

func (GetDiskTypesTypeOutput) ElementType() reflect.Type

func (GetDiskTypesTypeOutput) Max

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

func (GetDiskTypesTypeOutput) Min

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

func (GetDiskTypesTypeOutput) ToGetDiskTypesTypeOutput

func (o GetDiskTypesTypeOutput) ToGetDiskTypesTypeOutput() GetDiskTypesTypeOutput

func (GetDiskTypesTypeOutput) ToGetDiskTypesTypeOutputWithContext

func (o GetDiskTypesTypeOutput) ToGetDiskTypesTypeOutputWithContext(ctx context.Context) GetDiskTypesTypeOutput

func (GetDiskTypesTypeOutput) Value

The value of the data disk or system disk

type GetInstanceTypesArgs

type GetInstanceTypesArgs struct {
	// The cluster type of the emr cluster instance. Possible values: `HADOOP`, `KAFKA`, `ZOOKEEPER`, `DRUID`.
	ClusterType string `pulumi:"clusterType"`
	// The destination resource of emr cluster instance
	DestinationResource string `pulumi:"destinationResource"`
	// Filter the results by charge type. Valid values: `PrePaid` and `PostPaid`. Default to `PostPaid`.
	InstanceChargeType string `pulumi:"instanceChargeType"`
	// Filter the specific ecs instance type to create emr cluster.
	InstanceType *string `pulumi:"instanceType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// Whether the current storage disk is local or not.
	SupportLocalStorage *bool `pulumi:"supportLocalStorage"`
	// The specific supported node type list.
	// Possible values may be any one or combination of these: ["MASTER", "CORE", "TASK", "GATEWAY"]
	SupportNodeTypes []string `pulumi:"supportNodeTypes"`
	// The supported resources of specific zoneId.
	ZoneId *string `pulumi:"zoneId"`
}

A collection of arguments for invoking getInstanceTypes.

type GetInstanceTypesOutputArgs added in v3.9.0

type GetInstanceTypesOutputArgs struct {
	// The cluster type of the emr cluster instance. Possible values: `HADOOP`, `KAFKA`, `ZOOKEEPER`, `DRUID`.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// The destination resource of emr cluster instance
	DestinationResource pulumi.StringInput `pulumi:"destinationResource"`
	// Filter the results by charge type. Valid values: `PrePaid` and `PostPaid`. Default to `PostPaid`.
	InstanceChargeType pulumi.StringInput `pulumi:"instanceChargeType"`
	// Filter the specific ecs instance type to create emr cluster.
	InstanceType pulumi.StringPtrInput `pulumi:"instanceType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// Whether the current storage disk is local or not.
	SupportLocalStorage pulumi.BoolPtrInput `pulumi:"supportLocalStorage"`
	// The specific supported node type list.
	// Possible values may be any one or combination of these: ["MASTER", "CORE", "TASK", "GATEWAY"]
	SupportNodeTypes pulumi.StringArrayInput `pulumi:"supportNodeTypes"`
	// The supported resources of specific zoneId.
	ZoneId pulumi.StringPtrInput `pulumi:"zoneId"`
}

A collection of arguments for invoking getInstanceTypes.

func (GetInstanceTypesOutputArgs) ElementType added in v3.9.0

func (GetInstanceTypesOutputArgs) ElementType() reflect.Type

type GetInstanceTypesResult

type GetInstanceTypesResult struct {
	ClusterType         string `pulumi:"clusterType"`
	DestinationResource string `pulumi:"destinationResource"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of emr instance types IDs.
	Ids                 []string `pulumi:"ids"`
	InstanceChargeType  string   `pulumi:"instanceChargeType"`
	InstanceType        *string  `pulumi:"instanceType"`
	OutputFile          *string  `pulumi:"outputFile"`
	SupportLocalStorage *bool    `pulumi:"supportLocalStorage"`
	SupportNodeTypes    []string `pulumi:"supportNodeTypes"`
	// A list of emr instance types. Each element contains the following attributes:
	Types []GetInstanceTypesType `pulumi:"types"`
	// The available zone id in Alibaba Cloud account
	ZoneId *string `pulumi:"zoneId"`
}

A collection of values returned by getInstanceTypes.

func GetInstanceTypes

func GetInstanceTypes(ctx *pulumi.Context, args *GetInstanceTypesArgs, opts ...pulumi.InvokeOption) (*GetInstanceTypesResult, error)

The `emr.getInstanceTypes` data source provides a collection of ecs instance types available in Alibaba Cloud account when create a emr cluster.

> **NOTE:** Available in 1.59.0+

## Example Usage

```go 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.GetInstanceTypes(ctx, &emr.GetInstanceTypesArgs{
			DestinationResource: "InstanceType",
			InstanceChargeType:  "PostPaid",
			SupportLocalStorage: pulumi.BoolRef(false),
			ClusterType:         "HADOOP",
			InstanceType:        pulumi.StringRef("ecs.g5.2xlarge"),
			SupportNodeTypes: []string{
				"MASTER",
				"CORE",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstInstanceType", _default.Types[0].Id)
		return nil
	})
}

```

type GetInstanceTypesResultOutput added in v3.9.0

type GetInstanceTypesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceTypes.

func GetInstanceTypesOutput added in v3.9.0

func (GetInstanceTypesResultOutput) ClusterType added in v3.9.0

func (GetInstanceTypesResultOutput) DestinationResource added in v3.9.0

func (o GetInstanceTypesResultOutput) DestinationResource() pulumi.StringOutput

func (GetInstanceTypesResultOutput) ElementType added in v3.9.0

func (GetInstanceTypesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstanceTypesResultOutput) Ids added in v3.9.0

A list of emr instance types IDs.

func (GetInstanceTypesResultOutput) InstanceChargeType added in v3.9.0

func (o GetInstanceTypesResultOutput) InstanceChargeType() pulumi.StringOutput

func (GetInstanceTypesResultOutput) InstanceType added in v3.9.0

func (GetInstanceTypesResultOutput) OutputFile added in v3.9.0

func (GetInstanceTypesResultOutput) SupportLocalStorage added in v3.9.0

func (o GetInstanceTypesResultOutput) SupportLocalStorage() pulumi.BoolPtrOutput

func (GetInstanceTypesResultOutput) SupportNodeTypes added in v3.9.0

func (GetInstanceTypesResultOutput) ToGetInstanceTypesResultOutput added in v3.9.0

func (o GetInstanceTypesResultOutput) ToGetInstanceTypesResultOutput() GetInstanceTypesResultOutput

func (GetInstanceTypesResultOutput) ToGetInstanceTypesResultOutputWithContext added in v3.9.0

func (o GetInstanceTypesResultOutput) ToGetInstanceTypesResultOutputWithContext(ctx context.Context) GetInstanceTypesResultOutput

func (GetInstanceTypesResultOutput) Types added in v3.9.0

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

func (GetInstanceTypesResultOutput) ZoneId added in v3.9.0

The available zone id in Alibaba Cloud account

type GetInstanceTypesType

type GetInstanceTypesType struct {
	// The ID of the instance type.
	Id string `pulumi:"id"`
	// Local capacity of the applied ecs instance for emr cluster. Unit: GB.
	LocalStorageCapacity int `pulumi:"localStorageCapacity"`
	// The supported resources of specific zoneId.
	ZoneId string `pulumi:"zoneId"`
}

type GetInstanceTypesTypeArgs

type GetInstanceTypesTypeArgs struct {
	// The ID of the instance type.
	Id pulumi.StringInput `pulumi:"id"`
	// Local capacity of the applied ecs instance for emr cluster. Unit: GB.
	LocalStorageCapacity pulumi.IntInput `pulumi:"localStorageCapacity"`
	// The supported resources of specific zoneId.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetInstanceTypesTypeArgs) ElementType

func (GetInstanceTypesTypeArgs) ElementType() reflect.Type

func (GetInstanceTypesTypeArgs) ToGetInstanceTypesTypeOutput

func (i GetInstanceTypesTypeArgs) ToGetInstanceTypesTypeOutput() GetInstanceTypesTypeOutput

func (GetInstanceTypesTypeArgs) ToGetInstanceTypesTypeOutputWithContext

func (i GetInstanceTypesTypeArgs) ToGetInstanceTypesTypeOutputWithContext(ctx context.Context) GetInstanceTypesTypeOutput

type GetInstanceTypesTypeArray

type GetInstanceTypesTypeArray []GetInstanceTypesTypeInput

func (GetInstanceTypesTypeArray) ElementType

func (GetInstanceTypesTypeArray) ElementType() reflect.Type

func (GetInstanceTypesTypeArray) ToGetInstanceTypesTypeArrayOutput

func (i GetInstanceTypesTypeArray) ToGetInstanceTypesTypeArrayOutput() GetInstanceTypesTypeArrayOutput

func (GetInstanceTypesTypeArray) ToGetInstanceTypesTypeArrayOutputWithContext

func (i GetInstanceTypesTypeArray) ToGetInstanceTypesTypeArrayOutputWithContext(ctx context.Context) GetInstanceTypesTypeArrayOutput

type GetInstanceTypesTypeArrayInput

type GetInstanceTypesTypeArrayInput interface {
	pulumi.Input

	ToGetInstanceTypesTypeArrayOutput() GetInstanceTypesTypeArrayOutput
	ToGetInstanceTypesTypeArrayOutputWithContext(context.Context) GetInstanceTypesTypeArrayOutput
}

GetInstanceTypesTypeArrayInput is an input type that accepts GetInstanceTypesTypeArray and GetInstanceTypesTypeArrayOutput values. You can construct a concrete instance of `GetInstanceTypesTypeArrayInput` via:

GetInstanceTypesTypeArray{ GetInstanceTypesTypeArgs{...} }

type GetInstanceTypesTypeArrayOutput

type GetInstanceTypesTypeArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceTypesTypeArrayOutput) ElementType

func (GetInstanceTypesTypeArrayOutput) Index

func (GetInstanceTypesTypeArrayOutput) ToGetInstanceTypesTypeArrayOutput

func (o GetInstanceTypesTypeArrayOutput) ToGetInstanceTypesTypeArrayOutput() GetInstanceTypesTypeArrayOutput

func (GetInstanceTypesTypeArrayOutput) ToGetInstanceTypesTypeArrayOutputWithContext

func (o GetInstanceTypesTypeArrayOutput) ToGetInstanceTypesTypeArrayOutputWithContext(ctx context.Context) GetInstanceTypesTypeArrayOutput

type GetInstanceTypesTypeInput

type GetInstanceTypesTypeInput interface {
	pulumi.Input

	ToGetInstanceTypesTypeOutput() GetInstanceTypesTypeOutput
	ToGetInstanceTypesTypeOutputWithContext(context.Context) GetInstanceTypesTypeOutput
}

GetInstanceTypesTypeInput is an input type that accepts GetInstanceTypesTypeArgs and GetInstanceTypesTypeOutput values. You can construct a concrete instance of `GetInstanceTypesTypeInput` via:

GetInstanceTypesTypeArgs{...}

type GetInstanceTypesTypeOutput

type GetInstanceTypesTypeOutput struct{ *pulumi.OutputState }

func (GetInstanceTypesTypeOutput) ElementType

func (GetInstanceTypesTypeOutput) ElementType() reflect.Type

func (GetInstanceTypesTypeOutput) Id

The ID of the instance type.

func (GetInstanceTypesTypeOutput) LocalStorageCapacity

func (o GetInstanceTypesTypeOutput) LocalStorageCapacity() pulumi.IntOutput

Local capacity of the applied ecs instance for emr cluster. Unit: GB.

func (GetInstanceTypesTypeOutput) ToGetInstanceTypesTypeOutput

func (o GetInstanceTypesTypeOutput) ToGetInstanceTypesTypeOutput() GetInstanceTypesTypeOutput

func (GetInstanceTypesTypeOutput) ToGetInstanceTypesTypeOutputWithContext

func (o GetInstanceTypesTypeOutput) ToGetInstanceTypesTypeOutputWithContext(ctx context.Context) GetInstanceTypesTypeOutput

func (GetInstanceTypesTypeOutput) ZoneId

The supported resources of specific zoneId.

type GetMainVersionsArgs

type GetMainVersionsArgs struct {
	// The supported clusterType of this emr version.
	// Possible values may be any one or combination of these: ["HADOOP", "DRUID", "KAFKA", "ZOOKEEPER", "FLINK", "CLICKHOUSE"]
	ClusterTypes []string `pulumi:"clusterTypes"`
	// The version of the emr cluster instance. Possible values: `EMR-4.0.0`, `EMR-3.23.0`, `EMR-3.22.0`.
	EmrVersion *string `pulumi:"emrVersion"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getMainVersions.

type GetMainVersionsMainVersion

type GetMainVersionsMainVersion struct {
	// A list of cluster types the emr cluster supported. Possible values: `HADOOP`, `ZOOKEEPER`, `KAFKA`, `DRUID`.
	ClusterTypes []string `pulumi:"clusterTypes"`
	// The version of the emr cluster instance. Possible values: `EMR-4.0.0`, `EMR-3.23.0`, `EMR-3.22.0`.
	EmrVersion string `pulumi:"emrVersion"`
	// The image id of the emr cluster instance.
	ImageId string `pulumi:"imageId"`
}

type GetMainVersionsMainVersionArgs

type GetMainVersionsMainVersionArgs struct {
	// A list of cluster types the emr cluster supported. Possible values: `HADOOP`, `ZOOKEEPER`, `KAFKA`, `DRUID`.
	ClusterTypes pulumi.StringArrayInput `pulumi:"clusterTypes"`
	// The version of the emr cluster instance. Possible values: `EMR-4.0.0`, `EMR-3.23.0`, `EMR-3.22.0`.
	EmrVersion pulumi.StringInput `pulumi:"emrVersion"`
	// The image id of the emr cluster instance.
	ImageId pulumi.StringInput `pulumi:"imageId"`
}

func (GetMainVersionsMainVersionArgs) ElementType

func (GetMainVersionsMainVersionArgs) ToGetMainVersionsMainVersionOutput

func (i GetMainVersionsMainVersionArgs) ToGetMainVersionsMainVersionOutput() GetMainVersionsMainVersionOutput

func (GetMainVersionsMainVersionArgs) ToGetMainVersionsMainVersionOutputWithContext

func (i GetMainVersionsMainVersionArgs) ToGetMainVersionsMainVersionOutputWithContext(ctx context.Context) GetMainVersionsMainVersionOutput

type GetMainVersionsMainVersionArray

type GetMainVersionsMainVersionArray []GetMainVersionsMainVersionInput

func (GetMainVersionsMainVersionArray) ElementType

func (GetMainVersionsMainVersionArray) ToGetMainVersionsMainVersionArrayOutput

func (i GetMainVersionsMainVersionArray) ToGetMainVersionsMainVersionArrayOutput() GetMainVersionsMainVersionArrayOutput

func (GetMainVersionsMainVersionArray) ToGetMainVersionsMainVersionArrayOutputWithContext

func (i GetMainVersionsMainVersionArray) ToGetMainVersionsMainVersionArrayOutputWithContext(ctx context.Context) GetMainVersionsMainVersionArrayOutput

type GetMainVersionsMainVersionArrayInput

type GetMainVersionsMainVersionArrayInput interface {
	pulumi.Input

	ToGetMainVersionsMainVersionArrayOutput() GetMainVersionsMainVersionArrayOutput
	ToGetMainVersionsMainVersionArrayOutputWithContext(context.Context) GetMainVersionsMainVersionArrayOutput
}

GetMainVersionsMainVersionArrayInput is an input type that accepts GetMainVersionsMainVersionArray and GetMainVersionsMainVersionArrayOutput values. You can construct a concrete instance of `GetMainVersionsMainVersionArrayInput` via:

GetMainVersionsMainVersionArray{ GetMainVersionsMainVersionArgs{...} }

type GetMainVersionsMainVersionArrayOutput

type GetMainVersionsMainVersionArrayOutput struct{ *pulumi.OutputState }

func (GetMainVersionsMainVersionArrayOutput) ElementType

func (GetMainVersionsMainVersionArrayOutput) Index

func (GetMainVersionsMainVersionArrayOutput) ToGetMainVersionsMainVersionArrayOutput

func (o GetMainVersionsMainVersionArrayOutput) ToGetMainVersionsMainVersionArrayOutput() GetMainVersionsMainVersionArrayOutput

func (GetMainVersionsMainVersionArrayOutput) ToGetMainVersionsMainVersionArrayOutputWithContext

func (o GetMainVersionsMainVersionArrayOutput) ToGetMainVersionsMainVersionArrayOutputWithContext(ctx context.Context) GetMainVersionsMainVersionArrayOutput

type GetMainVersionsMainVersionInput

type GetMainVersionsMainVersionInput interface {
	pulumi.Input

	ToGetMainVersionsMainVersionOutput() GetMainVersionsMainVersionOutput
	ToGetMainVersionsMainVersionOutputWithContext(context.Context) GetMainVersionsMainVersionOutput
}

GetMainVersionsMainVersionInput is an input type that accepts GetMainVersionsMainVersionArgs and GetMainVersionsMainVersionOutput values. You can construct a concrete instance of `GetMainVersionsMainVersionInput` via:

GetMainVersionsMainVersionArgs{...}

type GetMainVersionsMainVersionOutput

type GetMainVersionsMainVersionOutput struct{ *pulumi.OutputState }

func (GetMainVersionsMainVersionOutput) ClusterTypes

A list of cluster types the emr cluster supported. Possible values: `HADOOP`, `ZOOKEEPER`, `KAFKA`, `DRUID`.

func (GetMainVersionsMainVersionOutput) ElementType

func (GetMainVersionsMainVersionOutput) EmrVersion

The version of the emr cluster instance. Possible values: `EMR-4.0.0`, `EMR-3.23.0`, `EMR-3.22.0`.

func (GetMainVersionsMainVersionOutput) ImageId

The image id of the emr cluster instance.

func (GetMainVersionsMainVersionOutput) ToGetMainVersionsMainVersionOutput

func (o GetMainVersionsMainVersionOutput) ToGetMainVersionsMainVersionOutput() GetMainVersionsMainVersionOutput

func (GetMainVersionsMainVersionOutput) ToGetMainVersionsMainVersionOutputWithContext

func (o GetMainVersionsMainVersionOutput) ToGetMainVersionsMainVersionOutputWithContext(ctx context.Context) GetMainVersionsMainVersionOutput

type GetMainVersionsOutputArgs added in v3.9.0

type GetMainVersionsOutputArgs struct {
	// The supported clusterType of this emr version.
	// Possible values may be any one or combination of these: ["HADOOP", "DRUID", "KAFKA", "ZOOKEEPER", "FLINK", "CLICKHOUSE"]
	ClusterTypes pulumi.StringArrayInput `pulumi:"clusterTypes"`
	// The version of the emr cluster instance. Possible values: `EMR-4.0.0`, `EMR-3.23.0`, `EMR-3.22.0`.
	EmrVersion pulumi.StringPtrInput `pulumi:"emrVersion"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getMainVersions.

func (GetMainVersionsOutputArgs) ElementType added in v3.9.0

func (GetMainVersionsOutputArgs) ElementType() reflect.Type

type GetMainVersionsResult

type GetMainVersionsResult struct {
	ClusterTypes []string `pulumi:"clusterTypes"`
	// The version of the emr cluster instance.
	EmrVersion *string `pulumi:"emrVersion"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of emr instance types IDs.
	Ids []string `pulumi:"ids"`
	// A list of versions of the emr cluster instance. Each element contains the following attributes:
	MainVersions []GetMainVersionsMainVersion `pulumi:"mainVersions"`
	OutputFile   *string                      `pulumi:"outputFile"`
}

A collection of values returned by getMainVersions.

func GetMainVersions

func GetMainVersions(ctx *pulumi.Context, args *GetMainVersionsArgs, opts ...pulumi.InvokeOption) (*GetMainVersionsResult, error)

The `emr.getMainVersions` data source provides a collection of emr main versions available in Alibaba Cloud account when create a emr cluster.

> **NOTE:** Available in 1.59.0+

## Example Usage

```go 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.GetMainVersions(ctx, &emr.GetMainVersionsArgs{
			EmrVersion: pulumi.StringRef("EMR-3.22.0"),
			ClusterTypes: []string{
				"HADOOP",
				"ZOOKEEPER",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstMainVersion", _default.MainVersions[0].EmrVersion)
		ctx.Export("thisClusterTypes", _default.MainVersions[0].ClusterTypes)
		return nil
	})
}

```

type GetMainVersionsResultOutput added in v3.9.0

type GetMainVersionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getMainVersions.

func GetMainVersionsOutput added in v3.9.0

func (GetMainVersionsResultOutput) ClusterTypes added in v3.9.0

func (GetMainVersionsResultOutput) ElementType added in v3.9.0

func (GetMainVersionsResultOutput) EmrVersion added in v3.9.0

The version of the emr cluster instance.

func (GetMainVersionsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetMainVersionsResultOutput) Ids added in v3.9.0

A list of emr instance types IDs.

func (GetMainVersionsResultOutput) MainVersions added in v3.9.0

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

func (GetMainVersionsResultOutput) OutputFile added in v3.9.0

func (GetMainVersionsResultOutput) ToGetMainVersionsResultOutput added in v3.9.0

func (o GetMainVersionsResultOutput) ToGetMainVersionsResultOutput() GetMainVersionsResultOutput

func (GetMainVersionsResultOutput) ToGetMainVersionsResultOutputWithContext added in v3.9.0

func (o GetMainVersionsResultOutput) ToGetMainVersionsResultOutputWithContext(ctx context.Context) GetMainVersionsResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL