@aws-sdk/client-redshift-serverless 3.750.0 → 3.758.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 (33) hide show
  1. package/README.md +23 -7
  2. package/dist-cjs/index.js +83 -1
  3. package/dist-es/RedshiftServerless.js +4 -0
  4. package/dist-es/commands/GetTrackCommand.js +22 -0
  5. package/dist-es/commands/ListTracksCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/pagination/ListTracksPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_json1_1.js +41 -1
  10. package/dist-types/RedshiftServerless.d.ts +15 -0
  11. package/dist-types/RedshiftServerlessClient.d.ts +4 -2
  12. package/dist-types/commands/CreateWorkgroupCommand.d.ts +3 -0
  13. package/dist-types/commands/DeleteWorkgroupCommand.d.ts +2 -0
  14. package/dist-types/commands/GetTrackCommand.d.ts +98 -0
  15. package/dist-types/commands/GetWorkgroupCommand.d.ts +2 -0
  16. package/dist-types/commands/ListTracksCommand.d.ts +99 -0
  17. package/dist-types/commands/ListWorkgroupsCommand.d.ts +2 -0
  18. package/dist-types/commands/UpdateWorkgroupCommand.d.ts +3 -0
  19. package/dist-types/commands/index.d.ts +2 -0
  20. package/dist-types/models/models_0.d.ts +121 -0
  21. package/dist-types/pagination/ListTracksPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  24. package/dist-types/ts3.4/RedshiftServerless.d.ts +35 -0
  25. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +12 -0
  26. package/dist-types/ts3.4/commands/GetTrackCommand.d.ts +47 -0
  27. package/dist-types/ts3.4/commands/ListTracksCommand.d.ts +47 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +27 -0
  30. package/dist-types/ts3.4/pagination/ListTracksPaginator.d.ts +11 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  32. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  33. package/package.json +12 -12
package/README.md CHANGED
@@ -31,16 +31,16 @@ using your favorite package manager:
31
31
 
32
32
  The AWS SDK is modulized by clients and commands.
33
33
  To send a request, you only need to import the `RedshiftServerlessClient` and
34
- the commands you need, for example `ListNamespacesCommand`:
34
+ the commands you need, for example `ListTracksCommand`:
35
35
 
36
36
  ```js
37
37
  // ES5 example
38
- const { RedshiftServerlessClient, ListNamespacesCommand } = require("@aws-sdk/client-redshift-serverless");
38
+ const { RedshiftServerlessClient, ListTracksCommand } = require("@aws-sdk/client-redshift-serverless");
39
39
  ```
40
40
 
41
41
  ```ts
42
42
  // ES6+ example
43
- import { RedshiftServerlessClient, ListNamespacesCommand } from "@aws-sdk/client-redshift-serverless";
43
+ import { RedshiftServerlessClient, ListTracksCommand } from "@aws-sdk/client-redshift-serverless";
44
44
  ```
45
45
 
46
46
  ### Usage
@@ -59,7 +59,7 @@ const client = new RedshiftServerlessClient({ region: "REGION" });
59
59
  const params = {
60
60
  /** input parameters */
61
61
  };
62
- const command = new ListNamespacesCommand(params);
62
+ const command = new ListTracksCommand(params);
63
63
  ```
64
64
 
65
65
  #### Async/await
@@ -138,7 +138,7 @@ const client = new AWS.RedshiftServerless({ region: "REGION" });
138
138
 
139
139
  // async/await.
140
140
  try {
141
- const data = await client.listNamespaces(params);
141
+ const data = await client.listTracks(params);
142
142
  // process data.
143
143
  } catch (error) {
144
144
  // error handling.
@@ -146,7 +146,7 @@ try {
146
146
 
147
147
  // Promises.
148
148
  client
149
- .listNamespaces(params)
149
+ .listTracks(params)
150
150
  .then((data) => {
151
151
  // process data.
152
152
  })
@@ -155,7 +155,7 @@ client
155
155
  });
156
156
 
157
157
  // callbacks.
158
- client.listNamespaces(params, (err, data) => {
158
+ client.listTracks(params, (err, data) => {
159
159
  // process err and data.
160
160
  });
161
161
  ```
