InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-memcache-instance
Initializer
import ros_cdk_memcache
ros_cdk_memcache.InstanceProps(
  auto_renew: typing.Union[str, IResolvable] = None,
  auto_renew_period: typing.Union[str, IResolvable] = None,
  auto_use_coupon: typing.Union[str, IResolvable] = None,
  backup_policy: typing.Union[IResolvable, BackupPolicyProperty] = None,
  capacity: typing.Union[typing.Union[int, float], IResolvable] = None,
  charge_type: typing.Union[str, IResolvable] = None,
  config: typing.Union[str, IResolvable] = None,
  coupon_no: typing.Union[str, IResolvable] = None,
  instance_class: typing.Union[str, IResolvable] = None,
  instance_name: typing.Union[str, IResolvable] = None,
  network_type: typing.Union[str, IResolvable] = None,
  password: typing.Union[str, IResolvable] = None,
  period: typing.Union[str, IResolvable] = None,
  private_ip_address: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  vpc_id: typing.Union[str, IResolvable] = None,
  vpc_password_free: typing.Union[bool, IResolvable] = None,
  v_switch_id: typing.Union[str, IResolvable] = None,
  zone_id: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description | 
|---|---|---|
auto_renew | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property autoRenew: Specifies whether to enable auto renewal. | 
auto_renew_period | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property autoRenewPeriod: The period of the auto renewal. | 
auto_use_coupon | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property autoUseCoupon: Specifies whether to use a coupon. | 
backup_policy | 
typing.Union[ros_cdk_core.IResolvable, BackupPolicyProperty] | 
Property backupPolicy: Backup policy. | 
capacity | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property capacity: The storage capacity of the instance. | 
charge_type | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property chargeType: The billing method of the instance. | 
config | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property config: The parameter configuration of the instance, in a JSON string. | 
coupon_no | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property couponNo: The coupon number. | 
instance_class | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property instanceClass: The instance type. | 
instance_name | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property instanceName: The name of the instance. | 
network_type | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property networkType: The network type of the instance. | 
password | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property password: The password of the instance. | 
period | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property period: The subscription period. | 
private_ip_address | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property privateIpAddress: The internal IP address of the instance. | 
resource_group_id | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property resourceGroupId: Resource group ID. | 
vpc_id | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property vpcId: The ID of the VPC. | 
vpc_password_free | 
typing.Union[bool, ros_cdk_core.IResolvable] | 
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC. | 
v_switch_id | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property vSwitchId: The ID of the VSwitch. | 
zone_id | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property zoneId: The ID of the zone in which the instance is created. | 
auto_renewOptional 
auto_renew: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property autoRenew: Specifies whether to enable auto renewal.
Valid values: true false Note Default value: false.
auto_renew_periodOptional 
auto_renew_period: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.
auto_use_couponOptional 
auto_use_coupon: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property autoUseCoupon: Specifies whether to use a coupon.
Valid values: true false Note Default value: false.
backup_policyOptional 
backup_policy: typing.Union[IResolvable, BackupPolicyProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, BackupPolicyProperty]
 
Property backupPolicy: Backup policy.
capacityOptional 
capacity: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
 
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.
charge_typeOptional 
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property chargeType: The billing method of the instance.
Valid values: PrePaid: subscription. PostPaid: pay-as-you-go. Note Default value: PostPaid.
configOptional 
config: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property config: The parameter configuration of the instance, in a JSON string.
For more information, see Set parameters.
coupon_noOptional 
coupon_no: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property couponNo: The coupon number.
Default value: youhuiquan_promotion_option_id_for_blank.
instance_classOptional 
instance_class: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.
instance_nameOptional 
instance_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.
network_typeOptional 
network_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property networkType: The network type of the instance.
Valid values: CLASSIC VPC Note Default value: CLASSIC.
passwordOptional 
password: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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 (=).
periodOptional 
period: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.
private_ip_addressOptional 
private_ip_address: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.
resource_group_idOptional 
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property resourceGroupId: Resource group ID.
vpc_idOptional 
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property vpcId: The ID of the VPC.
vpc_password_freeOptional 
vpc_password_free: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
 
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
If set to:
- true: enables password free.
 - false: disables password free.
 
v_switch_idOptional 
v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property vSwitchId: The ID of the VSwitch.
zone_idOptional 
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
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.