Skip to content

MyBaseProps

Properties for defining a MyBase.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-mybase

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcddc"
&alicloudroscdkcddc.MyBaseProps {
    EcsClassList: interface{},
    Engine: interface{},
    PayType: interface{},
    Period: interface{},
    SecurityGroupId: interface{},
    VpcId: interface{},
    VSwitchId: interface{},
    ZoneId: interface{},
    AutoRenew: interface{},
    DedicatedHostGroupDescription: interface{},
    DedicatedHostGroupId: interface{},
    EcsDeploymentSetId: interface{},
    EcsHostName: interface{},
    EcsInstanceName: interface{},
    EcsUniqueSuffix: interface{},
    ImageId: interface{},
    InternetChargeType: interface{},
    InternetMaxBandwidthOut: interface{},
    KeyPairName: interface{},
    OsPassword: interface{},
    PasswordInherit: interface{},
    PeriodType: interface{},
    ResourceGroupId: interface{},
    UserData: interface{},
    UserDataInBase64: interface{},
}

Properties

Name Type Description
EcsClassList interface{} Property ecsClassList: ECS Class List.
Engine interface{} Property engine: The database type.
PayType interface{} Property payType: Payment type, currently only supports PrePaid.
Period interface{} Property period: The period of the subscription in months.
SecurityGroupId interface{} Property securityGroupId: The security group ID.
VpcId interface{} Property vpcId: The ID of the VPC.
VSwitchId interface{} Property vSwitchId: Virtual switch ID.
ZoneId interface{} Property zoneId: Availability Zone ID.
AutoRenew interface{} Property autoRenew: Whether to enable auto renew.
DedicatedHostGroupDescription interface{} Property dedicatedHostGroupDescription: The name of the dedicated cluster.
DedicatedHostGroupId interface{} Property dedicatedHostGroupId: The ID of the dedicated cluster.
EcsDeploymentSetId interface{} Property ecsDeploymentSetId: The ID of the deployment set.
EcsHostName interface{} Property ecsHostName: For Windows operating systems: The host name must be 2 to 15 characters in length and can contain uppercase letters, lowercase letters, and digits.
EcsInstanceName interface{} Property ecsInstanceName: The instance name.
EcsUniqueSuffix interface{} Property ecsUniqueSuffix: Automatically add a sequential suffix to the HostName and InstanceName when you create multiple instances.
ImageId interface{} Property imageId: The custom image ID.
InternetChargeType interface{} Property internetChargeType: The network billing method.
InternetMaxBandwidthOut interface{} Property internetMaxBandwidthOut: The maximum outbound public bandwidth, in Mbit\/s.
KeyPairName interface{} Property keyPairName: The name of the key pair.
OsPassword interface{} Property osPassword: The logon password for the host.
PasswordInherit interface{} Property passwordInherit: Use the default password of the image.
PeriodType interface{} Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
UserData interface{} Property userData: User-defined script data, the original data is up to 16KB.
UserDataInBase64 interface{} Property userDataInBase64: Indicates whether the custom data is Base64-encoded.

EcsClassListRequired

EcsClassList interface{}
  • Type: interface{}

Property ecsClassList: ECS Class List.


EngineRequired

Engine interface{}
  • Type: interface{}

Property engine: The database type.

Valid values:

  • mysql
  • tair

PayTypeRequired

PayType interface{}
  • Type: interface{}

Property payType: Payment type, currently only supports PrePaid.


PeriodRequired

Period interface{}
  • Type: interface{}

Property period: The period of the subscription in months.


SecurityGroupIdRequired

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: The security group ID.

Specify multiple security groups, separated by commas (,). Format: sg-t4neld965n89ocvt,sg-t4neld965n89ocvu


VpcIdRequired

VpcId interface{}
  • Type: interface{}

Property vpcId: The ID of the VPC.


VSwitchIdRequired

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: Virtual switch ID.


ZoneIdRequired

ZoneId interface{}
  • Type: interface{}

Property zoneId: Availability Zone ID.


