clients/client-redshift/README.md
AWS SDK for JavaScript Redshift Client for Node.js, Browser and React Native.
<fullname>Amazon Redshift</fullname>
<p> <b>Overview</b> </p> <p>This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/using-aws-sdk.html">Using the Amazon Redshift Management Interfaces</a>.</p> <p>Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.</p> <p>If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the <a href="https://docs.aws.amazon.com/redshift/latest/gsg/getting-started.html">Amazon Redshift Getting Started Guide</a>.</p> <p>If you are a database developer, the <a href="https://docs.aws.amazon.com/redshift/latest/dg/welcome.html">Amazon Redshift Database Developer Guide</a> explains how to design, build, query, and maintain the databases that make up your data warehouse. </p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-redshiftyarn add @aws-sdk/client-redshiftpnpm add @aws-sdk/client-redshiftThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the RedshiftClient and
the commands you need, for example ListRecommendationsCommand:
// ES5 example
const { RedshiftClient, ListRecommendationsCommand } = require("@aws-sdk/client-redshift");
// ES6+ example
import { RedshiftClient, ListRecommendationsCommand } from "@aws-sdk/client-redshift";
To send a request:
send operation on the client, providing the command object as input.const client = new RedshiftClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListRecommendationsCommand(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.
Redshift extends RedshiftClient 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 (RedshiftClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { Redshift } from "@aws-sdk/client-redshift";
const client = new Redshift({ region: "REGION" });
// async/await.
try {
const data = await client.listRecommendations(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listRecommendations(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listRecommendations(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-redshift 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> AddPartner </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateDataShareConsumer </summary>Command API Reference / Input / Output
</details> <details> <summary> AuthorizeClusterSecurityGroupIngress </summary>Command API Reference / Input / Output
</details> <details> <summary> AuthorizeDataShare </summary>Command API Reference / Input / Output
</details> <details> <summary> AuthorizeEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> AuthorizeSnapshotAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchDeleteClusterSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> BatchModifyClusterSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelResize </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateAuthenticationProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateClusterSecurityGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateClusterSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateCustomDomainAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateHsmClientCertificate </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateHsmConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateRedshiftIdcApplication </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateScheduledAction </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateSnapshotCopyGrant </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateSnapshotSchedule </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateTags </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateUsageLimit </summary>Command API Reference / Input / Output
</details> <details> <summary> DeauthorizeDataShare </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteAuthenticationProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteClusterSecurityGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteClusterSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteCustomDomainAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteHsmClientCertificate </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteHsmConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeletePartner </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteRedshiftIdcApplication </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteScheduledAction </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteSnapshotCopyGrant </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteSnapshotSchedule </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteTags </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteUsageLimit </summary>Command API Reference / Input / Output
</details> <details> <summary> DeregisterNamespace </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeAccountAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeAuthenticationProfiles </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterDbRevisions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterParameterGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterSecurityGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterSubnetGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterTracks </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeClusterVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeCustomDomainAssociations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDataShares </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDataSharesForConsumer </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDataSharesForProducer </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDefaultClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEndpointAuthorization </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> DescribeHsmClientCertificates </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeHsmConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeInboundIntegrations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeIntegrations </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeLoggingStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeNodeConfigurationOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOrderableClusterOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribePartners </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeRedshiftIdcApplications </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeReservedNodeExchangeStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeReservedNodeOfferings </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeReservedNodes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeResize </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeScheduledActions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeSnapshotCopyGrants </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeSnapshotSchedules </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeStorage </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeTableRestoreStatus </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeTags </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeUsageLimits </summary>Command API Reference / Input / Output
</details> <details> <summary> DisableLogging </summary>Command API Reference / Input / Output
</details> <details> <summary> DisableSnapshotCopy </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateDataShareConsumer </summary>Command API Reference / Input / Output
</details> <details> <summary> EnableLogging </summary>Command API Reference / Input / Output
</details> <details> <summary> EnableSnapshotCopy </summary>Command API Reference / Input / Output
</details> <details> <summary> FailoverPrimaryCompute </summary>Command API Reference / Input / Output
</details> <details> <summary> GetClusterCredentials </summary>Command API Reference / Input / Output
</details> <details> <summary> GetClusterCredentialsWithIAM </summary>Command API Reference / Input / Output
</details> <details> <summary> GetIdentityCenterAuthToken </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReservedNodeExchangeConfigurationOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> GetReservedNodeExchangeOfferings </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> ListRecommendations </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyAquaConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyAuthenticationProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterDbRevision </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterIamRoles </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterMaintenance </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterSnapshotSchedule </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyClusterSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyCustomDomainAssociation </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyIntegration </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyLakehouseConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyRedshiftIdcApplication </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyScheduledAction </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifySnapshotCopyRetentionPeriod </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifySnapshotSchedule </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyUsageLimit </summary>Command API Reference / Input / Output
</details> <details> <summary> PauseCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> PurchaseReservedNodeOffering </summary>Command API Reference / Input / Output
</details> <details> <summary> PutResourcePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RegisterNamespace </summary>Command API Reference / Input / Output
</details> <details> <summary> RejectDataShare </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ResizeCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreFromClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreTableFromClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> ResumeCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RevokeClusterSecurityGroupIngress </summary>Command API Reference / Input / Output
</details> <details> <summary> RevokeEndpointAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> RevokeSnapshotAccess </summary>Command API Reference / Input / Output
</details> <details> <summary> RotateEncryptionKey </summary> </details> <details> <summary> UpdatePartnerStatus </summary> </details>