@aws-sdk/client-redshift-serverless 3.782.0 → 3.794.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +271 -0
  3. package/dist-es/RedshiftServerless.js +10 -0
  4. package/dist-es/commands/CreateReservationCommand.js +22 -0
  5. package/dist-es/commands/GetReservationCommand.js +22 -0
  6. package/dist-es/commands/GetReservationOfferingCommand.js +22 -0
  7. package/dist-es/commands/ListReservationOfferingsCommand.js +22 -0
  8. package/dist-es/commands/ListReservationsCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +4 -0
  11. package/dist-es/pagination/ListReservationOfferingsPaginator.js +4 -0
  12. package/dist-es/pagination/ListReservationsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_json1_1.js +167 -0
  15. package/dist-types/RedshiftServerless.d.ts +37 -0
  16. package/dist-types/RedshiftServerlessClient.d.ts +7 -2
  17. package/dist-types/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateReservationCommand.d.ts +111 -0
  19. package/dist-types/commands/CreateSnapshotCommand.d.ts +1 -1
  20. package/dist-types/commands/GetReservationCommand.d.ts +100 -0
  21. package/dist-types/commands/GetReservationOfferingCommand.d.ts +91 -0
  22. package/dist-types/commands/ListReservationOfferingsCommand.d.ts +92 -0
  23. package/dist-types/commands/ListReservationsCommand.d.ts +100 -0
  24. package/dist-types/commands/index.d.ts +5 -0
  25. package/dist-types/models/models_0.d.ts +250 -2
  26. package/dist-types/pagination/ListReservationOfferingsPaginator.d.ts +7 -0
  27. package/dist-types/pagination/ListReservationsPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +2 -0
  29. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  30. package/dist-types/ts3.4/RedshiftServerless.d.ts +87 -0
  31. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +30 -0
  32. package/dist-types/ts3.4/commands/CreateReservationCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/GetReservationCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/GetReservationOfferingCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/ListReservationOfferingsCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/ListReservationsCommand.d.ts +50 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  39. package/dist-types/ts3.4/pagination/ListReservationOfferingsPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/ListReservationsPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  43. package/package.json +8 -6
