interface DatabaseClusterLookupOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.DatabaseClusterLookupOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#DatabaseClusterLookupOptions |
![]() | software.amazon.awscdk.services.rds.DatabaseClusterLookupOptions |
![]() | aws_cdk.aws_rds.DatabaseClusterLookupOptions |
![]() | 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.