ALIYUN::REDIS::PrepayInstance is used to create a subscription ApsaraDB for Redis instance.
Syntax
{
"Type": "ALIYUN::REDIS::PrepayInstance",
"Properties": {
"VpcId": String,
"EvictionPolicy": String,
"Period": Integer,
"ZoneId": String,
"InstanceClass": String,
"VpcPasswordFree": Boolean,
"VSwitchId": String,
"SecurityGroupId": String,
"EngineVersion": String,
"Password": String,
"SSLEnabled": String,
"InstanceName": String,
"BackupPolicy": Map,
"Tags": List,
"InstanceMaintainTime": Map,
"DeletionForce": Boolean,
"AutoPay": Boolean,
"Connections": Map,
"AutoRenewDuration": Integer,
"ProductType": String,
"SecondaryZoneId": String,
"ResourceGroupId": String,
"PeriodUnit": String,
"TairConfig": Map,
"ShardCount": Integer,
"NodeType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
EngineVersion | String | No | No | The database engine version of the instance. | Valid values:
|
VpcId | String | No | No | The virtual private cloud (VPC) ID of the instance. | None. |
EvictionPolicy | String | No | No | The policy based on which the system evicts data. | Valid values:
|
Period | Integer | No | No | The renewal period of the instance. | Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36. Unit: month. |
ZoneId | String | No | No | The zone ID of the instance. | This property must be specified when you create the instance in a VPC. If you want to create the instance in multiple zones, you can call the DescribeZones operation to query the IDs of supported zones. |
InstanceClass | String | No | Yes | The instance specifications. | For more information, see Overview. |
VSwitchId | String | No | No | The vSwitch ID of the instance. | None. |
SecurityGroupId | String | No | Yes | The ID of the security group to which the instance belongs. | You can specify up to 10 IDs. Separate multiple IDs with commas (,). |
VpcPasswordFree | Boolean | No | No | Specifies whether to enable the password-free access feature for the instance in the VPC. | Valid values:
|
Password | String | No | Yes | The password that is used to access the instance. | The password must be 8 to 32 characters in length. The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters: |
SSLEnabled | String | No | Yes | The state of SSL encryption. | Valid values:
|
InstanceName | String | No | Yes | The instance name. | The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), hyphens (-), and periods (.). It must start with a letter. |
BackupPolicy | Map | No | Yes | The backup policy of the instance. | For more information, see BackupPolicy properties. |
Tags | List | No | Yes | The tags of the instance. | You can add up to 20 tags to an instance. For more information, see Tags properties. |
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment. | Valid values:
|
InstanceMaintainTime | Map | No | Yes | The maintenance window of the instance. | For more information, see InstanceMaintainTime properties. |
DeletionForce | Boolean | No | Yes | Specifies whether to delete the instance when the instance is moved to the recycle bin. | Valid values:
|
Connections | Map | No | Yes | The endpoints of the instance. | For more information, see Connections properties. |
AutoRenewDuration | Integer | No | Yes | The auto-renewal period of the instance. | Valid values: 1 to 12. Unit: month. When an instance is about to expire, the system automatically renews the instance based on the value of this property. |
ProductType | String | No | No | The edition of the instance. | Valid values:
|
SecondaryZoneId | String | No | No | The secondary zone ID of the instance. | You can call the DescribeZones operation to query the ID of the secondary zone. Note If you specify this property, the master node and the replica node of the instance are deployed in different zones, and disaster recovery is implemented across zones. The instance can withstand failures in data centers. |
ResourceGroupId | String | No | Yes | The resource group ID of the instance. | None. |
PeriodUnit | String | No | No | The unit of the subscription duration. | Valid values:
|
TairConfig | Map | No | No | The Tair configurations of the instance. | For more information, see TairConfig properties. |
ShardCount | Integer | No | No | The number of data shards in the instance. | Valid values:
|
NodeType | String | No | No | The node type of the instance. | Valid values:
Note The MASTER_SLAVE and STAND_ALONE values are supported for instances that use cloud disks. The double and single values are supported for instances that use local disks. |
BackupPolicy syntax
"BackupPolicy": {
"PreferredBackupPeriod": "String",
"PreferredBackupTime": "String",
"EnableBackupLog": "Integer"
}
BackupPolicy properties
Property | Type | Required | Editable | Description | Constraint |
PreferredBackupPeriod | String | Yes | Yes | The day of a week on which the system backs up data. | Valid values:
|
PreferredBackupTime | String | Yes | Yes | The time at which the system backs up data. | Specify the time in the ISO 8601 standard in the |
EnableBackupLog | Integer | No | Yes | Specifies whether to enable incremental backup. | Valid values:
|
InstanceMaintainTime syntax
"InstanceMaintainTime": {
"MaintainStartTime": "String",
"MaintainEndTime": "String"
}
InstanceMaintainTime properties
Property | Type | Required | Editable | Description | Constraint |
MaintainStartTime | String | No | No | The start time of the maintenance window. | Specify the time in the ISO 8601 standard in the |
MaintainEndTime | String | No | No | The end time of the maintenance window. | Specify the time in the ISO 8601 standard in the Note The end time must be one hour later than the start time. For example, if you set MaintainStartTime to |
Tags syntax
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The key of the tag. | A tag key must be unique within an Alibaba Cloud account in a region. |
Value | String | No | No | The value of the tag. | None. |
Connections syntax
"Connections": {
"VpcPrivateConnection": "Map",
"ClassicInnerConnection": "Map",
"DirectConnection": "Map",
"PublicConnection": "Map"
}
Connections properties
Property | Type | Required | Editable | Description | Constraint |
VpcPrivateConnection | Map | No | Yes | The VPC endpoint. | For more information, see VpcPrivateConnection properties. |
ClassicInnerConnection | Map | No | Yes | The classic network endpoint. | For more information, see ClassicInnerConnection properties. |
DirectConnection | Map | No | Yes | The private endpoint for the direct connection mode. You can apply for a private endpoint for the direct connection mode based on your business requirements. | For more information, see DirectConnection properties. |
PublicConnection | Map | No | Yes | The public endpoint. | For more information, see PublicConnection properties. |
VpcPrivateConnection syntax
"VpcPrivateConnection": {
"ConnectionPort": Integer,
"ConnectionString": String
}
VpcPrivateConnection properties
Property | Type | Required | Editable | Description | Constraint |
ConnectionPort | Integer | Yes | Yes | The port number used by the ApsaraDB for Redis instance to provide services. | Valid values: 1024 to 65535. |
ConnectionString | String | Yes | Yes | The prefix of the VPC endpoint. | The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. The prefix must start with a lowercase letter. |
PublicConnection syntax
"PublicConnection": {
"ConnectionPort": Integer,
"ConnectionString": String
}
PublicConnection properties
Property | Type | Required | Editable | Description | Constraint |
ConnectionPort | Integer | Yes | Yes | The port number used by the ApsaraDB for Redis instance to provide services. | Valid values: 1024 to 65535. |
ConnectionString | String | Yes | Yes | The prefix of the public endpoint. | The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. The prefix must start with a lowercase letter. |
DirectConnection syntax
"DirectConnection": {
"ConnectionPort": Integer,
"ConnectionString": String
}
DirectConnection properties
Property | Type | Required | Editable | Description | Constraint |
ConnectionPort | Integer | Yes | Yes | The port number used by the ApsaraDB for Redis instance to provide services. | Valid values: 1024 to 65535. |
ConnectionString | String | Yes | Yes | The prefix of the private endpoint for the direct connection mode. | The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. The prefix must start with a lowercase letter. |
ClassicInnerConnection syntax
"ClassicInnerConnection": {
"ConnectionPort": Integer,
"ConnectionString": String
}
ClassicInnerConnection properties
Property | Type | Required | Editable | Description | Constraint |
ConnectionPort | Integer | Yes | Yes | The port number used by the ApsaraDB for Redis instance to provide services. | Valid values: 1024 to 65535. |
ConnectionString | String | Yes | Yes | The prefix of the classic network endpoint. | The prefix must be 8 to 64 characters in length, and can contain lowercase letters and digits. The prefix must start with a lowercase letter. |
TairConfig syntax
"BackupPolicy": {
"Storage": "Integer",
"StorageType": "String",
"ShardCount": "Integer"
}
TairConfig properties
Property | Type | Required | Editable | Description | Constraint |
Storage | Integer | No | No | The storage capacity of the cloud disk. | The storage capacity varies based on the instance type. For more information, see ESSD-based instances. |
StorageType | String | No | No | The storage type. | Valid values:
|
ShardCount | Integer | No | No | The number of data shards in the instance. | Valid values:
|
Return values
Fn::GetAtt
InstanceId: the instance ID.
OrderId: the order ID of the instance.
ConnectionDomain: the endpoint that is used to access the instance.
Port: the port number that is used to access the instance.
InstanceName: the instance name.
InstanceClass: the instance specifications.
VpcId: the VPC ID of the instance.
Capacity: the storage capacity of the instance.
InstanceType: the database engine type of the instance.
ChargeType: the billing method of the instance.
PackageType: the plan type of the instance.
Connections: the maximum number of connections that are supported by the instance.
ArchitectureType: the architecture type of the instance.
NodeType: the node type of the instance.
HasRenewChangeOrder: indicates whether pending renewal or resource scale-out orders exist within the current Alibaba Cloud account.
ResourceGroupId: the resource group ID of the instance.
QPS: the queries per second (QPS) of the instance. The value is the expected maximum QPS.
ZoneId: the zone ID of the instance.
Bandwidth: the bandwidth of the instance. Unit: Mbit/s.
EngineVersion: the database engine version of the instance.
NetworkType: the network type of the instance.
VSwitchId: the vSwitch ID of the instance.
PrivateIp: the private IP address of the instance.
PublicConnectionString: the prefix of the public endpoint that is used to access the instance.
VpcPrivateConnectionPort: the port number that is used to access the instance by using the VPC endpoint.
ClassicInnerConnectionString: the prefix of the classic network endpoint that is used to access the instance.
VpcPrivateConnectionString: the prefix of the VPC endpoint that is used to access the instance.
PublicConnectionPort: the port number that is used to access the instance by using the public endpoint.
DirectConnectionString: the prefix of the private endpoint that is used to access the instance in direct connection mode.
DirectConnectionPort: the port number that is used to access the instance by using the private endpoint in direct connection mode.
ClassicInnerConnectionPort: the port number that is used to access the instance by using the classic network endpoint.
Examples
For more examples, visit Instance.json and Instance.yml.