InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-memcache-instance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmemcache"
&alicloudroscdkmemcache.InstanceProps {
AutoRenew: interface{},
AutoRenewPeriod: interface{},
AutoUseCoupon: interface{},
BackupPolicy: interface{},
Capacity: interface{},
ChargeType: interface{},
Config: interface{},
CouponNo: interface{},
InstanceClass: interface{},
InstanceName: interface{},
NetworkType: interface{},
Password: interface{},
Period: interface{},
PrivateIpAddress: interface{},
ResourceGroupId: interface{},
VpcId: interface{},
VpcPasswordFree: interface{},
VSwitchId: interface{},
ZoneId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
AutoRenew |
interface{} |
Property autoRenew: Specifies whether to enable auto renewal. |
AutoRenewPeriod |
interface{} |
Property autoRenewPeriod: The period of the auto renewal. |
AutoUseCoupon |
interface{} |
Property autoUseCoupon: Specifies whether to use a coupon. |
BackupPolicy |
interface{} |
Property backupPolicy: Backup policy. |
Capacity |
interface{} |
Property capacity: The storage capacity of the instance. |
ChargeType |
interface{} |
Property chargeType: The billing method of the instance. |
Config |
interface{} |
Property config: The parameter configuration of the instance, in a JSON string. |
CouponNo |
interface{} |
Property couponNo: The coupon number. |
InstanceClass |
interface{} |
Property instanceClass: The instance type. |
InstanceName |
interface{} |
Property instanceName: The name of the instance. |
NetworkType |
interface{} |
Property networkType: The network type of the instance. |
Password |
interface{} |
Property password: The password of the instance. |
Period |
interface{} |
Property period: The subscription period. |
PrivateIpAddress |
interface{} |
Property privateIpAddress: The internal IP address of the instance. |
ResourceGroupId |
interface{} |
Property resourceGroupId: Resource group ID. |
VpcId |
interface{} |
Property vpcId: The ID of the VPC. |
VpcPasswordFree |
interface{} |
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC. |
VSwitchId |
interface{} |
Property vSwitchId: The ID of the VSwitch. |
ZoneId |
interface{} |
Property zoneId: The ID of the zone in which the instance is created. |
AutoRenew
Optional
AutoRenew interface{}
- Type: interface{}
Property autoRenew: Specifies whether to enable auto renewal.
Valid values: true false Note Default value: false.
AutoRenewPeriod
Optional
AutoRenewPeriod interface{}
- Type: interface{}
Property autoRenewPeriod: The period of the auto renewal.
Unit: months. Valid values: 1 2 3 6 12 Note You must specify this parameter if the value of the AutoRenew parameter is true.
AutoUseCoupon
Optional
AutoUseCoupon interface{}
- Type: interface{}
Property autoUseCoupon: Specifies whether to use a coupon.
Valid values: true false Note Default value: false.
BackupPolicy
Optional
BackupPolicy interface{}
- Type: interface{}
Property backupPolicy: Backup policy.
Capacity
Optional
Capacity interface{}
- Type: interface{}
Property capacity: The storage capacity of the instance.
Unit: MB. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.
ChargeType
Optional
ChargeType interface{}
- Type: interface{}
Property chargeType: The billing method of the instance.
Valid values: PrePaid: subscription. PostPaid: pay-as-you-go. Note Default value: PostPaid.
Config
Optional
Config interface{}
- Type: interface{}
Property config: The parameter configuration of the instance, in a JSON string.
For more information, see Set parameters.
CouponNo
Optional
CouponNo interface{}
- Type: interface{}
Property couponNo: The coupon number.
Default value: youhuiquan_promotion_option_id_for_blank.
InstanceClass
Optional
InstanceClass interface{}
- Type: interface{}
Property instanceClass: The instance type.
For more information, see Instance types. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.
InstanceName
Optional
InstanceName interface{}
- Type: interface{}
Property instanceName: The name of the instance.
The name can be 2 to 128 characters in length and must start with a letter. The following characters are not supported: at signs (@), forward slashes (/), colons (:), equal signs (=), double quotation marks ("), angle brackets (<>), braces ([]), curly brackets ({}) and spaces.
NetworkType
Optional
NetworkType interface{}
- Type: interface{}
Property networkType: The network type of the instance.
Valid values: CLASSIC VPC Note Default value: CLASSIC.
Password
Optional
Password interface{}
- Type: interface{}
Property password: The password of the instance.
The password can be 8 to 32 characters in length and must contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersands (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), hyphens (-), and equal signs (=).
Period
Optional
Period interface{}
- Type: interface{}
Property period: The subscription period.
You must specify this parameter if the value of the ChargeType parameter is PrePaid. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36. Note This parameter is invalid if the value of the ChargeType parameter is PostPaid.
PrivateIpAddress
Optional
PrivateIpAddress interface{}
- Type: interface{}
Property privateIpAddress: The internal IP address of the instance.
Note The internal IP address must be located in the Classless Inter-Domain Routing (CIDR) block of the VSwitch to which the instance belongs.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group ID.
VpcId
Optional
VpcId interface{}
- Type: interface{}
Property vpcId: The ID of the VPC.
VpcPasswordFree
Optional
VpcPasswordFree interface{}
- Type: interface{}
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
If set to:
- true: enables password free.
- false: disables password free.
VSwitchId
Optional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The ID of the VSwitch.
ZoneId
Optional
ZoneId interface{}
- Type: interface{}
Property zoneId: The ID of the zone in which the instance is created.
You can call the DescribeRegions operation to query the latest region list.