Skip to content

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 auto-renewal duration, in months.
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 code.
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 for the instance.
Period interface{} Property period: The subscription duration, in months.
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 primary zone for the instance.

AutoRenewOptional

AutoRenew interface{}
  • Type: interface{}

Property autoRenew: Specifies whether to enable auto renewal.

Valid values: true false Note Default value: false.


AutoRenewPeriodOptional

AutoRenewPeriod interface{}
  • Type: interface{}

Property autoRenewPeriod: The auto-renewal duration, in months.

Valid values: 1, 2, 3, 6, and 12.

This parameter is required when AutoRenew is set to true.


AutoUseCouponOptional

AutoUseCoupon interface{}
  • Type: interface{}

Property autoUseCoupon: Specifies whether to use a coupon.

Valid values: true false Note Default value: false.


BackupPolicyOptional

BackupPolicy interface{}
  • Type: interface{}

Property backupPolicy: Backup policy.


CapacityOptional

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.


ChargeTypeOptional

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.


ConfigOptional

Config interface{}
  • Type: interface{}

Property config: The parameter configuration of the instance, in a JSON string.

For more information, see Set parameters.


CouponNoOptional

CouponNo interface{}
  • Type: interface{}

Property couponNo: The coupon code.

Default value: default.


InstanceClassOptional

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.


InstanceNameOptional

InstanceName interface{}
  • Type: interface{}

Property instanceName: The name of the instance.

The name must be 2 to 80 characters long, start with a letter (uppercase or lowercase) or a Chinese character, and not contain spaces or the characters @\/:=”<>{[]}.


NetworkTypeOptional

NetworkType interface{}
  • Type: interface{}

Property networkType: The network type of the instance.

Valid values: CLASSIC VPC Note Default value: CLASSIC.


PasswordOptional

Password interface{}
  • Type: interface{}

Property password: The password for the instance.

The password must be 8 to 32 characters long and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The allowed special characters are !@#$%^&*()_+-=.


PeriodOptional

Period interface{}
  • Type: interface{}

Property period: The subscription duration, in months.

Valid values: 1 to 9, 12, 24, 36, and 60.

This parameter is available and required only when ChargeType is set to PrePaid.


PrivateIpAddressOptional

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.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group ID.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The ID of the VPC.


VpcPasswordFreeOptional

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.

VSwitchIdOptional

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The ID of the VSwitch.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The ID of the primary zone for the instance.

You can call the DescribeZones operation to query available zones.

You can also specify a secondary zone by using the SecondaryZoneId parameter. The primary and replica nodes are then deployed in the specified primary and secondary zones to create a dual-zone architecture for in-city disaster recovery.