Skip to content
v2.274.0

DatabaseClusterLookupOptions Struct ​

Properties for looking up an existing DatabaseCluster.

Example ​

ts
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 ​

clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*stringrequired#
The cluster identifier of the DatabaseCluster.