Skip to content

MyBaseProps

Properties for defining a MyBase.

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

Initializer

import { MyBaseProps } from '@alicloud/ros-cdk-cddc'
const myBaseProps: MyBaseProps = { ... }

Properties

Name Type Description
ecsClassList @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}[] Property ecsClassList: ECS Class List.
engine string | @alicloud/ros-cdk-core.IResolvable Property engine: The database type.
payType string | @alicloud/ros-cdk-core.IResolvable Property payType: Payment type, currently only supports PrePaid.
period number | @alicloud/ros-cdk-core.IResolvable Property period: The period of the subscription in months.
securityGroupId string | @alicloud/ros-cdk-core.IResolvable Property securityGroupId: The security group ID.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: The ID of the VPC.
vSwitchId string | @alicloud/ros-cdk-core.IResolvable Property vSwitchId: Virtual switch ID.
zoneId string | @alicloud/ros-cdk-core.IResolvable Property zoneId: Availability Zone ID.
autoRenew boolean | @alicloud/ros-cdk-core.IResolvable Property autoRenew: Whether to enable auto renew.
dedicatedHostGroupDescription string | @alicloud/ros-cdk-core.IResolvable Property dedicatedHostGroupDescription: The name of the dedicated cluster.
dedicatedHostGroupId string | @alicloud/ros-cdk-core.IResolvable Property dedicatedHostGroupId: The ID of the dedicated cluster.
ecsDeploymentSetId string | @alicloud/ros-cdk-core.IResolvable Property ecsDeploymentSetId: The ID of the deployment set.
ecsHostName string | @alicloud/ros-cdk-core.IResolvable 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 string | @alicloud/ros-cdk-core.IResolvable Property ecsInstanceName: The instance name.
ecsUniqueSuffix boolean | @alicloud/ros-cdk-core.IResolvable Property ecsUniqueSuffix: Automatically add a sequential suffix to the HostName and InstanceName when you create multiple instances.
imageId string | @alicloud/ros-cdk-core.IResolvable Property imageId: The custom image ID.
internetChargeType string | @alicloud/ros-cdk-core.IResolvable Property internetChargeType: The network billing method.
internetMaxBandwidthOut number | @alicloud/ros-cdk-core.IResolvable Property internetMaxBandwidthOut: The maximum outbound public bandwidth, in Mbit\/s.
keyPairName string | @alicloud/ros-cdk-core.IResolvable Property keyPairName: The name of the key pair.
osPassword string | @alicloud/ros-cdk-core.IResolvable Property osPassword: The logon password for the host.
passwordInherit boolean | @alicloud/ros-cdk-core.IResolvable Property passwordInherit: Use the default password of the image.
periodType string | @alicloud/ros-cdk-core.IResolvable Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: Resource group id.
userData string | @alicloud/ros-cdk-core.IResolvable Property userData: User-defined script data, the original data is up to 16KB.
userDataInBase64 boolean | @alicloud/ros-cdk-core.IResolvable Property userDataInBase64: Indicates whether the custom data is Base64-encoded.

ecsClassListRequired

public readonly ecsClassList: IResolvable | {[ key: string ]: any}[];
  • Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}[]

Property ecsClassList: ECS Class List.


engineRequired

public readonly engine: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property engine: The database type.

Valid values: - mysql - tair


payTypeRequired

public readonly payType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property payType: Payment type, currently only supports PrePaid.


periodRequired

public readonly period: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property period: The period of the subscription in months.


securityGroupIdRequired

public readonly securityGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property securityGroupId: The security group ID.

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


vpcIdRequired

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: The ID of the VPC.


vSwitchIdRequired

public readonly vSwitchId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vSwitchId: Virtual switch ID.


zoneIdRequired

public readonly zoneId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property zoneId: Availability Zone ID.


autoRenewOptional

public readonly autoRenew: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property autoRenew: Whether to enable auto renew.


dedicatedHostGroupDescriptionOptional

public readonly dedicatedHostGroupDescription: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dedicatedHostGroupDescription: The name of the dedicated cluster.


dedicatedHostGroupIdOptional

public readonly dedicatedHostGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dedicatedHostGroupId: The ID of the dedicated cluster.


ecsDeploymentSetIdOptional

public readonly ecsDeploymentSetId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ecsDeploymentSetId: The ID of the deployment set.


ecsHostNameOptional

public readonly ecsHostName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly ecsInstanceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly ecsUniqueSuffix: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

public readonly imageId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageId: The custom image ID.

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


internetChargeTypeOptional

public readonly internetChargeType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property internetChargeType: The network billing method.

Valid values include the following:


internetMaxBandwidthOutOptional

public readonly internetMaxBandwidthOut: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly keyPairName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property keyPairName: The name of the key pair.


osPasswordOptional

public readonly osPassword: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly passwordInherit: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

public readonly periodType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: Resource group id.


userDataOptional

public readonly userData: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


userDataInBase64Optional

public readonly userDataInBase64: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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