DrdsInstance
- Implements: @alicloud/ros-cdk-drds.datasource.IDrdsInstance
This class encapsulates and extends the ROS resource type DATASOURCE::DRDS::DrdsInstance.
Initializers
import { datasource } from '@alicloud/ros-cdk-drds'
new datasource.DrdsInstance(scope: Construct, id: string, props: DrdsInstanceProps, enableResourcePropertyConstraint?: boolean)
| Name | Type | Description |
|---|---|---|
scope | @alicloud/ros-cdk-core.Construct | No description. |
id | string | No description. |
props | DrdsInstanceProps | No description. |
enableResourcePropertyConstraint | boolean | No description. |
scopeRequired
- Type: @alicloud/ros-cdk-core.Construct
idRequired
- Type: string
propsRequired
- Type: DrdsInstanceProps
enableResourcePropertyConstraintOptional
- Type: boolean
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
fetchCondition
public fetchCondition(): RosCondition
fetchDependency
public fetchDependency(): string[]
fetchResourceDesc
public fetchResourceDesc(): string
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-drds'
datasource.DrdsInstance.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | @alicloud/ros-cdk-core.ConstructNode | The construct tree node associated with this construct. |
env | @alicloud/ros-cdk-core.IResourceEnvironment | The environment this resource belongs to. |
ref | string | No description. |
stack | @alicloud/ros-cdk-core.Stack | The stack in which this resource is defined. |
resource | @alicloud/ros-cdk-core.RosResource | No description. |
attrCommodityCode | string | @alicloud/ros-cdk-core.IResolvable | Attribute CommodityCode: The commodity code of the service. |
attrCreateTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute CreateTime: The timestamp that indicates when the instance is created. |
attrDescription | string | @alicloud/ros-cdk-core.IResolvable | Attribute Description: The description of the instance. |
attrDrdsInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute DrdsInstanceId: The ID of the Drds instance. |
attrExpireDate | string | @alicloud/ros-cdk-core.IResolvable | Attribute ExpireDate: The timestamp that indicates when the instance expires. |
attrInstanceSeries | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceSeries: The edition of the instance. |
attrInstanceSpec | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceSpec: The specification of the instance. |
attrInstRole | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstRole: The role of the instance. |
attrLabel | string | @alicloud/ros-cdk-core.IResolvable | Attribute Label: The tag of the instance. |
attrMachineType | string | @alicloud/ros-cdk-core.IResolvable | Attribute MachineType: The machine type of the instance. |
attrMasterInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute MasterInstanceId: The ID of the primary instance. |
attrMysqlVersion | string | @alicloud/ros-cdk-core.IResolvable | Attribute MysqlVersion: Engine version. |
attrNetworkType | string | @alicloud/ros-cdk-core.IResolvable | Attribute NetworkType: The network type of the instance. |
attrOrderInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute OrderInstanceId: The ID of the purchased instance. |
attrReadOnlyDbInstanceIds | string | @alicloud/ros-cdk-core.IResolvable | Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance. |
attrResourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ResourceGroupId: The ID of the resource group to which the instance belongs. |
attrStorageType | string | @alicloud/ros-cdk-core.IResolvable | Attribute StorageType: The storage type of the Drds database. |
attrType | string | @alicloud/ros-cdk-core.IResolvable | Attribute Type: The type of the instance. |
attrVersion | string | @alicloud/ros-cdk-core.IResolvable | Attribute Version: The version of the instance. |
attrVersionAction | string | @alicloud/ros-cdk-core.IResolvable | Attribute VersionAction: Indicates whether the version of the instance can be upgraded. |
attrVips | string | @alicloud/ros-cdk-core.IResolvable | Attribute Vips: The list of returned virtual IP addresses (VIPs). |
attrVpcCloudInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC. |
attrZoneId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ZoneId: The ID of the zone in which the resource is located. |
props | DrdsInstanceProps | No description. |
nodeRequired
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
envRequired
public readonly env: IResourceEnvironment;
- Type: @alicloud/ros-cdk-core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public readonly ref: string;
- Type: string
stackRequired
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resourceOptional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrCommodityCodeRequired
public readonly attrCommodityCode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CommodityCode: The commodity code of the service.
attrCreateTimeRequired
public readonly attrCreateTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The timestamp that indicates when the instance is created.
attrDescriptionRequired
public readonly attrDescription: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Description: The description of the instance.
attrDrdsInstanceIdRequired
public readonly attrDrdsInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute DrdsInstanceId: The ID of the Drds instance.
attrExpireDateRequired
public readonly attrExpireDate: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ExpireDate: The timestamp that indicates when the instance expires.
attrInstanceSeriesRequired
public readonly attrInstanceSeries: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceSeries: The edition of the instance.
Valid values: starter: Starter Edition enterprise: Enterprise Edition standard: Standard Edition
attrInstanceSpecRequired
public readonly attrInstanceSpec: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceSpec: The specification of the instance.
attrInstRoleRequired
public readonly attrInstRole: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstRole: The role of the instance.
Valid values: MASTER: The instance is a primary instance. SLAVE: The instance is a read-only instance to analyze complex queries. SLAVE_FLOW: The instance is a read-only instance for high-concurrency scenarios.
attrLabelRequired
public readonly attrLabel: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Label: The tag of the instance.
Valid values: NORMAL: The instance is a standard instance. HA: The instance is a high-availability (HA) instance. VPC: The instance is a VPC-based instance.
attrMachineTypeRequired
public readonly attrMachineType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MachineType: The machine type of the instance.
Valid value: ecs.
attrMasterInstanceIdRequired
public readonly attrMasterInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MasterInstanceId: The ID of the primary instance.
attrMysqlVersionRequired
public readonly attrMysqlVersion: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MysqlVersion: Engine version.
attrNetworkTypeRequired
public readonly attrNetworkType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NetworkType: The network type of the instance.
Valid values: CLASSIC VPC
attrOrderInstanceIdRequired
public readonly attrOrderInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute OrderInstanceId: The ID of the purchased instance.
attrReadOnlyDbInstanceIdsRequired
public readonly attrReadOnlyDbInstanceIds: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.
attrResourceGroupIdRequired
public readonly attrResourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
attrStorageTypeRequired
public readonly attrStorageType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute StorageType: The storage type of the Drds database.
Valid values: RDS PolarDB
attrTypeRequired
public readonly attrType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Type: The type of the instance.
Valid values: PUBLIC: The returned instance is a shared instance. PRIVATE: The returned instance is a dedicated instance.
attrVersionRequired
public readonly attrVersion: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Version: The version of the instance.
attrVersionActionRequired
public readonly attrVersionAction: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VersionAction: Indicates whether the version of the instance can be upgraded.
attrVipsRequired
public readonly attrVips: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Vips: The list of returned virtual IP addresses (VIPs).
attrVpcCloudInstanceIdRequired
public readonly attrVpcCloudInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.
attrZoneIdRequired
public readonly attrZoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: The ID of the zone in which the resource is located.
propsRequired
public readonly props: DrdsInstanceProps;
- Type: DrdsInstanceProps