interface DatabaseClusterAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DocDB.DatabaseClusterAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsdocdb#DatabaseClusterAttributes |
![]() | software.amazon.awscdk.services.docdb.DatabaseClusterAttributes |
![]() | aws_cdk.aws_docdb.DatabaseClusterAttributes |
![]() | aws-cdk-lib » aws_docdb » 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 { aws_docdb as docdb } from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const securityGroup: ec2.SecurityGroup;
const databaseClusterAttributes: docdb.DatabaseClusterAttributes = {
clusterIdentifier: 'clusterIdentifier',
// the properties below are optional
clusterEndpointAddress: 'clusterEndpointAddress',
instanceEndpointAddresses: ['instanceEndpointAddresses'],
instanceIdentifiers: ['instanceIdentifiers'],
port: 123,
readerEndpointAddress: 'readerEndpointAddress',
securityGroup: securityGroup,
};
Properties
Name | Type | Description |
---|---|---|
cluster | string | Identifier for the cluster. |
cluster | string | Cluster endpoint address. |
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 group of the database cluster. |
clusterIdentifier
Type:
string
Identifier for the cluster.
clusterEndpointAddress?
Type:
string
(optional, default: no cluster endpoint address)
Cluster endpoint address.
instanceEndpointAddresses?
Type:
string[]
(optional, default: no instance endpoint addresses)
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 endpoint address)
Reader endpoint address.
securityGroup?
Type:
ISecurity
(optional, default: no security groups)
The security group of the database cluster.