alicloud.emrv2.Cluster
Explore with Pulumi AI
Provides a EMR cluster resource. This resource is based on EMR’s new version OpenAPI.
For information about EMR New and how to use it, see Add a domain.
NOTE: Available since v1.199.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultGetKeys = alicloud.kms.getKeys({
status: "Enabled",
});
const defaultGetZones = alicloud.getZones({
availableInstanceType: "ecs.g7.xlarge",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.16.0.0/12",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/21",
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultInteger = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const defaultEcsKeyPair = new alicloud.ecs.EcsKeyPair("default", {keyPairName: `${name}-${defaultInteger.result}`});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultRole = new alicloud.ram.Role("default", {
name: name,
document: ` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`,
description: "this is a role example.",
force: true,
});
const defaultCluster = new alicloud.emrv2.Cluster("default", {
nodeGroups: [
{
vswitchIds: [defaultSwitch.id],
instanceTypes: ["ecs.g7.xlarge"],
nodeCount: 1,
spotInstanceRemedy: false,
dataDisks: [{
count: 3,
category: "cloud_essd",
size: 80,
performanceLevel: "PL0",
}],
nodeGroupName: "emr-master",
paymentType: "PayAsYouGo",
withPublicIp: false,
gracefulShutdown: false,
systemDisk: {
category: "cloud_essd",
size: 80,
performanceLevel: "PL0",
count: 1,
},
nodeGroupType: "MASTER",
},
{
spotInstanceRemedy: false,
nodeGroupType: "CORE",
vswitchIds: [defaultSwitch.id],
nodeCount: 2,
gracefulShutdown: false,
systemDisk: {
performanceLevel: "PL0",
count: 1,
category: "cloud_essd",
size: 80,
},
dataDisks: [{
count: 3,
performanceLevel: "PL0",
category: "cloud_essd",
size: 80,
}],
nodeGroupName: "emr-core",
paymentType: "PayAsYouGo",
instanceTypes: ["ecs.g7.xlarge"],
withPublicIp: false,
},
],
deployMode: "NORMAL",
tags: {
Created: "TF",
For: "example",
},
releaseVersion: "EMR-5.10.0",
applications: [
"HADOOP-COMMON",
"HDFS",
"YARN",
],
nodeAttributes: [{
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
keyPairName: defaultEcsKeyPair.id,
dataDiskEncrypted: true,
dataDiskKmsKeyId: defaultGetKeys.then(defaultGetKeys => defaultGetKeys.ids?.[0]),
vpcId: defaultNetwork.id,
ramRole: defaultRole.name,
securityGroupId: defaultSecurityGroup.id,
}],
resourceGroupId: _default.then(_default => _default.ids?.[0]),
clusterName: name,
paymentType: "PayAsYouGo",
clusterType: "DATAFLOW",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.resourcemanager.get_resource_groups(status="OK")
default_get_keys = alicloud.kms.get_keys(status="Enabled")
default_get_zones = alicloud.get_zones(available_instance_type="ecs.g7.xlarge")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.16.0.0/12")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/21",
zone_id=default_get_zones.zones[0].id,
vswitch_name=name)
default_integer = random.index.Integer("default",
max=99999,
min=10000)
default_ecs_key_pair = alicloud.ecs.EcsKeyPair("default", key_pair_name=f"{name}-{default_integer['result']}")
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_role = alicloud.ram.Role("default",
name=name,
document=""" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""",
description="this is a role example.",
force=True)
default_cluster = alicloud.emrv2.Cluster("default",
node_groups=[
{
"vswitch_ids": [default_switch.id],
"instance_types": ["ecs.g7.xlarge"],
"node_count": 1,
"spot_instance_remedy": False,
"data_disks": [{
"count": 3,
"category": "cloud_essd",
"size": 80,
"performance_level": "PL0",
}],
"node_group_name": "emr-master",
"payment_type": "PayAsYouGo",
"with_public_ip": False,
"graceful_shutdown": False,
"system_disk": {
"category": "cloud_essd",
"size": 80,
"performance_level": "PL0",
"count": 1,
},
"node_group_type": "MASTER",
},
{
"spot_instance_remedy": False,
"node_group_type": "CORE",
"vswitch_ids": [default_switch.id],
"node_count": 2,
"graceful_shutdown": False,
"system_disk": {
"performance_level": "PL0",
"count": 1,
"category": "cloud_essd",
"size": 80,
},
"data_disks": [{
"count": 3,
"performance_level": "PL0",
"category": "cloud_essd",
"size": 80,
}],
"node_group_name": "emr-core",
"payment_type": "PayAsYouGo",
"instance_types": ["ecs.g7.xlarge"],
"with_public_ip": False,
},
],
deploy_mode="NORMAL",
tags={
"Created": "TF",
"For": "example",
},
release_version="EMR-5.10.0",
applications=[
"HADOOP-COMMON",
"HDFS",
"YARN",
],
node_attributes=[{
"zone_id": default_get_zones.zones[0].id,
"key_pair_name": default_ecs_key_pair.id,
"data_disk_encrypted": True,
"data_disk_kms_key_id": default_get_keys.ids[0],
"vpc_id": default_network.id,
"ram_role": default_role.name,
"security_group_id": default_security_group.id,
}],
resource_group_id=default.ids[0],
cluster_name=name,
payment_type="PayAsYouGo",
cluster_type="DATAFLOW")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emrv2"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
"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-random/sdk/v4/go/random"
"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-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultGetKeys, err := kms.GetKeys(ctx, &kms.GetKeysArgs{
Status: pulumi.StringRef("Enabled"),
}, nil)
if err != nil {
return err
}
defaultGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableInstanceType: pulumi.StringRef("ecs.g7.xlarge"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/21"),
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
defaultEcsKeyPair, err := ecs.NewEcsKeyPair(ctx, "default", &ecs.EcsKeyPairArgs{
KeyPairName: pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
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 example."),
Force: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = emrv2.NewCluster(ctx, "default", &emrv2.ClusterArgs{
NodeGroups: emrv2.ClusterNodeGroupArray{
&emrv2.ClusterNodeGroupArgs{
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
NodeCount: pulumi.Int(1),
SpotInstanceRemedy: pulumi.Bool(false),
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Count: pulumi.Int(3),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
PerformanceLevel: pulumi.String("PL0"),
},
},
NodeGroupName: pulumi.String("emr-master"),
PaymentType: pulumi.String("PayAsYouGo"),
WithPublicIp: pulumi.Bool(false),
GracefulShutdown: pulumi.Bool(false),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
PerformanceLevel: pulumi.String("PL0"),
Count: pulumi.Int(1),
},
NodeGroupType: pulumi.String("MASTER"),
},
&emrv2.ClusterNodeGroupArgs{
SpotInstanceRemedy: pulumi.Bool(false),
NodeGroupType: pulumi.String("CORE"),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
NodeCount: pulumi.Int(2),
GracefulShutdown: pulumi.Bool(false),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
PerformanceLevel: pulumi.String("PL0"),
Count: pulumi.Int(1),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
},
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Count: pulumi.Int(3),
PerformanceLevel: pulumi.String("PL0"),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
},
},
NodeGroupName: pulumi.String("emr-core"),
PaymentType: pulumi.String("PayAsYouGo"),
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
WithPublicIp: pulumi.Bool(false),
},
},
DeployMode: pulumi.String("NORMAL"),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("example"),
},
ReleaseVersion: pulumi.String("EMR-5.10.0"),
Applications: pulumi.StringArray{
pulumi.String("HADOOP-COMMON"),
pulumi.String("HDFS"),
pulumi.String("YARN"),
},
NodeAttributes: emrv2.ClusterNodeAttributeArray{
&emrv2.ClusterNodeAttributeArgs{
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
KeyPairName: defaultEcsKeyPair.ID(),
DataDiskEncrypted: pulumi.Bool(true),
DataDiskKmsKeyId: pulumi.String(defaultGetKeys.Ids[0]),
VpcId: defaultNetwork.ID(),
RamRole: defaultRole.Name,
SecurityGroupId: defaultSecurityGroup.ID(),
},
},
ResourceGroupId: pulumi.String(_default.Ids[0]),
ClusterName: pulumi.String(name),
PaymentType: pulumi.String("PayAsYouGo"),
ClusterType: pulumi.String("DATAFLOW"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultGetKeys = AliCloud.Kms.GetKeys.Invoke(new()
{
Status = "Enabled",
});
var defaultGetZones = AliCloud.GetZones.Invoke(new()
{
AvailableInstanceType = "ecs.g7.xlarge",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/12",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/21",
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultInteger = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var defaultEcsKeyPair = new AliCloud.Ecs.EcsKeyPair("default", new()
{
KeyPairName = $"{name}-{defaultInteger.Result}",
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultRole = new AliCloud.Ram.Role("default", new()
{
Name = name,
Document = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": [
""emr.aliyuncs.com"",
""ecs.aliyuncs.com""
]
}
}
],
""Version"": ""1""
}
",
Description = "this is a role example.",
Force = true,
});
var defaultCluster = new AliCloud.Emrv2.Cluster("default", new()
{
NodeGroups = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
VswitchIds = new[]
{
defaultSwitch.Id,
},
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
NodeCount = 1,
SpotInstanceRemedy = false,
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Count = 3,
Category = "cloud_essd",
Size = 80,
PerformanceLevel = "PL0",
},
},
NodeGroupName = "emr-master",
PaymentType = "PayAsYouGo",
WithPublicIp = false,
GracefulShutdown = false,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "cloud_essd",
Size = 80,
PerformanceLevel = "PL0",
Count = 1,
},
NodeGroupType = "MASTER",
},
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
SpotInstanceRemedy = false,
NodeGroupType = "CORE",
VswitchIds = new[]
{
defaultSwitch.Id,
},
NodeCount = 2,
GracefulShutdown = false,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
PerformanceLevel = "PL0",
Count = 1,
Category = "cloud_essd",
Size = 80,
},
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Count = 3,
PerformanceLevel = "PL0",
Category = "cloud_essd",
Size = 80,
},
},
NodeGroupName = "emr-core",
PaymentType = "PayAsYouGo",
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
WithPublicIp = false,
},
},
DeployMode = "NORMAL",
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
ReleaseVersion = "EMR-5.10.0",
Applications = new[]
{
"HADOOP-COMMON",
"HDFS",
"YARN",
},
NodeAttributes = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeAttributeArgs
{
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
KeyPairName = defaultEcsKeyPair.Id,
DataDiskEncrypted = true,
DataDiskKmsKeyId = defaultGetKeys.Apply(getKeysResult => getKeysResult.Ids[0]),
VpcId = defaultNetwork.Id,
RamRole = defaultRole.Name,
SecurityGroupId = defaultSecurityGroup.Id,
},
},
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
ClusterName = name,
PaymentType = "PayAsYouGo",
ClusterType = "DATAFLOW",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.kms.KmsFunctions;
import com.pulumi.alicloud.kms.inputs.GetKeysArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.ecs.EcsKeyPair;
import com.pulumi.alicloud.ecs.EcsKeyPairArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ram.Role;
import com.pulumi.alicloud.ram.RoleArgs;
import com.pulumi.alicloud.emrv2.Cluster;
import com.pulumi.alicloud.emrv2.ClusterArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupSystemDiskArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeAttributeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultGetKeys = KmsFunctions.getKeys(GetKeysArgs.builder()
.status("Enabled")
.build());
final var defaultGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableInstanceType("ecs.g7.xlarge")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/12")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/21")
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var defaultEcsKeyPair = new EcsKeyPair("defaultEcsKeyPair", EcsKeyPairArgs.builder()
.keyPairName(String.format("%s-%s", name,defaultInteger.result()))
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var defaultRole = new Role("defaultRole", RoleArgs.builder()
.name(name)
.document("""
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""")
.description("this is a role example.")
.force(true)
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.nodeGroups(
ClusterNodeGroupArgs.builder()
.vswitchIds(defaultSwitch.id())
.instanceTypes("ecs.g7.xlarge")
.nodeCount("1")
.spotInstanceRemedy("false")
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.count("3")
.category("cloud_essd")
.size("80")
.performanceLevel("PL0")
.build())
.nodeGroupName("emr-master")
.paymentType("PayAsYouGo")
.withPublicIp("false")
.gracefulShutdown("false")
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("cloud_essd")
.size("80")
.performanceLevel("PL0")
.count("1")
.build())
.nodeGroupType("MASTER")
.build(),
ClusterNodeGroupArgs.builder()
.spotInstanceRemedy("false")
.nodeGroupType("CORE")
.vswitchIds(defaultSwitch.id())
.nodeCount("2")
.gracefulShutdown("false")
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.performanceLevel("PL0")
.count("1")
.category("cloud_essd")
.size("80")
.build())
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.count("3")
.performanceLevel("PL0")
.category("cloud_essd")
.size("80")
.build())
.nodeGroupName("emr-core")
.paymentType("PayAsYouGo")
.instanceTypes("ecs.g7.xlarge")
.withPublicIp("false")
.build())
.deployMode("NORMAL")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.releaseVersion("EMR-5.10.0")
.applications(
"HADOOP-COMMON",
"HDFS",
"YARN")
.nodeAttributes(ClusterNodeAttributeArgs.builder()
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.keyPairName(defaultEcsKeyPair.id())
.dataDiskEncrypted("true")
.dataDiskKmsKeyId(defaultGetKeys.applyValue(getKeysResult -> getKeysResult.ids()[0]))
.vpcId(defaultNetwork.id())
.ramRole(defaultRole.name())
.securityGroupId(defaultSecurityGroup.id())
.build())
.resourceGroupId(default_.ids()[0])
.clusterName(name)
.paymentType("PayAsYouGo")
.clusterType("DATAFLOW")
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/12
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/21
zoneId: ${defaultGetZones.zones[0].id}
vswitchName: ${name}
defaultInteger:
type: random:integer
name: default
properties:
max: 99999
min: 10000
defaultEcsKeyPair:
type: alicloud:ecs:EcsKeyPair
name: default
properties:
keyPairName: ${name}-${defaultInteger.result}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultNetwork.id}
defaultRole:
type: alicloud:ram:Role
name: default
properties:
name: ${name}
document: |2
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
description: this is a role example.
force: true
defaultCluster:
type: alicloud:emrv2:Cluster
name: default
properties:
nodeGroups:
- vswitchIds:
- ${defaultSwitch.id}
instanceTypes:
- ecs.g7.xlarge
nodeCount: '1'
spotInstanceRemedy: 'false'
dataDisks:
- count: '3'
category: cloud_essd
size: '80'
performanceLevel: PL0
nodeGroupName: emr-master
paymentType: PayAsYouGo
withPublicIp: 'false'
gracefulShutdown: 'false'
systemDisk:
category: cloud_essd
size: '80'
performanceLevel: PL0
count: '1'
nodeGroupType: MASTER
- spotInstanceRemedy: 'false'
nodeGroupType: CORE
vswitchIds:
- ${defaultSwitch.id}
nodeCount: '2'
gracefulShutdown: 'false'
systemDisk:
performanceLevel: PL0
count: '1'
category: cloud_essd
size: '80'
dataDisks:
- count: '3'
performanceLevel: PL0
category: cloud_essd
size: '80'
nodeGroupName: emr-core
paymentType: PayAsYouGo
instanceTypes:
- ecs.g7.xlarge
withPublicIp: 'false'
deployMode: NORMAL
tags:
Created: TF
For: example
releaseVersion: EMR-5.10.0
applications:
- HADOOP-COMMON
- HDFS
- YARN
nodeAttributes:
- zoneId: ${defaultGetZones.zones[0].id}
keyPairName: ${defaultEcsKeyPair.id}
dataDiskEncrypted: 'true'
dataDiskKmsKeyId: ${defaultGetKeys.ids[0]}
vpcId: ${defaultNetwork.id}
ramRole: ${defaultRole.name}
securityGroupId: ${defaultSecurityGroup.id}
resourceGroupId: ${default.ids[0]}
clusterName: ${name}
paymentType: PayAsYouGo
clusterType: DATAFLOW
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
defaultGetKeys:
fn::invoke:
Function: alicloud:kms:getKeys
Arguments:
status: Enabled
defaultGetZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableInstanceType: ecs.g7.xlarge
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_attributes: Optional[Sequence[ClusterNodeAttributeArgs]] = None,
applications: Optional[Sequence[str]] = None,
release_version: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_type: Optional[str] = None,
node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
log_collect_strategy: Optional[str] = None,
application_configs: Optional[Sequence[ClusterApplicationConfigArgs]] = None,
deploy_mode: Optional[str] = None,
payment_type: Optional[str] = None,
bootstrap_scripts: Optional[Sequence[ClusterBootstrapScriptArgs]] = None,
resource_group_id: Optional[str] = None,
security_mode: Optional[str] = None,
subscription_config: Optional[ClusterSubscriptionConfigArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: alicloud:emrv2:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromEmrv2cluster = new AliCloud.Emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster", new()
{
NodeAttributes = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeAttributeArgs
{
KeyPairName = "string",
RamRole = "string",
SecurityGroupId = "string",
VpcId = "string",
ZoneId = "string",
DataDiskEncrypted = false,
DataDiskKmsKeyId = "string",
},
},
Applications = new[]
{
"string",
},
ReleaseVersion = "string",
ClusterName = "string",
ClusterType = "string",
NodeGroups = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
InstanceTypes = new[]
{
"string",
},
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "string",
Size = 0,
Count = 0,
PerformanceLevel = "string",
},
NodeGroupType = "string",
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Category = "string",
Size = 0,
Count = 0,
PerformanceLevel = "string",
},
},
NodeGroupName = "string",
NodeCount = 0,
DeploymentSetStrategy = "string",
GracefulShutdown = false,
AdditionalSecurityGroupIds = new[]
{
"string",
},
CostOptimizedConfig = new AliCloud.Emrv2.Inputs.ClusterNodeGroupCostOptimizedConfigArgs
{
OnDemandBaseCapacity = 0,
OnDemandPercentageAboveBaseCapacity = 0,
SpotInstancePools = 0,
},
NodeResizeStrategy = "string",
PaymentType = "string",
SpotBidPrices = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupSpotBidPriceArgs
{
BidPrice = 0,
InstanceType = "string",
},
},
SpotInstanceRemedy = false,
SubscriptionConfig = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSubscriptionConfigArgs
{
PaymentDuration = 0,
PaymentDurationUnit = "string",
AutoPayOrder = false,
AutoRenew = false,
AutoRenewDuration = 0,
AutoRenewDurationUnit = "string",
},
AutoScalingPolicy = new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyArgs
{
Constraints = new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyConstraintsArgs
{
MaxCapacity = 0,
MinCapacity = 0,
},
ScalingRules = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleArgs
{
ActivityType = "string",
AdjustmentValue = 0,
RuleName = "string",
TriggerType = "string",
AdjustmentType = "string",
MetricsTrigger = new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerArgs
{
EvaluationCount = 0,
TimeWindow = 0,
ConditionLogicOperator = "string",
Conditions = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
Statistics = "string",
Threshold = 0,
Tags = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArgs
{
Key = "string",
Value = "string",
},
},
},
},
CoolDownInterval = 0,
TimeConstraints = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArgs
{
EndTime = "string",
StartTime = "string",
},
},
},
MinAdjustmentValue = 0,
TimeTrigger = new AliCloud.Emrv2.Inputs.ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTriggerArgs
{
LaunchTime = "string",
EndTime = "string",
LaunchExpirationTime = 0,
RecurrenceType = "string",
RecurrenceValue = "string",
StartTime = "string",
},
},
},
},
VswitchIds = new[]
{
"string",
},
WithPublicIp = false,
},
},
LogCollectStrategy = "string",
ApplicationConfigs = new[]
{
new AliCloud.Emrv2.Inputs.ClusterApplicationConfigArgs
{
ApplicationName = "string",
ConfigFileName = "string",
ConfigItemKey = "string",
ConfigItemValue = "string",
ConfigDescription = "string",
ConfigScope = "string",
NodeGroupId = "string",
NodeGroupName = "string",
},
},
DeployMode = "string",
PaymentType = "string",
BootstrapScripts = new[]
{
new AliCloud.Emrv2.Inputs.ClusterBootstrapScriptArgs
{
ExecutionFailStrategy = "string",
ExecutionMoment = "string",
NodeSelector = new AliCloud.Emrv2.Inputs.ClusterBootstrapScriptNodeSelectorArgs
{
NodeSelectType = "string",
NodeGroupIds = new[]
{
"string",
},
NodeGroupNames = new[]
{
"string",
},
NodeGroupTypes = new[]
{
"string",
},
NodeNames = new[]
{
"string",
},
},
ScriptArgs = "string",
ScriptName = "string",
ScriptPath = "string",
},
},
ResourceGroupId = "string",
SecurityMode = "string",
SubscriptionConfig = new AliCloud.Emrv2.Inputs.ClusterSubscriptionConfigArgs
{
PaymentDuration = 0,
PaymentDurationUnit = "string",
AutoPayOrder = false,
AutoRenew = false,
AutoRenewDuration = 0,
AutoRenewDurationUnit = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := emrv2.NewCluster(ctx, "exampleclusterResourceResourceFromEmrv2cluster", &emrv2.ClusterArgs{
NodeAttributes: emrv2.ClusterNodeAttributeArray{
&emrv2.ClusterNodeAttributeArgs{
KeyPairName: pulumi.String("string"),
RamRole: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
VpcId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
DataDiskEncrypted: pulumi.Bool(false),
DataDiskKmsKeyId: pulumi.String("string"),
},
},
Applications: pulumi.StringArray{
pulumi.String("string"),
},
ReleaseVersion: pulumi.String("string"),
ClusterName: pulumi.String("string"),
ClusterType: pulumi.String("string"),
NodeGroups: emrv2.ClusterNodeGroupArray{
&emrv2.ClusterNodeGroupArgs{
InstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
Count: pulumi.Int(0),
PerformanceLevel: pulumi.String("string"),
},
NodeGroupType: pulumi.String("string"),
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
Count: pulumi.Int(0),
PerformanceLevel: pulumi.String("string"),
},
},
NodeGroupName: pulumi.String("string"),
NodeCount: pulumi.Int(0),
DeploymentSetStrategy: pulumi.String("string"),
GracefulShutdown: pulumi.Bool(false),
AdditionalSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
CostOptimizedConfig: &emrv2.ClusterNodeGroupCostOptimizedConfigArgs{
OnDemandBaseCapacity: pulumi.Int(0),
OnDemandPercentageAboveBaseCapacity: pulumi.Int(0),
SpotInstancePools: pulumi.Int(0),
},
NodeResizeStrategy: pulumi.String("string"),
PaymentType: pulumi.String("string"),
SpotBidPrices: emrv2.ClusterNodeGroupSpotBidPriceArray{
&emrv2.ClusterNodeGroupSpotBidPriceArgs{
BidPrice: pulumi.Int(0),
InstanceType: pulumi.String("string"),
},
},
SpotInstanceRemedy: pulumi.Bool(false),
SubscriptionConfig: &emrv2.ClusterNodeGroupSubscriptionConfigArgs{
PaymentDuration: pulumi.Int(0),
PaymentDurationUnit: pulumi.String("string"),
AutoPayOrder: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
AutoRenewDuration: pulumi.Int(0),
AutoRenewDurationUnit: pulumi.String("string"),
},
AutoScalingPolicy: &emrv2.ClusterNodeGroupAutoScalingPolicyArgs{
Constraints: &emrv2.ClusterNodeGroupAutoScalingPolicyConstraintsArgs{
MaxCapacity: pulumi.Int(0),
MinCapacity: pulumi.Int(0),
},
ScalingRules: emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleArray{
&emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleArgs{
ActivityType: pulumi.String("string"),
AdjustmentValue: pulumi.Int(0),
RuleName: pulumi.String("string"),
TriggerType: pulumi.String("string"),
AdjustmentType: pulumi.String("string"),
MetricsTrigger: &emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerArgs{
EvaluationCount: pulumi.Int(0),
TimeWindow: pulumi.Int(0),
ConditionLogicOperator: pulumi.String("string"),
Conditions: emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArray{
&emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArgs{
ComparisonOperator: pulumi.String("string"),
MetricName: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.Float64(0),
Tags: emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArray{
&emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
CoolDownInterval: pulumi.Int(0),
TimeConstraints: emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArray{
&emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArgs{
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
},
MinAdjustmentValue: pulumi.Int(0),
TimeTrigger: &emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTriggerArgs{
LaunchTime: pulumi.String("string"),
EndTime: pulumi.String("string"),
LaunchExpirationTime: pulumi.Int(0),
RecurrenceType: pulumi.String("string"),
RecurrenceValue: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
},
},
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
WithPublicIp: pulumi.Bool(false),
},
},
LogCollectStrategy: pulumi.String("string"),
ApplicationConfigs: emrv2.ClusterApplicationConfigArray{
&emrv2.ClusterApplicationConfigArgs{
ApplicationName: pulumi.String("string"),
ConfigFileName: pulumi.String("string"),
ConfigItemKey: pulumi.String("string"),
ConfigItemValue: pulumi.String("string"),
ConfigDescription: pulumi.String("string"),
ConfigScope: pulumi.String("string"),
NodeGroupId: pulumi.String("string"),
NodeGroupName: pulumi.String("string"),
},
},
DeployMode: pulumi.String("string"),
PaymentType: pulumi.String("string"),
BootstrapScripts: emrv2.ClusterBootstrapScriptArray{
&emrv2.ClusterBootstrapScriptArgs{
ExecutionFailStrategy: pulumi.String("string"),
ExecutionMoment: pulumi.String("string"),
NodeSelector: &emrv2.ClusterBootstrapScriptNodeSelectorArgs{
NodeSelectType: pulumi.String("string"),
NodeGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
NodeGroupNames: pulumi.StringArray{
pulumi.String("string"),
},
NodeGroupTypes: pulumi.StringArray{
pulumi.String("string"),
},
NodeNames: pulumi.StringArray{
pulumi.String("string"),
},
},
ScriptArgs: pulumi.String("string"),
ScriptName: pulumi.String("string"),
ScriptPath: pulumi.String("string"),
},
},
ResourceGroupId: pulumi.String("string"),
SecurityMode: pulumi.String("string"),
SubscriptionConfig: &emrv2.ClusterSubscriptionConfigArgs{
PaymentDuration: pulumi.Int(0),
PaymentDurationUnit: pulumi.String("string"),
AutoPayOrder: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
AutoRenewDuration: pulumi.Int(0),
AutoRenewDurationUnit: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleclusterResourceResourceFromEmrv2cluster = new Cluster("exampleclusterResourceResourceFromEmrv2cluster", ClusterArgs.builder()
.nodeAttributes(ClusterNodeAttributeArgs.builder()
.keyPairName("string")
.ramRole("string")
.securityGroupId("string")
.vpcId("string")
.zoneId("string")
.dataDiskEncrypted(false)
.dataDiskKmsKeyId("string")
.build())
.applications("string")
.releaseVersion("string")
.clusterName("string")
.clusterType("string")
.nodeGroups(ClusterNodeGroupArgs.builder()
.instanceTypes("string")
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("string")
.size(0)
.count(0)
.performanceLevel("string")
.build())
.nodeGroupType("string")
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.category("string")
.size(0)
.count(0)
.performanceLevel("string")
.build())
.nodeGroupName("string")
.nodeCount(0)
.deploymentSetStrategy("string")
.gracefulShutdown(false)
.additionalSecurityGroupIds("string")
.costOptimizedConfig(ClusterNodeGroupCostOptimizedConfigArgs.builder()
.onDemandBaseCapacity(0)
.onDemandPercentageAboveBaseCapacity(0)
.spotInstancePools(0)
.build())
.nodeResizeStrategy("string")
.paymentType("string")
.spotBidPrices(ClusterNodeGroupSpotBidPriceArgs.builder()
.bidPrice(0)
.instanceType("string")
.build())
.spotInstanceRemedy(false)
.subscriptionConfig(ClusterNodeGroupSubscriptionConfigArgs.builder()
.paymentDuration(0)
.paymentDurationUnit("string")
.autoPayOrder(false)
.autoRenew(false)
.autoRenewDuration(0)
.autoRenewDurationUnit("string")
.build())
.autoScalingPolicy(ClusterNodeGroupAutoScalingPolicyArgs.builder()
.constraints(ClusterNodeGroupAutoScalingPolicyConstraintsArgs.builder()
.maxCapacity(0)
.minCapacity(0)
.build())
.scalingRules(ClusterNodeGroupAutoScalingPolicyScalingRuleArgs.builder()
.activityType("string")
.adjustmentValue(0)
.ruleName("string")
.triggerType("string")
.adjustmentType("string")
.metricsTrigger(ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerArgs.builder()
.evaluationCount(0)
.timeWindow(0)
.conditionLogicOperator("string")
.conditions(ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArgs.builder()
.comparisonOperator("string")
.metricName("string")
.statistics("string")
.threshold(0)
.tags(ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArgs.builder()
.key("string")
.value("string")
.build())
.build())
.coolDownInterval(0)
.timeConstraints(ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArgs.builder()
.endTime("string")
.startTime("string")
.build())
.build())
.minAdjustmentValue(0)
.timeTrigger(ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTriggerArgs.builder()
.launchTime("string")
.endTime("string")
.launchExpirationTime(0)
.recurrenceType("string")
.recurrenceValue("string")
.startTime("string")
.build())
.build())
.build())
.vswitchIds("string")
.withPublicIp(false)
.build())
.logCollectStrategy("string")
.applicationConfigs(ClusterApplicationConfigArgs.builder()
.applicationName("string")
.configFileName("string")
.configItemKey("string")
.configItemValue("string")
.configDescription("string")
.configScope("string")
.nodeGroupId("string")
.nodeGroupName("string")
.build())
.deployMode("string")
.paymentType("string")
.bootstrapScripts(ClusterBootstrapScriptArgs.builder()
.executionFailStrategy("string")
.executionMoment("string")
.nodeSelector(ClusterBootstrapScriptNodeSelectorArgs.builder()
.nodeSelectType("string")
.nodeGroupIds("string")
.nodeGroupNames("string")
.nodeGroupTypes("string")
.nodeNames("string")
.build())
.scriptArgs("string")
.scriptName("string")
.scriptPath("string")
.build())
.resourceGroupId("string")
.securityMode("string")
.subscriptionConfig(ClusterSubscriptionConfigArgs.builder()
.paymentDuration(0)
.paymentDurationUnit("string")
.autoPayOrder(false)
.autoRenew(false)
.autoRenewDuration(0)
.autoRenewDurationUnit("string")
.build())
.tags(Map.of("string", "string"))
.build());
examplecluster_resource_resource_from_emrv2cluster = alicloud.emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster",
node_attributes=[alicloud.emrv2.ClusterNodeAttributeArgs(
key_pair_name="string",
ram_role="string",
security_group_id="string",
vpc_id="string",
zone_id="string",
data_disk_encrypted=False,
data_disk_kms_key_id="string",
)],
applications=["string"],
release_version="string",
cluster_name="string",
cluster_type="string",
node_groups=[alicloud.emrv2.ClusterNodeGroupArgs(
instance_types=["string"],
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
category="string",
size=0,
count=0,
performance_level="string",
),
node_group_type="string",
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
category="string",
size=0,
count=0,
performance_level="string",
)],
node_group_name="string",
node_count=0,
deployment_set_strategy="string",
graceful_shutdown=False,
additional_security_group_ids=["string"],
cost_optimized_config=alicloud.emrv2.ClusterNodeGroupCostOptimizedConfigArgs(
on_demand_base_capacity=0,
on_demand_percentage_above_base_capacity=0,
spot_instance_pools=0,
),
node_resize_strategy="string",
payment_type="string",
spot_bid_prices=[alicloud.emrv2.ClusterNodeGroupSpotBidPriceArgs(
bid_price=0,
instance_type="string",
)],
spot_instance_remedy=False,
subscription_config=alicloud.emrv2.ClusterNodeGroupSubscriptionConfigArgs(
payment_duration=0,
payment_duration_unit="string",
auto_pay_order=False,
auto_renew=False,
auto_renew_duration=0,
auto_renew_duration_unit="string",
),
auto_scaling_policy=alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyArgs(
constraints=alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyConstraintsArgs(
max_capacity=0,
min_capacity=0,
),
scaling_rules=[alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleArgs(
activity_type="string",
adjustment_value=0,
rule_name="string",
trigger_type="string",
adjustment_type="string",
metrics_trigger=alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerArgs(
evaluation_count=0,
time_window=0,
condition_logic_operator="string",
conditions=[alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArgs(
comparison_operator="string",
metric_name="string",
statistics="string",
threshold=0,
tags=[alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArgs(
key="string",
value="string",
)],
)],
cool_down_interval=0,
time_constraints=[alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArgs(
end_time="string",
start_time="string",
)],
),
min_adjustment_value=0,
time_trigger=alicloud.emrv2.ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTriggerArgs(
launch_time="string",
end_time="string",
launch_expiration_time=0,
recurrence_type="string",
recurrence_value="string",
start_time="string",
),
)],
),
vswitch_ids=["string"],
with_public_ip=False,
)],
log_collect_strategy="string",
application_configs=[alicloud.emrv2.ClusterApplicationConfigArgs(
application_name="string",
config_file_name="string",
config_item_key="string",
config_item_value="string",
config_description="string",
config_scope="string",
node_group_id="string",
node_group_name="string",
)],
deploy_mode="string",
payment_type="string",
bootstrap_scripts=[alicloud.emrv2.ClusterBootstrapScriptArgs(
execution_fail_strategy="string",
execution_moment="string",
node_selector=alicloud.emrv2.ClusterBootstrapScriptNodeSelectorArgs(
node_select_type="string",
node_group_ids=["string"],
node_group_names=["string"],
node_group_types=["string"],
node_names=["string"],
),
script_args="string",
script_name="string",
script_path="string",
)],
resource_group_id="string",
security_mode="string",
subscription_config=alicloud.emrv2.ClusterSubscriptionConfigArgs(
payment_duration=0,
payment_duration_unit="string",
auto_pay_order=False,
auto_renew=False,
auto_renew_duration=0,
auto_renew_duration_unit="string",
),
tags={
"string": "string",
})
const exampleclusterResourceResourceFromEmrv2cluster = new alicloud.emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster", {
nodeAttributes: [{
keyPairName: "string",
ramRole: "string",
securityGroupId: "string",
vpcId: "string",
zoneId: "string",
dataDiskEncrypted: false,
dataDiskKmsKeyId: "string",
}],
applications: ["string"],
releaseVersion: "string",
clusterName: "string",
clusterType: "string",
nodeGroups: [{
instanceTypes: ["string"],
systemDisk: {
category: "string",
size: 0,
count: 0,
performanceLevel: "string",
},
nodeGroupType: "string",
dataDisks: [{
category: "string",
size: 0,
count: 0,
performanceLevel: "string",
}],
nodeGroupName: "string",
nodeCount: 0,
deploymentSetStrategy: "string",
gracefulShutdown: false,
additionalSecurityGroupIds: ["string"],
costOptimizedConfig: {
onDemandBaseCapacity: 0,
onDemandPercentageAboveBaseCapacity: 0,
spotInstancePools: 0,
},
nodeResizeStrategy: "string",
paymentType: "string",
spotBidPrices: [{
bidPrice: 0,
instanceType: "string",
}],
spotInstanceRemedy: false,
subscriptionConfig: {
paymentDuration: 0,
paymentDurationUnit: "string",
autoPayOrder: false,
autoRenew: false,
autoRenewDuration: 0,
autoRenewDurationUnit: "string",
},
autoScalingPolicy: {
constraints: {
maxCapacity: 0,
minCapacity: 0,
},
scalingRules: [{
activityType: "string",
adjustmentValue: 0,
ruleName: "string",
triggerType: "string",
adjustmentType: "string",
metricsTrigger: {
evaluationCount: 0,
timeWindow: 0,
conditionLogicOperator: "string",
conditions: [{
comparisonOperator: "string",
metricName: "string",
statistics: "string",
threshold: 0,
tags: [{
key: "string",
value: "string",
}],
}],
coolDownInterval: 0,
timeConstraints: [{
endTime: "string",
startTime: "string",
}],
},
minAdjustmentValue: 0,
timeTrigger: {
launchTime: "string",
endTime: "string",
launchExpirationTime: 0,
recurrenceType: "string",
recurrenceValue: "string",
startTime: "string",
},
}],
},
vswitchIds: ["string"],
withPublicIp: false,
}],
logCollectStrategy: "string",
applicationConfigs: [{
applicationName: "string",
configFileName: "string",
configItemKey: "string",
configItemValue: "string",
configDescription: "string",
configScope: "string",
nodeGroupId: "string",
nodeGroupName: "string",
}],
deployMode: "string",
paymentType: "string",
bootstrapScripts: [{
executionFailStrategy: "string",
executionMoment: "string",
nodeSelector: {
nodeSelectType: "string",
nodeGroupIds: ["string"],
nodeGroupNames: ["string"],
nodeGroupTypes: ["string"],
nodeNames: ["string"],
},
scriptArgs: "string",
scriptName: "string",
scriptPath: "string",
}],
resourceGroupId: "string",
securityMode: "string",
subscriptionConfig: {
paymentDuration: 0,
paymentDurationUnit: "string",
autoPayOrder: false,
autoRenew: false,
autoRenewDuration: 0,
autoRenewDurationUnit: "string",
},
tags: {
string: "string",
},
});
type: alicloud:emrv2:Cluster
properties:
applicationConfigs:
- applicationName: string
configDescription: string
configFileName: string
configItemKey: string
configItemValue: string
configScope: string
nodeGroupId: string
nodeGroupName: string
applications:
- string
bootstrapScripts:
- executionFailStrategy: string
executionMoment: string
nodeSelector:
nodeGroupIds:
- string
nodeGroupNames:
- string
nodeGroupTypes:
- string
nodeNames:
- string
nodeSelectType: string
scriptArgs: string
scriptName: string
scriptPath: string
clusterName: string
clusterType: string
deployMode: string
logCollectStrategy: string
nodeAttributes:
- dataDiskEncrypted: false
dataDiskKmsKeyId: string
keyPairName: string
ramRole: string
securityGroupId: string
vpcId: string
zoneId: string
nodeGroups:
- additionalSecurityGroupIds:
- string
autoScalingPolicy:
constraints:
maxCapacity: 0
minCapacity: 0
scalingRules:
- activityType: string
adjustmentType: string
adjustmentValue: 0
metricsTrigger:
conditionLogicOperator: string
conditions:
- comparisonOperator: string
metricName: string
statistics: string
tags:
- key: string
value: string
threshold: 0
coolDownInterval: 0
evaluationCount: 0
timeConstraints:
- endTime: string
startTime: string
timeWindow: 0
minAdjustmentValue: 0
ruleName: string
timeTrigger:
endTime: string
launchExpirationTime: 0
launchTime: string
recurrenceType: string
recurrenceValue: string
startTime: string
triggerType: string
costOptimizedConfig:
onDemandBaseCapacity: 0
onDemandPercentageAboveBaseCapacity: 0
spotInstancePools: 0
dataDisks:
- category: string
count: 0
performanceLevel: string
size: 0
deploymentSetStrategy: string
gracefulShutdown: false
instanceTypes:
- string
nodeCount: 0
nodeGroupName: string
nodeGroupType: string
nodeResizeStrategy: string
paymentType: string
spotBidPrices:
- bidPrice: 0
instanceType: string
spotInstanceRemedy: false
subscriptionConfig:
autoPayOrder: false
autoRenew: false
autoRenewDuration: 0
autoRenewDurationUnit: string
paymentDuration: 0
paymentDurationUnit: string
systemDisk:
category: string
count: 0
performanceLevel: string
size: 0
vswitchIds:
- string
withPublicIp: false
paymentType: string
releaseVersion: string
resourceGroupId: string
securityMode: string
subscriptionConfig:
autoPayOrder: false
autoRenew: false
autoRenewDuration: 0
autoRenewDurationUnit: string
paymentDuration: 0
paymentDurationUnit: string
tags:
string: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Applications List<string>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Node
Attributes List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Application
Configs List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Application Config> - The application configurations of EMR cluster. See
application_configs
below. - Bootstrap
Scripts List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Applications []string
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Node
Attributes []ClusterNode Attribute Args - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups []ClusterNode Group Args - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Application
Configs []ClusterApplication Config Args - The application configurations of EMR cluster. See
application_configs
below. - Bootstrap
Scripts []ClusterBootstrap Script Args - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - map[string]string
- A mapping of tags to assign to the resource.
- applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes List<ClusterNode Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<ClusterNode Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs List<ClusterApplication Config> - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts List<ClusterBootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String,String>
- A mapping of tags to assign to the resource.
- applications string[]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes ClusterNode Attribute[] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups ClusterNode Group[] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs ClusterApplication Config[] - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts ClusterBootstrap Script[] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect stringStrategy - The log collect strategy of EMR cluster.
- payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- applications Sequence[str]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster_
name str - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster_
type str - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node_
attributes Sequence[ClusterNode Attribute Args] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node_
groups Sequence[ClusterNode Group Args] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - release_
version str - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application_
configs Sequence[ClusterApplication Config Args] - The application configurations of EMR cluster. See
application_configs
below. - bootstrap_
scripts Sequence[ClusterBootstrap Script Args] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy_
mode str - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log_
collect_ strstrategy - The log collect strategy of EMR cluster.
- payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - resource_
group_ strid - The Id of resource group which the emr-cluster belongs.
- security_
mode str - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription_
config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes List<Property Map> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<Property Map> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs List<Property Map> - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts List<Property Map> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_configs: Optional[Sequence[ClusterApplicationConfigArgs]] = None,
applications: Optional[Sequence[str]] = None,
bootstrap_scripts: Optional[Sequence[ClusterBootstrapScriptArgs]] = None,
cluster_name: Optional[str] = None,
cluster_type: Optional[str] = None,
deploy_mode: Optional[str] = None,
log_collect_strategy: Optional[str] = None,
node_attributes: Optional[Sequence[ClusterNodeAttributeArgs]] = None,
node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
payment_type: Optional[str] = None,
release_version: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_mode: Optional[str] = None,
subscription_config: Optional[ClusterSubscriptionConfigArgs] = None,
tags: Optional[Mapping[str, str]] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Configs List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Application Config> - The application configurations of EMR cluster. See
application_configs
below. - Applications List<string>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Bootstrap
Scripts List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Node
Attributes List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Application
Configs []ClusterApplication Config Args - The application configurations of EMR cluster. See
application_configs
below. - Applications []string
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Bootstrap
Scripts []ClusterBootstrap Script Args - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Node
Attributes []ClusterNode Attribute Args - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups []ClusterNode Group Args - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - map[string]string
- A mapping of tags to assign to the resource.
- application
Configs List<ClusterApplication Config> - The application configurations of EMR cluster. See
application_configs
below. - applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts List<ClusterBootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- node
Attributes List<ClusterNode Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<ClusterNode Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String,String>
- A mapping of tags to assign to the resource.
- application
Configs ClusterApplication Config[] - The application configurations of EMR cluster. See
application_configs
below. - applications string[]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts ClusterBootstrap Script[] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect stringStrategy - The log collect strategy of EMR cluster.
- node
Attributes ClusterNode Attribute[] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups ClusterNode Group[] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- application_
configs Sequence[ClusterApplication Config Args] - The application configurations of EMR cluster. See
application_configs
below. - applications Sequence[str]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap_
scripts Sequence[ClusterBootstrap Script Args] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster_
name str - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster_
type str - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy_
mode str - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log_
collect_ strstrategy - The log collect strategy of EMR cluster.
- node_
attributes Sequence[ClusterNode Attribute Args] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node_
groups Sequence[ClusterNode Group Args] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - release_
version str - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource_
group_ strid - The Id of resource group which the emr-cluster belongs.
- security_
mode str - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription_
config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- application
Configs List<Property Map> - The application configurations of EMR cluster. See
application_configs
below. - applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts List<Property Map> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- node
Attributes List<Property Map> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<Property Map> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. NOTE: Since version 1.227.0, the type ofnode_groups
changed from Set to List. - payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription. NOTE: From version 1.227.0,
payment_type
can be modified. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
ClusterApplicationConfig, ClusterApplicationConfigArgs
- Application
Name string - The application name of EMR cluster which has installed.
- Config
File stringName - The configuration file name of application installed.
- Config
Item stringKey - The configuration item key of application installed.
- Config
Item stringValue - The configuration item value of application installed.
- Config
Description string - The configuration description of application installed.
- Config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- Node
Group stringId - The configuration effected which node group id of emr cluster.
- Node
Group stringName - The configuration effected which node group name of emr cluster.
- Application
Name string - The application name of EMR cluster which has installed.
- Config
File stringName - The configuration file name of application installed.
- Config
Item stringKey - The configuration item key of application installed.
- Config
Item stringValue - The configuration item value of application installed.
- Config
Description string - The configuration description of application installed.
- Config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- Node
Group stringId - The configuration effected which node group id of emr cluster.
- Node
Group stringName - The configuration effected which node group name of emr cluster.
- application
Name String - The application name of EMR cluster which has installed.
- config
File StringName - The configuration file name of application installed.
- config
Item StringKey - The configuration item key of application installed.
- config
Item StringValue - The configuration item value of application installed.
- config
Description String - The configuration description of application installed.
- config
Scope String - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group StringId - The configuration effected which node group id of emr cluster.
- node
Group StringName - The configuration effected which node group name of emr cluster.
- application
Name string - The application name of EMR cluster which has installed.
- config
File stringName - The configuration file name of application installed.
- config
Item stringKey - The configuration item key of application installed.
- config
Item stringValue - The configuration item value of application installed.
- config
Description string - The configuration description of application installed.
- config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group stringId - The configuration effected which node group id of emr cluster.
- node
Group stringName - The configuration effected which node group name of emr cluster.
- application_
name str - The application name of EMR cluster which has installed.
- config_
file_ strname - The configuration file name of application installed.
- config_
item_ strkey - The configuration item key of application installed.
- config_
item_ strvalue - The configuration item value of application installed.
- config_
description str - The configuration description of application installed.
- config_
scope str - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node_
group_ strid - The configuration effected which node group id of emr cluster.
- node_
group_ strname - The configuration effected which node group name of emr cluster.
- application
Name String - The application name of EMR cluster which has installed.
- config
File StringName - The configuration file name of application installed.
- config
Item StringKey - The configuration item key of application installed.
- config
Item StringValue - The configuration item value of application installed.
- config
Description String - The configuration description of application installed.
- config
Scope String - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group StringId - The configuration effected which node group id of emr cluster.
- node
Group StringName - The configuration effected which node group name of emr cluster.
ClusterBootstrapScript, ClusterBootstrapScriptArgs
- Execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- Execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- Node
Selector Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - Script
Args string - The bootstrap script args, e.g. "--a=b".
- Script
Name string - The bootstrap script name.
- Script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- Priority int
- The bootstrap scripts priority.
- Execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- Execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- Node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - Script
Args string - The bootstrap script args, e.g. "--a=b".
- Script
Name string - The bootstrap script name.
- Script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- Priority int
- The bootstrap scripts priority.
- execution
Fail StringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment String - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script
Args String - The bootstrap script args, e.g. "--a=b".
- script
Name String - The bootstrap script name.
- script
Path String - The bootstrap script path, e.g. "oss://bucket/path".
- priority Integer
- The bootstrap scripts priority.
- execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script
Args string - The bootstrap script args, e.g. "--a=b".
- script
Name string - The bootstrap script name.
- script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- priority number
- The bootstrap scripts priority.
- execution_
fail_ strstrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution_
moment str - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node_
selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script_
args str - The bootstrap script args, e.g. "--a=b".
- script_
name str - The bootstrap script name.
- script_
path str - The bootstrap script path, e.g. "oss://bucket/path".
- priority int
- The bootstrap scripts priority.
- execution
Fail StringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment String - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector Property Map - The bootstrap scripts execution target. See
node_selector
below. - script
Args String - The bootstrap script args, e.g. "--a=b".
- script
Name String - The bootstrap script name.
- script
Path String - The bootstrap script path, e.g. "oss://bucket/path".
- priority Number
- The bootstrap scripts priority.
ClusterBootstrapScriptNodeSelector, ClusterBootstrapScriptNodeSelectorArgs
- Node
Select stringType - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- Node
Group stringId - Node
Group List<string>Ids - The bootstrap scripts execution target node group ids.
- Node
Group stringName - Node
Group List<string>Names - The bootstrap scripts execution target node group names.
- Node
Group List<string>Types - The bootstrap scripts execution target node group types.
- Node
Names List<string> - The bootstrap scripts execution target node names.
- Node
Select stringType - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- Node
Group stringId - Node
Group []stringIds - The bootstrap scripts execution target node group ids.
- Node
Group stringName - Node
Group []stringNames - The bootstrap scripts execution target node group names.
- Node
Group []stringTypes - The bootstrap scripts execution target node group types.
- Node
Names []string - The bootstrap scripts execution target node names.
- node
Select StringType - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- node
Group StringId - node
Group List<String>Ids - The bootstrap scripts execution target node group ids.
- node
Group StringName - node
Group List<String>Names - The bootstrap scripts execution target node group names.
- node
Group List<String>Types - The bootstrap scripts execution target node group types.
- node
Names List<String> - The bootstrap scripts execution target node names.
- node
Select stringType - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- node
Group stringId - node
Group string[]Ids - The bootstrap scripts execution target node group ids.
- node
Group stringName - node
Group string[]Names - The bootstrap scripts execution target node group names.
- node
Group string[]Types - The bootstrap scripts execution target node group types.
- node
Names string[] - The bootstrap scripts execution target node names.
- node_
select_ strtype - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- node_
group_ strid - node_
group_ Sequence[str]ids - The bootstrap scripts execution target node group ids.
- node_
group_ strname - node_
group_ Sequence[str]names - The bootstrap scripts execution target node group names.
- node_
group_ Sequence[str]types - The bootstrap scripts execution target node group types.
- node_
names Sequence[str] - The bootstrap scripts execution target node names.
- node
Select StringType - The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- node
Group StringId - node
Group List<String>Ids - The bootstrap scripts execution target node group ids.
- node
Group StringName - node
Group List<String>Names - The bootstrap scripts execution target node group names.
- node
Group List<String>Types - The bootstrap scripts execution target node group types.
- node
Names List<String> - The bootstrap scripts execution target node names.
ClusterNodeAttribute, ClusterNodeAttributeArgs
- Key
Pair stringName - The name of the key pair.
- Ram
Role string - 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.
- Security
Group stringId - Security Group ID for Cluster.
- Vpc
Id string - Used to retrieve instances belong to specified VPC.
- Zone
Id string - Zone ID, e.g. cn-hangzhou-i
- Data
Disk boolEncrypted - Whether to enable data disk encryption.
- Data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- Key
Pair stringName - The name of the key pair.
- Ram
Role string - 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.
- Security
Group stringId - Security Group ID for Cluster.
- Vpc
Id string - Used to retrieve instances belong to specified VPC.
- Zone
Id string - Zone ID, e.g. cn-hangzhou-i
- Data
Disk boolEncrypted - Whether to enable data disk encryption.
- Data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair StringName - The name of the key pair.
- ram
Role String - 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.
- security
Group StringId - Security Group ID for Cluster.
- vpc
Id String - Used to retrieve instances belong to specified VPC.
- zone
Id String - Zone ID, e.g. cn-hangzhou-i
- data
Disk BooleanEncrypted - Whether to enable data disk encryption.
- data
Disk StringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair stringName - The name of the key pair.
- ram
Role string - 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.
- security
Group stringId - Security Group ID for Cluster.
- vpc
Id string - Used to retrieve instances belong to specified VPC.
- zone
Id string - Zone ID, e.g. cn-hangzhou-i
- data
Disk booleanEncrypted - Whether to enable data disk encryption.
- data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key_
pair_ strname - The name of the key pair.
- ram_
role str - 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.
- security_
group_ strid - Security Group ID for Cluster.
- vpc_
id str - Used to retrieve instances belong to specified VPC.
- zone_
id str - Zone ID, e.g. cn-hangzhou-i
- data_
disk_ boolencrypted - Whether to enable data disk encryption.
- data_
disk_ strkms_ key_ id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair StringName - The name of the key pair.
- ram
Role String - 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.
- security
Group StringId - Security Group ID for Cluster.
- vpc
Id String - Used to retrieve instances belong to specified VPC.
- zone
Id String - Zone ID, e.g. cn-hangzhou-i
- data
Disk BooleanEncrypted - Whether to enable data disk encryption.
- data
Disk StringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
ClusterNodeGroup, ClusterNodeGroupArgs
- Data
Disks List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Data Disk> - Host Ecs data disks information in this node group. See
data_disks
below. - Instance
Types List<string> - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - Node
Count int - Host Ecs number in this node group.
- Node
Group stringName - The node group name of emr cluster.
- Node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- System
Disk Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - Additional
Security List<string>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - Auto
Scaling Pulumi.Policy Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - Cost
Optimized Pulumi.Config Ali Cloud. Emrv2. Inputs. Cluster Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - Deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - Graceful
Shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- Node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Spot
Bid List<Pulumi.Prices Ali Cloud. Emrv2. Inputs. Cluster Node Group Spot Bid Price> - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - Spot
Instance boolRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Vswitch
Ids List<string> - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - With
Public boolIp - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
- Data
Disks []ClusterNode Group Data Disk - Host Ecs data disks information in this node group. See
data_disks
below. - Instance
Types []string - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - Node
Count int - Host Ecs number in this node group.
- Node
Group stringName - The node group name of emr cluster.
- Node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- System
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - Additional
Security []stringGroup Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - Auto
Scaling ClusterPolicy Node Group Auto Scaling Policy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - Cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - Deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - Graceful
Shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- Node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Spot
Bid []ClusterPrices Node Group Spot Bid Price - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - Spot
Instance boolRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- Subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Vswitch
Ids []string - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - With
Public boolIp - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
- data
Disks List<ClusterNode Group Data Disk> - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types List<String> - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - node
Count Integer - Host Ecs number in this node group.
- node
Group StringName - The node group name of emr cluster.
- node
Group StringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security List<String>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - auto
Scaling ClusterPolicy Node Group Auto Scaling Policy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - deployment
Set StringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - graceful
Shutdown Boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize StringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid List<ClusterPrices Node Group Spot Bid Price> - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance BooleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids List<String> - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - with
Public BooleanIp - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
- data
Disks ClusterNode Group Data Disk[] - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types string[] - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - node
Count number - Host Ecs number in this node group.
- node
Group stringName - The node group name of emr cluster.
- node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security string[]Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - auto
Scaling ClusterPolicy Node Group Auto Scaling Policy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - graceful
Shutdown boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid ClusterPrices Node Group Spot Bid Price[] - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance booleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids string[] - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - with
Public booleanIp - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
- data_
disks Sequence[ClusterNode Group Data Disk] - Host Ecs data disks information in this node group. See
data_disks
below. - instance_
types Sequence[str] - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - node_
count int - Host Ecs number in this node group.
- node_
group_ strname - The node group name of emr cluster.
- node_
group_ strtype - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system_
disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional_
security_ Sequence[str]group_ ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - auto_
scaling_ Clusterpolicy Node Group Auto Scaling Policy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - cost_
optimized_ Clusterconfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - deployment_
set_ strstrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - graceful_
shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node_
resize_ strstrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot_
bid_ Sequence[Clusterprices Node Group Spot Bid Price] - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot_
instance_ boolremedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription_
config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch_
ids Sequence[str] - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - with_
public_ boolip - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
- data
Disks List<Property Map> - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types List<String> - Host Ecs instance types. NOTE: From version 1.230.1,
instance_types
can not be modified. - node
Count Number - Host Ecs number in this node group.
- node
Group StringName - The node group name of emr cluster.
- node
Group StringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk Property Map - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security List<String>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group. NOTE: From version 1.230.1,
additional_security_group_ids
can not be modified. - auto
Scaling Property MapPolicy - The node group auto scaling policy for emr cluster. See
auto_scaling_policy
below. - cost
Optimized Property MapConfig - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. NOTE: From version 1.230.1,cost_optimized_config
can not be modified. - deployment
Set StringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP. NOTE: From version 1.230.1,
deployment_set_strategy
can not be modified. - graceful
Shutdown Boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize StringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid List<Property Map>Prices - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance BooleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids List<String> - Global vSwitch ids, you can also specify it in node group. NOTE: From version 1.230.1,
vswitch_ids
can not be modified. - with
Public BooleanIp - Whether the node has a public IP address enabled. NOTE: From version 1.230.1,
with_public_ip
can not be modified.
ClusterNodeGroupAutoScalingPolicy, ClusterNodeGroupAutoScalingPolicyArgs
- Constraints
Pulumi.
Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Constraints - The constraints of auto scaling policy. See
constraints
below. - Scaling
Rules List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule> - The scaling rules of auto scaling policy. See
scaling_rules
below.
- Constraints
Cluster
Node Group Auto Scaling Policy Constraints - The constraints of auto scaling policy. See
constraints
below. - Scaling
Rules []ClusterNode Group Auto Scaling Policy Scaling Rule - The scaling rules of auto scaling policy. See
scaling_rules
below.
- constraints
Cluster
Node Group Auto Scaling Policy Constraints - The constraints of auto scaling policy. See
constraints
below. - scaling
Rules List<ClusterNode Group Auto Scaling Policy Scaling Rule> - The scaling rules of auto scaling policy. See
scaling_rules
below.
- constraints
Cluster
Node Group Auto Scaling Policy Constraints - The constraints of auto scaling policy. See
constraints
below. - scaling
Rules ClusterNode Group Auto Scaling Policy Scaling Rule[] - The scaling rules of auto scaling policy. See
scaling_rules
below.
- constraints
Cluster
Node Group Auto Scaling Policy Constraints - The constraints of auto scaling policy. See
constraints
below. - scaling_
rules Sequence[ClusterNode Group Auto Scaling Policy Scaling Rule] - The scaling rules of auto scaling policy. See
scaling_rules
below.
- constraints Property Map
- The constraints of auto scaling policy. See
constraints
below. - scaling
Rules List<Property Map> - The scaling rules of auto scaling policy. See
scaling_rules
below.
ClusterNodeGroupAutoScalingPolicyConstraints, ClusterNodeGroupAutoScalingPolicyConstraintsArgs
- Max
Capacity int - The maximum capacity of constraints for emr node group auto scaling policy.
- Min
Capacity int - The minimum capacity of constraints for emr node group auto scaling policy.
- Max
Capacity int - The maximum capacity of constraints for emr node group auto scaling policy.
- Min
Capacity int - The minimum capacity of constraints for emr node group auto scaling policy.
- max
Capacity Integer - The maximum capacity of constraints for emr node group auto scaling policy.
- min
Capacity Integer - The minimum capacity of constraints for emr node group auto scaling policy.
- max
Capacity number - The maximum capacity of constraints for emr node group auto scaling policy.
- min
Capacity number - The minimum capacity of constraints for emr node group auto scaling policy.
- max_
capacity int - The maximum capacity of constraints for emr node group auto scaling policy.
- min_
capacity int - The minimum capacity of constraints for emr node group auto scaling policy.
- max
Capacity Number - The maximum capacity of constraints for emr node group auto scaling policy.
- min
Capacity Number - The minimum capacity of constraints for emr node group auto scaling policy.
ClusterNodeGroupAutoScalingPolicyScalingRule, ClusterNodeGroupAutoScalingPolicyScalingRuleArgs
- Activity
Type string - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - Adjustment
Value int - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- Rule
Name string - The rule name of auto scaling policy.
- Trigger
Type string - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - Adjustment
Type string - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - Metrics
Trigger Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule Metrics Trigger - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - Min
Adjustment intValue - The minimum adjustment value of auto scaling policy.
- Time
Trigger Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule Time Trigger - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
- Activity
Type string - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - Adjustment
Value int - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- Rule
Name string - The rule name of auto scaling policy.
- Trigger
Type string - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - Adjustment
Type string - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - Metrics
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - Min
Adjustment intValue - The minimum adjustment value of auto scaling policy.
- Time
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Time Trigger - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
- activity
Type String - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - adjustment
Value Integer - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- rule
Name String - The rule name of auto scaling policy.
- trigger
Type String - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - adjustment
Type String - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - metrics
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - min
Adjustment IntegerValue - The minimum adjustment value of auto scaling policy.
- time
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Time Trigger - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
- activity
Type string - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - adjustment
Value number - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- rule
Name string - The rule name of auto scaling policy.
- trigger
Type string - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - adjustment
Type string - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - metrics
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - min
Adjustment numberValue - The minimum adjustment value of auto scaling policy.
- time
Trigger ClusterNode Group Auto Scaling Policy Scaling Rule Time Trigger - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
- activity_
type str - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - adjustment_
value int - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- rule_
name str - The rule name of auto scaling policy.
- trigger_
type str - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - adjustment_
type str - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - metrics_
trigger ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - min_
adjustment_ intvalue - The minimum adjustment value of auto scaling policy.
- time_
trigger ClusterNode Group Auto Scaling Policy Scaling Rule Time Trigger - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
- activity
Type String - The activity type of auto scaling policy. Valid values:
SCALE_OUT
andSCALE_IN
. - adjustment
Value Number - The adjustment value of auto scaling policy. The value should between 1 and 5000.
- rule
Name String - The rule name of auto scaling policy.
- trigger
Type String - The trigger type of auto scaling policy. Valid values:
TIME_TRIGGER
andMETRICS_TRIGGER
. - adjustment
Type String - The adjustment type of auto scaling policy. Valid values:
CHANGE_IN_CAPACITY
andEXACT_CAPACITY
. - metrics
Trigger Property Map - The trigger metrics of scaling rules for emr node group auto scaling policy. See
metrics_trigger
below. - min
Adjustment NumberValue - The minimum adjustment value of auto scaling policy.
- time
Trigger Property Map - The trigger time of scaling rules for emr node group auto scaling policy. See
time_trigger
below.
ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTrigger, ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerArgs
- Evaluation
Count int - The evaluation count for this scaling rule specific metrics trigger.
- Time
Window int - The time window for this scaling rule specific metrics trigger.
- Condition
Logic stringOperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - Conditions
List<Pulumi.
Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition> - The conditions for this scaling rule specific metrics trigger. See
conditions
below. - Cool
Down intInterval - The time of cool down interval for this scaling rule specific metrics trigger.
- Time
Constraints List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Time Constraint> - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
- Evaluation
Count int - The evaluation count for this scaling rule specific metrics trigger.
- Time
Window int - The time window for this scaling rule specific metrics trigger.
- Condition
Logic stringOperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - Conditions
[]Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition - The conditions for this scaling rule specific metrics trigger. See
conditions
below. - Cool
Down intInterval - The time of cool down interval for this scaling rule specific metrics trigger.
- Time
Constraints []ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger Time Constraint - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
- evaluation
Count Integer - The evaluation count for this scaling rule specific metrics trigger.
- time
Window Integer - The time window for this scaling rule specific metrics trigger.
- condition
Logic StringOperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - conditions
List<Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition> - The conditions for this scaling rule specific metrics trigger. See
conditions
below. - cool
Down IntegerInterval - The time of cool down interval for this scaling rule specific metrics trigger.
- time
Constraints List<ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger Time Constraint> - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
- evaluation
Count number - The evaluation count for this scaling rule specific metrics trigger.
- time
Window number - The time window for this scaling rule specific metrics trigger.
- condition
Logic stringOperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - conditions
Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition[] - The conditions for this scaling rule specific metrics trigger. See
conditions
below. - cool
Down numberInterval - The time of cool down interval for this scaling rule specific metrics trigger.
- time
Constraints ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger Time Constraint[] - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
- evaluation_
count int - The evaluation count for this scaling rule specific metrics trigger.
- time_
window int - The time window for this scaling rule specific metrics trigger.
- condition_
logic_ stroperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - conditions
Sequence[Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition] - The conditions for this scaling rule specific metrics trigger. See
conditions
below. - cool_
down_ intinterval - The time of cool down interval for this scaling rule specific metrics trigger.
- time_
constraints Sequence[ClusterNode Group Auto Scaling Policy Scaling Rule Metrics Trigger Time Constraint] - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
- evaluation
Count Number - The evaluation count for this scaling rule specific metrics trigger.
- time
Window Number - The time window for this scaling rule specific metrics trigger.
- condition
Logic StringOperator - The condition logic operator for this scaling rule specific metrics trigger. Valid values:
And
andOr
. - conditions List<Property Map>
- The conditions for this scaling rule specific metrics trigger. See
conditions
below. - cool
Down NumberInterval - The time of cool down interval for this scaling rule specific metrics trigger.
- time
Constraints List<Property Map> - The time constraints for this scaling rule specific metrics trigger. See
time_constraints
below.
ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerCondition, ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionArgs
- Comparison
Operator string - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - Metric
Name string - The metric name for this scaling rule specific metrics trigger.
- Statistics string
- The statistics for this scaling rule specific metrics trigger.
- Threshold double
- The threshold for this scaling rule specific metrics trigger.
- List<Pulumi.
Ali Cloud. Emrv2. Inputs. Cluster Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition Tag> - A mapping of tags to assign to the resource.
- Comparison
Operator string - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - Metric
Name string - The metric name for this scaling rule specific metrics trigger.
- Statistics string
- The statistics for this scaling rule specific metrics trigger.
- Threshold float64
- The threshold for this scaling rule specific metrics trigger.
- []Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition Tag - A mapping of tags to assign to the resource.
- comparison
Operator String - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - metric
Name String - The metric name for this scaling rule specific metrics trigger.
- statistics String
- The statistics for this scaling rule specific metrics trigger.
- threshold Double
- The threshold for this scaling rule specific metrics trigger.
- List<Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition Tag> - A mapping of tags to assign to the resource.
- comparison
Operator string - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - metric
Name string - The metric name for this scaling rule specific metrics trigger.
- statistics string
- The statistics for this scaling rule specific metrics trigger.
- threshold number
- The threshold for this scaling rule specific metrics trigger.
- Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition Tag[] - A mapping of tags to assign to the resource.
- comparison_
operator str - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - metric_
name str - The metric name for this scaling rule specific metrics trigger.
- statistics str
- The statistics for this scaling rule specific metrics trigger.
- threshold float
- The threshold for this scaling rule specific metrics trigger.
- Sequence[Cluster
Node Group Auto Scaling Policy Scaling Rule Metrics Trigger Condition Tag] - A mapping of tags to assign to the resource.
- comparison
Operator String - The comparison operator for this scaling rule specific metrics trigger. Invalid values:
EQ
,NE
,GT
,LT
,GE
,LE
. - metric
Name String - The metric name for this scaling rule specific metrics trigger.
- statistics String
- The statistics for this scaling rule specific metrics trigger.
- threshold Number
- The threshold for this scaling rule specific metrics trigger.
- List<Property Map>
- A mapping of tags to assign to the resource.
ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTag, ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerConditionTagArgs
ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraint, ClusterNodeGroupAutoScalingPolicyScalingRuleMetricsTriggerTimeConstraintArgs
- end_
time str - The end time for this scaling rule specific metrics trigger.
- start_
time str - The start time for this scaling rule specific metrics trigger.
ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTrigger, ClusterNodeGroupAutoScalingPolicyScalingRuleTimeTriggerArgs
- Launch
Time string - The launch time for this scaling rule specific time trigger.
- End
Time string - The end time for this scaling rule specific metrics trigger.
- Launch
Expiration intTime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- Recurrence
Type string - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - Recurrence
Value string - The recurrence value for this scaling rule specific time trigger.
- Start
Time string - The start time for this scaling rule specific metrics trigger.
- Launch
Time string - The launch time for this scaling rule specific time trigger.
- End
Time string - The end time for this scaling rule specific metrics trigger.
- Launch
Expiration intTime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- Recurrence
Type string - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - Recurrence
Value string - The recurrence value for this scaling rule specific time trigger.
- Start
Time string - The start time for this scaling rule specific metrics trigger.
- launch
Time String - The launch time for this scaling rule specific time trigger.
- end
Time String - The end time for this scaling rule specific metrics trigger.
- launch
Expiration IntegerTime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- recurrence
Type String - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - recurrence
Value String - The recurrence value for this scaling rule specific time trigger.
- start
Time String - The start time for this scaling rule specific metrics trigger.
- launch
Time string - The launch time for this scaling rule specific time trigger.
- end
Time string - The end time for this scaling rule specific metrics trigger.
- launch
Expiration numberTime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- recurrence
Type string - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - recurrence
Value string - The recurrence value for this scaling rule specific time trigger.
- start
Time string - The start time for this scaling rule specific metrics trigger.
- launch_
time str - The launch time for this scaling rule specific time trigger.
- end_
time str - The end time for this scaling rule specific metrics trigger.
- launch_
expiration_ inttime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- recurrence_
type str - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - recurrence_
value str - The recurrence value for this scaling rule specific time trigger.
- start_
time str - The start time for this scaling rule specific metrics trigger.
- launch
Time String - The launch time for this scaling rule specific time trigger.
- end
Time String - The end time for this scaling rule specific metrics trigger.
- launch
Expiration NumberTime - The launch expiration time for this scaling rule specific time trigger. The value should between 0 and 3600.
- recurrence
Type String - The recurrence type for this scaling rule specific time trigger. Valid values:
MINUTELY
,HOURLY
,DAILY
,WEEKLY
,MONTHLY
. - recurrence
Value String - The recurrence value for this scaling rule specific time trigger.
- start
Time String - The start time for this scaling rule specific metrics trigger.
ClusterNodeGroupCostOptimizedConfig, ClusterNodeGroupCostOptimizedConfigArgs
- On
Demand intBase Capacity - The cost optimized configuration which on demand based capacity.
- On
Demand intPercentage Above Base Capacity - The cost optimized configuration which on demand percentage above based capacity.
- Spot
Instance intPools - The cost optimized configuration with spot instance pools.
- On
Demand intBase Capacity - The cost optimized configuration which on demand based capacity.
- On
Demand intPercentage Above Base Capacity - The cost optimized configuration which on demand percentage above based capacity.
- Spot
Instance intPools - The cost optimized configuration with spot instance pools.
- on
Demand IntegerBase Capacity - The cost optimized configuration which on demand based capacity.
- on
Demand IntegerPercentage Above Base Capacity - The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance IntegerPools - The cost optimized configuration with spot instance pools.
- on
Demand numberBase Capacity - The cost optimized configuration which on demand based capacity.
- on
Demand numberPercentage Above Base Capacity - The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance numberPools - The cost optimized configuration with spot instance pools.
- on_
demand_ intbase_ capacity - The cost optimized configuration which on demand based capacity.
- on_
demand_ intpercentage_ above_ base_ capacity - The cost optimized configuration which on demand percentage above based capacity.
- spot_
instance_ intpools - The cost optimized configuration with spot instance pools.
- on
Demand NumberBase Capacity - The cost optimized configuration which on demand based capacity.
- on
Demand NumberPercentage Above Base Capacity - The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance NumberPools - The cost optimized configuration with spot instance pools.
ClusterNodeGroupDataDisk, ClusterNodeGroupDataDiskArgs
- Category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - Size int
- The size of a data disk, at least 40. Unit: GiB.
- Count int
- The count of a data disk.
- Performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- Category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - Size int
- The size of a data disk, at least 40. Unit: GiB.
- Count int
- The count of a data disk.
- Performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size Integer
- The size of a data disk, at least 40. Unit: GiB.
- count Integer
- The count of a data disk.
- performance
Level String - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size number
- The size of a data disk, at least 40. Unit: GiB.
- count number
- The count of a data disk.
- performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category str
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size int
- The size of a data disk, at least 40. Unit: GiB.
- count int
- The count of a data disk.
- performance_
level str - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size Number
- The size of a data disk, at least 40. Unit: GiB.
- count Number
- The count of a data disk.
- performance
Level String - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
ClusterNodeGroupSpotBidPrice, ClusterNodeGroupSpotBidPriceArgs
- Bid
Price int - The spot bid price of a PayAsYouGo instance.
- Instance
Type string - Host Ecs instance type.
- Bid
Price int - The spot bid price of a PayAsYouGo instance.
- Instance
Type string - Host Ecs instance type.
- bid
Price Integer - The spot bid price of a PayAsYouGo instance.
- instance
Type String - Host Ecs instance type.
- bid
Price number - The spot bid price of a PayAsYouGo instance.
- instance
Type string - Host Ecs instance type.
- bid_
price int - The spot bid price of a PayAsYouGo instance.
- instance_
type str - Host Ecs instance type.
- bid
Price Number - The spot bid price of a PayAsYouGo instance.
- instance
Type String - Host Ecs instance type.
ClusterNodeGroupSubscriptionConfig, ClusterNodeGroupSubscriptionConfigArgs
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Integer - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew IntegerDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay booleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew numberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment_
duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment_
duration_ strunit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto_
pay_ boolorder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto_
renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto_
renew_ intduration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto_
renew_ strduration_ unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew NumberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
ClusterNodeGroupSystemDisk, ClusterNodeGroupSystemDiskArgs
- Category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - Size int
- The size of a data disk, at least 40. Unit: GiB.
- Count int
- The count of a data disk.
- Performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- Category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - Size int
- The size of a data disk, at least 40. Unit: GiB.
- Count int
- The count of a data disk.
- Performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size Integer
- The size of a data disk, at least 40. Unit: GiB.
- count Integer
- The count of a data disk.
- performance
Level String - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category string
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size number
- The size of a data disk, at least 40. Unit: GiB.
- count number
- The count of a data disk.
- performance
Level string - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category str
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size int
- The size of a data disk, at least 40. Unit: GiB.
- count int
- The count of a data disk.
- performance_
level str - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
- The type of the data disk. Valid values:
cloud_efficiency
,cloud_essd
,cloud
,local_hdd_pro
,local_disk
,local_ssd_pro
. NOTE: Since version v1.230.0, the categoriescloud
,local_hdd_pro
,local_disk
,local_ssd_pro
are available. - size Number
- The size of a data disk, at least 40. Unit: GiB.
- count Number
- The count of a data disk.
- performance
Level String - Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
ClusterSubscriptionConfig, ClusterSubscriptionConfigArgs
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Integer - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew IntegerDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay booleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew numberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment_
duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment_
duration_ strunit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto_
pay_ boolorder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto_
renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto_
renew_ intduration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto_
renew_ strduration_ unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ . Default value is ’true’.
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew NumberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
Import
Aliclioud E-MapReduce cluster can be imported using the id e.g.
$ pulumi import alicloud:emrv2/cluster:Cluster default <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.