InstanceGroup
- Implements: IInstanceGroup
This class encapsulates and extends the ROS resource type ALIYUN::ECS::InstanceGroup.
Initializers
import com.aliyun.ros.cdk.ecs.InstanceGroup;
InstanceGroup.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.instanceType(java.lang.String)
.instanceType(IResolvable)
.maxAmount(java.lang.Number)
.maxAmount(IResolvable)
// .affinity(java.lang.String)
// .affinity(IResolvable)
// .allocatePublicIp(java.lang.Boolean)
// .allocatePublicIp(IResolvable)
// .autoReleaseTime(java.lang.String)
// .autoReleaseTime(IResolvable)
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .cpuOptions(IResolvable)
// .cpuOptions(CpuOptionsProperty)
// .creditSpecification(java.lang.String)
// .creditSpecification(IResolvable)
// .dedicatedHostId(java.lang.String)
// .dedicatedHostId(IResolvable)
// .deletionForce(java.lang.Boolean)
// .deletionForce(IResolvable)
// .deletionProtection(java.lang.Boolean)
// .deletionProtection(IResolvable)
// .deploymentSetGroupNo(java.lang.Number)
// .deploymentSetGroupNo(IResolvable)
// .deploymentSetId(java.lang.String)
// .deploymentSetId(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .diskMappings(IResolvable)
// .diskMappings(java.util.List<IResolvable)
// .diskMappings(DiskMappingsProperty>)
// .eniMappings(IResolvable)
// .eniMappings(java.util.List<IResolvable)
// .eniMappings(EniMappingsProperty>)
// .hostName(java.lang.String)
// .hostName(IResolvable)
// .hostNames(IResolvable)
// .hostNames(java.util.List<java.lang.String)
// .hostNames(IResolvable>)
// .hpcClusterId(java.lang.String)
// .hpcClusterId(IResolvable)
// .httpEndpoint(java.lang.String)
// .httpEndpoint(IResolvable)
// .httpTokens(java.lang.String)
// .httpTokens(IResolvable)
// .imageFamily(java.lang.String)
// .imageFamily(IResolvable)
// .imageId(java.lang.String)
// .imageId(IResolvable)
// .imageOptions(IResolvable)
// .imageOptions(ImageOptionsProperty)
// .instanceChargeType(java.lang.String)
// .instanceChargeType(IResolvable)
// .instanceName(java.lang.String)
// .instanceName(IResolvable)
// .internetChargeType(java.lang.String)
// .internetChargeType(IResolvable)
// .internetMaxBandwidthOut(java.lang.Number)
// .internetMaxBandwidthOut(IResolvable)
// .ioOptimized(java.lang.String)
// .ioOptimized(IResolvable)
// .ipv6AddressCount(java.lang.Number)
// .ipv6AddressCount(IResolvable)
// .ipv6Addresses(java.util.List<java.lang.Object>)
// .ipv6Addresses(IResolvable)
// .keyPairName(java.lang.String)
// .keyPairName(IResolvable)
// .launchTemplateId(java.lang.String)
// .launchTemplateId(IResolvable)
// .launchTemplateName(java.lang.String)
// .launchTemplateName(IResolvable)
// .launchTemplateVersion(java.lang.String)
// .launchTemplateVersion(IResolvable)
// .networkInterfaceQueueNumber(java.lang.Number)
// .networkInterfaceQueueNumber(IResolvable)
// .networkOptions(IResolvable)
// .networkOptions(NetworkOptionsProperty)
// .networkType(java.lang.String)
// .networkType(IResolvable)
// .password(java.lang.String)
// .password(IResolvable)
// .passwordInherit(java.lang.Boolean)
// .passwordInherit(IResolvable)
// .period(java.lang.Number)
// .period(IResolvable)
// .periodUnit(java.lang.String)
// .periodUnit(IResolvable)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
// .privatePoolOptions(IResolvable)
// .privatePoolOptions(PrivatePoolOptionsProperty)
// .ramRoleName(java.lang.String)
// .ramRoleName(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .schedulerOptions(IResolvable)
// .schedulerOptions(SchedulerOptionsProperty)
// .securityEnhancementStrategy(java.lang.String)
// .securityEnhancementStrategy(IResolvable)
// .securityGroupId(java.lang.String)
// .securityGroupId(IResolvable)
// .securityGroupIds(IResolvable)
// .securityGroupIds(java.util.List<java.lang.String)
// .securityGroupIds(IResolvable>)
// .securityOptions(IResolvable)
// .securityOptions(SecurityOptionsProperty)
// .spotDuration(java.lang.Number)
// .spotDuration(IResolvable)
// .spotInterruptionBehavior(java.lang.String)
// .spotInterruptionBehavior(IResolvable)
// .spotPriceLimit(java.lang.String)
// .spotPriceLimit(IResolvable)
// .spotStrategy(java.lang.String)
// .spotStrategy(IResolvable)
// .storageSetId(java.lang.String)
// .storageSetId(IResolvable)
// .storageSetPartitionNumber(java.lang.Number)
// .storageSetPartitionNumber(IResolvable)
// .subscriptionDeletionForce(java.lang.Boolean)
// .subscriptionDeletionForce(IResolvable)
// .systemDiskAutoSnapshotPolicyId(java.lang.String)
// .systemDiskAutoSnapshotPolicyId(IResolvable)
// .systemDiskBurstingEnabled(java.lang.Boolean)
// .systemDiskBurstingEnabled(IResolvable)
// .systemDiskCategory(java.lang.String)
// .systemDiskCategory(IResolvable)
// .systemDiskDescription(java.lang.String)
// .systemDiskDescription(IResolvable)
// .systemDiskDiskName(java.lang.String)
// .systemDiskDiskName(IResolvable)
// .systemDiskEncryptAlgorithm(java.lang.String)
// .systemDiskEncryptAlgorithm(IResolvable)
// .systemDiskEncrypted(java.lang.String)
// .systemDiskEncrypted(IResolvable)
// .systemDiskKmsKeyId(java.lang.String)
// .systemDiskKmsKeyId(IResolvable)
// .systemDiskPerformanceLevel(java.lang.String)
// .systemDiskPerformanceLevel(IResolvable)
// .systemDiskProvisionedIops(java.lang.Number)
// .systemDiskProvisionedIops(IResolvable)
// .systemDiskSize(java.lang.Number)
// .systemDiskSize(IResolvable)
// .systemDiskStorageClusterId(java.lang.String)
// .systemDiskStorageClusterId(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .tenancy(java.lang.String)
// .tenancy(IResolvable)
// .uniqueSuffix(java.lang.Boolean)
// .uniqueSuffix(IResolvable)
// .updatePolicy(java.lang.String)
// .updatePolicy(IResolvable)
// .useAdditionalService(java.lang.Boolean)
// .useAdditionalService(IResolvable)
// .userData(java.lang.String)
// .userData(IResolvable)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
// .zoneId(java.lang.String)
// .zoneId(IResolvable)
// .zoneIds(IResolvable)
// .zoneIds(java.util.List<java.lang.String)
// .zoneIds(IResolvable>)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
instanceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceType: Ecs instance supported instance type, make sure it should be correct. |
maxAmount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxAmount: Max number of instances to create, should be bigger than 'MinAmount' and smaller than 1000. |
affinity | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property affinity: Specifies whether to associate the instance on a dedicated host with the dedicated host. |
allocatePublicIp | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property allocatePublicIp: The public ip for ecs instance, if properties is true, will allocate public ip. |
autoReleaseTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property autoReleaseTime: Auto release time for created instance, Follow ISO8601 standard using UTC time. |
autoRenew | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenew: Whether renew the fee automatically? |
autoRenewPeriod | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenewPeriod: The time period of auto renew. |
cpuOptions | com.aliyun.ros.cdk.core.IResolvable OR CpuOptionsProperty | Property cpuOptions: Cpu options. |
creditSpecification | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property creditSpecification: The performance mode of the burstable instance. |
dedicatedHostId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dedicatedHostId: The ID of the dedicated host. |
deletionForce | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property deletionForce: Whether force delete the instance. |
deletionProtection | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property deletionProtection: Whether an instance can be released manually through the console or API, deletion protection only support postPaid instance. |
deploymentSetGroupNo | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property deploymentSetGroupNo: The number of the deployment set group to which to deploy the instance. |
deploymentSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property deploymentSetId: Deployment set ID. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: Description of the instance, [2, 256] characters. |
diskMappings | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property diskMappings: Disk mappings to attach to instance. |
eniMappings | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property eniMappings: NetworkInterface to attach to instance. |
hostName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hostName: Host name of created ecs instance. |
hostNames | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property hostNames: The hostname of instance N. |
hpcClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hpcClusterId: The HPC cluster ID to which the instance belongs.The change of the property does not affect existing instances. |
httpEndpoint | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property httpEndpoint: Specifies whether the access channel is enabled for instance metadata. |
httpTokens | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property httpTokens: Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata. |
imageFamily | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property imageFamily: The name of the image family. |
imageId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property imageId: The image ID. |
imageOptions | com.aliyun.ros.cdk.core.IResolvable OR ImageOptionsProperty | Property imageOptions: Image options. |
instanceChargeType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceChargeType: Instance Charge type, allowed value: Prepaid and Postpaid. |
instanceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. Support to use the regular expression to set the different instance name for each ECS instance. InstanceName could be specified as 'name_prefix[begin_number,bits]name_suffix', such as 'testinstance[123,4]tail'. If you creates 3 instances with the instance name 'testinstance[123,4]tail', all the instances' names are testinstance0123tail, testinstance0124tail, testinstance0125tail. The 'name_prefix[begin_number,bits]name_suffix' should follow those rules: 1. 'name_prefix' is required. 2. 'name_suffix' is optional. 3. The name regular expression can't include any spaces. 4. The 'bits' must be in range [1, 6]. 5. The 'begin_number' must be in range [0, 999999]. 6. You could only specify 'begin_number'. The 'bits' will be set as 6 by default. 7. You also could only specify the [] or [,]. The 'begin_number' will be set as 0 by default, the 'bits' will be set as 6 by default. 8. If the bits of 'begin_number' is less than the 'bits' you specified, like [1234,1], the 'bits' will be set as 6 by default. |
internetChargeType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property internetChargeType: Instance internet access charge type.Support 'PayByBandwidth' and 'PayByTraffic' only. Default is PayByTraffic. |
internetMaxBandwidthOut | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property internetMaxBandwidthOut: The maximum outbound public bandwidth. |
ioOptimized | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ioOptimized: Specifies whether the instance is I\/O optimized. |
ipv6AddressCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ipv6AddressCount: Specifies the number of randomly generated IPv6 addresses for the elastic NIC. |
ipv6Addresses | java.util.List | Property ipv6Addresses: Specify one or more IPv6 addresses for the elastic NIC. |
keyPairName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property keyPairName: SSH key pair name.Old instances will not be changed. |
launchTemplateId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property launchTemplateId: ID of launch template. |
launchTemplateName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property launchTemplateName: Name of launch template. |
launchTemplateVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property launchTemplateVersion: Version of launch template. |
networkInterfaceQueueNumber | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property networkInterfaceQueueNumber: The number of queues supported by the primary ENI. |
networkOptions | com.aliyun.ros.cdk.core.IResolvable OR NetworkOptionsProperty | Property networkOptions: Network options. |
networkType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property networkType: Instance network type. |
password | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property password: Password of created ecs instance. |
passwordInherit | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property passwordInherit: Specifies whether to use the password preset in the image. |
period | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property period: Prepaid time period. |
periodUnit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year. |
privateIpAddress | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property privateIpAddress: Private IP for the instance created. |
privatePoolOptions | com.aliyun.ros.cdk.core.IResolvable OR PrivatePoolOptionsProperty | Property privatePoolOptions: The options of the private pool. |
ramRoleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ramRoleName: Instance RAM role name. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: Resource group id. |
schedulerOptions | com.aliyun.ros.cdk.core.IResolvable OR SchedulerOptionsProperty | Property schedulerOptions: undefined. |
securityEnhancementStrategy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property securityEnhancementStrategy: Specifies whether to enable security hardening. |
securityGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property securityGroupId: Security group to create ecs instance. |
securityGroupIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property securityGroupIds: The IDs of security groups N to which the instance belongs. |
securityOptions | com.aliyun.ros.cdk.core.IResolvable OR SecurityOptionsProperty | Property securityOptions: Security options. |
spotDuration | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property spotDuration: The protection period of the spot instance. |
spotInterruptionBehavior | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property spotInterruptionBehavior: The interruption mode of the spot instance. |
spotPriceLimit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
spotStrategy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
storageSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property storageSetId: The storage set ID. |
storageSetPartitionNumber | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property storageSetPartitionNumber: The maximum number of partitions in the storage set. |
subscriptionDeletionForce | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property subscriptionDeletionForce: This option is only applicable to subscription instances. |
systemDiskAutoSnapshotPolicyId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskAutoSnapshotPolicyId: Auto snapshot policy ID. |
systemDiskBurstingEnabled | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskBurstingEnabled: Whether enable bursting. |
systemDiskCategory | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskCategory: Category of system disk. |
systemDiskDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskDescription: Description of created system disk.Old instances will not be changed. |
systemDiskDiskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskDiskName: Name of created system disk.Old instances will not be changed. |
systemDiskEncryptAlgorithm | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskEncryptAlgorithm: The algorithm to use to encrypt the system disk. |
systemDiskEncrypted | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskEncrypted: Specifies whether to encrypt the system disk. |
systemDiskKmsKeyId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskKmsKeyId: The ID of the KMS key to use for the system disk. |
systemDiskPerformanceLevel | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskPerformanceLevel: The performance level of the enhanced SSD used as the system disk.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS. |
systemDiskProvisionedIops | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskProvisionedIops: Provisioning IOPS. |
systemDiskSize | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
systemDiskStorageClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskStorageClusterId: The ID of the dedicated block storage cluster. |
tags | java.util.List<TagsProperty> | Property tags: Tags to attach to instance. |
tenancy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property tenancy: Specifies whether to create the instance on a dedicated host. |
uniqueSuffix | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property uniqueSuffix: Specifies 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. |
updatePolicy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property updatePolicy: Specify the policy at update. |
useAdditionalService | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property useAdditionalService: Specifies whether to use the system configurations for virtual machines provided by Alibaba Cloud. |
userData | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property userData: The user data of the instance. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The VPC id to create ecs instance. |
vSwitchId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vSwitchId: The ID of the vSwitch to which to connect to the instance. |
zoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zoneId: The ID of the zone to which the instance belongs. |
zoneIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property zoneIds: Zone ids for query parameters. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
instanceTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceType: Ecs instance supported instance type, make sure it should be correct.
maxAmountRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxAmount: Max number of instances to create, should be bigger than 'MinAmount' and smaller than 1000.
affinityOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property affinity: Specifies whether to associate the instance on a dedicated host with the dedicated host.
Valid values:
- default: does not associate the ECS instance with the dedicated host. When you start an instance that was stopped in economical mode, the instance is automatically deployed to another dedicated host in the automatic deployment resource pool if the available resources of the original dedicated host are insufficient.
- host: associates the ECS instance with the dedicated host. When you start an instance that was stopped in economical mode, the instance remains on the original dedicated host. If the available resources of the original dedicated host are insufficient, the instance cannot start. Default value: default.
allocatePublicIpOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property allocatePublicIp: The public ip for ecs instance, if properties is true, will allocate public ip.
If property InternetMaxBandwidthOut set to 0, it will not assign public ip.
autoReleaseTimeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoReleaseTime: Auto release time for created instance, Follow ISO8601 standard using UTC time.
format is 'yyyy-MM-ddTHH:mm:ssZ'. Not bigger than 3 years from this day onwards
autoRenewOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether renew the fee automatically?
When the parameter InstanceChargeType is PrePaid, it will take effect. Range of value:True: automatic renewal.False: no automatic renewal. Default value is False.Old instances will not be changed.
autoRenewPeriodOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: The time period of auto renew.
When the parameter InstanceChargeType is PrePaid, it will take effect.It could be 1, 2, 3, 6, 12, 24, 36, 48, 60. Default value is 1.Old instances will not be changed.
cpuOptionsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR CpuOptionsProperty
Property cpuOptions: Cpu options.
creditSpecificationOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property creditSpecification: The performance mode of the burstable instance.
Valid values:
- Standard: the standard mode.
- Unlimited: the unlimited mode.
dedicatedHostIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dedicatedHostId: The ID of the dedicated host.
You can call the DescribeDedicatedHosts operation to query the list of dedicated host IDs.
Spot instances cannot be created on dedicated hosts. If you specify DedicatedHostId, SpotStrategy and SpotPriceLimit are automatically ignored.
deletionForceOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionForce: Whether force delete the instance.
Default value is false.
deletionProtectionOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionProtection: Whether an instance can be released manually through the console or API, deletion protection only support postPaid instance.
deploymentSetGroupNoOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property deploymentSetGroupNo: The number of the deployment set group to which to deploy the instance.
If the deployment set specified by DeploymentSetId uses the high availability group strategy (AvailabilityGroup), you can use DeploymentSetGroupNo to specify a deployment set group in the deployment set. Valid values: 1 to 7.
deploymentSetIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deploymentSetId: Deployment set ID.
The change of the property does not affect existing instances.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Description of the instance, [2, 256] characters.
Do not fill or empty, the default is empty. Old instances will not be changed.
diskMappingsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
DiskMappingsProperty>
Property diskMappings: Disk mappings to attach to instance.
Max support 16 disks. If the image contains a data disk, you can specify other parameters of the data disk via the same value of parameter "Device". If parameter "Category" is not specified, it will be cloud_efficiency instead of "Category" of data disk in the image.Old instances will not be changed.
eniMappingsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
EniMappingsProperty>
Property eniMappings: NetworkInterface to attach to instance.
Max support 2 ENIs.
hostNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostName: Host name of created ecs instance.
at least 2 characters, and '.' '-' Is not the first and last characters as hostname, not continuous use. Windows platform can be up to 15 characters, allowing letters (without limiting case), numbers and '-', and does not support the number of points, not all is digital ('.').Other (Linux, etc.) platform up to 64 characters, allowing support number multiple points for the period between the points, each permit letters (without limiting case), numbers and '-' components. Support to use the regular expression to set the different instance name for each ECS instance. HostName could be specified as 'name_prefix[begin_number,bits]name_suffix', such as 'host[123,4]tail'. If you creates 3 instances with hostname 'host[123,4]tail', all the host names of instances are host0123tail, host0124tail, host0125tail. The 'name_prefix[begin_number,bits]name_suffix' should follow those rules:
- 'name_prefix' is required.
- 'name_suffix' is optional.
- The name regular expression can't include any spaces.
- The 'bits' must be in range [1, 6].
- The 'begin_number' must be in range [0, 999999].
- You could only specify 'begin_number'. The 'bits' will be set as 6 by default.
- You also could only specify the [] or [,]. The 'begin_number' will be set as 0 by default, the 'bits' will be set as 6 by default.
- If the bits of 'begin_number' is less than the 'bits' you specified, like [1234,1], the 'bits' will be set as 6 by default. The host name is specified by regular expression works after restart instance manually.
hostNamesOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property hostNames: The hostname of instance N.
You can use this parameter to specify different hostnames for multiple instances. Take note of the following items:
- The maximum value of N must be the same as the Amount value. For example, if you set Amount to 2, you can use HostNames.1 and HostNames.2 to specify hostnames for the individual instances. Examples: HostNames.1=test1 and HostNames.2=test2.
- You cannot specify both HostName and HostNames.N.
- The hostname cannot start or end with a period (.) or hyphen (-). The hostname cannot contain consecutive periods (.) or hyphens (-).
- For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. The hostname can contain letters, digits, and hyphens (-).
- For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate a hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-).
hpcClusterIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hpcClusterId: The HPC cluster ID to which the instance belongs.The change of the property does not affect existing instances.
httpEndpointOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property httpEndpoint: Specifies whether the access channel is enabled for instance metadata.
Valid values:
- enabled
- disabled Default value: enabled.
httpTokensOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property httpTokens: Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata.
Valid values:
- optional: does not forcefully use the security-enhanced mode (IMDSv2).
- required: forcefully uses the security-enhanced mode (IMDSv2). After you set this parameter to required, you cannot access instance metadata in normal mode. Default value: optional.
imageFamilyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageFamily: The name of the image family.
You can set this parameter to obtain the latest available custom image from the specified image family to create the instance.
- ImageFamily must be empty if ImageId is specified.
- ImageFamily can be specified if ImageId is not specified.
imageIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: The image ID.
Naming convention for image IDs <\/summary> - Public images: Named based on the operating system version, architecture, language, and published date. - Custom images, shared images, cloud marketplace images, and community images: Start with the letter `m`. <\/details> --- ### `imageOptions`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR [ImageOptionsProperty](../Structs/ImageOptionsProperty.md) Property imageOptions: Image options. --- ### `instanceChargeType`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceChargeType: Instance Charge type, allowed value: Prepaid and Postpaid. If specified Prepaid, please ensure you have sufficient balance in your account. Or instance creation will be failure. Default value is Postpaid.Old instances will not be changed. --- ### `instanceName`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. Support to use the regular expression to set the different instance name for each ECS instance. InstanceName could be specified as 'name_prefix[begin_number,bits]name_suffix', such as 'testinstance[123,4]tail'. If you creates 3 instances with the instance name 'testinstance[123,4]tail', all the instances' names are testinstance0123tail, testinstance0124tail, testinstance0125tail. The 'name_prefix[begin_number,bits]name_suffix' should follow those rules: 1. 'name_prefix' is required. 2. 'name_suffix' is optional. 3. The name regular expression can't include any spaces. 4. The 'bits' must be in range [1, 6]. 5. The 'begin_number' must be in range [0, 999999]. 6. You could only specify 'begin_number'. The 'bits' will be set as 6 by default. 7. You also could only specify the [] or [,]. The 'begin_number' will be set as 0 by default, the 'bits' will be set as 6 by default. 8. If the bits of 'begin_number' is less than the 'bits' you specified, like [1234,1], the 'bits' will be set as 6 by default. --- ### `internetChargeType`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property internetChargeType: Instance internet access charge type.Support 'PayByBandwidth' and 'PayByTraffic' only. Default is PayByTraffic. --- ### `internetMaxBandwidthOut`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property internetMaxBandwidthOut: The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0. --- ### `ioOptimized`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ioOptimized: Specifies whether the instance is I\/O optimized. For instances of [retired instance types](), the default value is none. For instances of other instance types, the default value is optimized. Valid values: * none: The instance is not I/O optimized. * optimized: The instance is I/O optimized. --- ### `ipv6AddressCount`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ipv6AddressCount: Specifies the number of randomly generated IPv6 addresses for the elastic NIC. Note You cannot specify the parameters Ipv6Addresses and Ipv6AddressCount at the same time. The change of the property does not affect existing instances. --- ### `ipv6Addresses`Optional - *Type:* java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property ipv6Addresses: Specify one or more IPv6 addresses for the elastic NIC. Currently, the maximum list size is 1. Example value: 2001:db8:1234:1a00::*** . Note You cannot specify the parameters Ipv6Addresses and Ipv6AddressCount at the same time. The change of the property does not affect existing instances. --- ### `keyPairName`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: SSH key pair name.Old instances will not be changed. --- ### `launchTemplateId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property launchTemplateId: ID of launch template. Launch template id or name must be specified to use launch template --- ### `launchTemplateName`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property launchTemplateName: Name of launch template. Launch template id or name must be specified to use launch template --- ### `launchTemplateVersion`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property launchTemplateVersion: Version of launch template. Default version is used if version is not specified. --- ### `networkInterfaceQueueNumber`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property networkInterfaceQueueNumber: The number of queues supported by the primary ENI. Take note of the following items: * The value of this parameter cannot exceed the maximum number of queues per ENI allowed for the instance type. * The total number of queues for all ENIs on the instance cannot exceed the queue quota for the instance type. * If NetworkInterface.N.InstanceType is set to Primary, you cannot specify NetworkInterfaceQueueNumber but can specify NetworkInterface.N.QueueNumber --- ### `networkOptions`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR [NetworkOptionsProperty](../Structs/NetworkOptionsProperty.md) Property networkOptions: Network options. --- ### `networkType`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkType: Instance network type. Support 'vpc' and 'classic', for compatible reason, default is 'classic'. If vswitch id and vpc id is specified, the property will be forced to be set to 'vpc' --- ### `password`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property password: Password of created ecs instance. Must contain at least 3 types of special character, lower character, upper character, number. --- ### `passwordInherit`Optional - *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property passwordInherit: Specifies whether to use the password preset in the image. To use the PasswordInherit parameter, the Password parameter must be empty and you must make sure that the selected image has a password configured. --- ### `period`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property period: Prepaid time period. Unit is month, it could be from 1 to 9 or 12, 24, 36, 48, 60. Default value is 1.Old instances will not be changed. --- ### `periodUnit`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year. Default value is Month.Old instances will not be changed. --- ### `privateIpAddress`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property privateIpAddress: Private IP for the instance created. Only works for VPC instance and cannot duplicated with existing instance. --- ### `privatePoolOptions`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR [PrivatePoolOptionsProperty](../Structs/PrivatePoolOptionsProperty.md) Property privatePoolOptions: The options of the private pool. --- ### `ramRoleName`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ramRoleName: Instance RAM role name. The name is provided and maintained by Resource Access Management (RAM) and can be queried using ListRoles. For more information, see RAM API CreateRole and ListRoles. --- ### `resourceGroupId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id. --- ### `schedulerOptions`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR [SchedulerOptionsProperty](../Structs/SchedulerOptionsProperty.md) Property schedulerOptions: undefined. --- ### `securityEnhancementStrategy`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityEnhancementStrategy: Specifies whether to enable security hardening. Valid values: * Active: enables security hardening. This value is applicable only to public images. * Deactive: does not enable security hardening. This value is applicable to all images. --- ### `securityGroupId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupId: Security group to create ecs instance. For classic instance need the security group not belong to VPC, for VPC instance, please make sure the security group belong to specified VPC. --- ### `securityGroupIds`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property securityGroupIds: The IDs of security groups N to which the instance belongs. The valid values of N are based on the maximum number of security groups to which an instance can belong. For more information, see Security group limits.Note: You cannot specify both SecurityGroupId and SecurityGroupIds at the same time. --- ### `securityOptions`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR [SecurityOptionsProperty](../Structs/SecurityOptionsProperty.md) Property securityOptions: Security options. --- ### `spotDuration`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property spotDuration: The protection period of the spot instance. Unit: hours. Valid values: * 1: After a spot instance is created, the system ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. * 0: After a spot instance is created, the system does not ensure that the instance can run for one hour. The system compares the biding price with the market prices and checks the resource inventory to determine whether to retain or release the instance. Default value: 1. > * You can set this parameter only to 0 or 1. * The spot instance is billed by second. Specify an appropriate protection period. * The system sends an ECS system event to notify you 5 minutes before the instance is released. --- ### `spotInterruptionBehavior`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property spotInterruptionBehavior: The interruption mode of the spot instance. Valid values: * Terminate: The instance is released. * Stop: The instance is stopped in economical mode. For information about the economical mode, see [Economical mode](). Default value: Terminate. --- ### `spotPriceLimit`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid. Three decimals is allowed at most. --- ### `spotStrategy`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid. Value range: "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. "Default value: NoSpot. --- ### `storageSetId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property storageSetId: The storage set ID. --- ### `storageSetPartitionNumber`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property storageSetPartitionNumber: The maximum number of partitions in the storage set. Valid values: integers greater than or equal to 2. --- ### `subscriptionDeletionForce`Optional - *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property subscriptionDeletionForce: This option is only applicable to subscription instances. For subscription instances, if this option is true, the instance will be converted to a postpaid instance before being deleted. If false, the forced deletion will not be performed. This operation will incur additional fees, so choose carefully. --- ### `systemDiskAutoSnapshotPolicyId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskAutoSnapshotPolicyId: Auto snapshot policy ID. --- ### `systemDiskBurstingEnabled`Optional - *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskBurstingEnabled: Whether enable bursting. --- ### `systemDiskCategory`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskCategory: Category of system disk. Default is cloud_efficiency. support cloud|cloud_efficiency|cloud_ssd|cloud_essd|ephemeral_ssd|cloud_auto|cloud_essd_entry.Old instances will not be changed. --- ### `systemDiskDescription`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDescription: Description of created system disk.Old instances will not be changed. --- ### `systemDiskDiskName`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDiskName: Name of created system disk.Old instances will not be changed. --- ### `systemDiskEncryptAlgorithm`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskEncryptAlgorithm: The algorithm to use to encrypt the system disk. Valid values: * aes-256 * sm4-128 Default value: aes-256. --- ### `systemDiskEncrypted`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskEncrypted: Specifies whether to encrypt the system disk. Valid values: * true: encrypts the system disk. * false: does not encrypt the system disk. Default value: false. --- ### `systemDiskKmsKeyId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskKmsKeyId: The ID of the KMS key to use for the system disk. --- ### `systemDiskPerformanceLevel`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskPerformanceLevel: The performance level of the enhanced SSD used as the system disk.Default value: PL1. Valid values:PL0: A single enhanced SSD delivers up to 10,000 random read\/write IOPS.PL1: A single enhanced SSD delivers up to 50,000 random read\/write IOPS.PL2: A single enhanced SSD delivers up to 100,000 random read\/write IOPS.PL3: A single enhanced SSD delivers up to 1,000,000 random read\/write IOPS. --- ### `systemDiskProvisionedIops`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskProvisionedIops: Provisioning IOPS. --- ### `systemDiskSize`Optional - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskSize: Disk size of the system disk, range from 20 to 500 GB. If you specify with your own image, make sure the system disk size bigger than image size. --- ### `systemDiskStorageClusterId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskStorageClusterId: The ID of the dedicated block storage cluster. If you want to use disks in a dedicated block storage cluster as system disks when you create instances, you must specify this parameter. --- ### `tags`Optional - *Type:* java.util.List<[TagsProperty](../Structs/TagsProperty.md)> Property tags: Tags to attach to instance. Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required. --- ### `tenancy`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property tenancy: Specifies whether to create the instance on a dedicated host. Valid values: * **default**: creates the instance on a non-dedicated host. * **host**: creates the instance on a dedicated host. If you do not specify **DedicatedHostId**, Alibaba Cloud selects a dedicated host for the instance. Default value: **default**. --- ### `uniqueSuffix`Optional - *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property uniqueSuffix: Specifies 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 to 999. Valid values: * **true**: appends incremental suffixes to the hostname and the instance name. * **false**: does not append incremental suffixes to the hostname or the instance name. Default value: **false**. When the **HostName** or **InstanceName** value is set in the name_prefix[begin_number,bits] format without a suffix (name_suffix), the **UniqueSuffix** parameter does not take effect. The names are sorted in the specified sequence. --- ### `updatePolicy`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property updatePolicy: Specify the policy at update. The value can be 'ForNewInstances' or 'ForAllInstances'. If UpdatePolicy is 'ForAllInstance', The updatable parameters are InstanceType, ImageId, SystemDiskSize, SystemDiskCategory, Password, UserData,InternetChargeType, InternetMaxBandwidthOut, InternetMaxBandwidthIn. The default is 'ForNewInstances' --- ### `useAdditionalService`Optional - *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property useAdditionalService: Specifies whether to use the system configurations for virtual machines provided by Alibaba Cloud. System configurations for Windows: NTP and KMS. System configurations for Linux: NTP and YUM. --- ### `userData`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property userData: The user data of the instance. You must specify Base64-encoded data. The instance user data cannot exceed 32 KB in size before Base64 encoding. For information about the limits, formats, and running frequencies of instance user data, see [Instance user data](). > To ensure security, we recommend that you do not use plaintext to pass in > confidential information, such as passwords or private keys, as user data. If you > need to pass in confidential information, we recommend that you encrypt and > encode the information in Base64 and then decode and decrypt the information in > the same manner in the instance. --- ### `vpcId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The VPC id to create ecs instance. --- ### `vSwitchId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: The ID of the vSwitch to which to connect to the instance. You must set this parameter when you create an instance of the VPC type. The specified vSwitch and security group must belong to the same VPC. You can call the [DescribeVSwitches]() operation to query available vSwitches. Take note of the following items: * If you specify the `VSwitchId` parameter, the zone specified by the `ZoneId` parameter must be the zone where the specified vSwitch is located. You can also leave the `ZoneId` parameter empty. Then, the system selects the zone where the specified vSwitch resides. * If `NetworkInterface.N.InstanceType` is set to `Primary`, you cannot specify `VSwitchId` but can specify `NetworkInterface.N.VSwitchId`. --- ### `zoneId`Optional - *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: The ID of the zone to which the instance belongs. For more information, call the DescribeZones operation to query the most recent zone list. Default value is empty, which means random selection. --- ### `zoneIds`Optional - *Type:* com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property zoneIds: Zone ids for query parameters. --- ## Methods | **Name** | **Description** | | --- | --- | | toString | Returns a string representation of this construct. | | synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. | | addCondition | *No description.* | | addCount | *No description.* | | addDependency | *No description.* | | addResourceDesc | *No description.* | | applyRemovalPolicy | *No description.* | | fetchCondition | *No description.* | | fetchDependency | *No description.* | | fetchResourceDesc | *No description.* | | getAtt | *No description.* | | setMetadata | *No description.* | --- ### `toString` public java.lang.String toString()
Returns a string representation of this construct. ### `synthesize` public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis. This method is usually implemented by framework-level constructs such as `Stack` and `Asset` as they participate in synthesizing the cloud assembly. `session`Required - *Type:* com.aliyun.ros.cdk.core.ISynthesisSession The synthesis session. --- ### `addCondition` public void addCondition(RosCondition condition)
`condition`Required - *Type:* com.aliyun.ros.cdk.core.RosCondition --- ### `addCount` public void addCount(java.lang.Number OR IResolvable count)
`count`Required - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable --- ### `addDependency` public void addDependency(Resource resource)
`resource`Required - *Type:* com.aliyun.ros.cdk.core.Resource --- ### `addResourceDesc` public void addResourceDesc(java.lang.String desc)
`desc`Required - *Type:* java.lang.String --- ### `applyRemovalPolicy` public void applyRemovalPolicy(RemovalPolicy policy)
`policy`Required - *Type:* com.aliyun.ros.cdk.core.RemovalPolicy --- ### `fetchCondition` public RosCondition fetchCondition()
### `fetchDependency` public java.util.List<java.lang.String> fetchDependency()
### `fetchResourceDesc` public java.lang.String fetchResourceDesc()
### `getAtt` public IResolvable getAtt(java.lang.String name)
`name`Required - *Type:* java.lang.String --- ### `setMetadata` public void setMetadata(java.lang.String key, java.lang.Object value)
`key`Required - *Type:* java.lang.String --- `value`Required - *Type:* java.lang.Object --- ## Static Functions | **Name** | **Description** | | --- | --- | | isConstruct | Return whether the given object is a Construct. | --- ### `isConstruct` import com.aliyun.ros.cdk.ecs.InstanceGroup;
InstanceGroup.isConstruct(java.lang.Object x)
Return whether the given object is a Construct. `x`Required - *Type:* java.lang.Object --- ## Properties | **Name** | **Type** | **Description** | | --- | --- | --- | | node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. | | env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. | | ref | java.lang.String | *No description.* | | stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. | | resource | com.aliyun.ros.cdk.core.RosResource | *No description.* | | attrHostNames | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostNames: Host names of created instances. | | attrInnerIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InnerIps: Inner IP address list of the specified instances. | | attrInstanceIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceIds: The instance id list of created ecs instances. | | attrIpv6Addresses | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Ipv6Addresses: IPv6 addresses list of created ecs instances. | | attrIpv6AddressIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Ipv6AddressIds: IPv6 address IDs list of created ecs instances. | | attrOrderId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute OrderId: The order id list of created instance. | | attrPrivateIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PrivateIps: Private IP address list of created ecs instances. | | attrPublicIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PublicIps: Public IP address list of created ecs instances. | | attrZoneIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ZoneIds: Zone id of created instances. | | props | [InstanceGroupProps](../Structs/InstanceGroupProps.md) | *No description.* | --- ### `node`Required public ConstructNode getNode();
- *Type:* com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct. --- ### `env`Required public IResourceEnvironment getEnv();
- *Type:* com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to. For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into. --- ### `ref`Required public java.lang.String getRef();
- *Type:* java.lang.String --- ### `stack`Required public Stack getStack();
- *Type:* com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined. --- ### `resource`Optional public RosResource getResource();
- *Type:* com.aliyun.ros.cdk.core.RosResource --- ### `attrHostNames`Required public java.lang.Object getAttrHostNames();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostNames: Host names of created instances. --- ### `attrInnerIps`Required public java.lang.Object getAttrInnerIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InnerIps: Inner IP address list of the specified instances. Only for classical instances. --- ### `attrInstanceIds`Required public java.lang.Object getAttrInstanceIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceIds: The instance id list of created ecs instances. --- ### `attrIpv6Addresses`Required public java.lang.Object getAttrIpv6Addresses();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Ipv6Addresses: IPv6 addresses list of created ecs instances. Note: The return type is a two-tier list. If the instance does not have any IPv6 address, the element at the corresponding position in the list is null. If all instances does not have any IPv address, will return null. --- ### `attrIpv6AddressIds`Required public java.lang.Object getAttrIpv6AddressIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Ipv6AddressIds: IPv6 address IDs list of created ecs instances. Note: The return type is a two-tier list.If the instance does not have any IPv6 address, the element at the corresponding position in the list is null. If all instances does not have any IPv address, will return null. --- ### `attrOrderId`Required public java.lang.Object getAttrOrderId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute OrderId: The order id list of created instance. --- ### `attrPrivateIps`Required public java.lang.Object getAttrPrivateIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrivateIps: Private IP address list of created ecs instances. Only for VPC instance. --- ### `attrPublicIps`Required public java.lang.Object getAttrPublicIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PublicIps: Public IP address list of created ecs instances. --- ### `attrZoneIds`Required public java.lang.Object getAttrZoneIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ZoneIds: Zone id of created instances. --- ### `props`Required public InstanceGroupProps getProps();
- *Type:* [InstanceGroupProps](../Structs/InstanceGroupProps.md) ---
toString | Returns a string representation of this construct. | | synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. | | addCondition | *No description.* | | addCount | *No description.* | | addDependency | *No description.* | | addResourceDesc | *No description.* | | applyRemovalPolicy | *No description.* | | fetchCondition | *No description.* | | fetchDependency | *No description.* | | fetchResourceDesc | *No description.* | | getAtt | *No description.* | | setMetadata | *No description.* | --- ### `toString` public java.lang.String toString()
Returns a string representation of this construct. ### `synthesize` public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis. This method is usually implemented by framework-level constructs such as `Stack` and `Asset` as they participate in synthesizing the cloud assembly. `session`Required - *Type:* com.aliyun.ros.cdk.core.ISynthesisSession The synthesis session. --- ### `addCondition` public void addCondition(RosCondition condition)
`condition`Required - *Type:* com.aliyun.ros.cdk.core.RosCondition --- ### `addCount` public void addCount(java.lang.Number OR IResolvable count)
`count`Required - *Type:* java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable --- ### `addDependency` public void addDependency(Resource resource)
`resource`Required - *Type:* com.aliyun.ros.cdk.core.Resource --- ### `addResourceDesc` public void addResourceDesc(java.lang.String desc)
`desc`Required - *Type:* java.lang.String --- ### `applyRemovalPolicy` public void applyRemovalPolicy(RemovalPolicy policy)
`policy`Required - *Type:* com.aliyun.ros.cdk.core.RemovalPolicy --- ### `fetchCondition` public RosCondition fetchCondition()
### `fetchDependency` public java.util.List<java.lang.String> fetchDependency()
### `fetchResourceDesc` public java.lang.String fetchResourceDesc()
### `getAtt` public IResolvable getAtt(java.lang.String name)
`name`Required - *Type:* java.lang.String --- ### `setMetadata` public void setMetadata(java.lang.String key, java.lang.Object value)
`key`Required - *Type:* java.lang.String --- `value`Required - *Type:* java.lang.Object --- ## Static Functions | **Name** | **Description** | | --- | --- | | isConstruct | Return whether the given object is a Construct. | --- ### `isConstruct` import com.aliyun.ros.cdk.ecs.InstanceGroup;
InstanceGroup.isConstruct(java.lang.Object x)
Return whether the given object is a Construct. `x`Required - *Type:* java.lang.Object --- ## Properties | **Name** | **Type** | **Description** | | --- | --- | --- | | node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. | | env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. | | ref | java.lang.String | *No description.* | | stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. | | resource | com.aliyun.ros.cdk.core.RosResource | *No description.* | | attrHostNames | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostNames: Host names of created instances. | | attrInnerIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InnerIps: Inner IP address list of the specified instances. | | attrInstanceIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceIds: The instance id list of created ecs instances. | | attrIpv6Addresses | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Ipv6Addresses: IPv6 addresses list of created ecs instances. | | attrIpv6AddressIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Ipv6AddressIds: IPv6 address IDs list of created ecs instances. | | attrOrderId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute OrderId: The order id list of created instance. | | attrPrivateIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PrivateIps: Private IP address list of created ecs instances. | | attrPublicIps | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PublicIps: Public IP address list of created ecs instances. | | attrZoneIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ZoneIds: Zone id of created instances. | | props | [InstanceGroupProps](../Structs/InstanceGroupProps.md) | *No description.* | --- ### `node`Required public ConstructNode getNode();
- *Type:* com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct. --- ### `env`Required public IResourceEnvironment getEnv();
- *Type:* com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to. For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into. --- ### `ref`Required public java.lang.String getRef();
- *Type:* java.lang.String --- ### `stack`Required public Stack getStack();
- *Type:* com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined. --- ### `resource`Optional public RosResource getResource();
- *Type:* com.aliyun.ros.cdk.core.RosResource --- ### `attrHostNames`Required public java.lang.Object getAttrHostNames();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute HostNames: Host names of created instances. --- ### `attrInnerIps`Required public java.lang.Object getAttrInnerIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InnerIps: Inner IP address list of the specified instances. Only for classical instances. --- ### `attrInstanceIds`Required public java.lang.Object getAttrInstanceIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceIds: The instance id list of created ecs instances. --- ### `attrIpv6Addresses`Required public java.lang.Object getAttrIpv6Addresses();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Ipv6Addresses: IPv6 addresses list of created ecs instances. Note: The return type is a two-tier list. If the instance does not have any IPv6 address, the element at the corresponding position in the list is null. If all instances does not have any IPv address, will return null. --- ### `attrIpv6AddressIds`Required public java.lang.Object getAttrIpv6AddressIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Ipv6AddressIds: IPv6 address IDs list of created ecs instances. Note: The return type is a two-tier list.If the instance does not have any IPv6 address, the element at the corresponding position in the list is null. If all instances does not have any IPv address, will return null. --- ### `attrOrderId`Required public java.lang.Object getAttrOrderId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute OrderId: The order id list of created instance. --- ### `attrPrivateIps`Required public java.lang.Object getAttrPrivateIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PrivateIps: Private IP address list of created ecs instances. Only for VPC instance. --- ### `attrPublicIps`Required public java.lang.Object getAttrPublicIps();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PublicIps: Public IP address list of created ecs instances. --- ### `attrZoneIds`Required public java.lang.Object getAttrZoneIds();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ZoneIds: Zone id of created instances. --- ### `props`Required public InstanceGroupProps getProps();
- *Type:* [InstanceGroupProps](../Structs/InstanceGroupProps.md) ---