Creates a Memcache instance.
Syntax
{
"Type": "ALIYUN::Memcache::Instance",
"Properties": {
"VpcId": String,
"Capacity": Integer,
"ResourceGroupId": String,
"BackupPolicy": Map,
"CouponNo": String,
"AutoRenewPeriod": String,
"AutoUseCoupon": String,
"ZoneId": String,
"InstanceName": String,
"AutoRenew": String,
"InstanceClass": String,
"VpcPasswordFree": Boolean,
"VSwitchId": String,
"ChargeType": String,
"Period": String,
"NetworkType": String,
"Password": String,
"Config": String,
"PrivateIpAddress": String
}
}
Properties
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
VpcId |
String |
No |
No |
The ID of the virtual private cloud (VPC). |
None |
|
Capacity |
Integer |
No |
No |
The capacity of the instance. |
You must specify either the Capacity or InstanceClass property. For more information, see Instance types. Unit: MB. |
|
ResourceGroupId |
String |
No |
No |
The ID of the resource group. |
None |
|
BackupPolicy |
Map |
No |
Yes |
The backup policy. |
For more information, see BackupPolicy properties. |
|
CouponNo |
String |
No |
No |
The coupon code. |
The default value is youhuiquan_promotion_option_id_for_blank. |
|
AutoRenewPeriod |
String |
No |
No |
The auto-renewal cycle. |
Valid values:
Unit: months. Note
This parameter is required when AutoRenew is set to true. |
|
AutoUseCoupon |
String |
No |
No |
Specifies whether to use a coupon. |
Valid values:
|
|
ZoneId |
String |
No |
No |
The ID of the zone. |
None |
|
InstanceName |
String |
No |
Yes |
The name of the instance. |
The name must be 2 to 128 characters in length. It must start with a letter. It cannot contain spaces or the following special characters:
|
|
AutoRenew |
String |
No |
No |
Specifies whether to enable auto-renewal. |
Valid values:
|
|
InstanceClass |
String |
No |
No |
The instance type. |
You must specify either the Capacity or InstanceClass property. For more information, see Instance types. |
|
VpcPasswordFree |
Boolean |
No |
No |
Specifies whether to enable passwordless access to the instance in a VPC. |
None |
|
VSwitchId |
String |
No |
No |
The ID of the vSwitch. |
None |
|
ChargeType |
String |
No |
No |
The billing method. |
Valid values:
|
|
Period |
String |
No |
No |
The billing cycle. |
Valid values:
Unit: months. This parameter is required when ChargeType is set to PrePaid. This parameter is not supported when ChargeType is set to PostPaid. |
|
NetworkType |
String |
No |
No |
The network type. |
Valid values:
|
|
Password |
String |
No |
No |
The password of the instance. |
The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The supported special characters are:
|
|
Config |
String |
No |
No |
The detailed configuration of the instance. |
The value is a JSON-formatted string. |
|
PrivateIpAddress |
String |
No |
No |
The private IP address of the instance. |
The private IP address must be within the CIDR block of the vSwitch to which the instance belongs. |
BackupPolicy syntax
"BackupPolicy": {
"PreferredBackupTime": String,
"EnableBackupLog": Integer,
"PreferredBackupPeriod": String
}
BackupPolicy properties
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
PreferredBackupTime |
String |
Yes |
Yes |
The backup time window. |
Format: |
|
EnableBackupLog |
Integer |
No |
Yes |
Specifies whether to enable incremental backup. |
Valid values:
|
|
PreferredBackupPeriod |
String |
Yes |
Yes |
The backup cycle. |
Valid values:
|
Return value
Fn::GetAtt
-
InstanceId: The ID of the instance.
-
InstanceName: The name of the instance.
-
ConnectionDomain: The endpoint of the instance.
-
Port: The port of the instance.
-
QPS: The number of queries per second (QPS).