forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(neptune): high level constructs for db clusters and instances
- This change adds higher level constructs for Neptune clusters - Adds higher-level constructs for - AWS::Neptune::DBCluster - AWS::Neptune::DBInstance - AWS::Neptune::DBClusterParameterGroup - AWS::Neptune::DBParameterGroup - AWS::Neptune::DBSubnetGroup fixes aws#12762
- Loading branch information
1 parent
2f6521a
commit ba6b525
Showing
16 changed files
with
2,107 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { IConnectable, ISecurityGroup } from '@aws-cdk/aws-ec2'; | ||
import { IResource } from '@aws-cdk/core'; | ||
import { Endpoint } from './endpoint'; | ||
|
||
/** | ||
* Create a clustered database with a given number of instances. | ||
*/ | ||
export interface IDatabaseCluster extends IResource, IConnectable { | ||
/** | ||
* Identifier of the cluster | ||
*/ | ||
readonly clusterIdentifier: string; | ||
|
||
/** | ||
* Identifiers of the replicas | ||
*/ | ||
readonly instanceIdentifiers: string[]; | ||
|
||
/** | ||
* The endpoint to use for read/write operations | ||
* @attribute Endpoint,Port | ||
*/ | ||
readonly clusterEndpoint: Endpoint; | ||
|
||
/** | ||
* Endpoint to use for load-balanced read-only operations. | ||
* @attribute ReadEndpoint | ||
*/ | ||
readonly clusterReadEndpoint: Endpoint; | ||
|
||
/** | ||
* Endpoints which address each individual replica. | ||
*/ | ||
readonly instanceEndpoints: Endpoint[]; | ||
} | ||
|
||
/** | ||
* Properties that describe an existing cluster instance | ||
*/ | ||
export interface DatabaseClusterAttributes { | ||
/** | ||
* The database port | ||
*/ | ||
readonly port: number; | ||
|
||
/** | ||
* The security group of the database cluster | ||
*/ | ||
readonly securityGroup: ISecurityGroup; | ||
|
||
/** | ||
* Identifier for the cluster | ||
*/ | ||
readonly clusterIdentifier: string; | ||
|
||
/** | ||
* Identifier for the instances | ||
*/ | ||
readonly instanceIdentifiers: string[]; | ||
|
||
/** | ||
* Cluster endpoint address | ||
*/ | ||
readonly clusterEndpointAddress: string; | ||
|
||
/** | ||
* Reader endpoint address | ||
*/ | ||
readonly readerEndpointAddress: string; | ||
|
||
/** | ||
* Endpoint addresses of individual instances | ||
*/ | ||
readonly instanceEndpointAddresses: string[]; | ||
} |
Oops, something went wrong.