Skip to content

DrdsInstance

This class encapsulates and extends the ROS resource type DATASOURCE::DRDS::DrdsInstance, which is used to query the information about a PolarDB-X 1.0 instance.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdrds/datasource"
datasource.NewDrdsInstance(scope Construct, id *string, props DrdsInstanceProps, enableResourcePropertyConstraint *bool) DrdsInstance
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props DrdsInstanceProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

idRequired

  • Type: *string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: *bool

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.
GetAtt No description.
SetMetadata No description.

ToString

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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.

sessionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdrds/datasource"
datasource.DrdsInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
Ref *string No description.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this resource is defined.
Resource github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource No description.
AttrCommodityCode github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CommodityCode: The commodity code of the service.
AttrCreateTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CreateTime: The timestamp that indicates when the instance is created.
AttrDescription github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Description: The description of the instance.
AttrDrdsInstanceId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DrdsInstanceId: The ID of the Drds instance.
AttrExpireDate github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ExpireDate: The timestamp that indicates when the instance expires.
AttrInstanceSeries github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceSeries: The edition of the instance.
AttrInstanceSpec github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceSpec: The specification of the instance.
AttrInstRole github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstRole: The role of the instance.
AttrLabel github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Label: The tag of the instance.
AttrMachineType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute MachineType: The machine type of the instance.
AttrMasterInstanceId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute MasterInstanceId: The ID of the primary instance.
AttrMysqlVersion github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute MysqlVersion: Engine version.
AttrNetworkType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NetworkType: The network type of the instance.
AttrOrderInstanceId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute OrderInstanceId: The ID of the purchased instance.
AttrReadOnlyDbInstanceIds github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.
AttrResourceGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrStorageType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute StorageType: The storage type of the Drds database.
AttrType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Type: The type of the instance.
AttrVersion github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Version: The version of the instance.
AttrVersionAction github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VersionAction: Indicates whether the version of the instance can be upgraded.
AttrVips github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Vips: The list of returned virtual IP addresses (VIPs).
AttrVpcCloudInstanceId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.
AttrZoneId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ZoneId: The ID of the zone in which the resource is located.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


RefRequired

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrCommodityCodeRequired

func AttrCommodityCode() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute CommodityCode: The commodity code of the service.


AttrCreateTimeRequired

func AttrCreateTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute CreateTime: The timestamp that indicates when the instance is created.


AttrDescriptionRequired

func AttrDescription() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Description: The description of the instance.


AttrDrdsInstanceIdRequired

func AttrDrdsInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DrdsInstanceId: The ID of the Drds instance.


AttrExpireDateRequired

func AttrExpireDate() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ExpireDate: The timestamp that indicates when the instance expires.


AttrInstanceSeriesRequired

func AttrInstanceSeries() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceSeries: The edition of the instance.

Valid values: starter: Starter Edition enterprise: Enterprise Edition standard: Standard Edition


AttrInstanceSpecRequired

func AttrInstanceSpec() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceSpec: The specification of the instance.


AttrInstRoleRequired

func AttrInstRole() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrLabel() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrMachineType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute MachineType: The machine type of the instance.

Valid value: ecs.


AttrMasterInstanceIdRequired

func AttrMasterInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute MasterInstanceId: The ID of the primary instance.


AttrMysqlVersionRequired

func AttrMysqlVersion() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute MysqlVersion: Engine version.


AttrNetworkTypeRequired

func AttrNetworkType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute NetworkType: The network type of the instance.

Valid values: CLASSIC VPC


AttrOrderInstanceIdRequired

func AttrOrderInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute OrderInstanceId: The ID of the purchased instance.


AttrReadOnlyDbInstanceIdsRequired

func AttrReadOnlyDbInstanceIds() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.


AttrResourceGroupIdRequired

func AttrResourceGroupId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.


AttrStorageTypeRequired

func AttrStorageType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute StorageType: The storage type of the Drds database.

Valid values: RDS PolarDB


AttrTypeRequired

func AttrType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrVersion() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Version: The version of the instance.


AttrVersionActionRequired

func AttrVersionAction() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute VersionAction: Indicates whether the version of the instance can be upgraded.


AttrVipsRequired

func AttrVips() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Vips: The list of returned virtual IP addresses (VIPs).


AttrVpcCloudInstanceIdRequired

func AttrVpcCloudInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.


AttrZoneIdRequired

func AttrZoneId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ZoneId: The ID of the zone in which the resource is located.