Skip to content

Commit 70b5d82

Browse files
author
awstools
committed
feat(client-redshift-serverless): Provides new and updated API members to support the Redshift Serverless reservations feature.
1 parent a52a975 commit 70b5d82

18 files changed

+2018
-8
lines changed

clients/client-redshift-serverless/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ CreateNamespace
242242

243243
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/CreateNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/CreateNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/CreateNamespaceCommandOutput/)
244244

245+
</details>
246+
<details>
247+
<summary>
248+
CreateReservation
249+
</summary>
250+
251+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/CreateReservationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/CreateReservationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/CreateReservationCommandOutput/)
252+
245253
</details>
246254
<details>
247255
<summary>
@@ -394,6 +402,22 @@ GetRecoveryPoint
394402

395403
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/GetRecoveryPointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetRecoveryPointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetRecoveryPointCommandOutput/)
396404

405+
</details>
406+
<details>
407+
<summary>
408+
GetReservation
409+
</summary>
410+
411+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/GetReservationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetReservationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetReservationCommandOutput/)
412+
413+
</details>
414+
<details>
415+
<summary>
416+
GetReservationOffering
417+
</summary>
418+
419+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/GetReservationOfferingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetReservationOfferingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetReservationOfferingCommandOutput/)
420+
397421
</details>
398422
<details>
399423
<summary>
@@ -490,6 +514,22 @@ ListRecoveryPoints
490514

491515
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListRecoveryPointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListRecoveryPointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListRecoveryPointsCommandOutput/)
492516

517+
</details>
518+
<details>
519+
<summary>
520+
ListReservationOfferings
521+
</summary>
522+
523+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListReservationOfferingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListReservationOfferingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListReservationOfferingsCommandOutput/)
524+
525+
</details>
526+
<details>
527+
<summary>
528+
ListReservations
529+
</summary>
530+
531+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListReservationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListReservationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListReservationsCommandOutput/)
532+
493533
</details>
494534
<details>
495535
<summary>

