clients/client-odb/README.md
AWS SDK for JavaScript Odb Client for Node.js, Browser and React Native.
<p>Oracle Database@Amazon Web Services is an offering that enables you to access Oracle Exadata infrastructure managed by Oracle Cloud Infrastructure (OCI) inside Amazon Web Services data centers. You can migrate your Oracle Exadata workloads, establish low-latency connectivity with applications running on Amazon Web Services, and integrate with Amazon Web Services services. For example, you can run application servers in a Virtual Private Cloud (VPC) and access an Oracle Exadata system running in Oracle Database@Amazon Web Services. You can get started with Oracle Database@Amazon Web Services by using the familiar Amazon Web Services Management Console, APIs, or CLI.</p> <p>This interface reference for Oracle Database@Amazon Web Services contains documentation for a programming or command line interface that you can use to manage Oracle Database@Amazon Web Services. Oracle Database@Amazon Web Services is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. The reference structure is as follows.</p> <p> <b>Oracle Database@Amazon Web Services API Reference</b> </p> <ul> <li> <p>For the alphabetical list of API actions, see <a href="https://docs.aws.amazon.com/odb/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/odb/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/odb/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/odb/latest/APIReference/CommonErrors.html">Common Errors</a>.</p> </li> </ul>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-odbyarn add @aws-sdk/client-odbpnpm add @aws-sdk/client-odbThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the OdbClient and
the commands you need, for example ListDbNodesCommand:
// ES5 example
const { OdbClient, ListDbNodesCommand } = require("@aws-sdk/client-odb");
// ES6+ example
import { OdbClient, ListDbNodesCommand } from "@aws-sdk/client-odb";
To send a request:
send operation on the client, providing the command object as input.const client = new OdbClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListDbNodesCommand(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.
Odb extends OdbClient 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 (OdbClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { Odb } from "@aws-sdk/client-odb";
const client = new Odb({ region: "REGION" });
// async/await.
try {
const data = await client.listDbNodes(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listDbNodes(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listDbNodes(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-odb 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> AssociateIamRoleToResource </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCloudAutonomousVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCloudExadataInfrastructure </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCloudVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateOdbNetwork </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateOdbPeeringConnection </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCloudAutonomousVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCloudExadataInfrastructure </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCloudVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteOdbNetwork </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteOdbPeeringConnection </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateIamRoleFromResource </summary>Command API Reference / Input / Output
</details> <details> <summary> GetCloudAutonomousVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> GetCloudExadataInfrastructure </summary>Command API Reference / Input / Output
</details> <details> <summary> GetCloudExadataInfrastructureUnallocatedResources </summary>Command API Reference / Input / Output
</details> <details> <summary> GetCloudVmCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDbNode </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDbServer </summary>Command API Reference / Input / Output
</details> <details> <summary> GetOciOnboardingStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> GetOdbNetwork </summary>Command API Reference / Input / Output
</details> <details> <summary> GetOdbPeeringConnection </summary>Command API Reference / Input / Output
</details> <details> <summary> InitializeService </summary>Command API Reference / Input / Output
</details> <details> <summary> ListAutonomousVirtualMachines </summary>Command API Reference / Input / Output
</details> <details> <summary> ListCloudAutonomousVmClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> ListCloudExadataInfrastructures </summary>Command API Reference / Input / Output
</details> <details> <summary> ListCloudVmClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDbNodes </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDbServers </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDbSystemShapes </summary>Command API Reference / Input / Output
</details> <details> <summary> ListGiVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListOdbNetworks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListOdbPeeringConnections </summary>Command API Reference / Input / Output
</details> <details> <summary> ListSystemVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootDbNode </summary>Command API Reference / Input / Output
</details> <details> <summary> StartDbNode </summary>Command API Reference / Input / Output
</details> <details> <summary> StopDbNode </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateCloudExadataInfrastructure </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateOdbNetwork </summary> </details> <details> <summary> UpdateOdbPeeringConnection </summary> </details>