interface DatabaseInstanceAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.DatabaseInstanceAttributes |
Java | software.amazon.awscdk.services.rds.DatabaseInstanceAttributes |
Python | aws_cdk.aws_rds.DatabaseInstanceAttributes |
TypeScript (source) | @aws-cdk/aws-rds » DatabaseInstanceAttributes |
Properties that describe an existing instance.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
import * as rds from '@aws-cdk/aws-rds';
declare const instanceEngine: rds.IInstanceEngine;
declare const securityGroup: ec2.SecurityGroup;
const databaseInstanceAttributes: rds.DatabaseInstanceAttributes = {
instanceEndpointAddress: 'instanceEndpointAddress',
instanceIdentifier: 'instanceIdentifier',
port: 123,
securityGroups: [securityGroup],
// the properties below are optional
engine: instanceEngine,
};
Properties
Name | Type | Description |
---|---|---|
instance | string | The endpoint address. |
instance | string | The instance identifier. |
port | number | The database port. |
security | ISecurity [] | The security groups of the instance. |
engine? | IInstance | The engine of the existing database Instance. |
instanceEndpointAddress
Type:
string
The endpoint address.
instanceIdentifier
Type:
string
The instance identifier.
port
Type:
number
The database port.
securityGroups
Type:
ISecurity
[]
The security groups of the instance.
engine?
Type:
IInstance
(optional, default: the imported Instance's engine is unknown)
The engine of the existing database Instance.