alicloud.ecs.EcsInstanceSet
Explore with Pulumi AI
Provides a ECS Instance Set resource.
For information about ECS Instance Set and how to use it, see What is Instance Set.
NOTE: Available since v1.173.0.
NOTE: This resource is used to batch create a group of instance resources with the same configuration. However, this resource is not recommended.
alicloud.ecs.Instance
is preferred.
NOTE: In the instances managed by this resource, names are automatically generated based on
instance_name
andunique_suffix
.
NOTE: Only
tags
support batch modification.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const default = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultGetInstanceTypes = _default.then(_default => alicloud.ecs.getInstanceTypes({
availabilityZone: _default.zones?.[0]?.id,
cpuCoreCount: 1,
memorySize: 2,
}));
const defaultGetImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_[0-9]+_[0-9]+_x64*",
mostRecent: true,
owners: "system",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.17.3.0/24",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "172.17.3.0/24",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const beijingK = new alicloud.ecs.EcsInstanceSet("beijing_k", {
amount: 10,
imageId: defaultGetImages.then(defaultGetImages => defaultGetImages.images?.[0]?.id),
instanceType: defaultGetInstanceTypes.then(defaultGetInstanceTypes => defaultGetInstanceTypes.instanceTypes?.[0]?.id),
instanceName: name,
instanceChargeType: "PostPaid",
systemDiskPerformanceLevel: "PL0",
systemDiskCategory: "cloud_efficiency",
systemDiskSize: 200,
vswitchId: defaultSwitch.id,
securityGroupIds: [defaultSecurityGroup].map(__item => __item.id),
zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
cpu_core_count=1,
memory_size=2)
default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
most_recent=True,
owners="system")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.17.3.0/24")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="172.17.3.0/24",
vpc_id=default_network.id,
zone_id=default.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
beijing_k = alicloud.ecs.EcsInstanceSet("beijing_k",
amount=10,
image_id=default_get_images.images[0].id,
instance_type=default_get_instance_types.instance_types[0].id,
instance_name=name,
instance_charge_type="PostPaid",
system_disk_performance_level="PL0",
system_disk_category="cloud_efficiency",
system_disk_size=200,
vswitch_id=default_switch.id,
security_group_ids=[__item.id for __item in [default_security_group]],
zone_id=default.zones[0].id)
package main
import (
"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/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example";
if param := cfg.Get("name"); param != ""{
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableDiskCategory: pulumi.StringRef("cloud_efficiency"),
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil);
if err != nil {
return err
}
defaultGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
AvailabilityZone: pulumi.StringRef(_default.Zones[0].Id),
CpuCoreCount: pulumi.IntRef(1),
MemorySize: pulumi.Float64Ref(2),
}, nil);
if err != nil {
return err
}
defaultGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
MostRecent: pulumi.BoolRef(true),
Owners: pulumi.StringRef("system"),
}, nil);
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.17.3.0/24"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("172.17.3.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Zones[0].Id),
})
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
}
var splat0 pulumi.StringArray
for _, val0 := range %!v(PANIC=Format method: fatal: An assertion has failed: tok: ) {
splat0 = append(splat0, val0.ID())
}
_, err = ecs.NewEcsInstanceSet(ctx, "beijing_k", &ecs.EcsInstanceSetArgs{
Amount: pulumi.Int(10),
ImageId: pulumi.String(defaultGetImages.Images[0].Id),
InstanceType: pulumi.String(defaultGetInstanceTypes.InstanceTypes[0].Id),
InstanceName: pulumi.String(name),
InstanceChargeType: pulumi.String("PostPaid"),
SystemDiskPerformanceLevel: pulumi.String("PL0"),
SystemDiskCategory: pulumi.String("cloud_efficiency"),
SystemDiskSize: pulumi.Int(200),
VswitchId: defaultSwitch.ID(),
SecurityGroupIds: splat0,
ZoneId: pulumi.String(_default.Zones[0].Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
CpuCoreCount = 1,
MemorySize = 2,
});
var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_[0-9]+_[0-9]+_x64*",
MostRecent = true,
Owners = "system",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.17.3.0/24",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "172.17.3.0/24",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var beijingK = new AliCloud.Ecs.EcsInstanceSet("beijing_k", new()
{
Amount = 10,
ImageId = defaultGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceType = defaultGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
InstanceName = name,
InstanceChargeType = "PostPaid",
SystemDiskPerformanceLevel = "PL0",
SystemDiskCategory = "cloud_efficiency",
SystemDiskSize = 200,
VswitchId = defaultSwitch.Id,
SecurityGroupIds = new[]
{
defaultSecurityGroup,
}.Select(__item => __item.Id).ToList(),
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
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.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.EcsInstanceSet;
import com.pulumi.alicloud.ecs.EcsInstanceSetArgs;
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("terraform-example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
final var defaultGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(default_.zones()[0].id())
.cpuCoreCount(1)
.memorySize(2)
.build());
final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_[0-9]+_[0-9]+_x64*")
.mostRecent(true)
.owners("system")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.17.3.0/24")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("172.17.3.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[0].id())
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var beijingK = new EcsInstanceSet("beijingK", EcsInstanceSetArgs.builder()
.amount(10)
.imageId(defaultGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceType(defaultGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.instanceName(name)
.instanceChargeType("PostPaid")
.systemDiskPerformanceLevel("PL0")
.systemDiskCategory("cloud_efficiency")
.systemDiskSize(200)
.vswitchId(defaultSwitch.id())
.securityGroupIds(defaultSecurityGroup.stream().map(element -> element.id()).collect(toList()))
.zoneId(default_.zones()[0].id())
.build());
}
}
Coming soon!
Create EcsInstanceSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EcsInstanceSet(name: string, args: EcsInstanceSetArgs, opts?: CustomResourceOptions);
@overload
def EcsInstanceSet(resource_name: str,
args: EcsInstanceSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EcsInstanceSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
instance_type: Optional[str] = None,
launch_template_version: Optional[str] = None,
exclude_instance_filter: Optional[EcsInstanceSetExcludeInstanceFilterArgs] = None,
data_disks: Optional[Sequence[EcsInstanceSetDataDiskArgs]] = None,
network_interfaces: Optional[Sequence[EcsInstanceSetNetworkInterfaceArgs]] = None,
deletion_protection: Optional[bool] = None,
password_inherit: Optional[bool] = None,
description: Optional[str] = None,
password: Optional[str] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
auto_renew_period: Optional[int] = None,
instance_charge_type: Optional[str] = None,
instance_name: Optional[str] = None,
auto_renew: Optional[bool] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
amount: Optional[int] = None,
dedicated_host_id: Optional[str] = None,
boot_check_os_with_assistant: Optional[bool] = None,
deployment_set_id: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_enhancement_strategy: Optional[str] = None,
auto_release_time: Optional[str] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
unique_suffix: Optional[bool] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
func NewEcsInstanceSet(ctx *Context, name string, args EcsInstanceSetArgs, opts ...ResourceOption) (*EcsInstanceSet, error)
public EcsInstanceSet(string name, EcsInstanceSetArgs args, CustomResourceOptions? opts = null)
public EcsInstanceSet(String name, EcsInstanceSetArgs args)
public EcsInstanceSet(String name, EcsInstanceSetArgs args, CustomResourceOptions options)
type: alicloud:ecs:EcsInstanceSet
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 EcsInstanceSetArgs
- 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 EcsInstanceSetArgs
- 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 EcsInstanceSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EcsInstanceSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EcsInstanceSetArgs
- 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 ecsInstanceSetResource = new AliCloud.Ecs.EcsInstanceSet("ecsInstanceSetResource", new()
{
ImageId = "string",
SecurityGroupIds = new[]
{
"string",
},
InstanceType = "string",
LaunchTemplateVersion = "string",
ExcludeInstanceFilter = new AliCloud.Ecs.Inputs.EcsInstanceSetExcludeInstanceFilterArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
DataDisks = new[]
{
new AliCloud.Ecs.Inputs.EcsInstanceSetDataDiskArgs
{
DiskSize = 0,
AutoSnapshotPolicyId = "string",
DiskCategory = "string",
DiskDescription = "string",
DiskName = "string",
Encrypted = false,
KmsKeyId = "string",
PerformanceLevel = "string",
SnapshotId = "string",
},
},
NetworkInterfaces = new[]
{
new AliCloud.Ecs.Inputs.EcsInstanceSetNetworkInterfaceArgs
{
SecurityGroupId = "string",
Description = "string",
NetworkInterfaceName = "string",
PrimaryIpAddress = "string",
VswitchId = "string",
},
},
DeletionProtection = false,
PasswordInherit = false,
Description = "string",
Password = "string",
HostName = "string",
HpcClusterId = "string",
AutoRenewPeriod = 0,
InstanceChargeType = "string",
InstanceName = "string",
AutoRenew = false,
InternetChargeType = "string",
InternetMaxBandwidthOut = 0,
KeyPairName = "string",
LaunchTemplateId = "string",
LaunchTemplateName = "string",
Amount = 0,
DedicatedHostId = "string",
BootCheckOsWithAssistant = false,
DeploymentSetId = "string",
Period = 0,
PeriodUnit = "string",
RamRoleName = "string",
ResourceGroupId = "string",
SecurityEnhancementStrategy = "string",
AutoReleaseTime = "string",
SpotPriceLimit = 0,
SpotStrategy = "string",
SystemDiskAutoSnapshotPolicyId = "string",
SystemDiskCategory = "string",
SystemDiskDescription = "string",
SystemDiskName = "string",
SystemDiskPerformanceLevel = "string",
SystemDiskSize = 0,
Tags =
{
{ "string", "string" },
},
UniqueSuffix = false,
VswitchId = "string",
ZoneId = "string",
});
example, err := ecs.NewEcsInstanceSet(ctx, "ecsInstanceSetResource", &ecs.EcsInstanceSetArgs{
ImageId: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
InstanceType: pulumi.String("string"),
LaunchTemplateVersion: pulumi.String("string"),
ExcludeInstanceFilter: &ecs.EcsInstanceSetExcludeInstanceFilterArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
DataDisks: ecs.EcsInstanceSetDataDiskArray{
&ecs.EcsInstanceSetDataDiskArgs{
DiskSize: pulumi.Int(0),
AutoSnapshotPolicyId: pulumi.String("string"),
DiskCategory: pulumi.String("string"),
DiskDescription: pulumi.String("string"),
DiskName: pulumi.String("string"),
Encrypted: pulumi.Bool(false),
KmsKeyId: pulumi.String("string"),
PerformanceLevel: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
},
},
NetworkInterfaces: ecs.EcsInstanceSetNetworkInterfaceArray{
&ecs.EcsInstanceSetNetworkInterfaceArgs{
SecurityGroupId: pulumi.String("string"),
Description: pulumi.String("string"),
NetworkInterfaceName: pulumi.String("string"),
PrimaryIpAddress: pulumi.String("string"),
VswitchId: pulumi.String("string"),
},
},
DeletionProtection: pulumi.Bool(false),
PasswordInherit: pulumi.Bool(false),
Description: pulumi.String("string"),
Password: pulumi.String("string"),
HostName: pulumi.String("string"),
HpcClusterId: pulumi.String("string"),
AutoRenewPeriod: pulumi.Int(0),
InstanceChargeType: pulumi.String("string"),
InstanceName: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
InternetChargeType: pulumi.String("string"),
InternetMaxBandwidthOut: pulumi.Int(0),
KeyPairName: pulumi.String("string"),
LaunchTemplateId: pulumi.String("string"),
LaunchTemplateName: pulumi.String("string"),
Amount: pulumi.Int(0),
DedicatedHostId: pulumi.String("string"),
BootCheckOsWithAssistant: pulumi.Bool(false),
DeploymentSetId: pulumi.String("string"),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
RamRoleName: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SecurityEnhancementStrategy: pulumi.String("string"),
AutoReleaseTime: pulumi.String("string"),
SpotPriceLimit: pulumi.Float64(0),
SpotStrategy: pulumi.String("string"),
SystemDiskAutoSnapshotPolicyId: pulumi.String("string"),
SystemDiskCategory: pulumi.String("string"),
SystemDiskDescription: pulumi.String("string"),
SystemDiskName: pulumi.String("string"),
SystemDiskPerformanceLevel: pulumi.String("string"),
SystemDiskSize: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UniqueSuffix: pulumi.Bool(false),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var ecsInstanceSetResource = new EcsInstanceSet("ecsInstanceSetResource", EcsInstanceSetArgs.builder()
.imageId("string")
.securityGroupIds("string")
.instanceType("string")
.launchTemplateVersion("string")
.excludeInstanceFilter(EcsInstanceSetExcludeInstanceFilterArgs.builder()
.key("string")
.values("string")
.build())
.dataDisks(EcsInstanceSetDataDiskArgs.builder()
.diskSize(0)
.autoSnapshotPolicyId("string")
.diskCategory("string")
.diskDescription("string")
.diskName("string")
.encrypted(false)
.kmsKeyId("string")
.performanceLevel("string")
.snapshotId("string")
.build())
.networkInterfaces(EcsInstanceSetNetworkInterfaceArgs.builder()
.securityGroupId("string")
.description("string")
.networkInterfaceName("string")
.primaryIpAddress("string")
.vswitchId("string")
.build())
.deletionProtection(false)
.passwordInherit(false)
.description("string")
.password("string")
.hostName("string")
.hpcClusterId("string")
.autoRenewPeriod(0)
.instanceChargeType("string")
.instanceName("string")
.autoRenew(false)
.internetChargeType("string")
.internetMaxBandwidthOut(0)
.keyPairName("string")
.launchTemplateId("string")
.launchTemplateName("string")
.amount(0)
.dedicatedHostId("string")
.bootCheckOsWithAssistant(false)
.deploymentSetId("string")
.period(0)
.periodUnit("string")
.ramRoleName("string")
.resourceGroupId("string")
.securityEnhancementStrategy("string")
.autoReleaseTime("string")
.spotPriceLimit(0)
.spotStrategy("string")
.systemDiskAutoSnapshotPolicyId("string")
.systemDiskCategory("string")
.systemDiskDescription("string")
.systemDiskName("string")
.systemDiskPerformanceLevel("string")
.systemDiskSize(0)
.tags(Map.of("string", "string"))
.uniqueSuffix(false)
.vswitchId("string")
.zoneId("string")
.build());
ecs_instance_set_resource = alicloud.ecs.EcsInstanceSet("ecsInstanceSetResource",
image_id="string",
security_group_ids=["string"],
instance_type="string",
launch_template_version="string",
exclude_instance_filter=alicloud.ecs.EcsInstanceSetExcludeInstanceFilterArgs(
key="string",
values=["string"],
),
data_disks=[alicloud.ecs.EcsInstanceSetDataDiskArgs(
disk_size=0,
auto_snapshot_policy_id="string",
disk_category="string",
disk_description="string",
disk_name="string",
encrypted=False,
kms_key_id="string",
performance_level="string",
snapshot_id="string",
)],
network_interfaces=[alicloud.ecs.EcsInstanceSetNetworkInterfaceArgs(
security_group_id="string",
description="string",
network_interface_name="string",
primary_ip_address="string",
vswitch_id="string",
)],
deletion_protection=False,
password_inherit=False,
description="string",
password="string",
host_name="string",
hpc_cluster_id="string",
auto_renew_period=0,
instance_charge_type="string",
instance_name="string",
auto_renew=False,
internet_charge_type="string",
internet_max_bandwidth_out=0,
key_pair_name="string",
launch_template_id="string",
launch_template_name="string",
amount=0,
dedicated_host_id="string",
boot_check_os_with_assistant=False,
deployment_set_id="string",
period=0,
period_unit="string",
ram_role_name="string",
resource_group_id="string",
security_enhancement_strategy="string",
auto_release_time="string",
spot_price_limit=0,
spot_strategy="string",
system_disk_auto_snapshot_policy_id="string",
system_disk_category="string",
system_disk_description="string",
system_disk_name="string",
system_disk_performance_level="string",
system_disk_size=0,
tags={
"string": "string",
},
unique_suffix=False,
vswitch_id="string",
zone_id="string")
const ecsInstanceSetResource = new alicloud.ecs.EcsInstanceSet("ecsInstanceSetResource", {
imageId: "string",
securityGroupIds: ["string"],
instanceType: "string",
launchTemplateVersion: "string",
excludeInstanceFilter: {
key: "string",
values: ["string"],
},
dataDisks: [{
diskSize: 0,
autoSnapshotPolicyId: "string",
diskCategory: "string",
diskDescription: "string",
diskName: "string",
encrypted: false,
kmsKeyId: "string",
performanceLevel: "string",
snapshotId: "string",
}],
networkInterfaces: [{
securityGroupId: "string",
description: "string",
networkInterfaceName: "string",
primaryIpAddress: "string",
vswitchId: "string",
}],
deletionProtection: false,
passwordInherit: false,
description: "string",
password: "string",
hostName: "string",
hpcClusterId: "string",
autoRenewPeriod: 0,
instanceChargeType: "string",
instanceName: "string",
autoRenew: false,
internetChargeType: "string",
internetMaxBandwidthOut: 0,
keyPairName: "string",
launchTemplateId: "string",
launchTemplateName: "string",
amount: 0,
dedicatedHostId: "string",
bootCheckOsWithAssistant: false,
deploymentSetId: "string",
period: 0,
periodUnit: "string",
ramRoleName: "string",
resourceGroupId: "string",
securityEnhancementStrategy: "string",
autoReleaseTime: "string",
spotPriceLimit: 0,
spotStrategy: "string",
systemDiskAutoSnapshotPolicyId: "string",
systemDiskCategory: "string",
systemDiskDescription: "string",
systemDiskName: "string",
systemDiskPerformanceLevel: "string",
systemDiskSize: 0,
tags: {
string: "string",
},
uniqueSuffix: false,
vswitchId: "string",
zoneId: "string",
});
type: alicloud:ecs:EcsInstanceSet
properties:
amount: 0
autoReleaseTime: string
autoRenew: false
autoRenewPeriod: 0
bootCheckOsWithAssistant: false
dataDisks:
- autoSnapshotPolicyId: string
diskCategory: string
diskDescription: string
diskName: string
diskSize: 0
encrypted: false
kmsKeyId: string
performanceLevel: string
snapshotId: string
dedicatedHostId: string
deletionProtection: false
deploymentSetId: string
description: string
excludeInstanceFilter:
key: string
values:
- string
hostName: string
hpcClusterId: string
imageId: string
instanceChargeType: string
instanceName: string
instanceType: string
internetChargeType: string
internetMaxBandwidthOut: 0
keyPairName: string
launchTemplateId: string
launchTemplateName: string
launchTemplateVersion: string
networkInterfaces:
- description: string
networkInterfaceName: string
primaryIpAddress: string
securityGroupId: string
vswitchId: string
password: string
passwordInherit: false
period: 0
periodUnit: string
ramRoleName: string
resourceGroupId: string
securityEnhancementStrategy: string
securityGroupIds:
- string
spotPriceLimit: 0
spotStrategy: string
systemDiskAutoSnapshotPolicyId: string
systemDiskCategory: string
systemDiskDescription: string
systemDiskName: string
systemDiskPerformanceLevel: string
systemDiskSize: 0
tags:
string: string
uniqueSuffix: false
vswitchId: string
zoneId: string
EcsInstanceSet 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 EcsInstanceSet resource accepts the following input properties:
- Image
Id string - The Image to use for the instance.
- Instance
Type string - The type of instance to start.
- Security
Group List<string>Ids - A list of security group ids to associate with.
- Amount int
- The number of instances that you want to create. Valid values:
1
to100
. - Auto
Release stringTime - The automatic release time of the
PostPaid
instance. - Auto
Renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - Auto
Renew intPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant - Indicate how to check instance ready to use.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Data Disk> - The list of data disks created with instance. See
data_disks
below.. - Dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - Deletion
Protection bool - Whether to enable release protection for the instance.
- Deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- Description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - Exclude
Instance Pulumi.Filter Ali Cloud. Ecs. Inputs. Ecs Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - Host
Name string - The hostname of instance.
- Hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - Instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - Internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - Internet
Max intBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - Key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - Launch
Template stringVersion - The version of the launch template.
- Network
Interfaces List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Network Interface> - A list of NetworkInterface. See
network_interfaces
below.. - Password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool - Whether to use the password preset in the image.
- Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - Ram
Role stringName - The Instance RAM role name.
- Resource
Group stringId - The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- Spot
Price doubleLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- System
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - System
Disk stringName - The name of the system disk.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - System
Disk intSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Unique
Suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - Vswitch
Id string - The virtual switch ID to launch in VPC.
- Zone
Id string - The ID of the zone in which to create the instance.
- Image
Id string - The Image to use for the instance.
- Instance
Type string - The type of instance to start.
- Security
Group []stringIds - A list of security group ids to associate with.
- Amount int
- The number of instances that you want to create. Valid values:
1
to100
. - Auto
Release stringTime - The automatic release time of the
PostPaid
instance. - Auto
Renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - Auto
Renew intPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant - Indicate how to check instance ready to use.
- Data
Disks []EcsInstance Set Data Disk Args - The list of data disks created with instance. See
data_disks
below.. - Dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - Deletion
Protection bool - Whether to enable release protection for the instance.
- Deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- Description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - Exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - Host
Name string - The hostname of instance.
- Hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - Instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - Internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - Internet
Max intBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - Key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - Launch
Template stringVersion - The version of the launch template.
- Network
Interfaces []EcsInstance Set Network Interface Args - A list of NetworkInterface. See
network_interfaces
below.. - Password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool - Whether to use the password preset in the image.
- Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - Ram
Role stringName - The Instance RAM role name.
- Resource
Group stringId - The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- Spot
Price float64Limit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- System
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - System
Disk stringName - The name of the system disk.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - System
Disk intSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - map[string]string
- A mapping of tags to assign to the resource.
- Unique
Suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - Vswitch
Id string - The virtual switch ID to launch in VPC.
- Zone
Id string - The ID of the zone in which to create the instance.
- image
Id String - The Image to use for the instance.
- instance
Type String - The type of instance to start.
- security
Group List<String>Ids - A list of security group ids to associate with.
- amount Integer
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release StringTime - The automatic release time of the
PostPaid
instance. - auto
Renew Boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew IntegerPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks List<EcsInstance Set Data Disk> - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host StringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection Boolean - Whether to enable release protection for the instance.
- deployment
Set StringId - The ID of the deployment set to which to deploy the instance.
- description String
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance EcsFilter Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name String - The hostname of instance.
- hpc
Cluster StringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge StringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Name String - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - internet
Charge StringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max IntegerBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair StringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template StringVersion - The version of the launch template.
- network
Interfaces List<EcsInstance Set Network Interface> - A list of NetworkInterface. See
network_interfaces
below.. - password String
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean - Whether to use the password preset in the image.
- period Integer
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role StringName - The Instance RAM role name.
- resource
Group StringId - The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- spot
Price DoubleLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk StringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk StringName - The name of the system disk.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk IntegerSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Map<String,String>
- A mapping of tags to assign to the resource.
- unique
Suffix Boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id String - The virtual switch ID to launch in VPC.
- zone
Id String - The ID of the zone in which to create the instance.
- image
Id string - The Image to use for the instance.
- instance
Type string - The type of instance to start.
- security
Group string[]Ids - A list of security group ids to associate with.
- amount number
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release stringTime - The automatic release time of the
PostPaid
instance. - auto
Renew boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew numberPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check booleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks EcsInstance Set Data Disk[] - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection boolean - Whether to enable release protection for the instance.
- deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance EcsFilter Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name string - The hostname of instance.
- hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max numberBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template stringId - The ID of the launch template.
- launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template stringVersion - The version of the launch template.
- network
Interfaces EcsInstance Set Network Interface[] - A list of NetworkInterface. See
network_interfaces
below.. - password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit boolean - Whether to use the password preset in the image.
- period number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role stringName - The Instance RAM role name.
- resource
Group stringId - The ID of resource group which the instance belongs.
- security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- spot
Price numberLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk stringName - The name of the system disk.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk numberSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- unique
Suffix boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id string - The virtual switch ID to launch in VPC.
- zone
Id string - The ID of the zone in which to create the instance.
- image_
id str - The Image to use for the instance.
- instance_
type str - The type of instance to start.
- security_
group_ Sequence[str]ids - A list of security group ids to associate with.
- amount int
- The number of instances that you want to create. Valid values:
1
to100
. - auto_
release_ strtime - The automatic release time of the
PostPaid
instance. - auto_
renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto_
renew_ intperiod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot_
check_ boolos_ with_ assistant - Indicate how to check instance ready to use.
- data_
disks Sequence[EcsInstance Set Data Disk Args] - The list of data disks created with instance. See
data_disks
below.. - dedicated_
host_ strid - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion_
protection bool - Whether to enable release protection for the instance.
- deployment_
set_ strid - The ID of the deployment set to which to deploy the instance.
- description str
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude_
instance_ Ecsfilter Instance Set Exclude Instance Filter Args - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host_
name str - The hostname of instance.
- hpc_
cluster_ strid - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance_
charge_ strtype - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance_
name str - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - internet_
charge_ strtype - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet_
max_ intbandwidth_ out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key_
pair_ strname - The name of key pair that can login ECS instance successfully without password.
- launch_
template_ strid - The ID of the launch template.
- launch_
template_ strname - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch_
template_ strversion - The version of the launch template.
- network_
interfaces Sequence[EcsInstance Set Network Interface Args] - A list of NetworkInterface. See
network_interfaces
below.. - password str
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password_
inherit bool - Whether to use the password preset in the image.
- period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period_
unit str - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram_
role_ strname - The Instance RAM role name.
- resource_
group_ strid - The ID of resource group which the instance belongs.
- security_
enhancement_ strstrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- spot_
price_ floatlimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot_
strategy str - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system_
disk_ strauto_ snapshot_ policy_ id - The ID of the automatic snapshot policy applied to the system disk.
- system_
disk_ strcategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system_
disk_ strdescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system_
disk_ strname - The name of the system disk.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system_
disk_ intsize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- unique_
suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch_
id str - The virtual switch ID to launch in VPC.
- zone_
id str - The ID of the zone in which to create the instance.
- image
Id String - The Image to use for the instance.
- instance
Type String - The type of instance to start.
- security
Group List<String>Ids - A list of security group ids to associate with.
- amount Number
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release StringTime - The automatic release time of the
PostPaid
instance. - auto
Renew Boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew NumberPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks List<Property Map> - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host StringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection Boolean - Whether to enable release protection for the instance.
- deployment
Set StringId - The ID of the deployment set to which to deploy the instance.
- description String
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance Property MapFilter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name String - The hostname of instance.
- hpc
Cluster StringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge StringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Name String - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - internet
Charge StringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max NumberBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair StringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template StringVersion - The version of the launch template.
- network
Interfaces List<Property Map> - A list of NetworkInterface. See
network_interfaces
below.. - password String
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean - Whether to use the password preset in the image.
- period Number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role StringName - The Instance RAM role name.
- resource
Group StringId - The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- spot
Price NumberLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk StringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk StringName - The name of the system disk.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk NumberSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Map<String>
- A mapping of tags to assign to the resource.
- unique
Suffix Boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id String - The virtual switch ID to launch in VPC.
- zone
Id String - The ID of the zone in which to create the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the EcsInstanceSet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Ids List<string> - A list of ECS Instance ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Ids []string - A list of ECS Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> - A list of ECS Instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Ids string[] - A list of ECS Instance ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
ids Sequence[str] - A list of ECS Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> - A list of ECS Instance ID.
Look up Existing EcsInstanceSet Resource
Get an existing EcsInstanceSet 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?: EcsInstanceSetState, opts?: CustomResourceOptions): EcsInstanceSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_release_time: Optional[str] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
boot_check_os_with_assistant: Optional[bool] = None,
data_disks: Optional[Sequence[EcsInstanceSetDataDiskArgs]] = None,
dedicated_host_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
deployment_set_id: Optional[str] = None,
description: Optional[str] = None,
exclude_instance_filter: Optional[EcsInstanceSetExcludeInstanceFilterArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
launch_template_version: Optional[str] = None,
network_interfaces: Optional[Sequence[EcsInstanceSetNetworkInterfaceArgs]] = None,
password: Optional[str] = None,
password_inherit: Optional[bool] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_enhancement_strategy: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
unique_suffix: Optional[bool] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> EcsInstanceSet
func GetEcsInstanceSet(ctx *Context, name string, id IDInput, state *EcsInstanceSetState, opts ...ResourceOption) (*EcsInstanceSet, error)
public static EcsInstanceSet Get(string name, Input<string> id, EcsInstanceSetState? state, CustomResourceOptions? opts = null)
public static EcsInstanceSet get(String name, Output<String> id, EcsInstanceSetState 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.
- Amount int
- The number of instances that you want to create. Valid values:
1
to100
. - Auto
Release stringTime - The automatic release time of the
PostPaid
instance. - Auto
Renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - Auto
Renew intPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant - Indicate how to check instance ready to use.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Data Disk> - The list of data disks created with instance. See
data_disks
below.. - Dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - Deletion
Protection bool - Whether to enable release protection for the instance.
- Deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- Description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - Exclude
Instance Pulumi.Filter Ali Cloud. Ecs. Inputs. Ecs Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - Host
Name string - The hostname of instance.
- Hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Image
Id string - The Image to use for the instance.
- Instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - Instance
Ids List<string> - A list of ECS Instance ID.
- Instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - Instance
Type string - The type of instance to start.
- Internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - Internet
Max intBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - Key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - Launch
Template stringVersion - The version of the launch template.
- Network
Interfaces List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Network Interface> - A list of NetworkInterface. See
network_interfaces
below.. - Password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool - Whether to use the password preset in the image.
- Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - Ram
Role stringName - The Instance RAM role name.
- Resource
Group stringId - The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- Security
Group List<string>Ids - A list of security group ids to associate with.
- Spot
Price doubleLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- System
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - System
Disk stringName - The name of the system disk.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - System
Disk intSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Unique
Suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - Vswitch
Id string - The virtual switch ID to launch in VPC.
- Zone
Id string - The ID of the zone in which to create the instance.
- Amount int
- The number of instances that you want to create. Valid values:
1
to100
. - Auto
Release stringTime - The automatic release time of the
PostPaid
instance. - Auto
Renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - Auto
Renew intPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant - Indicate how to check instance ready to use.
- Data
Disks []EcsInstance Set Data Disk Args - The list of data disks created with instance. See
data_disks
below.. - Dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - Deletion
Protection bool - Whether to enable release protection for the instance.
- Deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- Description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - Exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - Host
Name string - The hostname of instance.
- Hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Image
Id string - The Image to use for the instance.
- Instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - Instance
Ids []string - A list of ECS Instance ID.
- Instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - Instance
Type string - The type of instance to start.
- Internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - Internet
Max intBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - Key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId - The ID of the launch template.
- Launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - Launch
Template stringVersion - The version of the launch template.
- Network
Interfaces []EcsInstance Set Network Interface Args - A list of NetworkInterface. See
network_interfaces
below.. - Password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool - Whether to use the password preset in the image.
- Period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - Ram
Role stringName - The Instance RAM role name.
- Resource
Group stringId - The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- Security
Group []stringIds - A list of security group ids to associate with.
- Spot
Price float64Limit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- System
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - System
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - System
Disk stringName - The name of the system disk.
- System
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - System
Disk intSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - map[string]string
- A mapping of tags to assign to the resource.
- Unique
Suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - Vswitch
Id string - The virtual switch ID to launch in VPC.
- Zone
Id string - The ID of the zone in which to create the instance.
- amount Integer
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release StringTime - The automatic release time of the
PostPaid
instance. - auto
Renew Boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew IntegerPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks List<EcsInstance Set Data Disk> - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host StringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection Boolean - Whether to enable release protection for the instance.
- deployment
Set StringId - The ID of the deployment set to which to deploy the instance.
- description String
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance EcsFilter Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name String - The hostname of instance.
- hpc
Cluster StringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id String - The Image to use for the instance.
- instance
Charge StringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Ids List<String> - A list of ECS Instance ID.
- instance
Name String - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - instance
Type String - The type of instance to start.
- internet
Charge StringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max IntegerBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair StringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template StringVersion - The version of the launch template.
- network
Interfaces List<EcsInstance Set Network Interface> - A list of NetworkInterface. See
network_interfaces
below.. - password String
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean - Whether to use the password preset in the image.
- period Integer
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role StringName - The Instance RAM role name.
- resource
Group StringId - The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- security
Group List<String>Ids - A list of security group ids to associate with.
- spot
Price DoubleLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk StringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk StringName - The name of the system disk.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk IntegerSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Map<String,String>
- A mapping of tags to assign to the resource.
- unique
Suffix Boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id String - The virtual switch ID to launch in VPC.
- zone
Id String - The ID of the zone in which to create the instance.
- amount number
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release stringTime - The automatic release time of the
PostPaid
instance. - auto
Renew boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew numberPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check booleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks EcsInstance Set Data Disk[] - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host stringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection boolean - Whether to enable release protection for the instance.
- deployment
Set stringId - The ID of the deployment set to which to deploy the instance.
- description string
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance EcsFilter Instance Set Exclude Instance Filter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name string - The hostname of instance.
- hpc
Cluster stringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id string - The Image to use for the instance.
- instance
Charge stringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Ids string[] - A list of ECS Instance ID.
- instance
Name string - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - instance
Type string - The type of instance to start.
- internet
Charge stringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max numberBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair stringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template stringId - The ID of the launch template.
- launch
Template stringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template stringVersion - The version of the launch template.
- network
Interfaces EcsInstance Set Network Interface[] - A list of NetworkInterface. See
network_interfaces
below.. - password string
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit boolean - Whether to use the password preset in the image.
- period number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit string - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role stringName - The Instance RAM role name.
- resource
Group stringId - The ID of resource group which the instance belongs.
- security
Enhancement stringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- security
Group string[]Ids - A list of security group ids to associate with.
- spot
Price numberLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy string - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk stringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk stringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk stringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk stringName - The name of the system disk.
- system
Disk stringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk numberSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- unique
Suffix boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id string - The virtual switch ID to launch in VPC.
- zone
Id string - The ID of the zone in which to create the instance.
- amount int
- The number of instances that you want to create. Valid values:
1
to100
. - auto_
release_ strtime - The automatic release time of the
PostPaid
instance. - auto_
renew bool - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto_
renew_ intperiod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot_
check_ boolos_ with_ assistant - Indicate how to check instance ready to use.
- data_
disks Sequence[EcsInstance Set Data Disk Args] - The list of data disks created with instance. See
data_disks
below.. - dedicated_
host_ strid - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion_
protection bool - Whether to enable release protection for the instance.
- deployment_
set_ strid - The ID of the deployment set to which to deploy the instance.
- description str
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude_
instance_ Ecsfilter Instance Set Exclude Instance Filter Args - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host_
name str - The hostname of instance.
- hpc_
cluster_ strid - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image_
id str - The Image to use for the instance.
- instance_
charge_ strtype - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance_
ids Sequence[str] - A list of ECS Instance ID.
- instance_
name str - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - instance_
type str - The type of instance to start.
- internet_
charge_ strtype - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet_
max_ intbandwidth_ out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key_
pair_ strname - The name of key pair that can login ECS instance successfully without password.
- launch_
template_ strid - The ID of the launch template.
- launch_
template_ strname - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch_
template_ strversion - The version of the launch template.
- network_
interfaces Sequence[EcsInstance Set Network Interface Args] - A list of NetworkInterface. See
network_interfaces
below.. - password str
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password_
inherit bool - Whether to use the password preset in the image.
- period int
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period_
unit str - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram_
role_ strname - The Instance RAM role name.
- resource_
group_ strid - The ID of resource group which the instance belongs.
- security_
enhancement_ strstrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- security_
group_ Sequence[str]ids - A list of security group ids to associate with.
- spot_
price_ floatlimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot_
strategy str - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system_
disk_ strauto_ snapshot_ policy_ id - The ID of the automatic snapshot policy applied to the system disk.
- system_
disk_ strcategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system_
disk_ strdescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system_
disk_ strname - The name of the system disk.
- system_
disk_ strperformance_ level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system_
disk_ intsize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- unique_
suffix bool - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch_
id str - The virtual switch ID to launch in VPC.
- zone_
id str - The ID of the zone in which to create the instance.
- amount Number
- The number of instances that you want to create. Valid values:
1
to100
. - auto
Release StringTime - The automatic release time of the
PostPaid
instance. - auto
Renew Boolean - Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
. - auto
Renew NumberPeriod - Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant - Indicate how to check instance ready to use.
- data
Disks List<Property Map> - The list of data disks created with instance. See
data_disks
below.. - dedicated
Host StringId - The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts. - deletion
Protection Boolean - Whether to enable release protection for the instance.
- deployment
Set StringId - The ID of the deployment set to which to deploy the instance.
- description String
- The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
. - exclude
Instance Property MapFilter - The instances that need to be excluded from the Instance Set. See
exclude_instance_filter
below. - host
Name String - The hostname of instance.
- hpc
Cluster StringId - The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id String - The Image to use for the instance.
- instance
Charge StringType - The billing method of the instance. Valid values:
PrePaid
,PostPaid
. - instance
Ids List<String> - A list of ECS Instance ID.
- instance
Name String - The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
. - instance
Type String - The type of instance to start.
- internet
Charge StringType - The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
. - internet
Max NumberBandwidth Out - The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
. - key
Pair StringName - The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId - The ID of the launch template.
- launch
Template StringName - The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template. - launch
Template StringVersion - The version of the launch template.
- network
Interfaces List<Property Map> - A list of NetworkInterface. See
network_interfaces
below.. - password String
- The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean - Whether to use the password preset in the image.
- period Number
- The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String - The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
. - ram
Role StringName - The Instance RAM role name.
- resource
Group StringId - The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy - The security enhancement strategy.
Active
: Enable security enhancement strategy, it only works on system images.Deactive
: Disable security enhancement strategy, it works on all images.
- security
Group List<String>Ids - A list of security group ids to associate with.
- spot
Price NumberLimit - The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String - The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.NoSpot
: A regular Pay-As-You-Go instance.SpotWithPriceLimit
: A price threshold for a spot instance.SpotAsPriceGo
: A price that is based on the highest Pay-As-You-Go instance
- system
Disk StringAuto Snapshot Policy Id - The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory - The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - system
Disk StringDescription - The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
. - system
Disk StringName - The name of the system disk.
- system
Disk StringPerformance Level - The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - system
Disk NumberSize - The size of the system disk, measured in GiB. Value range: values:
20
to500
. - Map<String>
- A mapping of tags to assign to the resource.
- unique
Suffix Boolean - Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
. - vswitch
Id String - The virtual switch ID to launch in VPC.
- zone
Id String - The ID of the zone in which to create the instance.
Supporting Types
EcsInstanceSetDataDisk, EcsInstanceSetDataDiskArgs
- Disk
Size int - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- Auto
Snapshot stringPolicy Id - The ID of the automatic snapshot policy applied to the system disk.
- Disk
Category string - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - Disk
Description string - The description of the data disk.
- Disk
Name string - The name of the data disk.
- Encrypted bool
- Encrypted the data in this disk. Default value:
false
. - Kms
Key stringId - The KMS key ID corresponding to the data disk.
- Performance
Level string - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - Snapshot
Id string - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- Disk
Size int - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- Auto
Snapshot stringPolicy Id - The ID of the automatic snapshot policy applied to the system disk.
- Disk
Category string - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - Disk
Description string - The description of the data disk.
- Disk
Name string - The name of the data disk.
- Encrypted bool
- Encrypted the data in this disk. Default value:
false
. - Kms
Key stringId - The KMS key ID corresponding to the data disk.
- Performance
Level string - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - Snapshot
Id string - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- disk
Size Integer - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot StringPolicy Id - The ID of the automatic snapshot policy applied to the system disk.
- disk
Category String - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - disk
Description String - The description of the data disk.
- disk
Name String - The name of the data disk.
- encrypted Boolean
- Encrypted the data in this disk. Default value:
false
. - kms
Key StringId - The KMS key ID corresponding to the data disk.
- performance
Level String - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - snapshot
Id String - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- disk
Size number - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot stringPolicy Id - The ID of the automatic snapshot policy applied to the system disk.
- disk
Category string - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - disk
Description string - The description of the data disk.
- disk
Name string - The name of the data disk.
- encrypted boolean
- Encrypted the data in this disk. Default value:
false
. - kms
Key stringId - The KMS key ID corresponding to the data disk.
- performance
Level string - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - snapshot
Id string - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- disk_
size int - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto_
snapshot_ strpolicy_ id - The ID of the automatic snapshot policy applied to the system disk.
- disk_
category str - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - disk_
description str - The description of the data disk.
- disk_
name str - The name of the data disk.
- encrypted bool
- Encrypted the data in this disk. Default value:
false
. - kms_
key_ strid - The KMS key ID corresponding to the data disk.
- performance_
level str - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - snapshot_
id str - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- disk
Size Number - The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot StringPolicy Id - The ID of the automatic snapshot policy applied to the system disk.
- disk
Category String - The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
. - disk
Description String - The description of the data disk.
- disk
Name String - The name of the data disk.
- encrypted Boolean
- Encrypted the data in this disk. Default value:
false
. - kms
Key StringId - The KMS key ID corresponding to the data disk.
- performance
Level String - The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
. - snapshot
Id String - The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
EcsInstanceSetExcludeInstanceFilter, EcsInstanceSetExcludeInstanceFilterArgs
EcsInstanceSetNetworkInterface, EcsInstanceSetNetworkInterfaceArgs
- Security
Group stringId - The ID of the security group to which to assign secondary ENI.
- Description string
- The description of ENI.
- Network
Interface stringName - The name of ENI.
- Primary
Ip stringAddress - The primary private IP address of ENI.
- Vswitch
Id string - The ID of the vSwitch to which to connect ENI.
- Security
Group stringId - The ID of the security group to which to assign secondary ENI.
- Description string
- The description of ENI.
- Network
Interface stringName - The name of ENI.
- Primary
Ip stringAddress - The primary private IP address of ENI.
- Vswitch
Id string - The ID of the vSwitch to which to connect ENI.
- security
Group StringId - The ID of the security group to which to assign secondary ENI.
- description String
- The description of ENI.
- network
Interface StringName - The name of ENI.
- primary
Ip StringAddress - The primary private IP address of ENI.
- vswitch
Id String - The ID of the vSwitch to which to connect ENI.
- security
Group stringId - The ID of the security group to which to assign secondary ENI.
- description string
- The description of ENI.
- network
Interface stringName - The name of ENI.
- primary
Ip stringAddress - The primary private IP address of ENI.
- vswitch
Id string - The ID of the vSwitch to which to connect ENI.
- security_
group_ strid - The ID of the security group to which to assign secondary ENI.
- description str
- The description of ENI.
- network_
interface_ strname - The name of ENI.
- primary_
ip_ straddress - The primary private IP address of ENI.
- vswitch_
id str - The ID of the vSwitch to which to connect ENI.
- security
Group StringId - The ID of the security group to which to assign secondary ENI.
- description String
- The description of ENI.
- network
Interface StringName - The name of ENI.
- primary
Ip StringAddress - The primary private IP address of ENI.
- vswitch
Id String - The ID of the vSwitch to which to connect ENI.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.