InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-instance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkens"
&alicloudroscdkens.InstanceProps {
DataDiskSize: interface{},
EnsRegionId: interface{},
ImageId: interface{},
InstanceType: interface{},
Period: interface{},
Quantity: interface{},
SystemDiskSize: interface{},
AutoRenew: interface{},
AutoRenewPeriod: interface{},
HostName: interface{},
InstanceName: interface{},
InternetChargeType: interface{},
IpType: interface{},
KeyPairName: interface{},
Password: interface{},
PaymentType: interface{},
PrivateIpAddress: interface{},
UniqueSuffix: interface{},
UserData: interface{},
VSwitchId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
DataDiskSize |
interface{} |
Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
EnsRegionId |
interface{} |
Property ensRegionId: ENS Region Id. |
ImageId |
interface{} |
Property imageId: Image ID to create ens instance. |
InstanceType |
interface{} |
Property instanceType: ENS instance supported instance type, make sure it should be correct. |
Period |
interface{} |
Property period: Prepaid time period. |
Quantity |
interface{} |
Property quantity: number of instances to create. |
SystemDiskSize |
interface{} |
Property systemDiskSize: Disk size of the system disk. |
AutoRenew |
interface{} |
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. |
AutoRenewPeriod |
interface{} |
Property autoRenewPeriod: The time period of auto renew. |
HostName |
interface{} |
Property hostName: The hostname of the instance. |
InstanceName |
interface{} |
Property instanceName: Instance name. |
InternetChargeType |
interface{} |
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. |
IpType |
interface{} |
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. |
KeyPairName |
interface{} |
Property keyPairName: SSH key pair name. |
Password |
interface{} |
Property password: Password of created ens instance. |
PaymentType |
interface{} |
Property paymentType: Payment Type.only support value Subscription. |
PrivateIpAddress |
interface{} |
Property privateIpAddress: Private IP for the instance created. |
UniqueSuffix |
interface{} |
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 |
interface{} |
Property userData: User data to pass to instance. |
VSwitchId |
interface{} |
Property vSwitchId: The vSwitch Id to create ens instance. |
DataDiskSize
Required
DataDiskSize interface{}
- Type: interface{}
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.
EnsRegionId
Required
EnsRegionId interface{}
- Type: interface{}
Property ensRegionId: ENS Region Id.
ImageId
Required
ImageId interface{}
- Type: interface{}
Property imageId: Image ID to create ens instance.
InstanceType
Required
InstanceType interface{}
- Type: interface{}
Property instanceType: ENS instance supported instance type, make sure it should be correct.
Period
Required
Period interface{}
- Type: interface{}
Property period: Prepaid time period.
Unit is month, it could be from 1 to 9 or 12. Default value is 1.
Quantity
Required
Quantity interface{}
- Type: interface{}
Property quantity: number of instances to create.
SystemDiskSize
Required
SystemDiskSize interface{}
- Type: interface{}
Property systemDiskSize: Disk size of the system disk.
AutoRenew
Optional
AutoRenew interface{}
- Type: interface{}
Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False.
AutoRenewPeriod
Optional
AutoRenewPeriod interface{}
- Type: interface{}
Property autoRenewPeriod: The time period of auto renew.
it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1.
HostName
Optional
HostName interface{}
- Type: interface{}
Property hostName: The hostname of the instance.
InstanceName
Optional
InstanceName interface{}
- Type: interface{}
Property instanceName: Instance name.
InternetChargeType
Optional
InternetChargeType interface{}
- Type: interface{}
Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth.
IpType
Optional
IpType interface{}
- Type: interface{}
Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4.
KeyPairName
Optional
KeyPairName interface{}
- Type: interface{}
Property keyPairName: SSH key pair name.
Password
Optional
Password interface{}
- Type: interface{}
Property password: Password of created ens instance.
Must contain at least 3 types of special character, lower character, upper character, number.
PaymentType
Optional
PaymentType interface{}
- Type: interface{}
Property paymentType: Payment Type.only support value Subscription.
PrivateIpAddress
Optional
PrivateIpAddress interface{}
- Type: interface{}
Property privateIpAddress: Private IP for the instance created.
UniqueSuffix
Optional
UniqueSuffix interface{}
- Type: interface{}
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.
UserData
Optional
UserData interface{}
- Type: interface{}
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.
VSwitchId
Optional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The vSwitch Id to create ens instance.