@aws-sdk/client-redshift-serverless 3.751.0 → 3.772.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 +158 -79
  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 +40 -0
  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 +13 -13
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>