InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-instance
Initializer
import com.aliyun.ros.cdk.ens.InstanceProps;
InstanceProps.builder()
.dataDiskSize(java.lang.Number)
.dataDiskSize(IResolvable)
.ensRegionId(java.lang.String)
.ensRegionId(IResolvable)
.imageId(java.lang.String)
.imageId(IResolvable)
.instanceType(java.lang.String)
.instanceType(IResolvable)
.period(java.lang.Number)
.period(IResolvable)
.quantity(java.lang.Number)
.quantity(IResolvable)
.systemDiskSize(java.lang.Number)
.systemDiskSize(IResolvable)
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .hostName(java.lang.String)
// .hostName(IResolvable)
// .instanceName(java.lang.String)
// .instanceName(IResolvable)
// .internetChargeType(java.lang.String)
// .internetChargeType(IResolvable)
// .ipType(java.lang.String)
// .ipType(IResolvable)
// .keyPairName(java.lang.String)
// .keyPairName(IResolvable)
// .password(java.lang.String)
// .password(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
// .uniqueSuffix(java.lang.Boolean)
// .uniqueSuffix(IResolvable)
// .userData(java.lang.String)
// .userData(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
dataDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
ensRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ensRegionId: ENS Region Id. |
imageId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageId: Image ID to create ens instance. |
instanceType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceType: ENS instance supported instance type, make sure it should be correct. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: Prepaid time period. |
quantity |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quantity: number of instances to create. |
systemDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property systemDiskSize: Disk size of the system disk. |
autoRenew |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. |
autoRenewPeriod |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenewPeriod: The time period of auto renew. |
hostName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property hostName: The hostname of the instance. |
instanceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceName: Instance name. |
internetChargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. |
ipType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. |
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 ens instance. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: Payment Type.only support value Subscription. |
privateIpAddress |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property privateIpAddress: Private IP for the instance created. |
uniqueSuffix |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. |
userData |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property userData: User data to pass to instance. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The vSwitch Id to create ens instance. |
dataDiskSizeRequired
public java.lang.Object getDataDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property dataDiskSize: 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.
ensRegionIdRequired
public java.lang.Object getEnsRegionId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ensRegionId: ENS Region Id.
imageIdRequired
public java.lang.Object getImageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: Image ID to create ens instance.
instanceTypeRequired
public java.lang.Object getInstanceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceType: ENS instance supported instance type, make sure it should be correct.
periodRequired
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. Default value is 1.
quantityRequired
public java.lang.Object getQuantity();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quantity: number of instances to create.
systemDiskSizeRequired
public java.lang.Object getSystemDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property systemDiskSize: Disk size of the system disk.
autoRenewOptional
public java.lang.Object getAutoRenew();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault 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.
it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1.
hostNameOptional
public java.lang.Object getHostName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostName: The hostname of the instance.
instanceNameOptional
public java.lang.Object getInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: Instance name.
internetChargeTypeOptional
public java.lang.Object getInternetChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
ipTypeOptional
public java.lang.Object getIpType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
keyPairNameOptional
public java.lang.Object getKeyPairName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keyPairName: SSH key pair name.
passwordOptional
public java.lang.Object getPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property password: Password of created ens instance.
Must contain at least 3 types of special character, lower character, upper character, number.
paymentTypeOptional
public java.lang.Object getPaymentType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment Type.only support value Subscription.
privateIpAddressOptional
public java.lang.Object getPrivateIpAddress();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: Private IP for the instance created.
uniqueSuffixOptional
public java.lang.Object getUniqueSuffix();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time.
The sequential suffix ranges from 001 to 999. Valid values: true false Default value: false.
userDataOptional
public java.lang.Object getUserData();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property userData: User data to pass to instance.
[1, 16KB] characters.User data should not be base64 encoded. If you want to pass base64 encoded string to the property, use function Fn::Base64Decode to decode the base64 string first.
vSwitchIdOptional
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The vSwitch Id to create ens instance.