InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-instance
Initializer
import com.aliyun.ros.cdk.ecs.InstanceProps;
InstanceProps.builder()
.instanceType(java.lang.String)
.instanceType(IResolvable)
// .affinity(java.lang.String)
// .affinity(IResolvable)
// .allocatePublicIp(java.lang.Boolean)
// .allocatePublicIp(IResolvable)
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .creditSpecification(java.lang.String)
// .creditSpecification(IResolvable)
// .dedicatedHostId(java.lang.String)
// .dedicatedHostId(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>)
// .hostName(java.lang.String)
// .hostName(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)
// .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)
// .keyPairName(java.lang.String)
// .keyPairName(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)
// .securityEnhancementStrategy(java.lang.String)
// .securityEnhancementStrategy(IResolvable)
// .securityGroupId(java.lang.String)
// .securityGroupId(IResolvable)
// .securityGroupIds(IResolvable)
// .securityGroupIds(java.util.List<java.lang.String)
// .securityGroupIds(IResolvable>)
// .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)
// .systemDiskCategory(java.lang.String)
// .systemDiskCategory(IResolvable)
// .systemDiskDescription(java.lang.String)
// .systemDiskDescription(IResolvable)
// .systemDiskDiskName(java.lang.String)
// .systemDiskDiskName(IResolvable)
// .systemDiskPerformanceLevel(java.lang.String)
// .systemDiskPerformanceLevel(IResolvable)
// .systemDiskSize(java.lang.Number)
// .systemDiskSize(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .tenancy(java.lang.String)
// .tenancy(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();
Properties
| Name | Type | 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. |
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. |
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. |
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. |
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. |
hostName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hostName: Host name of created ecs instance. |
hpcClusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hpcClusterId: The ID of the high performance computing (HPC) cluster to which the instance belongs. |
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. |
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 '.', '-'. |
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. |
keyPairName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property keyPairName: SSH key pair name. |
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. |
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 ID list of security group to which to assign the instance. |
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. |
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. |
systemDiskDiskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property systemDiskDiskName: Name of created 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. |
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. |
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. |
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. |
instanceTypeRequired
public java.lang.Object getInstanceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceType: Ecs instance supported instance type, make sure it should be correct.
affinityOptional
public java.lang.Object getAffinity();
- 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
public java.lang.Object getAllocatePublicIp();
- 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.
autoRenewOptional
public java.lang.Object getAutoRenew();
- 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.
autoRenewPeriodOptional
public java.lang.Object getAutoRenewPeriod();
- 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.
creditSpecificationOptional
public java.lang.Object getCreditSpecification();
- 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
public java.lang.Object getDedicatedHostId();
- 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.
deletionProtectionOptional
public java.lang.Object getDeletionProtection();
- 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
public java.lang.Object getDeploymentSetGroupNo();
- 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
public java.lang.Object getDeploymentSetId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deploymentSetId: Deployment set ID.
descriptionOptional
public java.lang.Object getDescription();
- 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.
diskMappingsOptional
public java.lang.Object getDiskMappings();
- 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.
hostNameOptional
public java.lang.Object getHostName();
- 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.
hpcClusterIdOptional
public java.lang.Object getHpcClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hpcClusterId: The ID of the high performance computing (HPC) cluster to which the instance belongs.
This parameter is required when you create instances of a Supper Computing Cluster (SCC) instance type. For information about how to create an HPC cluster, see CreateHpcCluster.
httpEndpointOptional
public java.lang.Object getHttpEndpoint();
- 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
public java.lang.Object getHttpTokens();
- 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
public java.lang.Object getImageFamily();
- 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
public java.lang.Object getImageId();
- 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> --- ### `instanceChargeType`Optional public java.lang.Object getInstanceChargeType();
- *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. --- ### `instanceName`Optional public java.lang.Object getInstanceName();
- *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 '.', '-'. --- ### `internetChargeType`Optional public java.lang.Object getInternetChargeType();
- *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 public java.lang.Object getInternetMaxBandwidthOut();
- *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 public java.lang.Object getIoOptimized();
- *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. --- ### `keyPairName`Optional public java.lang.Object getKeyPairName();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: SSH key pair name. --- ### `password`Optional public java.lang.Object getPassword();
- *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 public java.lang.Object getPasswordInherit();
- *Type:* java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property passwordInherit: Specifies whether to use the password preset in the image. Valid values: * true: uses the preset password. * false: does not use the preset password. Default value: false. > If you set this parameter to true, make sure that you leave the Password > parameter empty and the selected image has a preset password. --- ### `period`Optional public java.lang.Object getPeriod();
- *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. --- ### `periodUnit`Optional public java.lang.Object getPeriodUnit();
- *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. --- ### `privateIpAddress`Optional public java.lang.Object getPrivateIpAddress();
- *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 public java.lang.Object getPrivatePoolOptions();
- *Type:* com.aliyun.ros.cdk.core.IResolvable OR [PrivatePoolOptionsProperty](../Structs/PrivatePoolOptionsProperty.md) Property privatePoolOptions: The options of the private pool. --- ### `ramRoleName`Optional public java.lang.Object getRamRoleName();
- *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 public java.lang.Object getResourceGroupId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id. --- ### `securityEnhancementStrategy`Optional public java.lang.Object getSecurityEnhancementStrategy();
- *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 public java.lang.Object getSecurityGroupId();
- *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 public java.lang.Object getSecurityGroupIds();
- *Type:* com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property securityGroupIds: The ID list of security group to which to assign the instance. The max length is based on the maximum number of security groups to which an instance can belong. For more information, see the "Security group limits" section in Limits. --- ### `spotDuration`Optional public java.lang.Object getSpotDuration();
- *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 public java.lang.Object getSpotInterruptionBehavior();
- *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 public java.lang.Object getSpotPriceLimit();
- *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 public java.lang.Object getSpotStrategy();
- *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 public java.lang.Object getStorageSetId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property storageSetId: The storage set ID. --- ### `storageSetPartitionNumber`Optional public java.lang.Object getStorageSetPartitionNumber();
- *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 public java.lang.Object getSubscriptionDeletionForce();
- *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. --- ### `systemDiskCategory`Optional public java.lang.Object getSystemDiskCategory();
- *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 --- ### `systemDiskDescription`Optional public java.lang.Object getSystemDiskDescription();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDescription: Description of created system disk. --- ### `systemDiskDiskName`Optional public java.lang.Object getSystemDiskDiskName();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDiskName: Name of created system disk. --- ### `systemDiskPerformanceLevel`Optional public java.lang.Object getSystemDiskPerformanceLevel();
- *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. --- ### `systemDiskSize`Optional public java.lang.Object getSystemDiskSize();
- *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. --- ### `tags`Optional public java.util.List<TagsProperty> getTags();
- *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 public java.lang.Object getTenancy();
- *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**. --- ### `useAdditionalService`Optional public java.lang.Object getUseAdditionalService();
- *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 public java.lang.Object getUserData();
- *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 public java.lang.Object getVpcId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The VPC id to create ecs instance. --- ### `vSwitchId`Optional public java.lang.Object getVSwitchId();
- *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 public java.lang.Object getZoneId();
- *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 public java.lang.Object getZoneIds();
- *Type:* com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property zoneIds: Zone ids for query parameters. ---
public java.lang.Object getInstanceChargeType();
public java.lang.Object getInstanceName();
public java.lang.Object getInternetChargeType();
public java.lang.Object getInternetMaxBandwidthOut();
public java.lang.Object getIoOptimized();
public java.lang.Object getKeyPairName();
public java.lang.Object getPassword();
public java.lang.Object getPasswordInherit();
public java.lang.Object getPeriod();
public java.lang.Object getPeriodUnit();
public java.lang.Object getPrivateIpAddress();
public java.lang.Object getPrivatePoolOptions();
public java.lang.Object getRamRoleName();
public java.lang.Object getResourceGroupId();
public java.lang.Object getSecurityEnhancementStrategy();
public java.lang.Object getSecurityGroupId();
public java.lang.Object getSecurityGroupIds();
public java.lang.Object getSpotDuration();
- *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 public java.lang.Object getSpotInterruptionBehavior();
- *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 public java.lang.Object getSpotPriceLimit();
- *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 public java.lang.Object getSpotStrategy();
- *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 public java.lang.Object getStorageSetId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property storageSetId: The storage set ID. --- ### `storageSetPartitionNumber`Optional public java.lang.Object getStorageSetPartitionNumber();
- *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 public java.lang.Object getSubscriptionDeletionForce();
- *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. --- ### `systemDiskCategory`Optional public java.lang.Object getSystemDiskCategory();
- *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 --- ### `systemDiskDescription`Optional public java.lang.Object getSystemDiskDescription();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDescription: Description of created system disk. --- ### `systemDiskDiskName`Optional public java.lang.Object getSystemDiskDiskName();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property systemDiskDiskName: Name of created system disk. --- ### `systemDiskPerformanceLevel`Optional public java.lang.Object getSystemDiskPerformanceLevel();
- *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. --- ### `systemDiskSize`Optional public java.lang.Object getSystemDiskSize();
- *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. --- ### `tags`Optional public java.util.List<TagsProperty> getTags();
- *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 public java.lang.Object getTenancy();
- *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**. --- ### `useAdditionalService`Optional public java.lang.Object getUseAdditionalService();
- *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 public java.lang.Object getUserData();
- *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 public java.lang.Object getVpcId();
- *Type:* java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The VPC id to create ecs instance. --- ### `vSwitchId`Optional public java.lang.Object getVSwitchId();
- *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 public java.lang.Object getZoneId();
- *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 public java.lang.Object getZoneIds();
- *Type:* com.aliyun.ros.cdk.core.IResolvable OR java.util.List