Skip to content

DbInstance

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkgraphdatabase.datasource.IDbInstance

This class encapsulates and extends the ROS resource type DATASOURCE::GraphDatabase::DbInstance, which is used to query the information about an instance.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkgraphdatabase/datasource"
datasource.NewDbInstance(scope Construct, id *string, props DbInstanceProps, enableResourcePropertyConstraint *bool) DbInstance
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props DbInstanceProps 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/alicloudroscdkgraphdatabase/datasource"
datasource.DbInstance_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.
AttrConnectionString interface{} Attribute ConnectionString: Virtual Private Cloud (vpc connection such as a VPN connection or leased line domain name.
AttrCreateTime interface{} Attribute CreateTime: Creation time, which follows the format of YYYY-MM-DD 'T'hh:mm:ssZ, such as 2011-05-30 T12:11:4Z.
AttrCurrentMinorVersion interface{} Attribute CurrentMinorVersion: The current kernel image version.
AttrDbInstanceCategory interface{} Attribute DbInstanceCategory: The category of the db instance.
AttrDbInstanceCpu interface{} Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count.
AttrDbInstanceDescription interface{} Attribute DbInstanceDescription: According to the practical example or notes.
AttrDbInstanceId interface{} Attribute DbInstanceId: The ID of the GDB Instance.
AttrDbInstanceIpArray interface{} Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list.
AttrDbInstanceMemory interface{} Attribute DbInstanceMemory: Instance memory, which is measured in MB.
AttrDbInstanceNetworkType interface{} Attribute DbInstanceNetworkType: The network type of the db instance.
AttrDbInstanceStorageType interface{} Attribute DbInstanceStorageType: Cloud Disk.
AttrDbInstanceType interface{} Attribute DbInstanceType: The type of the db instance.
AttrDbNodeClass interface{} Attribute DbNodeClass: The class of the db node.
AttrDbNodeCount interface{} Attribute DbNodeCount: The count of the db node.
AttrDbNodeStorage interface{} Attribute DbNodeStorage: Instance storage space, which is measured in GB.
AttrDbVersion interface{} Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1.
AttrEcsSecurityGroupRelations interface{} Attribute EcsSecurityGroupRelations: Security group information array.
AttrExpired interface{} Attribute Expired: The expire status of the db instance.
AttrExpireTime interface{} Attribute ExpireTime: The instance after it expires time for subscription instance.
AttrLatestMinorVersion interface{} Attribute LatestMinorVersion: The latest kernel image version.
AttrLockMode interface{} Attribute LockMode: Instance lock state.
AttrLockReason interface{} Attribute LockReason: An instance is locked the reason.
AttrMaintainTime interface{} Attribute MaintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance.
AttrPaymentType interface{} Attribute PaymentType: The DB instance attribute field representing the paid type is desirable.
AttrPort interface{} Attribute Port: Application Port.
AttrPublicConnectionString interface{} Attribute PublicConnectionString: The public connection string ID of the DB instance.
AttrPublicPort interface{} Attribute PublicPort: The public port ID of the DB instance.
AttrReadOnlyDbInstanceIds interface{} Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.
AttrResourceGroupId interface{} Attribute ResourceGroupId: Resource Group ID.
AttrTags interface{} Attribute Tags: The tags of the GDB Instance.
AttrVpcId interface{} Attribute VpcId: The vpc id of the db instance.
AttrVSwitchId interface{} Attribute VSwitchId: The vswitch id of the DB instance.
AttrZoneId interface{} Attribute ZoneId: The zone ID of the instance.
Props DbInstanceProps 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

AttrConnectionStringRequired

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

Attribute ConnectionString: Virtual Private Cloud (vpc connection such as a VPN connection or leased line domain name.


AttrCreateTimeRequired

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

Attribute CreateTime: Creation time, which follows the format of YYYY-MM-DD 'T'hh:mm:ssZ, such as 2011-05-30 T12:11:4Z.


AttrCurrentMinorVersionRequired

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

Attribute CurrentMinorVersion: The current kernel image version.


AttrDbInstanceCategoryRequired

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

Attribute DbInstanceCategory: The category of the db instance.


AttrDbInstanceCpuRequired

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

Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count.


AttrDbInstanceDescriptionRequired

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

Attribute DbInstanceDescription: According to the practical example or notes.


AttrDbInstanceIdRequired

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

Attribute DbInstanceId: The ID of the GDB Instance.


AttrDbInstanceIpArrayRequired

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

Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list.


AttrDbInstanceMemoryRequired

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

Attribute DbInstanceMemory: Instance memory, which is measured in MB.


AttrDbInstanceNetworkTypeRequired

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

Attribute DbInstanceNetworkType: The network type of the db instance.


AttrDbInstanceStorageTypeRequired

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

Attribute DbInstanceStorageType: Cloud Disk.


AttrDbInstanceTypeRequired

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

Attribute DbInstanceType: The type of the db instance.


AttrDbNodeClassRequired

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

Attribute DbNodeClass: The class of the db node.


AttrDbNodeCountRequired

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

Attribute DbNodeCount: The count of the db node.


AttrDbNodeStorageRequired

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

Attribute DbNodeStorage: Instance storage space, which is measured in GB.


AttrDbVersionRequired

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

Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1.


AttrEcsSecurityGroupRelationsRequired

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

Attribute EcsSecurityGroupRelations: Security group information array.


AttrExpiredRequired

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

Attribute Expired: The expire status of the db instance.


AttrExpireTimeRequired

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

Attribute ExpireTime: The instance after it expires time for subscription instance.


AttrLatestMinorVersionRequired

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

Attribute LatestMinorVersion: The latest kernel image version.


AttrLockModeRequired

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

Attribute LockMode: Instance lock state.


AttrLockReasonRequired

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

Attribute LockReason: An instance is locked the reason.


AttrMaintainTimeRequired

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

Attribute MaintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance.


AttrPaymentTypeRequired

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

Attribute PaymentType: The DB instance attribute field representing the paid type is desirable.


AttrPortRequired

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

Attribute Port: Application Port.


AttrPublicConnectionStringRequired

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

Attribute PublicConnectionString: The public connection string ID of the DB instance.


AttrPublicPortRequired

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

Attribute PublicPort: The public port ID of the DB instance.


AttrReadOnlyDbInstanceIdsRequired

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

Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.


AttrResourceGroupIdRequired

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

Attribute ResourceGroupId: Resource Group ID.


AttrTagsRequired

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

Attribute Tags: The tags of the GDB Instance.


AttrVpcIdRequired

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

Attribute VpcId: The vpc id of the db instance.


AttrVSwitchIdRequired

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

Attribute VSwitchId: The vswitch id of the DB instance.


AttrZoneIdRequired

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

Attribute ZoneId: The zone ID of the instance.


PropsRequired

func Props() DbInstanceProps