Skip to content

DbInstance

  • Implements: ros_cdk_graphdatabase.datasource.IDbInstance

This class encapsulates and extends the ROS resource type DATASOURCE::GraphDatabase::DbInstance.

Initializers

from ros_cdk_graphdatabase import datasource
datasource.DbInstance(
  scope: Construct,
  id: str,
  db_instance_id: typing.Union[str, IResolvable],
  refresh_options: typing.Union[str, IResolvable] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
db_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property dbInstanceId: The ID of the GDB Instance.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

db_instance_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property dbInstanceId: The ID of the GDB Instance.


refresh_optionsOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

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: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

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

is_construct

from ros_cdk_graphdatabase import datasource
datasource.DbInstance.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_connection_string typing.Union[str, ros_cdk_core.IResolvable] Attribute ConnectionString: Virtual Private Cloud (vpc connection such as a VPN connection or leased line domain name.
attr_create_time typing.Union[str, ros_cdk_core.IResolvable] Attribute CreateTime: Creation time, which follows the format of YYYY-MM-DD 'T'hh:mm:ssZ, such as 2011-05-30 T12:11:4Z.
attr_current_minor_version typing.Union[str, ros_cdk_core.IResolvable] Attribute CurrentMinorVersion: The current kernel image version.
attr_db_instance_category typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceCategory: The category of the db instance.
attr_db_instance_cpu typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceCpu: For example, instances can be grouped according to Cpu core count.
attr_db_instance_description typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceDescription: According to the practical example or notes.
attr_db_instance_id typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceId: The ID of the GDB Instance.
attr_db_instance_ip_array typing.Union[str, ros_cdk_core.IResolvable] Attribute DBInstanceIPArray: IP ADDRESS whitelist for the instance group list.
attr_db_instance_memory typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceMemory: Instance memory, which is measured in MB.
attr_db_instance_network_type typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceNetworkType: The network type of the db instance.
attr_db_instance_storage_type typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceStorageType: Cloud Disk.
attr_db_instance_type typing.Union[str, ros_cdk_core.IResolvable] Attribute DbInstanceType: The type of the db instance.
attr_db_node_class typing.Union[str, ros_cdk_core.IResolvable] Attribute DbNodeClass: The class of the db node.
attr_db_node_count typing.Union[str, ros_cdk_core.IResolvable] Attribute DbNodeCount: The count of the db node.
attr_db_node_storage typing.Union[str, ros_cdk_core.IResolvable] Attribute DbNodeStorage: Instance storage space, which is measured in GB.
attr_db_version typing.Union[str, ros_cdk_core.IResolvable] Attribute DbVersion: Kernel Version 1.0 is represented as gremlin,1.
attr_ecs_security_group_relations typing.Union[str, ros_cdk_core.IResolvable] Attribute EcsSecurityGroupRelations: Security group information array.
attr_expired typing.Union[str, ros_cdk_core.IResolvable] Attribute Expired: The expire status of the db instance.
attr_expire_time typing.Union[str, ros_cdk_core.IResolvable] Attribute ExpireTime: The instance after it expires time for subscription instance.
attr_latest_minor_version typing.Union[str, ros_cdk_core.IResolvable] Attribute LatestMinorVersion: The latest kernel image version.
attr_lock_mode typing.Union[str, ros_cdk_core.IResolvable] Attribute LockMode: Instance lock state.
attr_lock_reason typing.Union[str, ros_cdk_core.IResolvable] Attribute LockReason: An instance is locked the reason.
attr_maintain_time typing.Union[str, ros_cdk_core.IResolvable] Attribute MaintainTime: Instance maintenance time such as 00:00Z-02:00Z, 0 to 2 points to carry out routine maintenance.
attr_payment_type typing.Union[str, ros_cdk_core.IResolvable] Attribute PaymentType: The DB instance attribute field representing the paid type is desirable.
attr_port typing.Union[str, ros_cdk_core.IResolvable] Attribute Port: Application Port.
attr_public_connection_string typing.Union[str, ros_cdk_core.IResolvable] Attribute PublicConnectionString: The public connection string ID of the DB instance.
attr_public_port typing.Union[str, ros_cdk_core.IResolvable] Attribute PublicPort: The public port ID of the DB instance.
attr_read_only_db_instance_ids typing.Union[str, ros_cdk_core.IResolvable] Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.
attr_resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Attribute ResourceGroupId: Resource Group ID.
attr_tags typing.Union[str, ros_cdk_core.IResolvable] Attribute Tags: The tags of the GDB Instance.
attr_vpc_id typing.Union[str, ros_cdk_core.IResolvable] Attribute VpcId: The vpc id of the db instance.
attr_v_switch_id typing.Union[str, ros_cdk_core.IResolvable] Attribute VSwitchId: The vswitch id of the DB instance.
attr_zone_id typing.Union[str, ros_cdk_core.IResolvable] Attribute ZoneId: The zone ID of the instance.
props DbInstanceProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: 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

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_connection_stringRequired

attr_connection_string: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_create_timeRequired

attr_create_time: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_current_minor_versionRequired

attr_current_minor_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute CurrentMinorVersion: The current kernel image version.


attr_db_instance_categoryRequired

attr_db_instance_category: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceCategory: The category of the db instance.


attr_db_instance_cpuRequired

attr_db_instance_cpu: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_db_instance_descriptionRequired

attr_db_instance_description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceDescription: According to the practical example or notes.


attr_db_instance_idRequired

attr_db_instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceId: The ID of the GDB Instance.


attr_db_instance_ip_arrayRequired

attr_db_instance_ip_array: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_db_instance_memoryRequired

attr_db_instance_memory: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_db_instance_network_typeRequired

attr_db_instance_network_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceNetworkType: The network type of the db instance.


attr_db_instance_storage_typeRequired

attr_db_instance_storage_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceStorageType: Cloud Disk.


attr_db_instance_typeRequired

attr_db_instance_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbInstanceType: The type of the db instance.


attr_db_node_classRequired

attr_db_node_class: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbNodeClass: The class of the db node.


attr_db_node_countRequired

attr_db_node_count: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute DbNodeCount: The count of the db node.


attr_db_node_storageRequired

attr_db_node_storage: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_db_versionRequired

attr_db_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_ecs_security_group_relationsRequired

attr_ecs_security_group_relations: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute EcsSecurityGroupRelations: Security group information array.


attr_expiredRequired

attr_expired: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Expired: The expire status of the db instance.


attr_expire_timeRequired

attr_expire_time: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_latest_minor_versionRequired

attr_latest_minor_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute LatestMinorVersion: The latest kernel image version.


attr_lock_modeRequired

attr_lock_mode: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute LockMode: Instance lock state.


attr_lock_reasonRequired

attr_lock_reason: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute LockReason: An instance is locked the reason.


attr_maintain_timeRequired

attr_maintain_time: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_payment_typeRequired

attr_payment_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_portRequired

attr_port: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Port: Application Port.


attr_public_connection_stringRequired

attr_public_connection_string: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_public_portRequired

attr_public_port: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_read_only_db_instance_idsRequired

attr_read_only_db_instance_ids: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute ReadOnlyDbInstanceIds: The array of the readonly db instances.


attr_resource_group_idRequired

attr_resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute ResourceGroupId: Resource Group ID.


attr_tagsRequired

attr_tags: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Tags: The tags of the GDB Instance.


attr_vpc_idRequired

attr_vpc_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute VpcId: The vpc id of the db instance.


attr_v_switch_idRequired

attr_v_switch_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute VSwitchId: The vswitch id of the DB instance.


attr_zone_idRequired

attr_zone_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute ZoneId: The zone ID of the instance.


propsRequired

props: DbInstanceProps