@@ -211,6 +211,36 @@ export interface Namespace {
211
211
  export interface CreateNamespaceResponse {
212
212
  namespace?: Namespace | undefined;
213
213
  }
214
+ export interface CreateReservationRequest {
215
+ capacity: number | undefined;
216
+ offeringId: string | undefined;
217
+ clientToken?: string | undefined;
218
+ }
219
+ export declare const OfferingType: {
220
+ readonly ALL_UPFRONT: "ALL_UPFRONT";
221
+ readonly NO_UPFRONT: "NO_UPFRONT";
222
+ };
223
+ export type OfferingType = (typeof OfferingType)[keyof typeof OfferingType];
224
+ export interface ReservationOffering {
225
+ offeringId?: string | undefined;
226
+ duration?: number | undefined;
227
+ upfrontCharge?: number | undefined;
228
+ hourlyCharge?: number | undefined;
229
+ currencyCode?: string | undefined;
230
+ offeringType?: OfferingType | undefined;
231
+ }
232
+ export interface Reservation {
233
+ reservationId?: string | undefined;
234
+ reservationArn?: string | undefined;
235
+ startDate?: Date | undefined;
236
+ endDate?: Date | undefined;
237
+ capacity?: number | undefined;
238
+ offering?: ReservationOffering | undefined;
239
+ status?: string | undefined;
240
+ }
241
+ export interface CreateReservationResponse {
242
+ reservation?: Reservation | undefined;
243
+ }
214
244
  export type Schedule =
215
245
  | Schedule.AtMember
216
246
  | Schedule.CronMember
@@ -562,6 +592,18 @@ export interface RecoveryPoint {
562
592
  export interface GetRecoveryPointResponse {
563
593
  recoveryPoint?: RecoveryPoint | undefined;
564
594
  }
595
+ export interface GetReservationRequest {
596
+ reservationId: string | undefined;
597
+ }
598
+ export interface GetReservationResponse {
599
+ reservation: Reservation | undefined;
600
+ }
601
+ export interface GetReservationOfferingRequest {
602
+ offeringId: string | undefined;
603
+ }
604
+ export interface GetReservationOfferingResponse {
605
+ reservationOffering: ReservationOffering | undefined;
606
+ }
565
607
  export interface GetResourcePolicyRequest {
566
608
  resourceArn: string | undefined;
567
609
  }
@@ -699,6 +741,22 @@ export interface ListRecoveryPointsResponse {
699
741
  recoveryPoints?: RecoveryPoint[] | undefined;
700
742
  nextToken?: string | undefined;
701
743
  }
744
+ export interface ListReservationOfferingsRequest {
745
+ nextToken?: string | undefined;
746
+ maxResults?: number | undefined;
747
+ }
748
+ export interface ListReservationOfferingsResponse {
749
+ reservationOfferingsList: ReservationOffering[] | undefined;
750
+ nextToken?: string | undefined;
751
+ }
752
+ export interface ListReservationsRequest {
753
+ nextToken?: string | undefined;
754
+ maxResults?: number | undefined;
755
+ }
756
+ export interface ListReservationsResponse {
757
+ reservationsList: Reservation[] | undefined;
758
+ nextToken?: string | undefined;
759
+ }
702
760
  export interface ListScheduledActionsRequest {
703
761
  nextToken?: string | undefined;
704
762
  maxResults?: number | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListReservationOfferingsCommandInput,
4
+ ListReservationOfferingsCommandOutput,
5
+ } from "../commands/ListReservationOfferingsCommand";
6
+ import { RedshiftServerlessPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListReservationOfferings: (
8
+ config: RedshiftServerlessPaginationConfiguration,
9
+ input: ListReservationOfferingsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListReservationOfferingsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListReservationsCommandInput,
4
+ ListReservationsCommandOutput,
5
+ } from "../commands/ListReservationsCommand";
6
+ import { RedshiftServerlessPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListReservations: (
8
+ config: RedshiftServerlessPaginationConfiguration,
9
+ input: ListReservationsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListReservationsCommandOutput>;
@@ -4,6 +4,8 @@ export * from "./ListEndpointAccessPaginator";
4
4
  export * from "./ListManagedWorkgroupsPaginator";
5
5
  export * from "./ListNamespacesPaginator";
6
6
  export * from "./ListRecoveryPointsPaginator";
7
+ export * from "./ListReservationOfferingsPaginator";
8
+ export * from "./ListReservationsPaginator";
7
9
  export * from "./ListScheduledActionsPaginator";
8
10
  export * from "./ListSnapshotCopyConfigurationsPaginator";
9
11
  export * from "./ListSnapshotsPaginator";
@@ -19,6 +19,10 @@ import {
19
19
  CreateNamespaceCommandInput,
20
20
  CreateNamespaceCommandOutput,
21
21
  } from "../commands/CreateNamespaceCommand";
22
+ import {
23
+ CreateReservationCommandInput,
24
+ CreateReservationCommandOutput,
25
+ } from "../commands/CreateReservationCommand";
22
26
  import {
23
27
  CreateScheduledActionCommandInput,
24
28
  CreateScheduledActionCommandOutput,
@@ -95,6 +99,14 @@ import {
95
99
  GetRecoveryPointCommandInput,
96
100
  GetRecoveryPointCommandOutput,
97
101
  } from "../commands/GetRecoveryPointCommand";
102
+ import {
103
+ GetReservationCommandInput,
104
+ GetReservationCommandOutput,
105
+ } from "../commands/GetReservationCommand";
106
+ import {
107
+ GetReservationOfferingCommandInput,
108
+ GetReservationOfferingCommandOutput,
109
+ } from "../commands/GetReservationOfferingCommand";
98
110
  import {
99
111
  GetResourcePolicyCommandInput,
100
112
  GetResourcePolicyCommandOutput,
@@ -143,6 +155,14 @@ import {
143
155
  ListRecoveryPointsCommandInput,
144
156
  ListRecoveryPointsCommandOutput,
145
157
  } from "../commands/ListRecoveryPointsCommand";
158
+ import {
159
+ ListReservationOfferingsCommandInput,
160
+ ListReservationOfferingsCommandOutput,
161
+ } from "../commands/ListReservationOfferingsCommand";
162
+ import {
163
+ ListReservationsCommandInput,
164
+ ListReservationsCommandOutput,
165
+ } from "../commands/ListReservationsCommand";
146
166
  import {
147
167
  ListScheduledActionsCommandInput,
148
168
  ListScheduledActionsCommandOutput,
@@ -251,6 +271,10 @@ export declare const se_CreateNamespaceCommand: (
251
271
  input: CreateNamespaceCommandInput,
252
272
  context: __SerdeContext
253
273
  ) => Promise<__HttpRequest>;
274
+ export declare const se_CreateReservationCommand: (
275
+ input: CreateReservationCommandInput,
276
+ context: __SerdeContext
277
+ ) => Promise<__HttpRequest>;
254
278
  export declare const se_CreateScheduledActionCommand: (
255
279
  input: CreateScheduledActionCommandInput,
256
280
  context: __SerdeContext
@@ -327,6 +351,14 @@ export declare const se_GetRecoveryPointCommand: (
327
351
  input: GetRecoveryPointCommandInput,
328
352
  context: __SerdeContext
329
353
  ) => Promise<__HttpRequest>;
354
+ export declare const se_GetReservationCommand: (
355
+ input: GetReservationCommandInput,
356
+ context: __SerdeContext
357
+ ) => Promise<__HttpRequest>;
358
+ export declare const se_GetReservationOfferingCommand: (
359
+ input: GetReservationOfferingCommandInput,
360
+ context: __SerdeContext
361
+ ) => Promise<__HttpRequest>;
330
362
  export declare const se_GetResourcePolicyCommand: (
331
363
  input: GetResourcePolicyCommandInput,
332
364
  context: __SerdeContext
@@ -375,6 +407,14 @@ export declare const se_ListRecoveryPointsCommand: (
375
407
  input: ListRecoveryPointsCommandInput,
376
408
  context: __SerdeContext
377
409
  ) => Promise<__HttpRequest>;
410
+ export declare const se_ListReservationOfferingsCommand: (
411
+ input: ListReservationOfferingsCommandInput,
412
+ context: __SerdeContext
413
+ ) => Promise<__HttpRequest>;
414
+ export declare const se_ListReservationsCommand: (
415
+ input: ListReservationsCommandInput,
416
+ context: __SerdeContext
417
+ ) => Promise<__HttpRequest>;
378
418
  export declare const se_ListScheduledActionsCommand: (
379
419
  input: ListScheduledActionsCommandInput,
380
420
  context: __SerdeContext
@@ -483,6 +523,10 @@ export declare const de_CreateNamespaceCommand: (
483
523
  output: __HttpResponse,
484
524
  context: __SerdeContext
485
525
  ) => Promise<CreateNamespaceCommandOutput>;
526
+ export declare const de_CreateReservationCommand: (
527
+ output: __HttpResponse,
528
+ context: __SerdeContext
529
+ ) => Promise<CreateReservationCommandOutput>;
486
530
  export declare const de_CreateScheduledActionCommand: (
487
531
  output: __HttpResponse,
488
532
  context: __SerdeContext
@@ -559,6 +603,14 @@ export declare const de_GetRecoveryPointCommand: (
559
603
  output: __HttpResponse,
560
604
  context: __SerdeContext
561
605
  ) => Promise<GetRecoveryPointCommandOutput>;
606
+ export declare const de_GetReservationCommand: (
607
+ output: __HttpResponse,
608
+ context: __SerdeContext
609
+ ) => Promise<GetReservationCommandOutput>;
610
+ export declare const de_GetReservationOfferingCommand: (
611
+ output: __HttpResponse,
612
+ context: __SerdeContext
613
+ ) => Promise<GetReservationOfferingCommandOutput>;
562
614
  export declare const de_GetResourcePolicyCommand: (
563
615
  output: __HttpResponse,
564
616
  context: __SerdeContext
@@ -607,6 +659,14 @@ export declare const de_ListRecoveryPointsCommand: (
607
659
  output: __HttpResponse,
608
660
  context: __SerdeContext
609
661
  ) => Promise<ListRecoveryPointsCommandOutput>;
662
+ export declare const de_ListReservationOfferingsCommand: (
663
+ output: __HttpResponse,
664
+ context: __SerdeContext
665
+ ) => Promise<ListReservationOfferingsCommandOutput>;
666
+ export declare const de_ListReservationsCommand: (
667
+ output: __HttpResponse,
668
+ context: __SerdeContext
669
+ ) => Promise<ListReservationsCommandOutput>;
610
670
  export declare const de_ListScheduledActionsCommand: (
611
671
  output: __HttpResponse,
612
672
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-serverless",
3
3
  "description": "AWS SDK for JavaScript Redshift Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.782.0",
4
+ "version": "3.794.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-redshift-serverless",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.782.0",
24
+ "@aws-sdk/credential-provider-node": "3.787.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.782.0",
28
+ "@aws-sdk/middleware-user-agent": "3.787.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.782.0",
31
+ "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.782.0",
33
+ "@aws-sdk/util-user-agent-node": "3.787.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",
@@ -56,7 +56,9 @@
56
56
  "@smithy/util-middleware": "^4.0.2",
57
57
  "@smithy/util-retry": "^4.0.2",
58
58
  "@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"
60
62
  },
61
63
  "devDependencies": {
62
64
  "@tsconfig/node18": "18.2.4",