Skip to content

DrdsInstance

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkdrds.datasource.IDrdsInstance

This class encapsulates and extends the ROS resource type DATASOURCE::DRDS::DrdsInstance.

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.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc 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

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

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.
Env github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment The environment this resource belongs to.
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 interface{} Attribute CommodityCode: The commodity code of the service.
AttrCreateTime interface{} Attribute CreateTime: The timestamp that indicates when the instance is created.
AttrDescription interface{} Attribute Description: The description of the instance.
AttrDrdsInstanceId interface{} Attribute DrdsInstanceId: The ID of the Drds instance.
AttrExpireDate interface{} Attribute ExpireDate: The timestamp that indicates when the instance expires.
AttrInstanceSeries interface{} Attribute InstanceSeries: The edition of the instance.
AttrInstanceSpec interface{} Attribute InstanceSpec: The specification of the instance.
AttrInstRole interface{} Attribute InstRole: The role of the instance.
AttrLabel interface{} Attribute Label: The tag of the instance.
AttrMachineType interface{} Attribute MachineType: The machine type of the instance.
AttrMasterInstanceId interface{} Attribute MasterInstanceId: The ID of the primary instance.
AttrMysqlVersion interface{} Attribute MysqlVersion: Engine version.
AttrNetworkType interface{} Attribute NetworkType: The network type of the instance.
AttrOrderInstanceId interface{} Attribute OrderInstanceId: The ID of the purchased instance.
AttrReadOnlyDbInstanceIds interface{} Attribute ReadOnlyDBInstanceIds: The IDs of read-only instances that are associated with the instance.
AttrResourceGroupId interface{} Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrStorageType interface{} Attribute StorageType: The storage type of the Drds database.
AttrType interface{} Attribute Type: The type of the instance.
AttrVersion interface{} Attribute Version: The version of the instance.
AttrVersionAction interface{} Attribute VersionAction: Indicates whether the version of the instance can be upgraded.
AttrVips interface{} Attribute Vips: The list of returned virtual IP addresses (VIPs).
AttrVpcCloudInstanceId interface{} Attribute VpcCloudInstanceId: The ID of the instance that is deployed in the VPC.
AttrZoneId interface{} Attribute ZoneId: The ID of the zone in which the resource is located.
Props DrdsInstanceProps No description.

NodeRequired

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

The construct tree node associated with this construct.


EnvRequired

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

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() interface{}
  • Type: interface{}

Attribute CommodityCode: The commodity code of the service.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

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


AttrDescriptionRequired

func AttrDescription() interface{}
  • Type: interface{}

Attribute Description: The description of the instance.


AttrDrdsInstanceIdRequired

func AttrDrdsInstanceId() interface{}
  • Type: interface{}

Attribute DrdsInstanceId: The ID of the Drds instance.


AttrExpireDateRequired

func AttrExpireDate() interface{}
  • Type: interface{}

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


AttrInstanceSeriesRequired

func AttrInstanceSeries() interface{}
  • Type: interface{}

Attribute InstanceSeries: The edition of the instance.

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


AttrInstanceSpecRequired

func AttrInstanceSpec() interface{}
  • Type: interface{}

Attribute InstanceSpec: The specification of the instance.


AttrInstRoleRequired

func AttrInstRole() interface{}
  • Type: interface{}

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() interface{}
  • Type: interface{}

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() interface{}
  • Type: interface{}

Attribute MachineType: The machine type of the instance.

Valid value: ecs.


AttrMasterInstanceIdRequired

func AttrMasterInstanceId() interface{}
  • Type: interface{}

Attribute MasterInstanceId: The ID of the primary instance.


AttrMysqlVersionRequired

func AttrMysqlVersion() interface{}
  • Type: interface{}

Attribute MysqlVersion: Engine version.


AttrNetworkTypeRequired

func AttrNetworkType() interface{}
  • Type: interface{}

Attribute NetworkType: The network type of the instance.

Valid values: CLASSIC VPC


AttrOrderInstanceIdRequired

func AttrOrderInstanceId() interface{}
  • Type: interface{}

Attribute OrderInstanceId: The ID of the purchased instance.


AttrReadOnlyDbInstanceIdsRequired

func AttrReadOnlyDbInstanceIds() interface{}
  • Type: interface{}

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


AttrResourceGroupIdRequired

func AttrResourceGroupId() interface{}
  • Type: interface{}

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


AttrStorageTypeRequired

func AttrStorageType() interface{}
  • Type: interface{}

Attribute StorageType: The storage type of the Drds database.

Valid values: RDS PolarDB


AttrTypeRequired

func AttrType() interface{}
  • Type: interface{}

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() interface{}
  • Type: interface{}

Attribute Version: The version of the instance.


AttrVersionActionRequired

func AttrVersionAction() interface{}
  • Type: interface{}

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


AttrVipsRequired

func AttrVips() interface{}
  • Type: interface{}

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


AttrVpcCloudInstanceIdRequired

func AttrVpcCloudInstanceId() interface{}
  • Type: interface{}

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


AttrZoneIdRequired

func AttrZoneId() interface{}
  • Type: interface{}

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


PropsRequired

func Props() DrdsInstanceProps