interface DatabaseClusterAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.DatabaseClusterAttributes |
![]() | software.amazon.awscdk.services.rds.DatabaseClusterAttributes |
![]() | aws_cdk.aws_rds.DatabaseClusterAttributes |
![]() | @aws-cdk/aws-rds » DatabaseClusterAttributes |
Properties that describe an existing cluster 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 clusterEngine: rds.IClusterEngine;
declare const securityGroup: ec2.SecurityGroup;
const databaseClusterAttributes: rds.DatabaseClusterAttributes = {
clusterIdentifier: 'clusterIdentifier',
// the properties below are optional
clusterEndpointAddress: 'clusterEndpointAddress',
engine: clusterEngine,
instanceEndpointAddresses: ['instanceEndpointAddresses'],
instanceIdentifiers: ['instanceIdentifiers'],
port: 123,
readerEndpointAddress: 'readerEndpointAddress',
securityGroups: [securityGroup],
};
Properties
Name | Type | Description |
---|---|---|
cluster | string | Identifier for the cluster. |
cluster | string | Cluster endpoint address. |
engine? | ICluster | The engine of the existing Cluster. |
instance | string[] | Endpoint addresses of individual instances. |
instance | string[] | Identifier for the instances. |
port? | number | The database port. |
reader | string | Reader endpoint address. |
security | ISecurity [] | The security groups of the database cluster. |
clusterIdentifier
Type:
string
Identifier for the cluster.
clusterEndpointAddress?
Type:
string
(optional, default: no endpoint address)
Cluster endpoint address.
engine?
Type:
ICluster
(optional, default: the imported Cluster's engine is unknown)
The engine of the existing Cluster.
instanceEndpointAddresses?
Type:
string[]
(optional, default: no instance endpoints)
Endpoint addresses of individual instances.
instanceIdentifiers?
Type:
string[]
(optional, default: no instance identifiers)
Identifier for the instances.
port?
Type:
number
(optional, default: none)
The database port.
readerEndpointAddress?
Type:
string
(optional, default: no reader address)
Reader endpoint address.
securityGroups?
Type:
ISecurity
[]
(optional, default: no security groups)
The security groups of the database cluster.