Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 953 Bytes

rds.md

File metadata and controls

57 lines (35 loc) · 953 Bytes
description
Overview of the `rds` module.

Overview of the rds module in the sst/node package.

import { ... } from "sst/node/rds"

The rds module has the following exports.


Properties

The properties let you access the resources that are bound to the function.


RDS

This module helps with accessing RDS constructs.

import { RDS } from "sst/node/rds";

clusterArn

Type : string

The ARN of the RDS Serverless Cluster.

console.log(RDS.myDatabase.clusterArn);

secretArn

Type : string

The ARN of the Secrets Manager Secret for the RDS Serverless Cluster.

console.log(RDS.myDatabase.secretArn);

defaultDatabaseName

Type : string

The default database name of the RDS Serverless Cluster.

console.log(RDS.myDatabase.defaultDatabaseName);