@@ -426,6 +426,14 @@ GetTableRestoreStatus
426
426
 
427
427
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/GetTableRestoreStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetTableRestoreStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetTableRestoreStatusCommandOutput/)
428
428
 
429
+ </details>
430
+ <details>
431
+ <summary>
432
+ GetTrack
433
+ </summary>
434
+
435
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/GetTrackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetTrackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/GetTrackCommandOutput/)
436
+
429
437
  </details>
430
438
  <details>
431
439
  <summary>
@@ -522,6 +530,14 @@ ListTagsForResource
522
530
 
523
531
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListTagsForResourceCommandOutput/)
524
532
 
533
+ </details>
534
+ <details>
535
+ <summary>
536
+ ListTracks
537
+ </summary>
538
+
539
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListTracksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListTracksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListTracksCommandOutput/)
540
+
525
541
  </details>
526
542
  <details>
527
543
  <summary>
package/dist-cjs/index.js CHANGED
@@ -55,6 +55,7 @@ __export(src_exports, {
55
55
  GetScheduledActionCommand: () => GetScheduledActionCommand,
56
56
  GetSnapshotCommand: () => GetSnapshotCommand,
57
57
  GetTableRestoreStatusCommand: () => GetTableRestoreStatusCommand,
58
+ GetTrackCommand: () => GetTrackCommand,
58
59
  GetUsageLimitCommand: () => GetUsageLimitCommand,
59
60
  GetWorkgroupCommand: () => GetWorkgroupCommand,
60
61
  InsufficientCapacityException: () => InsufficientCapacityException,
@@ -72,6 +73,7 @@ __export(src_exports, {
72
73
  ListSnapshotsCommand: () => ListSnapshotsCommand,
73
74
  ListTableRestoreStatusCommand: () => ListTableRestoreStatusCommand,
74
75
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
76
+ ListTracksCommand: () => ListTracksCommand,
75
77
  ListUsageLimitsCommand: () => ListUsageLimitsCommand,
76
78
  ListWorkgroupsCommand: () => ListWorkgroupsCommand,
77
79
  LogExport: () => LogExport,
@@ -124,6 +126,7 @@ __export(src_exports, {
124
126
  paginateListSnapshotCopyConfigurations: () => paginateListSnapshotCopyConfigurations,
125
127
  paginateListSnapshots: () => paginateListSnapshots,
126
128
  paginateListTableRestoreStatus: () => paginateListTableRestoreStatus,
129
+ paginateListTracks: () => paginateListTracks,
127
130
  paginateListUsageLimits: () => paginateListUsageLimits,
128
131
  paginateListWorkgroups: () => paginateListWorkgroups
129
132
  });
@@ -802,6 +805,12 @@ var se_GetTableRestoreStatusCommand = /* @__PURE__ */ __name(async (input, conte
802
805
  body = JSON.stringify((0, import_smithy_client._json)(input));
803
806
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
804
807
  }, "se_GetTableRestoreStatusCommand");
808
+ var se_GetTrackCommand = /* @__PURE__ */ __name(async (input, context) => {
809
+ const headers = sharedHeaders("GetTrack");
810
+ let body;
811
+ body = JSON.stringify((0, import_smithy_client._json)(input));
812
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
813
+ }, "se_GetTrackCommand");
805
814
  var se_GetUsageLimitCommand = /* @__PURE__ */ __name(async (input, context) => {
806
815
  const headers = sharedHeaders("GetUsageLimit");
807
816
  let body;
@@ -874,6 +883,12 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
874
883
  body = JSON.stringify((0, import_smithy_client._json)(input));
875
884
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
876
885
  }, "se_ListTagsForResourceCommand");
886
+ var se_ListTracksCommand = /* @__PURE__ */ __name(async (input, context) => {
887
+ const headers = sharedHeaders("ListTracks");
888
+ let body;
889
+ body = JSON.stringify((0, import_smithy_client._json)(input));
890
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
891
+ }, "se_ListTracksCommand");
877
892
  var se_ListUsageLimitsCommand = /* @__PURE__ */ __name(async (input, context) => {
878
893
  const headers = sharedHeaders("ListUsageLimits");
879
894
  let body;
@@ -1327,6 +1342,19 @@ var de_GetTableRestoreStatusCommand = /* @__PURE__ */ __name(async (output, cont
1327
1342
  };
1328
1343
  return response;
1329
1344
  }, "de_GetTableRestoreStatusCommand");
1345
+ var de_GetTrackCommand = /* @__PURE__ */ __name(async (output, context) => {
1346
+ if (output.statusCode >= 300) {
1347
+ return de_CommandError(output, context);
1348
+ }
1349
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1350
+ let contents = {};
1351
+ contents = (0, import_smithy_client._json)(data);
1352
+ const response = {
1353
+ $metadata: deserializeMetadata(output),
1354
+ ...contents
1355
+ };
1356
+ return response;
1357
+ }, "de_GetTrackCommand");
1330
1358
  var de_GetUsageLimitCommand = /* @__PURE__ */ __name(async (output, context) => {
1331
1359
  if (output.statusCode >= 300) {
1332
1360
  return de_CommandError(output, context);
@@ -1483,6 +1511,19 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1483
1511
  };
1484
1512
  return response;
1485
1513
  }, "de_ListTagsForResourceCommand");
1514
+ var de_ListTracksCommand = /* @__PURE__ */ __name(async (output, context) => {
1515
+ if (output.statusCode >= 300) {
1516
+ return de_CommandError(output, context);
1517
+ }
1518
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1519
+ let contents = {};
1520
+ contents = (0, import_smithy_client._json)(data);
1521
+ const response = {
1522
+ $metadata: deserializeMetadata(output),
1523
+ ...contents
1524
+ };
1525
+ return response;
1526
+ }, "de_ListTracksCommand");
1486
1527
  var de_ListUsageLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
1487
1528
  if (output.statusCode >= 300) {
1488
1529
  return de_CommandError(output, context);
@@ -1890,7 +1931,7 @@ var se_Schedule = /* @__PURE__ */ __name((input, context) => {
1890
1931
  return Schedule.visit(input, {
1891
1932
  at: (value) => ({ at: value.getTime() / 1e3 }),
1892
1933
  cron: (value) => ({ cron: value }),
1893
- _: (name, value) => ({ name: value })
1934
+ _: (name, value) => ({ [name]: value })
1894
1935
  });
1895
1936
  }, "se_Schedule");
1896
1937
  var se_UpdateScheduledActionRequest = /* @__PURE__ */ __name((input, context) => {
@@ -2316,12 +2357,14 @@ var de_Workgroup = /* @__PURE__ */ __name((output, context) => {
2316
2357
  maxCapacity: import_smithy_client.expectInt32,
2317
2358
  namespaceName: import_smithy_client.expectString,
2318
2359
  patchVersion: import_smithy_client.expectString,
2360
+ pendingTrackName: import_smithy_client.expectString,
2319
2361
  port: import_smithy_client.expectInt32,
2320
2362
  pricePerformanceTarget: import_smithy_client._json,
2321
2363
  publiclyAccessible: import_smithy_client.expectBoolean,
2322
2364
  securityGroupIds: import_smithy_client._json,
2323
2365
  status: import_smithy_client.expectString,
2324
2366
  subnetIds: import_smithy_client._json,
2367
+ trackName: import_smithy_client.expectString,
2325
2368
  workgroupArn: import_smithy_client.expectString,
2326
2369
  workgroupId: import_smithy_client.expectString,
2327
2370
  workgroupName: import_smithy_client.expectString,
@@ -2769,6 +2812,21 @@ var GetTableRestoreStatusCommand = class extends import_smithy_client.Command.cl
2769
2812
  }
2770
2813
  };
2771
2814
 
2815
+ // src/commands/GetTrackCommand.ts
2816
+
2817
+
2818
+
2819
+ var GetTrackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2820
+ return [
2821
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2822
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2823
+ ];
2824
+ }).s("RedshiftServerless", "GetTrack", {}).n("RedshiftServerlessClient", "GetTrackCommand").f(void 0, void 0).ser(se_GetTrackCommand).de(de_GetTrackCommand).build() {
2825
+ static {
2826
+ __name(this, "GetTrackCommand");
2827
+ }
2828
+ };
2829
+
2772
2830
  // src/commands/GetUsageLimitCommand.ts
2773
2831
 
2774
2832
 
@@ -2949,6 +3007,21 @@ var ListTagsForResourceCommand = class extends import_smithy_client.Command.clas
2949
3007
  }
2950
3008
  };
2951
3009
 
3010
+ // src/commands/ListTracksCommand.ts
3011
+
3012
+
3013
+
3014
+ var ListTracksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3015
+ return [
3016
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3017
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3018
+ ];
3019
+ }).s("RedshiftServerless", "ListTracks", {}).n("RedshiftServerlessClient", "ListTracksCommand").f(void 0, void 0).ser(se_ListTracksCommand).de(de_ListTracksCommand).build() {
3020
+ static {
3021
+ __name(this, "ListTracksCommand");
3022
+ }
3023
+ };
3024
+
2952
3025
  // src/commands/ListUsageLimitsCommand.ts
2953
3026
 
2954
3027
 
@@ -3233,6 +3306,7 @@ var commands = {
3233
3306
  GetScheduledActionCommand,
3234
3307
  GetSnapshotCommand,
3235
3308
  GetTableRestoreStatusCommand,
3309
+ GetTrackCommand,
3236
3310
  GetUsageLimitCommand,
3237
3311
  GetWorkgroupCommand,
3238
3312
  ListCustomDomainAssociationsCommand,
@@ -3245,6 +3319,7 @@ var commands = {
3245
3319
  ListSnapshotsCommand,
3246
3320
  ListTableRestoreStatusCommand,
3247
3321
  ListTagsForResourceCommand,
3322
+ ListTracksCommand,
3248
3323
  ListUsageLimitsCommand,
3249
3324
  ListWorkgroupsCommand,
3250
3325
  PutResourcePolicyCommand,
@@ -3306,6 +3381,10 @@ var paginateListSnapshots = (0, import_core.createPaginator)(RedshiftServerlessC
3306
3381
 
3307
3382
  var paginateListTableRestoreStatus = (0, import_core.createPaginator)(RedshiftServerlessClient, ListTableRestoreStatusCommand, "nextToken", "nextToken", "maxResults");
3308
3383
 
3384
+ // src/pagination/ListTracksPaginator.ts
3385
+
3386
+ var paginateListTracks = (0, import_core.createPaginator)(RedshiftServerlessClient, ListTracksCommand, "nextToken", "nextToken", "maxResults");
3387
+
3309
3388
  // src/pagination/ListUsageLimitsPaginator.ts
3310
3389
 
3311
3390
  var paginateListUsageLimits = (0, import_core.createPaginator)(RedshiftServerlessClient, ListUsageLimitsCommand, "nextToken", "nextToken", "maxResults");
@@ -3348,6 +3427,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3348
3427
  GetScheduledActionCommand,
3349
3428
  GetSnapshotCommand,
3350
3429
  GetTableRestoreStatusCommand,
3430
+ GetTrackCommand,
3351
3431
  GetUsageLimitCommand,
3352
3432
  GetWorkgroupCommand,
3353
3433
  ListCustomDomainAssociationsCommand,
@@ -3360,6 +3440,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3360
3440
  ListSnapshotsCommand,
3361
3441
  ListTableRestoreStatusCommand,
3362
3442
  ListTagsForResourceCommand,
3443
+ ListTracksCommand,
3363
3444
  ListUsageLimitsCommand,
3364
3445
  ListWorkgroupsCommand,
3365
3446
  PutResourcePolicyCommand,
@@ -3386,6 +3467,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3386
3467
  paginateListSnapshotCopyConfigurations,
3387
3468
  paginateListSnapshots,
3388
3469
  paginateListTableRestoreStatus,
3470
+ paginateListTracks,
3389
3471
  paginateListUsageLimits,
3390
3472
  paginateListWorkgroups,
3391
3473
  AccessDeniedException,
@@ -26,6 +26,7 @@ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
26
26
  import { GetScheduledActionCommand, } from "./commands/GetScheduledActionCommand";
27
27
  import { GetSnapshotCommand } from "./commands/GetSnapshotCommand";
28
28
  import { GetTableRestoreStatusCommand, } from "./commands/GetTableRestoreStatusCommand";
29
+ import { GetTrackCommand } from "./commands/GetTrackCommand";
29
30
  import { GetUsageLimitCommand, } from "./commands/GetUsageLimitCommand";
30
31
  import { GetWorkgroupCommand, } from "./commands/GetWorkgroupCommand";
31
32
  import { ListCustomDomainAssociationsCommand, } from "./commands/ListCustomDomainAssociationsCommand";
@@ -38,6 +39,7 @@ import { ListSnapshotCopyConfigurationsCommand, } from "./commands/ListSnapshotC
38
39
  import { ListSnapshotsCommand, } from "./commands/ListSnapshotsCommand";
39
40
  import { ListTableRestoreStatusCommand, } from "./commands/ListTableRestoreStatusCommand";
40
41
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
42
+ import { ListTracksCommand } from "./commands/ListTracksCommand";
41
43
  import { ListUsageLimitsCommand, } from "./commands/ListUsageLimitsCommand";
42
44
  import { ListWorkgroupsCommand, } from "./commands/ListWorkgroupsCommand";
43
45
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
@@ -84,6 +86,7 @@ const commands = {
84
86
  GetScheduledActionCommand,
85
87
  GetSnapshotCommand,
86
88
  GetTableRestoreStatusCommand,
89
+ GetTrackCommand,
87
90
  GetUsageLimitCommand,
88
91
  GetWorkgroupCommand,
89
92
  ListCustomDomainAssociationsCommand,
@@ -96,6 +99,7 @@ const commands = {
96
99
  ListSnapshotsCommand,
97
100
  ListTableRestoreStatusCommand,
98
101
  ListTagsForResourceCommand,
102
+ ListTracksCommand,
99
103
  ListUsageLimitsCommand,
100
104
  ListWorkgroupsCommand,
101
105
  PutResourcePolicyCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetTrackCommand, se_GetTrackCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetTrackCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("RedshiftServerless", "GetTrack", {})
17
+ .n("RedshiftServerlessClient", "GetTrackCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetTrackCommand)
20
+ .de(de_GetTrackCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTracksCommand, se_ListTracksCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListTracksCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("RedshiftServerless", "ListTracks", {})
17
+ .n("RedshiftServerlessClient", "ListTracksCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTracksCommand)
20
+ .de(de_ListTracksCommand)
21
+ .build() {
22
+ }
@@ -25,6 +25,7 @@ export * from "./GetResourcePolicyCommand";
25
25
  export * from "./GetScheduledActionCommand";
26
26
  export * from "./GetSnapshotCommand";
27
27
  export * from "./GetTableRestoreStatusCommand";
28
+ export * from "./GetTrackCommand";
28
29
  export * from "./GetUsageLimitCommand";
29
30
  export * from "./GetWorkgroupCommand";
30
31
  export * from "./ListCustomDomainAssociationsCommand";
@@ -37,6 +38,7 @@ export * from "./ListSnapshotCopyConfigurationsCommand";
37
38
  export * from "./ListSnapshotsCommand";
38
39
  export * from "./ListTableRestoreStatusCommand";
39
40
  export * from "./ListTagsForResourceCommand";
41
+ export * from "./ListTracksCommand";
40
42
  export * from "./ListUsageLimitsCommand";
41
43
  export * from "./ListWorkgroupsCommand";
42
44
  export * from "./PutResourcePolicyCommand";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListTracksCommand } from "../commands/ListTracksCommand";
3
+ import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
4
+ export const paginateListTracks = createPaginator(RedshiftServerlessClient, ListTracksCommand, "nextToken", "nextToken", "maxResults");
@@ -8,5 +8,6 @@ export * from "./ListScheduledActionsPaginator";
8
8
  export * from "./ListSnapshotCopyConfigurationsPaginator";
9
9
  export * from "./ListSnapshotsPaginator";
10
10
  export * from "./ListTableRestoreStatusPaginator";
11
+ export * from "./ListTracksPaginator";
11
12
  export * from "./ListUsageLimitsPaginator";
12
13
  export * from "./ListWorkgroupsPaginator";
@@ -165,6 +165,12 @@ export const se_GetTableRestoreStatusCommand = async (input, context) => {
165
165
  body = JSON.stringify(_json(input));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
+ export const se_GetTrackCommand = async (input, context) => {
169
+ const headers = sharedHeaders("GetTrack");
170
+ let body;
171
+ body = JSON.stringify(_json(input));
172
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
+ };
168
174
  export const se_GetUsageLimitCommand = async (input, context) => {
169
175
  const headers = sharedHeaders("GetUsageLimit");
170
176
  let body;
@@ -237,6 +243,12 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
237
243
  body = JSON.stringify(_json(input));
238
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
245
  };
246
+ export const se_ListTracksCommand = async (input, context) => {
247
+ const headers = sharedHeaders("ListTracks");
248
+ let body;
249
+ body = JSON.stringify(_json(input));
250
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
+ };
240
252
  export const se_ListUsageLimitsCommand = async (input, context) => {
241
253
  const headers = sharedHeaders("ListUsageLimits");
242
254
  let body;
@@ -690,6 +702,19 @@ export const de_GetTableRestoreStatusCommand = async (output, context) => {
690
702
  };
691
703
  return response;
692
704
  };
705
+ export const de_GetTrackCommand = async (output, context) => {
706
+ if (output.statusCode >= 300) {
707
+ return de_CommandError(output, context);
708
+ }
709
+ const data = await parseBody(output.body, context);
710
+ let contents = {};
711
+ contents = _json(data);
712
+ const response = {
713
+ $metadata: deserializeMetadata(output),
714
+ ...contents,
715
+ };
716
+ return response;
717
+ };
693
718
  export const de_GetUsageLimitCommand = async (output, context) => {
694
719
  if (output.statusCode >= 300) {
695
720
  return de_CommandError(output, context);
@@ -846,6 +871,19 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
846
871
  };
847
872
  return response;
848
873
  };
874
+ export const de_ListTracksCommand = async (output, context) => {
875
+ if (output.statusCode >= 300) {
876
+ return de_CommandError(output, context);
877
+ }
878
+ const data = await parseBody(output.body, context);
879
+ let contents = {};
880
+ contents = _json(data);
881
+ const response = {
882
+ $metadata: deserializeMetadata(output),
883
+ ...contents,
884
+ };
885
+ return response;
886
+ };
849
887
  export const de_ListUsageLimitsCommand = async (output, context) => {
850
888
  if (output.statusCode >= 300) {
851
889
  return de_CommandError(output, context);
@@ -1253,7 +1291,7 @@ const se_Schedule = (input, context) => {
1253
1291
  return Schedule.visit(input, {
1254
1292
  at: (value) => ({ at: value.getTime() / 1000 }),
1255
1293
  cron: (value) => ({ cron: value }),
1256
- _: (name, value) => ({ name: value }),
1294
+ _: (name, value) => ({ [name]: value }),
1257
1295
  });
1258
1296
  };
1259
1297
  const se_UpdateScheduledActionRequest = (input, context) => {
@@ -1695,12 +1733,14 @@ const de_Workgroup = (output, context) => {
1695
1733
  maxCapacity: __expectInt32,
1696
1734
  namespaceName: __expectString,
1697
1735
  patchVersion: __expectString,
1736
+ pendingTrackName: __expectString,
1698
1737
  port: __expectInt32,
1699
1738
  pricePerformanceTarget: _json,
1700
1739
  publiclyAccessible: __expectBoolean,
1701
1740
  securityGroupIds: _json,
1702
1741
  status: __expectString,
1703
1742
  subnetIds: _json,
1743
+ trackName: __expectString,
1704
1744
  workgroupArn: __expectString,
1705
1745
  workgroupId: __expectString,
1706
1746
  workgroupName: __expectString,
@@ -26,6 +26,7 @@ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from ".
26
26
  import { GetScheduledActionCommandInput, GetScheduledActionCommandOutput } from "./commands/GetScheduledActionCommand";
27
27
  import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
28
28
  import { GetTableRestoreStatusCommandInput, GetTableRestoreStatusCommandOutput } from "./commands/GetTableRestoreStatusCommand";
29
+ import { GetTrackCommandInput, GetTrackCommandOutput } from "./commands/GetTrackCommand";
29
30
  import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
30
31
  import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
31
32
  import { ListCustomDomainAssociationsCommandInput, ListCustomDomainAssociationsCommandOutput } from "./commands/ListCustomDomainAssociationsCommand";
@@ -38,6 +39,7 @@ import { ListSnapshotCopyConfigurationsCommandInput, ListSnapshotCopyConfigurati
38
39
  import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
39
40
  import { ListTableRestoreStatusCommandInput, ListTableRestoreStatusCommandOutput } from "./commands/ListTableRestoreStatusCommand";
40
41
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
42
+ import { ListTracksCommandInput, ListTracksCommandOutput } from "./commands/ListTracksCommand";
41
43
  import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
42
44
  import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
43
45
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -221,6 +223,12 @@ export interface RedshiftServerless {
221
223
  getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetTableRestoreStatusCommandOutput>;
222
224
  getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, cb: (err: any, data?: GetTableRestoreStatusCommandOutput) => void): void;
223
225
  getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableRestoreStatusCommandOutput) => void): void;
226
+ /**
227
+ * @see {@link GetTrackCommand}
228
+ */
229
+ getTrack(args: GetTrackCommandInput, options?: __HttpHandlerOptions): Promise<GetTrackCommandOutput>;
230
+ getTrack(args: GetTrackCommandInput, cb: (err: any, data?: GetTrackCommandOutput) => void): void;
231
+ getTrack(args: GetTrackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrackCommandOutput) => void): void;
224
232
  /**
225
233
  * @see {@link GetUsageLimitCommand}
226
234
  */
@@ -302,6 +310,13 @@ export interface RedshiftServerless {
302
310
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
303
311
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
304
312
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
313
+ /**
314
+ * @see {@link ListTracksCommand}
315
+ */
316
+ listTracks(): Promise<ListTracksCommandOutput>;
317
+ listTracks(args: ListTracksCommandInput, options?: __HttpHandlerOptions): Promise<ListTracksCommandOutput>;
318
+ listTracks(args: ListTracksCommandInput, cb: (err: any, data?: ListTracksCommandOutput) => void): void;
319
+ listTracks(args: ListTracksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTracksCommandOutput) => void): void;
305
320
  /**
306
321
  * @see {@link ListUsageLimitsCommand}
307
322
  */
@@ -34,6 +34,7 @@ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from ".
34
34
  import { GetScheduledActionCommandInput, GetScheduledActionCommandOutput } from "./commands/GetScheduledActionCommand";
35
35
  import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
36
36
  import { GetTableRestoreStatusCommandInput, GetTableRestoreStatusCommandOutput } from "./commands/GetTableRestoreStatusCommand";
37
+ import { GetTrackCommandInput, GetTrackCommandOutput } from "./commands/GetTrackCommand";
37
38
  import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
38
39
  import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
39
40
  import { ListCustomDomainAssociationsCommandInput, ListCustomDomainAssociationsCommandOutput } from "./commands/ListCustomDomainAssociationsCommand";
@@ -46,6 +47,7 @@ import { ListSnapshotCopyConfigurationsCommandInput, ListSnapshotCopyConfigurati
46
47
  import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
47
48
  import { ListTableRestoreStatusCommandInput, ListTableRestoreStatusCommandOutput } from "./commands/ListTableRestoreStatusCommand";
48
49
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
50
+ import { ListTracksCommandInput, ListTracksCommandOutput } from "./commands/ListTracksCommand";
49
51
  import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
50
52
  import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
51
53
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -69,11 +71,11 @@ export { __Client };
69
71
  /**
70
72
  * @public
71
73
  */
72
- export type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateCustomDomainAssociationCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateScheduledActionCommandInput | CreateSnapshotCommandInput | CreateSnapshotCopyConfigurationCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteCustomDomainAssociationCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteSnapshotCommandInput | DeleteSnapshotCopyConfigurationCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetCustomDomainAssociationCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetResourcePolicyCommandInput | GetScheduledActionCommandInput | GetSnapshotCommandInput | GetTableRestoreStatusCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListCustomDomainAssociationsCommandInput | ListEndpointAccessCommandInput | ListManagedWorkgroupsCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListScheduledActionsCommandInput | ListSnapshotCopyConfigurationsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromRecoveryPointCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCustomDomainAssociationCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateScheduledActionCommandInput | UpdateSnapshotCommandInput | UpdateSnapshotCopyConfigurationCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
74
+ export type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateCustomDomainAssociationCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateScheduledActionCommandInput | CreateSnapshotCommandInput | CreateSnapshotCopyConfigurationCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteCustomDomainAssociationCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteSnapshotCommandInput | DeleteSnapshotCopyConfigurationCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetCustomDomainAssociationCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetResourcePolicyCommandInput | GetScheduledActionCommandInput | GetSnapshotCommandInput | GetTableRestoreStatusCommandInput | GetTrackCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListCustomDomainAssociationsCommandInput | ListEndpointAccessCommandInput | ListManagedWorkgroupsCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListScheduledActionsCommandInput | ListSnapshotCopyConfigurationsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListTracksCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromRecoveryPointCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCustomDomainAssociationCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateScheduledActionCommandInput | UpdateSnapshotCommandInput | UpdateSnapshotCopyConfigurationCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
73
75
  /**
74
76
  * @public
75
77
  */
76
- export type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateCustomDomainAssociationCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateScheduledActionCommandOutput | CreateSnapshotCommandOutput | CreateSnapshotCopyConfigurationCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteCustomDomainAssociationCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteSnapshotCommandOutput | DeleteSnapshotCopyConfigurationCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetCustomDomainAssociationCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetResourcePolicyCommandOutput | GetScheduledActionCommandOutput | GetSnapshotCommandOutput | GetTableRestoreStatusCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListCustomDomainAssociationsCommandOutput | ListEndpointAccessCommandOutput | ListManagedWorkgroupsCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListScheduledActionsCommandOutput | ListSnapshotCopyConfigurationsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromRecoveryPointCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCustomDomainAssociationCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateScheduledActionCommandOutput | UpdateSnapshotCommandOutput | UpdateSnapshotCopyConfigurationCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
78
+ export type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateCustomDomainAssociationCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateScheduledActionCommandOutput | CreateSnapshotCommandOutput | CreateSnapshotCopyConfigurationCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteCustomDomainAssociationCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteSnapshotCommandOutput | DeleteSnapshotCopyConfigurationCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetCustomDomainAssociationCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetResourcePolicyCommandOutput | GetScheduledActionCommandOutput | GetSnapshotCommandOutput | GetTableRestoreStatusCommandOutput | GetTrackCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListCustomDomainAssociationsCommandOutput | ListEndpointAccessCommandOutput | ListManagedWorkgroupsCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListScheduledActionsCommandOutput | ListSnapshotCopyConfigurationsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListTracksCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromRecoveryPointCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCustomDomainAssociationCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateScheduledActionCommandOutput | UpdateSnapshotCommandOutput | UpdateSnapshotCopyConfigurationCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
77
79
  /**
78
80
  * @public
79
81
  */
@@ -82,6 +82,7 @@ declare const CreateWorkgroupCommand_base: {
82
82
  * level: Number("int"),
83
83
  * },
84
84
  * ipAddressType: "STRING_VALUE",
85
+ * trackName: "STRING_VALUE",
85
86
  * };
86
87
  * const command = new CreateWorkgroupCommand(input);
87
88
  * const response = await client.send(command);
@@ -142,6 +143,8 @@ declare const CreateWorkgroupCommand_base: {
142
143
  * // status: "STRING_VALUE",
143
144
  * // level: Number("int"),
144
145
  * // },
146
+ * // trackName: "STRING_VALUE",
147
+ * // pendingTrackName: "STRING_VALUE",
145
148
  * // },
146
149
  * // };
147
150
  *
@@ -96,6 +96,8 @@ declare const DeleteWorkgroupCommand_base: {
96
96
  * // status: "STRING_VALUE",
97
97
  * // level: Number("int"),
98
98
  * // },
99
+ * // trackName: "STRING_VALUE",
100
+ * // pendingTrackName: "STRING_VALUE",
99
101
  * // },
100
102
  * // };
101
103
  *