DatabaseInstanceAttributes

class aws_cdk.aws_rds.DatabaseInstanceAttributes(*, instance_endpoint_address, instance_identifier, port, security_groups, engine=None)

Bases: object

Properties that describe an existing instance.

Parameters:
  • instance_endpoint_address (str) – The endpoint address.

  • instance_identifier (str) – The instance identifier.

  • port (Union[int, float]) – The database port.

  • security_groups (Sequence[ISecurityGroup]) – The security groups of the instance.

  • engine (Optional[IInstanceEngine]) – The engine of the existing database Instance. Default: - the imported Instance’s engine is unknown

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_rds as rds

# instance_engine: rds.IInstanceEngine
# security_group: ec2.SecurityGroup

database_instance_attributes = rds.DatabaseInstanceAttributes(
    instance_endpoint_address="instanceEndpointAddress",
    instance_identifier="instanceIdentifier",
    port=123,
    security_groups=[security_group],

    # the properties below are optional
    engine=instance_engine
)

Attributes

engine

The engine of the existing database Instance.

Default:
  • the imported Instance’s engine is unknown

instance_endpoint_address

The endpoint address.

instance_identifier

The instance identifier.

port

The database port.

security_groups

The security groups of the instance.