clients/client-rds/README.md
AWS SDK for JavaScript RDS Client for Node.js, Browser and React Native.
<fullname>Amazon Relational Database Service</fullname> <p/> <p>Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.</p> <p>Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, Oracle, Db2, or Amazon Aurora database server. These capabilities mean that the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your DB instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.</p> <p>This interface reference for Amazon RDS contains documentation for a programming or command line interface you can use to manage Amazon RDS. Amazon RDS is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.</p> <p> <b>Amazon RDS API Reference</b> </p> <ul> <li> <p>For the alphabetical list of API actions, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html">API Actions</a>.</p> </li> <li> <p>For the alphabetical list of data types, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html">Data Types</a>.</p> </li> <li> <p>For a list of common query parameters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html">Common Parameters</a>.</p> </li> <li> <p>For descriptions of the error codes, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html">Common Errors</a>.</p> </li> </ul> <p> <b>Amazon RDS User Guide</b> </p> <ul> <li> <p>For a summary of the Amazon RDS interfaces, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces">Available RDS Interfaces</a>.</p> </li> <li> <p>For more information about how to use the Query API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html">Using the Query API</a>.</p> </li> </ul>
To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-rdsyarn add @aws-sdk/client-rdspnpm add @aws-sdk/client-rdsThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the RDSClient and
the commands you need, for example ListTagsForResourceCommand:
// ES5 example
const { RDSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-rds");
// ES6+ example
import { RDSClient, ListTagsForResourceCommand } from "@aws-sdk/client-rds";
To send a request:
send operation on the client, providing the command object as input.const client = new RDSClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListTagsForResourceCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
RDS extends RDSClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (RDSClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { RDS } from "@aws-sdk/client-rds";
const client = new RDS({ region: "REGION" });
// async/await.
try {
const data = await client.listTagsForResource(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listTagsForResource(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listTagsForResource(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-rds package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AddRoleToDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> AddSourceIdentifierToSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> AddTagsToResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ApplyPendingMaintenanceAction </summary>Command API Reference / Input / Output
</details> <details> <summary> AuthorizeDBSecurityGroupIngress </summary>Command API Reference / Input / Output
</details> <details> <summary> BacktrackDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelExportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyOptionGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateBlueGreenDeployment </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCustomDBEngineVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBInstanceReadReplica </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBProxy </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBProxyEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBSecurityGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBShardGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateOptionGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateTenantDatabase </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteBlueGreenDeployment </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCustomDBEngineVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterAutomatedBackup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBInstanceAutomatedBackup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBProxy </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBProxyEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBSecurityGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBShardGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteOptionGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteTenantDatabase </summary>Command API Reference / Input / Output
</details> <details> <summary> DeregisterDBProxyTargets </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeAccountAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeBlueGreenDeployments </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeCertificates </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterAutomatedBackups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterBacktracks </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterEndpoints </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterParameterGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterSnapshotAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBEngineVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBInstanceAutomatedBackups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBInstances </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBLogFiles </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBMajorEngineVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBParameterGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBProxies </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBProxyEndpoints </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBProxyTargetGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBProxyTargets </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBRecommendations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSecurityGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBShardGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSnapshotAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSnapshotTenantDatabases </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSubnetGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEngineDefaultClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEngineDefaultParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEventCategories </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEvents </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEventSubscriptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeExportTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeGlobalClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeIntegrations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOptionGroupOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOptionGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOrderableDBInstanceOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribePendingMaintenanceActions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeReservedDBInstances </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeReservedDBInstancesOfferings </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeServerlessV2PlatformVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeSourceRegions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeTenantDatabases </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeValidDBInstanceModifications </summary>Command API Reference / Input / Output
</details> <details> <summary> DisableHttpEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> DownloadDBLogFilePortion </summary>Command API Reference / Input / Output
</details> <details> <summary> EnableHttpEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> FailoverDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> FailoverGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyActivityStream </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyCertificates </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyCurrentDBClusterCapacity </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyCustomDBEngineVersion </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterSnapshotAttribute </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBProxy </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBProxyEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBProxyTargetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBRecommendation </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBShardGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBSnapshotAttribute </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyOptionGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyTenantDatabase </summary>Command API Reference / Input / Output
</details> <details> <summary> PromoteReadReplica </summary>Command API Reference / Input / Output
</details> <details> <summary> PromoteReadReplicaDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> PurchaseReservedDBInstancesOffering </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootDBShardGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> RegisterDBProxyTargets </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveFromGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveRoleFromDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveRoleFromDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveSourceIdentifierFromSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveTagsFromResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBClusterFromS3 </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBClusterFromSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBClusterToPointInTime </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBInstanceFromDBSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBInstanceFromS3 </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBInstanceToPointInTime </summary>Command API Reference / Input / Output
</details> <details> <summary> RevokeDBSecurityGroupIngress </summary>Command API Reference / Input / Output
</details> <details> <summary> StartActivityStream </summary>Command API Reference / Input / Output
</details> <details> <summary> StartDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> StartDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> StartDBInstanceAutomatedBackupsReplication </summary>Command API Reference / Input / Output
</details> <details> <summary> StartExportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StopActivityStream </summary>Command API Reference / Input / Output
</details> <details> <summary> StopDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> StopDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> StopDBInstanceAutomatedBackupsReplication </summary>Command API Reference / Input / Output
</details> <details> <summary> SwitchoverBlueGreenDeployment </summary>Command API Reference / Input / Output
</details> <details> <summary> SwitchoverGlobalCluster </summary> </details> <details> <summary> SwitchoverReadReplica </summary> </details>