clients/client-redshift-serverless/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
"@smithy/util-middleware": "^4.0.2",
5757
"@smithy/util-retry": "^4.0.2",
5858
"@smithy/util-utf8": "^4.0.0",
59-
"tslib": "^2.6.2"
59+
"@types/uuid": "^9.0.1",
60+
"tslib": "^2.6.2",
61+
"uuid": "^9.0.1"
6062
},
6163
"devDependencies": {
6264
"@tsconfig/node18": "18.2.4",

clients/client-redshift-serverless/src/RedshiftServerless.ts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ import {
2222
CreateNamespaceCommandInput,
2323
CreateNamespaceCommandOutput,
2424
} from "./commands/CreateNamespaceCommand";
25+
import {
26+
CreateReservationCommand,
27+
CreateReservationCommandInput,
28+
CreateReservationCommandOutput,
29+
} from "./commands/CreateReservationCommand";
2530
import {
2631
CreateScheduledActionCommand,
2732
CreateScheduledActionCommandInput,
@@ -117,6 +122,16 @@ import {
117122
GetRecoveryPointCommandInput,
118123
GetRecoveryPointCommandOutput,
119124
} from "./commands/GetRecoveryPointCommand";
125+
import {
126+
GetReservationCommand,
127+
GetReservationCommandInput,
128+
GetReservationCommandOutput,
129+
} from "./commands/GetReservationCommand";
130+
import {
131+
GetReservationOfferingCommand,
132+
GetReservationOfferingCommandInput,
133+
GetReservationOfferingCommandOutput,
134+
} from "./commands/GetReservationOfferingCommand";
120135
import {
121136
GetResourcePolicyCommand,
122137
GetResourcePolicyCommandInput,
@@ -169,6 +184,16 @@ import {
169184
ListRecoveryPointsCommandInput,
170185
ListRecoveryPointsCommandOutput,
171186
} from "./commands/ListRecoveryPointsCommand";
187+
import {
188+
ListReservationOfferingsCommand,
189+
ListReservationOfferingsCommandInput,
190+
ListReservationOfferingsCommandOutput,
191+
} from "./commands/ListReservationOfferingsCommand";
192+
import {
193+
ListReservationsCommand,
194+
ListReservationsCommandInput,
195+
ListReservationsCommandOutput,
196+
} from "./commands/ListReservationsCommand";
172197
import {
173198
ListScheduledActionsCommand,
174199
ListScheduledActionsCommandInput,
@@ -283,6 +308,7 @@ const commands = {
283308
CreateCustomDomainAssociationCommand,
284309
CreateEndpointAccessCommand,
285310
CreateNamespaceCommand,
311+
CreateReservationCommand,
286312
CreateScheduledActionCommand,
287313
CreateSnapshotCommand,
288314
CreateSnapshotCopyConfigurationCommand,
@@ -302,6 +328,8 @@ const commands = {
302328
GetEndpointAccessCommand,
303329
GetNamespaceCommand,
304330
GetRecoveryPointCommand,
331+
GetReservationCommand,
332+
GetReservationOfferingCommand,
305333
GetResourcePolicyCommand,
306334
GetScheduledActionCommand,
307335
GetSnapshotCommand,
@@ -314,6 +342,8 @@ const commands = {
314342
ListManagedWorkgroupsCommand,
315343
ListNamespacesCommand,
316344
ListRecoveryPointsCommand,
345+
ListReservationOfferingsCommand,
346+
ListReservationsCommand,
317347
ListScheduledActionsCommand,
318348
ListSnapshotCopyConfigurationsCommand,
319349
ListSnapshotsCommand,
@@ -405,6 +435,23 @@ export interface RedshiftServerless {
405435
cb: (err: any, data?: CreateNamespaceCommandOutput) => void
406436
): void;
407437

438+
/**
439+
* @see {@link CreateReservationCommand}
440+
*/
441+
createReservation(
442+
args: CreateReservationCommandInput,
443+
options?: __HttpHandlerOptions
444+
): Promise<CreateReservationCommandOutput>;
445+
createReservation(
446+
args: CreateReservationCommandInput,
447+
cb: (err: any, data?: CreateReservationCommandOutput) => void
448+
): void;
449+
createReservation(
450+
args: CreateReservationCommandInput,
451+
options: __HttpHandlerOptions,
452+
cb: (err: any, data?: CreateReservationCommandOutput) => void
453+
): void;
454+
408455
/**
409456
* @see {@link CreateScheduledActionCommand}
410457
*/
@@ -705,6 +752,37 @@ export interface RedshiftServerless {
705752
cb: (err: any, data?: GetRecoveryPointCommandOutput) => void
706753
): void;
707754

755+
/**
756+
* @see {@link GetReservationCommand}
757+
*/
758+
getReservation(
759+
args: GetReservationCommandInput,
760+
options?: __HttpHandlerOptions
761+
): Promise<GetReservationCommandOutput>;
762+
getReservation(args: GetReservationCommandInput, cb: (err: any, data?: GetReservationCommandOutput) => void): void;
763+
getReservation(
764+
args: GetReservationCommandInput,
765+
options: __HttpHandlerOptions,
766+
cb: (err: any, data?: GetReservationCommandOutput) => void
767+
): void;
768+
769+
/**
770+
* @see {@link GetReservationOfferingCommand}
771+
*/
772+
getReservationOffering(
773+
args: GetReservationOfferingCommandInput,
774+
options?: __HttpHandlerOptions
775+
): Promise<GetReservationOfferingCommandOutput>;
776+
getReservationOffering(
777+
args: GetReservationOfferingCommandInput,
778+
cb: (err: any, data?: GetReservationOfferingCommandOutput) => void
779+
): void;
780+
getReservationOffering(
781+
args: GetReservationOfferingCommandInput,
782+
options: __HttpHandlerOptions,
783+
cb: (err: any, data?: GetReservationOfferingCommandOutput) => void
784+
): void;
785+
708786
/**
709787
* @see {@link GetResourcePolicyCommand}
710788
*/
@@ -888,6 +966,42 @@ export interface RedshiftServerless {
888966
cb: (err: any, data?: ListRecoveryPointsCommandOutput) => void
889967
): void;
890968

969+
/**
970+
* @see {@link ListReservationOfferingsCommand}
971+
*/
972+
listReservationOfferings(): Promise<ListReservationOfferingsCommandOutput>;
973+
listReservationOfferings(
974+
args: ListReservationOfferingsCommandInput,
975+
options?: __HttpHandlerOptions
976+
): Promise<ListReservationOfferingsCommandOutput>;
977+
listReservationOfferings(
978+
args: ListReservationOfferingsCommandInput,
979+
cb: (err: any, data?: ListReservationOfferingsCommandOutput) => void
980+
): void;
981+
listReservationOfferings(
982+
args: ListReservationOfferingsCommandInput,
983+
options: __HttpHandlerOptions,
984+
cb: (err: any, data?: ListReservationOfferingsCommandOutput) => void
985+
): void;
986+
987+
/**
988+
* @see {@link ListReservationsCommand}
989+
*/
990+
listReservations(): Promise<ListReservationsCommandOutput>;
991+
listReservations(
992+
args: ListReservationsCommandInput,
993+
options?: __HttpHandlerOptions
994+
): Promise<ListReservationsCommandOutput>;
995+
listReservations(
996+
args: ListReservationsCommandInput,
997+
cb: (err: any, data?: ListReservationsCommandOutput) => void
998+
): void;
999+
listReservations(
1000+
args: ListReservationsCommandInput,
1001+
options: __HttpHandlerOptions,
1002+
cb: (err: any, data?: ListReservationsCommandOutput) => void
1003+
): void;
1004+
8911005
/**
8921006
* @see {@link ListScheduledActionsCommand}
8931007
*/

clients/client-redshift-serverless/src/RedshiftServerlessClient.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import {
6666
CreateEndpointAccessCommandOutput,
6767
} from "./commands/CreateEndpointAccessCommand";
6868
import { CreateNamespaceCommandInput, CreateNamespaceCommandOutput } from "./commands/CreateNamespaceCommand";
69+
import { CreateReservationCommandInput, CreateReservationCommandOutput } from "./commands/CreateReservationCommand";
6970
import {
7071
CreateScheduledActionCommandInput,
7172
CreateScheduledActionCommandOutput,
@@ -109,6 +110,11 @@ import {
109110
import { GetEndpointAccessCommandInput, GetEndpointAccessCommandOutput } from "./commands/GetEndpointAccessCommand";
110111
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
111112
import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
113+
import { GetReservationCommandInput, GetReservationCommandOutput } from "./commands/GetReservationCommand";
114+
import {
115+
GetReservationOfferingCommandInput,
116+
GetReservationOfferingCommandOutput,
117+
} from "./commands/GetReservationOfferingCommand";
112118
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
113119
import { GetScheduledActionCommandInput, GetScheduledActionCommandOutput } from "./commands/GetScheduledActionCommand";
114120
import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
@@ -130,6 +136,11 @@ import {
130136
} from "./commands/ListManagedWorkgroupsCommand";
131137
import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
132138
import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
139+
import {
140+
ListReservationOfferingsCommandInput,
141+
ListReservationOfferingsCommandOutput,
142+
} from "./commands/ListReservationOfferingsCommand";
143+
import { ListReservationsCommandInput, ListReservationsCommandOutput } from "./commands/ListReservationsCommand";
133144
import {
134145
ListScheduledActionsCommandInput,
135146
ListScheduledActionsCommandOutput,
@@ -208,6 +219,7 @@ export type ServiceInputTypes =
208219
| CreateCustomDomainAssociationCommandInput
209220
| CreateEndpointAccessCommandInput
210221
| CreateNamespaceCommandInput
222+
| CreateReservationCommandInput
211223
| CreateScheduledActionCommandInput
212224
| CreateSnapshotCommandInput
213225
| CreateSnapshotCopyConfigurationCommandInput
@@ -227,6 +239,8 @@ export type ServiceInputTypes =
227239
| GetEndpointAccessCommandInput
228240
| GetNamespaceCommandInput
229241
| GetRecoveryPointCommandInput
242+
| GetReservationCommandInput
243+
| GetReservationOfferingCommandInput
230244
| GetResourcePolicyCommandInput
231245
| GetScheduledActionCommandInput
232246
| GetSnapshotCommandInput
@@ -239,6 +253,8 @@ export type ServiceInputTypes =
239253
| ListManagedWorkgroupsCommandInput
240254
| ListNamespacesCommandInput
241255
| ListRecoveryPointsCommandInput
256+
| ListReservationOfferingsCommandInput
257+
| ListReservationsCommandInput
242258
| ListScheduledActionsCommandInput
243259
| ListSnapshotCopyConfigurationsCommandInput
244260
| ListSnapshotsCommandInput
@@ -271,6 +287,7 @@ export type ServiceOutputTypes =
271287
| CreateCustomDomainAssociationCommandOutput
272288
| CreateEndpointAccessCommandOutput
273289
| CreateNamespaceCommandOutput
290+
| CreateReservationCommandOutput
274291
| CreateScheduledActionCommandOutput
275292
| CreateSnapshotCommandOutput
276293
| CreateSnapshotCopyConfigurationCommandOutput
@@ -290,6 +307,8 @@ export type ServiceOutputTypes =
290307
| GetEndpointAccessCommandOutput
291308
| GetNamespaceCommandOutput
292309
| GetRecoveryPointCommandOutput
310+
| GetReservationCommandOutput
311+
| GetReservationOfferingCommandOutput
293312
| GetResourcePolicyCommandOutput
294313
| GetScheduledActionCommandOutput
295314
| GetSnapshotCommandOutput
@@ -302,6 +321,8 @@ export type ServiceOutputTypes =
302321
| ListManagedWorkgroupsCommandOutput
303322
| ListNamespacesCommandOutput
304323
| ListRecoveryPointsCommandOutput
324+
| ListReservationOfferingsCommandOutput
325+
| ListReservationsCommandOutput
305326
| ListScheduledActionsCommandOutput
306327
| ListSnapshotCopyConfigurationsCommandOutput
307328
| ListSnapshotsCommandOutput

clients/client-redshift-serverless/src/commands/ConvertRecoveryPointToSnapshotCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ConvertRecoveryPointToSnapshotCommandOutput
3838

3939
/**
4040
* <p>Converts a recovery point to a snapshot. For more information about recovery points and snapshots,
41-
* see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html">Working with snapshots and recovery points</a>.</p>
41+
* see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery-points.html">Working with snapshots and recovery points</a>.</p>
4242
* @example
4343
* Use a bare-bones client and the command you need to make an API call.
4444
* ```javascript

0 commit comments

Comments
 (0)