AutoRenewOptional

AutoRenew interface{}
  • Type: interface{}

Property autoRenew: Whether to enable auto renew.


DedicatedHostGroupDescriptionOptional

DedicatedHostGroupDescription interface{}
  • Type: interface{}

Property dedicatedHostGroupDescription: The name of the dedicated cluster.


DedicatedHostGroupIdOptional

DedicatedHostGroupId interface{}
  • Type: interface{}

Property dedicatedHostGroupId: The ID of the dedicated cluster.


EcsDeploymentSetIdOptional

EcsDeploymentSetId interface{}
  • Type: interface{}

Property ecsDeploymentSetId: The ID of the deployment set.


EcsHostNameOptional

EcsHostName interface{}
  • Type: interface{}

Property ecsHostName: For Windows operating systems: The host name must be 2 to 15 characters in length and can contain uppercase letters, lowercase letters, and digits.

It cannot consist of only digits. For other operating systems (such as Linux): The host name must be 2 to 64 characters in length and can contain periods (.) to separate multiple segments. Each segment can contain uppercase letters, lowercase letters, and digits. Consecutive periods (.) are not allowed. The host name cannot start or end with a period (.).


EcsInstanceNameOptional

EcsInstanceName interface{}
  • Type: interface{}

Property ecsInstanceName: The instance name.

It must be 2 to 128 characters in length. It must start with an uppercase letter, a lowercase letter, or a Chinese character. It cannot start with http:// or https://. It can contain Chinese characters, English letters, digits, colons (:), underscores (_), periods (.), or hyphens (-). The default value is the instance ID.


EcsUniqueSuffixOptional

EcsUniqueSuffix interface{}
  • Type: interface{}

Property ecsUniqueSuffix: Automatically add a sequential suffix to the HostName and InstanceName when you create multiple instances.

The sequential suffix starts from 001 and increments up to 999. Valid values:

  • true: Add.
  • false (default): Do not add. If HostName or InstanceName is set in a specific sorting format, and the name_suffix is not set (i.e., the naming format is name_prefix[begin_number,bits]), UniqueSuffix does not take effect. The names are sorted only in the specified order.

ImageIdOptional

ImageId interface{}
  • Type: interface{}

Property imageId: The custom image ID.

If you want to use the default image, do not specify this parameter.


InternetChargeTypeOptional

InternetChargeType interface{}
  • Type: interface{}

Property internetChargeType: The network billing method.

Valid values include the following:


InternetMaxBandwidthOutOptional

InternetMaxBandwidthOut interface{}
  • Type: interface{}

Property internetMaxBandwidthOut: The maximum outbound public bandwidth, in Mbit\/s.

Valid values: 0 to 100. Default value: 0. If you set this parameter to a value greater than 0, a public IP address is automatically created.


KeyPairNameOptional

KeyPairName interface{}
  • Type: interface{}

Property keyPairName: The name of the key pair.


OsPasswordOptional

OsPassword interface{}
  • Type: interface{}

Property osPassword: The logon password for the host.

You can set it later. The password must meet the following requirements:

  • It must be 8 to 30 characters in length.
  • It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
  • Special characters: ()\~!@#$%^&*-_+=|{}[]:;'<>,.?/`
  • If you want to set the logon password later, leave this parameter empty.
  • If you want to set the logon password, use HTTPS to send requests to prevent password leakage.

PasswordInheritOptional

PasswordInherit interface{}
  • Type: interface{}

Property passwordInherit: Use the default password of the image.

  • false (default): Do not use.
  • true: Use.

If you use the default password of the image, do not specify the OSPassword parameter.


PeriodTypeOptional

PeriodType interface{}
  • Type: interface{}

Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


UserDataOptional

UserData interface{}
  • Type: interface{}

Property userData: User-defined script data, the original data is up to 16KB.


UserDataInBase64Optional

UserDataInBase64 interface{}
  • Type: interface{}

Property userDataInBase64: Indicates whether the custom data is Base64-encoded.