interface DatabaseClusterLookupOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RDS.DatabaseClusterLookupOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#DatabaseClusterLookupOptions |
Java | software.amazon.awscdk.services.rds.DatabaseClusterLookupOptions |
Python | aws_cdk.aws_rds.DatabaseClusterLookupOptions |
TypeScript (source) | aws-cdk-lib » aws_rds » DatabaseClusterLookupOptions |
Properties for looking up an existing DatabaseCluster.
Example
declare const myUserRole: iam.Role;
const clusterFromLookup = rds.DatabaseCluster.fromLookup(this, 'ClusterFromLookup', {
clusterIdentifier: 'my-cluster-id',
});
// Grant a connection
clusterFromLookup.grantConnect(myUserRole, 'my-user-id');
Properties
| Name | Type | Description |
|---|---|---|
| cluster | string | The cluster identifier of the DatabaseCluster. |
clusterIdentifier
Type:
string
The cluster identifier of the DatabaseCluster.

.NET
Go
Java
Python
TypeScript (