Skip to content

DrdsInstance

  • Implements: AlibabaCloud.SDK.ROS.CDK.Drds.datasource.IDrdsInstance

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

Initializers

using AlibabaCloud.SDK.ROS.CDK.Drds;
new DrdsInstance(Construct Scope, string Id, DrdsInstanceProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props DrdsInstanceProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.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

private string ToString()

Returns a string representation of this construct.

Synthesize

private void Synthesize(ISynthesisSession Session)

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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

FetchCondition

private RosCondition FetchCondition()

FetchDependency

private string[] FetchDependency()

FetchResourceDesc

private string FetchResourceDesc()

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

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

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Drds;
DrdsInstance.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

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

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.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 string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrCommodityCodeRequired

public object AttrCommodityCode { get; }
  • Type: object

Attribute CommodityCode: The commodity code of the service.


AttrCreateTimeRequired

public object AttrCreateTime { get; }
  • Type: object

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


AttrDescriptionRequired

public object AttrDescription { get; }
  • Type: object

Attribute Description: The description of the instance.


AttrDrdsInstanceIdRequired

public object AttrDrdsInstanceId { get; }
  • Type: object

Attribute DrdsInstanceId: The ID of the Drds instance.


AttrExpireDateRequired

public object AttrExpireDate { get; }
  • Type: object

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


AttrInstanceSeriesRequired

public object AttrInstanceSeries { get; }
  • Type: object

Attribute InstanceSeries: The edition of the instance.

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


AttrInstanceSpecRequired

public object AttrInstanceSpec { get; }
  • Type: object

Attribute InstanceSpec: The specification of the instance.


AttrInstRoleRequired

public object AttrInstRole { get; }
  • Type: object

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 object AttrLabel { get; }
  • Type: object

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 object AttrMachineType { get; }
  • Type: object

Attribute MachineType: The machine type of the instance.

Valid value: ecs.


AttrMasterInstanceIdRequired

public object AttrMasterInstanceId { get; }
  • Type: object

Attribute MasterInstanceId: The ID of the primary instance.


AttrMysqlVersionRequired

public object AttrMysqlVersion { get; }
  • Type: object

Attribute MysqlVersion: Engine version.


AttrNetworkTypeRequired

public object AttrNetworkType { get; }
  • Type: object

Attribute NetworkType: The network type of the instance.

Valid values: CLASSIC VPC


AttrOrderInstanceIdRequired

public object AttrOrderInstanceId { get; }
  • Type: object

Attribute OrderInstanceId: The ID of the purchased instance.


AttrReadOnlyDbInstanceIdsRequired

public object AttrReadOnlyDbInstanceIds { get; }
  • Type: object

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


AttrResourceGroupIdRequired

public object AttrResourceGroupId { get; }
  • Type: object

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


AttrStorageTypeRequired

public object AttrStorageType { get; }
  • Type: object

Attribute StorageType: The storage type of the Drds database.

Valid values: RDS PolarDB


AttrTypeRequired

public object AttrType { get; }
  • Type: object

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 object AttrVersion { get; }
  • Type: object

Attribute Version: The version of the instance.


AttrVersionActionRequired

public object AttrVersionAction { get; }
  • Type: object

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


AttrVipsRequired

public object AttrVips { get; }
  • Type: object

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


AttrVpcCloudInstanceIdRequired

public object AttrVpcCloudInstanceId { get; }
  • Type: object

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


AttrZoneIdRequired

public object AttrZoneId { get; }
  • Type: object

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


PropsRequired

public DrdsInstanceProps Props { get; }