@aws-sdk/client-redshift-serverless 3.699.0 → 3.705.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 (30) hide show
  1. package/README.md +9 -4
  2. package/dist-cjs/index.js +72 -0
  3. package/dist-es/RedshiftServerless.js +2 -0
  4. package/dist-es/commands/ListManagedWorkgroupsCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +7 -0
  7. package/dist-es/pagination/ListManagedWorkgroupsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_json1_1.js +42 -0
  10. package/dist-types/RedshiftServerless.d.ts +10 -5
  11. package/dist-types/RedshiftServerlessClient.d.ts +5 -7
  12. package/dist-types/commands/CreateWorkgroupCommand.d.ts +17 -0
  13. package/dist-types/commands/GetCredentialsCommand.d.ts +0 -2
  14. package/dist-types/commands/ListManagedWorkgroupsCommand.d.ts +88 -0
  15. package/dist-types/commands/UpdateWorkgroupCommand.d.ts +18 -0
  16. package/dist-types/commands/index.d.ts +1 -0
  17. package/dist-types/index.d.ts +2 -5
  18. package/dist-types/models/models_0.d.ts +88 -0
  19. package/dist-types/pagination/ListManagedWorkgroupsPaginator.d.ts +7 -0
  20. package/dist-types/pagination/index.d.ts +1 -0
  21. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  22. package/dist-types/ts3.4/RedshiftServerless.d.ts +18 -0
  23. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +6 -0
  24. package/dist-types/ts3.4/commands/ListManagedWorkgroupsCommand.d.ts +51 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +25 -0
  27. package/dist-types/ts3.4/pagination/ListManagedWorkgroupsPaginator.d.ts +11 -0
  28. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  29. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  30. package/package.json +1 -1
package/README.md CHANGED
@@ -14,10 +14,7 @@ underlying resources based on workload demands. Amazon Redshift Serverless adjus
14
14
  performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
15
15
  focus on using your data to acquire new insights for your business and customers.
16
16
  </p>
17
- <p>
18
- To learn more about Amazon Redshift Serverless,
19
- see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
20
- </p>
17
+ <p> To learn more about Amazon Redshift Serverless, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless?</a>.</p>
21
18
 
22
19
  ## Installing
23
20
 
@@ -461,6 +458,14 @@ ListEndpointAccess
461
458
 
462
459
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListEndpointAccessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListEndpointAccessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListEndpointAccessCommandOutput/)
463
460
 
461
+ </details>
462
+ <details>
463
+ <summary>
464
+ ListManagedWorkgroups
465
+ </summary>
466
+
467
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift-serverless/command/ListManagedWorkgroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListManagedWorkgroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift-serverless/Interface/ListManagedWorkgroupsCommandOutput/)
468
+
464
469
  </details>
465
470
  <details>
466
471
  <summary>
package/dist-cjs/index.js CHANGED
@@ -63,6 +63,7 @@ __export(src_exports, {
63
63
  Ipv6CidrBlockNotFoundException: () => Ipv6CidrBlockNotFoundException,
64
64
  ListCustomDomainAssociationsCommand: () => ListCustomDomainAssociationsCommand,
65
65
  ListEndpointAccessCommand: () => ListEndpointAccessCommand,
66
+ ListManagedWorkgroupsCommand: () => ListManagedWorkgroupsCommand,
66
67
  ListNamespacesCommand: () => ListNamespacesCommand,
67
68
  ListNamespacesResponseFilterSensitiveLog: () => ListNamespacesResponseFilterSensitiveLog,
68
69
  ListRecoveryPointsCommand: () => ListRecoveryPointsCommand,
@@ -74,6 +75,7 @@ __export(src_exports, {
74
75
  ListUsageLimitsCommand: () => ListUsageLimitsCommand,
75
76
  ListWorkgroupsCommand: () => ListWorkgroupsCommand,
76
77
  LogExport: () => LogExport,
78
+ ManagedWorkgroupStatus: () => ManagedWorkgroupStatus,
77
79
  NamespaceFilterSensitiveLog: () => NamespaceFilterSensitiveLog,
78
80
  NamespaceStatus: () => NamespaceStatus,
79
81
  PerformanceTargetStatus: () => PerformanceTargetStatus,
@@ -115,6 +117,7 @@ __export(src_exports, {
115
117
  __Client: () => import_smithy_client.Client,
116
118
  paginateListCustomDomainAssociations: () => paginateListCustomDomainAssociations,
117
119
  paginateListEndpointAccess: () => paginateListEndpointAccess,
120
+ paginateListManagedWorkgroups: () => paginateListManagedWorkgroups,
118
121
  paginateListNamespaces: () => paginateListNamespaces,
119
122
  paginateListRecoveryPoints: () => paginateListRecoveryPoints,
120
123
  paginateListScheduledActions: () => paginateListScheduledActions,
@@ -552,6 +555,13 @@ var _InvalidPaginationException = class _InvalidPaginationException extends Reds
552
555
  };
553
556
  __name(_InvalidPaginationException, "InvalidPaginationException");
554
557
  var InvalidPaginationException = _InvalidPaginationException;
558
+ var ManagedWorkgroupStatus = {
559
+ AVAILABLE: "AVAILABLE",
560
+ CREATING: "CREATING",
561
+ DELETING: "DELETING",
562
+ MODIFYING: "MODIFYING",
563
+ NOT_AVAILABLE: "NOT_AVAILABLE"
564
+ };
555
565
  var CreateNamespaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
556
566
  ...obj,
557
567
  ...obj.adminUsername && { adminUsername: import_smithy_client.SENSITIVE_STRING },
@@ -787,6 +797,12 @@ var se_ListEndpointAccessCommand = /* @__PURE__ */ __name(async (input, context)
787
797
  body = JSON.stringify((0, import_smithy_client._json)(input));
788
798
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
789
799
  }, "se_ListEndpointAccessCommand");
800
+ var se_ListManagedWorkgroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
801
+ const headers = sharedHeaders("ListManagedWorkgroups");
802
+ let body;
803
+ body = JSON.stringify((0, import_smithy_client._json)(input));
804
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
805
+ }, "se_ListManagedWorkgroupsCommand");
790
806
  var se_ListNamespacesCommand = /* @__PURE__ */ __name(async (input, context) => {
791
807
  const headers = sharedHeaders("ListNamespaces");
792
808
  let body;
@@ -1334,6 +1350,19 @@ var de_ListEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context
1334
1350
  };
1335
1351
  return response;
1336
1352
  }, "de_ListEndpointAccessCommand");
1353
+ var de_ListManagedWorkgroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1354
+ if (output.statusCode >= 300) {
1355
+ return de_CommandError(output, context);
1356
+ }
1357
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1358
+ let contents = {};
1359
+ contents = de_ListManagedWorkgroupsResponse(data, context);
1360
+ const response = {
1361
+ $metadata: deserializeMetadata(output),
1362
+ ...contents
1363
+ };
1364
+ return response;
1365
+ }, "de_ListManagedWorkgroupsCommand");
1337
1366
  var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) => {
1338
1367
  if (output.statusCode >= 300) {
1339
1368
  return de_CommandError(output, context);
@@ -2007,6 +2036,12 @@ var de_ListEndpointAccessResponse = /* @__PURE__ */ __name((output, context) =>
2007
2036
  nextToken: import_smithy_client.expectString
2008
2037
  });
2009
2038
  }, "de_ListEndpointAccessResponse");
2039
+ var de_ListManagedWorkgroupsResponse = /* @__PURE__ */ __name((output, context) => {
2040
+ return (0, import_smithy_client.take)(output, {
2041
+ managedWorkgroups: (_) => de_ManagedWorkgroups(_, context),
2042
+ nextToken: import_smithy_client.expectString
2043
+ });
2044
+ }, "de_ListManagedWorkgroupsResponse");
2010
2045
  var de_ListNamespacesResponse = /* @__PURE__ */ __name((output, context) => {
2011
2046
  return (0, import_smithy_client.take)(output, {
2012
2047
  namespaces: (_) => de_NamespaceList(_, context),
@@ -2037,6 +2072,21 @@ var de_ListWorkgroupsResponse = /* @__PURE__ */ __name((output, context) => {
2037
2072
  workgroups: (_) => de_WorkgroupList(_, context)
2038
2073
  });
2039
2074
  }, "de_ListWorkgroupsResponse");
2075
+ var de_ManagedWorkgroupListItem = /* @__PURE__ */ __name((output, context) => {
2076
+ return (0, import_smithy_client.take)(output, {
2077
+ creationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2078
+ managedWorkgroupId: import_smithy_client.expectString,
2079
+ managedWorkgroupName: import_smithy_client.expectString,
2080
+ sourceArn: import_smithy_client.expectString,
2081
+ status: import_smithy_client.expectString
2082
+ });
2083
+ }, "de_ManagedWorkgroupListItem");
2084
+ var de_ManagedWorkgroups = /* @__PURE__ */ __name((output, context) => {
2085
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2086
+ return de_ManagedWorkgroupListItem(entry, context);
2087
+ });
2088
+ return retVal;
2089
+ }, "de_ManagedWorkgroups");
2040
2090
  var de_Namespace = /* @__PURE__ */ __name((output, context) => {
2041
2091
  return (0, import_smithy_client.take)(output, {
2042
2092
  adminPasswordSecretArn: import_smithy_client.expectString,
@@ -2719,6 +2769,20 @@ var _ListEndpointAccessCommand = class _ListEndpointAccessCommand extends import
2719
2769
  __name(_ListEndpointAccessCommand, "ListEndpointAccessCommand");
2720
2770
  var ListEndpointAccessCommand = _ListEndpointAccessCommand;
2721
2771
 
2772
+ // src/commands/ListManagedWorkgroupsCommand.ts
2773
+
2774
+
2775
+
2776
+ var _ListManagedWorkgroupsCommand = class _ListManagedWorkgroupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2777
+ return [
2778
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2779
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2780
+ ];
2781
+ }).s("RedshiftServerless", "ListManagedWorkgroups", {}).n("RedshiftServerlessClient", "ListManagedWorkgroupsCommand").f(void 0, void 0).ser(se_ListManagedWorkgroupsCommand).de(de_ListManagedWorkgroupsCommand).build() {
2782
+ };
2783
+ __name(_ListManagedWorkgroupsCommand, "ListManagedWorkgroupsCommand");
2784
+ var ListManagedWorkgroupsCommand = _ListManagedWorkgroupsCommand;
2785
+
2722
2786
  // src/commands/ListNamespacesCommand.ts
2723
2787
 
2724
2788
 
@@ -3088,6 +3152,7 @@ var commands = {
3088
3152
  GetWorkgroupCommand,
3089
3153
  ListCustomDomainAssociationsCommand,
3090
3154
  ListEndpointAccessCommand,
3155
+ ListManagedWorkgroupsCommand,
3091
3156
  ListNamespacesCommand,
3092
3157
  ListRecoveryPointsCommand,
3093
3158
  ListScheduledActionsCommand,
@@ -3127,6 +3192,10 @@ var paginateListCustomDomainAssociations = (0, import_core.createPaginator)(Reds
3127
3192
 
3128
3193
  var paginateListEndpointAccess = (0, import_core.createPaginator)(RedshiftServerlessClient, ListEndpointAccessCommand, "nextToken", "nextToken", "maxResults");
3129
3194
 
3195
+ // src/pagination/ListManagedWorkgroupsPaginator.ts
3196
+
3197
+ var paginateListManagedWorkgroups = (0, import_core.createPaginator)(RedshiftServerlessClient, ListManagedWorkgroupsCommand, "nextToken", "nextToken", "maxResults");
3198
+
3130
3199
  // src/pagination/ListNamespacesPaginator.ts
3131
3200
 
3132
3201
  var paginateListNamespaces = (0, import_core.createPaginator)(RedshiftServerlessClient, ListNamespacesCommand, "nextToken", "nextToken", "maxResults");
@@ -3197,6 +3266,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3197
3266
  GetWorkgroupCommand,
3198
3267
  ListCustomDomainAssociationsCommand,
3199
3268
  ListEndpointAccessCommand,
3269
+ ListManagedWorkgroupsCommand,
3200
3270
  ListNamespacesCommand,
3201
3271
  ListRecoveryPointsCommand,
3202
3272
  ListScheduledActionsCommand,
@@ -3223,6 +3293,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3223
3293
  UpdateWorkgroupCommand,
3224
3294
  paginateListCustomDomainAssociations,
3225
3295
  paginateListEndpointAccess,
3296
+ paginateListManagedWorkgroups,
3226
3297
  paginateListNamespaces,
3227
3298
  paginateListRecoveryPoints,
3228
3299
  paginateListScheduledActions,
@@ -3253,6 +3324,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3253
3324
  InsufficientCapacityException,
3254
3325
  Ipv6CidrBlockNotFoundException,
3255
3326
  InvalidPaginationException,
3327
+ ManagedWorkgroupStatus,
3256
3328
  CreateNamespaceRequestFilterSensitiveLog,
3257
3329
  NamespaceFilterSensitiveLog,
3258
3330
  CreateNamespaceResponseFilterSensitiveLog,
@@ -30,6 +30,7 @@ import { GetUsageLimitCommand, } from "./commands/GetUsageLimitCommand";
30
30
  import { GetWorkgroupCommand, } from "./commands/GetWorkgroupCommand";
31
31
  import { ListCustomDomainAssociationsCommand, } from "./commands/ListCustomDomainAssociationsCommand";
32
32
  import { ListEndpointAccessCommand, } from "./commands/ListEndpointAccessCommand";
33
+ import { ListManagedWorkgroupsCommand, } from "./commands/ListManagedWorkgroupsCommand";
33
34
  import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
34
35
  import { ListRecoveryPointsCommand, } from "./commands/ListRecoveryPointsCommand";
35
36
  import { ListScheduledActionsCommand, } from "./commands/ListScheduledActionsCommand";
@@ -87,6 +88,7 @@ const commands = {
87
88
  GetWorkgroupCommand,
88
89
  ListCustomDomainAssociationsCommand,
89
90
  ListEndpointAccessCommand,
91
+ ListManagedWorkgroupsCommand,
90
92
  ListNamespacesCommand,
91
93
  ListRecoveryPointsCommand,
92
94
  ListScheduledActionsCommand,
@@ -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_ListManagedWorkgroupsCommand, se_ListManagedWorkgroupsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListManagedWorkgroupsCommand 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", "ListManagedWorkgroups", {})
17
+ .n("RedshiftServerlessClient", "ListManagedWorkgroupsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListManagedWorkgroupsCommand)
20
+ .de(de_ListManagedWorkgroupsCommand)
21
+ .build() {
22
+ }
@@ -29,6 +29,7 @@ export * from "./GetUsageLimitCommand";
29
29
  export * from "./GetWorkgroupCommand";
30
30
  export * from "./ListCustomDomainAssociationsCommand";
31
31
  export * from "./ListEndpointAccessCommand";
32
+ export * from "./ListManagedWorkgroupsCommand";
32
33
  export * from "./ListNamespacesCommand";
33
34
  export * from "./ListRecoveryPointsCommand";
34
35
  export * from "./ListScheduledActionsCommand";
@@ -203,6 +203,13 @@ export class InvalidPaginationException extends __BaseException {
203
203
  Object.setPrototypeOf(this, InvalidPaginationException.prototype);
204
204
  }
205
205
  }
206
+ export const ManagedWorkgroupStatus = {
207
+ AVAILABLE: "AVAILABLE",
208
+ CREATING: "CREATING",
209
+ DELETING: "DELETING",
210
+ MODIFYING: "MODIFYING",
211
+ NOT_AVAILABLE: "NOT_AVAILABLE",
212
+ };
206
213
  export const CreateNamespaceRequestFilterSensitiveLog = (obj) => ({
207
214
  ...obj,
208
215
  ...(obj.adminUsername && { adminUsername: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListManagedWorkgroupsCommand, } from "../commands/ListManagedWorkgroupsCommand";
3
+ import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
4
+ export const paginateListManagedWorkgroups = createPaginator(RedshiftServerlessClient, ListManagedWorkgroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomDomainAssociationsPaginator";
3
3
  export * from "./ListEndpointAccessPaginator";
4
+ export * from "./ListManagedWorkgroupsPaginator";
4
5
  export * from "./ListNamespacesPaginator";
5
6
  export * from "./ListRecoveryPointsPaginator";
6
7
  export * from "./ListScheduledActionsPaginator";
@@ -189,6 +189,12 @@ export const se_ListEndpointAccessCommand = async (input, context) => {
189
189
  body = JSON.stringify(_json(input));
190
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
191
  };
192
+ export const se_ListManagedWorkgroupsCommand = async (input, context) => {
193
+ const headers = sharedHeaders("ListManagedWorkgroups");
194
+ let body;
195
+ body = JSON.stringify(_json(input));
196
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
+ };
192
198
  export const se_ListNamespacesCommand = async (input, context) => {
193
199
  const headers = sharedHeaders("ListNamespaces");
194
200
  let body;
@@ -736,6 +742,19 @@ export const de_ListEndpointAccessCommand = async (output, context) => {
736
742
  };
737
743
  return response;
738
744
  };
745
+ export const de_ListManagedWorkgroupsCommand = async (output, context) => {
746
+ if (output.statusCode >= 300) {
747
+ return de_CommandError(output, context);
748
+ }
749
+ const data = await parseBody(output.body, context);
750
+ let contents = {};
751
+ contents = de_ListManagedWorkgroupsResponse(data, context);
752
+ const response = {
753
+ $metadata: deserializeMetadata(output),
754
+ ...contents,
755
+ };
756
+ return response;
757
+ };
739
758
  export const de_ListNamespacesCommand = async (output, context) => {
740
759
  if (output.statusCode >= 300) {
741
760
  return de_CommandError(output, context);
@@ -1413,6 +1432,12 @@ const de_ListEndpointAccessResponse = (output, context) => {
1413
1432
  nextToken: __expectString,
1414
1433
  });
1415
1434
  };
1435
+ const de_ListManagedWorkgroupsResponse = (output, context) => {
1436
+ return take(output, {
1437
+ managedWorkgroups: (_) => de_ManagedWorkgroups(_, context),
1438
+ nextToken: __expectString,
1439
+ });
1440
+ };
1416
1441
  const de_ListNamespacesResponse = (output, context) => {
1417
1442
  return take(output, {
1418
1443
  namespaces: (_) => de_NamespaceList(_, context),
@@ -1443,6 +1468,23 @@ const de_ListWorkgroupsResponse = (output, context) => {
1443
1468
  workgroups: (_) => de_WorkgroupList(_, context),
1444
1469
  });
1445
1470
  };
1471
+ const de_ManagedWorkgroupListItem = (output, context) => {
1472
+ return take(output, {
1473
+ creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1474
+ managedWorkgroupId: __expectString,
1475
+ managedWorkgroupName: __expectString,
1476
+ sourceArn: __expectString,
1477
+ status: __expectString,
1478
+ });
1479
+ };
1480
+ const de_ManagedWorkgroups = (output, context) => {
1481
+ const retVal = (output || [])
1482
+ .filter((e) => e != null)
1483
+ .map((entry) => {
1484
+ return de_ManagedWorkgroupListItem(entry, context);
1485
+ });
1486
+ return retVal;
1487
+ };
1446
1488
  const de_Namespace = (output, context) => {
1447
1489
  return take(output, {
1448
1490
  adminPasswordSecretArn: __expectString,
@@ -30,6 +30,7 @@ import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./command
30
30
  import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
31
31
  import { ListCustomDomainAssociationsCommandInput, ListCustomDomainAssociationsCommandOutput } from "./commands/ListCustomDomainAssociationsCommand";
32
32
  import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
33
+ import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "./commands/ListManagedWorkgroupsCommand";
33
34
  import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
34
35
  import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
35
36
  import { ListScheduledActionsCommandInput, ListScheduledActionsCommandOutput } from "./commands/ListScheduledActionsCommand";
@@ -246,6 +247,13 @@ export interface RedshiftServerless {
246
247
  listEndpointAccess(args: ListEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<ListEndpointAccessCommandOutput>;
247
248
  listEndpointAccess(args: ListEndpointAccessCommandInput, cb: (err: any, data?: ListEndpointAccessCommandOutput) => void): void;
248
249
  listEndpointAccess(args: ListEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEndpointAccessCommandOutput) => void): void;
250
+ /**
251
+ * @see {@link ListManagedWorkgroupsCommand}
252
+ */
253
+ listManagedWorkgroups(): Promise<ListManagedWorkgroupsCommandOutput>;
254
+ listManagedWorkgroups(args: ListManagedWorkgroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedWorkgroupsCommandOutput>;
255
+ listManagedWorkgroups(args: ListManagedWorkgroupsCommandInput, cb: (err: any, data?: ListManagedWorkgroupsCommandOutput) => void): void;
256
+ listManagedWorkgroups(args: ListManagedWorkgroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedWorkgroupsCommandOutput) => void): void;
249
257
  /**
250
258
  * @see {@link ListNamespacesCommand}
251
259
  */
@@ -403,15 +411,12 @@ export interface RedshiftServerless {
403
411
  * <p>This is an interface reference for Amazon Redshift Serverless.
404
412
  * It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.
405
413
  * </p>
406
- * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
414
+ * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
407
415
  * underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high
408
416
  * performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
409
417
  * focus on using your data to acquire new insights for your business and customers.
410
418
  * </p>
411
- * <p>
412
- * To learn more about Amazon Redshift Serverless,
413
- * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
414
- * </p>
419
+ * <p> To learn more about Amazon Redshift Serverless, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless?</a>.</p>
415
420
  * @public
416
421
  */
417
422
  export declare class RedshiftServerless extends RedshiftServerlessClient implements RedshiftServerless {
@@ -38,6 +38,7 @@ import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./command
38
38
  import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
39
39
  import { ListCustomDomainAssociationsCommandInput, ListCustomDomainAssociationsCommandOutput } from "./commands/ListCustomDomainAssociationsCommand";
40
40
  import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
41
+ import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "./commands/ListManagedWorkgroupsCommand";
41
42
  import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
42
43
  import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
43
44
  import { ListScheduledActionsCommandInput, ListScheduledActionsCommandOutput } from "./commands/ListScheduledActionsCommand";
@@ -68,11 +69,11 @@ export { __Client };
68
69
  /**
69
70
  * @public
70
71
  */
71
- 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 | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListScheduledActionsCommandInput | ListSnapshotCopyConfigurationsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromRecoveryPointCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCustomDomainAssociationCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateScheduledActionCommandInput | UpdateSnapshotCommandInput | UpdateSnapshotCopyConfigurationCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
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;
72
73
  /**
73
74
  * @public
74
75
  */
75
- 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 | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListScheduledActionsCommandOutput | ListSnapshotCopyConfigurationsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromRecoveryPointCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCustomDomainAssociationCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateScheduledActionCommandOutput | UpdateSnapshotCommandOutput | UpdateSnapshotCopyConfigurationCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
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;
76
77
  /**
77
78
  * @public
78
79
  */
@@ -209,15 +210,12 @@ export interface RedshiftServerlessClientResolvedConfig extends RedshiftServerle
209
210
  * <p>This is an interface reference for Amazon Redshift Serverless.
210
211
  * It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.
211
212
  * </p>
212
- * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
213
+ * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
213
214
  * underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high
214
215
  * performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
215
216
  * focus on using your data to acquire new insights for your business and customers.
216
217
  * </p>
217
- * <p>
218
- * To learn more about Amazon Redshift Serverless,
219
- * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
220
- * </p>
218
+ * <p> To learn more about Amazon Redshift Serverless, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless?</a>.</p>
221
219
  * @public
222
220
  */
223
221
  export declare class RedshiftServerlessClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RedshiftServerlessClientResolvedConfig> {
@@ -28,6 +28,23 @@ declare const CreateWorkgroupCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Creates an workgroup in Amazon Redshift Serverless.</p>
31
+ * <p>VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that
32
+ * you own in a Region from reaching or being reached from the internet through internet
33
+ * gateways and egress-only internet gateways. If a workgroup is in an account with VPC BPA
34
+ * turned on, the following capabilities are blocked: </p>
35
+ * <ul>
36
+ * <li>
37
+ * <p>Creating a public access workgroup</p>
38
+ * </li>
39
+ * <li>
40
+ * <p>Modifying a private workgroup to public</p>
41
+ * </li>
42
+ * <li>
43
+ * <p>Adding a subnet with VPC BPA turned on to the workgroup when the workgroup is
44
+ * public</p>
45
+ * </li>
46
+ * </ul>
47
+ * <p>For more information about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
31
48
  * @example
32
49
  * Use a bare-bones client and the command you need to make an API call.
33
50
  * ```javascript
@@ -31,11 +31,9 @@ declare const GetCredentialsCommand_base: {
31
31
  * temporary authorization to log in to Amazon Redshift Serverless.</p>
32
32
  * <p>By default, the temporary credentials expire in 900 seconds.
33
33
  * You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).</p>
34
- *
35
34
  * <p>The Identity and Access Management (IAM) user or role that runs
36
35
  * GetCredentials must have an IAM policy attached that allows access to all
37
36
  * necessary actions and resources.</p>
38
- *
39
37
  * <p>If the <code>DbName</code> parameter is specified, the IAM policy must
40
38
  * allow access to the resource dbname for the specified database name.</p>
41
39
  * @example
@@ -0,0 +1,88 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListManagedWorkgroupsRequest, ListManagedWorkgroupsResponse } from "../models/models_0";
4
+ import { RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftServerlessClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListManagedWorkgroupsCommand}.
14
+ */
15
+ export interface ListManagedWorkgroupsCommandInput extends ListManagedWorkgroupsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListManagedWorkgroupsCommand}.
21
+ */
22
+ export interface ListManagedWorkgroupsCommandOutput extends ListManagedWorkgroupsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListManagedWorkgroupsCommand_base: {
25
+ new (input: ListManagedWorkgroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput, RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListManagedWorkgroupsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput, RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns information about a list of specified managed workgroups in your account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { RedshiftServerlessClient, ListManagedWorkgroupsCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
35
+ * // const { RedshiftServerlessClient, ListManagedWorkgroupsCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
36
+ * const client = new RedshiftServerlessClient(config);
37
+ * const input = { // ListManagedWorkgroupsRequest
38
+ * sourceArn: "STRING_VALUE",
39
+ * nextToken: "STRING_VALUE",
40
+ * maxResults: Number("int"),
41
+ * };
42
+ * const command = new ListManagedWorkgroupsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListManagedWorkgroupsResponse
45
+ * // nextToken: "STRING_VALUE",
46
+ * // managedWorkgroups: [ // ManagedWorkgroups
47
+ * // { // ManagedWorkgroupListItem
48
+ * // managedWorkgroupName: "STRING_VALUE",
49
+ * // managedWorkgroupId: "STRING_VALUE",
50
+ * // sourceArn: "STRING_VALUE",
51
+ * // status: "CREATING" || "DELETING" || "MODIFYING" || "AVAILABLE" || "NOT_AVAILABLE",
52
+ * // creationDate: new Date("TIMESTAMP"),
53
+ * // },
54
+ * // ],
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListManagedWorkgroupsCommandInput - {@link ListManagedWorkgroupsCommandInput}
60
+ * @returns {@link ListManagedWorkgroupsCommandOutput}
61
+ * @see {@link ListManagedWorkgroupsCommandInput} for command's `input` shape.
62
+ * @see {@link ListManagedWorkgroupsCommandOutput} for command's `response` shape.
63
+ * @see {@link RedshiftServerlessClientResolvedConfig | config} for RedshiftServerlessClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have sufficient access to perform this action.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
70
+ *
71
+ * @throws {@link RedshiftServerlessServiceException}
72
+ * <p>Base exception class for all service exceptions from RedshiftServerless service.</p>
73
+ *
74
+ * @public
75
+ */
76
+ export declare class ListManagedWorkgroupsCommand extends ListManagedWorkgroupsCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: ListManagedWorkgroupsRequest;
81
+ output: ListManagedWorkgroupsResponse;
82
+ };
83
+ sdk: {
84
+ input: ListManagedWorkgroupsCommandInput;
85
+ output: ListManagedWorkgroupsCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -29,6 +29,24 @@ declare const UpdateWorkgroupCommand_base: {
29
29
  /**
30
30
  * <p>Updates a workgroup with the specified configuration settings. You can't update multiple parameters in one request. For example,
31
31
  * you can update <code>baseCapacity</code> or <code>port</code> in a single request, but you can't update both in the same request.</p>
32
+ * <p>VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that
33
+ * you own in a Region from reaching or being reached from the internet through internet
34
+ * gateways and egress-only internet gateways. If a workgroup is in an account with VPC BPA
35
+ * turned on, the following capabilities are blocked: </p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>Creating a public access workgroup</p>
39
+ * </li>
40
+ * <li>
41
+ * <p>Modifying a private workgroup to public</p>
42
+ * </li>
43
+ * <li>
44
+ * <p>Adding a subnet with VPC BPA turned on to the workgroup when the workgroup is
45
+ * public</p>
46
+ * </li>
47
+ * </ul>
48
+ * <p>For more information about VPC BPA, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html">Block public access to VPCs and
49
+ * subnets</a> in the <i>Amazon VPC User Guide</i>.</p>
32
50
  * @example
33
51
  * Use a bare-bones client and the command you need to make an API call.
34
52
  * ```javascript
@@ -29,6 +29,7 @@ export * from "./GetUsageLimitCommand";
29
29
  export * from "./GetWorkgroupCommand";
30
30
  export * from "./ListCustomDomainAssociationsCommand";
31
31
  export * from "./ListEndpointAccessCommand";
32
+ export * from "./ListManagedWorkgroupsCommand";
32
33
  export * from "./ListNamespacesCommand";
33
34
  export * from "./ListRecoveryPointsCommand";
34
35
  export * from "./ListScheduledActionsCommand";
@@ -2,15 +2,12 @@
2
2
  * <p>This is an interface reference for Amazon Redshift Serverless.
3
3
  * It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.
4
4
  * </p>
5
- * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
5
+ * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
6
6
  * underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high
7
7
  * performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
8
8
  * focus on using your data to acquire new insights for your business and customers.
9
9
  * </p>
10
- * <p>
11
- * To learn more about Amazon Redshift Serverless,
12
- * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
13
- * </p>
10
+ * <p> To learn more about Amazon Redshift Serverless, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless?</a>.</p>
14
11
  *
15
12
  * @packageDocumentation
16
13
  */
@@ -2300,6 +2300,94 @@ export interface ListCustomDomainAssociationsResponse {
2300
2300
  */
2301
2301
  associations?: Association[] | undefined;
2302
2302
  }
2303
+ /**
2304
+ * @public
2305
+ */
2306
+ export interface ListManagedWorkgroupsRequest {
2307
+ /**
2308
+ * <p>The Amazon Resource Name (ARN) for the managed
2309
+ * workgroup in the AWS Glue Data Catalog.</p>
2310
+ * @public
2311
+ */
2312
+ sourceArn?: string | undefined;
2313
+ /**
2314
+ * <p>If your initial ListManagedWorkgroups operation returns a nextToken,
2315
+ * you can include the returned nextToken in following ListManagedWorkgroups
2316
+ * operations, which returns results in the next page.</p>
2317
+ * @public
2318
+ */
2319
+ nextToken?: string | undefined;
2320
+ /**
2321
+ * <p>An optional parameter that specifies the maximum number
2322
+ * of results to return. You can use nextToken to display the next page of results.</p>
2323
+ * @public
2324
+ */
2325
+ maxResults?: number | undefined;
2326
+ }
2327
+ /**
2328
+ * @public
2329
+ * @enum
2330
+ */
2331
+ export declare const ManagedWorkgroupStatus: {
2332
+ readonly AVAILABLE: "AVAILABLE";
2333
+ readonly CREATING: "CREATING";
2334
+ readonly DELETING: "DELETING";
2335
+ readonly MODIFYING: "MODIFYING";
2336
+ readonly NOT_AVAILABLE: "NOT_AVAILABLE";
2337
+ };
2338
+ /**
2339
+ * @public
2340
+ */
2341
+ export type ManagedWorkgroupStatus = (typeof ManagedWorkgroupStatus)[keyof typeof ManagedWorkgroupStatus];
2342
+ /**
2343
+ * <p>A collection of Amazon Redshift compute resources managed by AWS Glue.</p>
2344
+ * @public
2345
+ */
2346
+ export interface ManagedWorkgroupListItem {
2347
+ /**
2348
+ * <p>The name of the managed workgroup.</p>
2349
+ * @public
2350
+ */
2351
+ managedWorkgroupName?: string | undefined;
2352
+ /**
2353
+ * <p>The unique identifier of the managed workgroup.</p>
2354
+ * @public
2355
+ */
2356
+ managedWorkgroupId?: string | undefined;
2357
+ /**
2358
+ * <p>The Amazon Resource Name (ARN) for the managed
2359
+ * workgroup in the AWS Glue Data Catalog.</p>
2360
+ * @public
2361
+ */
2362
+ sourceArn?: string | undefined;
2363
+ /**
2364
+ * <p>The status of the managed workgroup.</p>
2365
+ * @public
2366
+ */
2367
+ status?: ManagedWorkgroupStatus | undefined;
2368
+ /**
2369
+ * <p>The creation date of the managed workgroup.</p>
2370
+ * @public
2371
+ */
2372
+ creationDate?: Date | undefined;
2373
+ }
2374
+ /**
2375
+ * @public
2376
+ */
2377
+ export interface ListManagedWorkgroupsResponse {
2378
+ /**
2379
+ * <p>If nextToken is returned, there are more results available.
2380
+ * The value of nextToken is a unique pagination token for each page.
2381
+ * To retrieve the next page, make the call again using the returned token.</p>
2382
+ * @public
2383
+ */
2384
+ nextToken?: string | undefined;
2385
+ /**
2386
+ * <p>The returned array of managed workgroups.</p>
2387
+ * @public
2388
+ */
2389
+ managedWorkgroups?: ManagedWorkgroupListItem[] | undefined;
2390
+ }
2303
2391
  /**
2304
2392
  * @public
2305
2393
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "../commands/ListManagedWorkgroupsCommand";
3
+ import { RedshiftServerlessPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListManagedWorkgroups: (config: RedshiftServerlessPaginationConfiguration, input: ListManagedWorkgroupsCommandInput, ...rest: any[]) => Paginator<ListManagedWorkgroupsCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomDomainAssociationsPaginator";
3
3
  export * from "./ListEndpointAccessPaginator";
4
+ export * from "./ListManagedWorkgroupsPaginator";
4
5
  export * from "./ListNamespacesPaginator";
5
6
  export * from "./ListRecoveryPointsPaginator";
6
7
  export * from "./ListScheduledActionsPaginator";
@@ -31,6 +31,7 @@ import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "../comman
31
31
  import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "../commands/GetWorkgroupCommand";
32
32
  import { ListCustomDomainAssociationsCommandInput, ListCustomDomainAssociationsCommandOutput } from "../commands/ListCustomDomainAssociationsCommand";
33
33
  import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "../commands/ListEndpointAccessCommand";
34
+ import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "../commands/ListManagedWorkgroupsCommand";
34
35
  import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "../commands/ListNamespacesCommand";
35
36
  import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "../commands/ListRecoveryPointsCommand";
36
37
  import { ListScheduledActionsCommandInput, ListScheduledActionsCommandOutput } from "../commands/ListScheduledActionsCommand";
@@ -179,6 +180,10 @@ export declare const se_ListCustomDomainAssociationsCommand: (input: ListCustomD
179
180
  * serializeAws_json1_1ListEndpointAccessCommand
180
181
  */
181
182
  export declare const se_ListEndpointAccessCommand: (input: ListEndpointAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
183
+ /**
184
+ * serializeAws_json1_1ListManagedWorkgroupsCommand
185
+ */
186
+ export declare const se_ListManagedWorkgroupsCommand: (input: ListManagedWorkgroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
182
187
  /**
183
188
  * serializeAws_json1_1ListNamespacesCommand
184
189
  */
@@ -399,6 +404,10 @@ export declare const de_ListCustomDomainAssociationsCommand: (output: __HttpResp
399
404
  * deserializeAws_json1_1ListEndpointAccessCommand
400
405
  */
401
406
  export declare const de_ListEndpointAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEndpointAccessCommandOutput>;
407
+ /**
408
+ * deserializeAws_json1_1ListManagedWorkgroupsCommand
409
+ */
410
+ export declare const de_ListManagedWorkgroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListManagedWorkgroupsCommandOutput>;
402
411
  /**
403
412
  * deserializeAws_json1_1ListNamespacesCommand
404
413
  */
@@ -123,6 +123,10 @@ import {
123
123
  ListEndpointAccessCommandInput,
124
124
  ListEndpointAccessCommandOutput,
125
125
  } from "./commands/ListEndpointAccessCommand";
126
+ import {
127
+ ListManagedWorkgroupsCommandInput,
128
+ ListManagedWorkgroupsCommandOutput,
129
+ } from "./commands/ListManagedWorkgroupsCommand";
126
130
  import {
127
131
  ListNamespacesCommandInput,
128
132
  ListNamespacesCommandOutput,
@@ -628,6 +632,20 @@ export interface RedshiftServerless {
628
632
  options: __HttpHandlerOptions,
629
633
  cb: (err: any, data?: ListEndpointAccessCommandOutput) => void
630
634
  ): void;
635
+ listManagedWorkgroups(): Promise<ListManagedWorkgroupsCommandOutput>;
636
+ listManagedWorkgroups(
637
+ args: ListManagedWorkgroupsCommandInput,
638
+ options?: __HttpHandlerOptions
639
+ ): Promise<ListManagedWorkgroupsCommandOutput>;
640
+ listManagedWorkgroups(
641
+ args: ListManagedWorkgroupsCommandInput,
642
+ cb: (err: any, data?: ListManagedWorkgroupsCommandOutput) => void
643
+ ): void;
644
+ listManagedWorkgroups(
645
+ args: ListManagedWorkgroupsCommandInput,
646
+ options: __HttpHandlerOptions,
647
+ cb: (err: any, data?: ListManagedWorkgroupsCommandOutput) => void
648
+ ): void;
631
649
  listNamespaces(): Promise<ListNamespacesCommandOutput>;
632
650
  listNamespaces(
633
651
  args: ListNamespacesCommandInput,
@@ -169,6 +169,10 @@ import {
169
169
  ListEndpointAccessCommandInput,
170
170
  ListEndpointAccessCommandOutput,
171
171
  } from "./commands/ListEndpointAccessCommand";
172
+ import {
173
+ ListManagedWorkgroupsCommandInput,
174
+ ListManagedWorkgroupsCommandOutput,
175
+ } from "./commands/ListManagedWorkgroupsCommand";
172
176
  import {
173
177
  ListNamespacesCommandInput,
174
178
  ListNamespacesCommandOutput,
@@ -304,6 +308,7 @@ export type ServiceInputTypes =
304
308
  | GetWorkgroupCommandInput
305
309
  | ListCustomDomainAssociationsCommandInput
306
310
  | ListEndpointAccessCommandInput
311
+ | ListManagedWorkgroupsCommandInput
307
312
  | ListNamespacesCommandInput
308
313
  | ListRecoveryPointsCommandInput
309
314
  | ListScheduledActionsCommandInput
@@ -360,6 +365,7 @@ export type ServiceOutputTypes =
360
365
  | GetWorkgroupCommandOutput
361
366
  | ListCustomDomainAssociationsCommandOutput
362
367
  | ListEndpointAccessCommandOutput
368
+ | ListManagedWorkgroupsCommandOutput
363
369
  | ListNamespacesCommandOutput
364
370
  | ListRecoveryPointsCommandOutput
365
371
  | ListScheduledActionsCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ListManagedWorkgroupsRequest,
5
+ ListManagedWorkgroupsResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ RedshiftServerlessClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../RedshiftServerlessClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListManagedWorkgroupsCommandInput
15
+ extends ListManagedWorkgroupsRequest {}
16
+ export interface ListManagedWorkgroupsCommandOutput
17
+ extends ListManagedWorkgroupsResponse,
18
+ __MetadataBearer {}
19
+ declare const ListManagedWorkgroupsCommand_base: {
20
+ new (
21
+ input: ListManagedWorkgroupsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListManagedWorkgroupsCommandInput,
24
+ ListManagedWorkgroupsCommandOutput,
25
+ RedshiftServerlessClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: [] | [ListManagedWorkgroupsCommandInput]
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListManagedWorkgroupsCommandInput,
33
+ ListManagedWorkgroupsCommandOutput,
34
+ RedshiftServerlessClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListManagedWorkgroupsCommand extends ListManagedWorkgroupsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListManagedWorkgroupsRequest;
44
+ output: ListManagedWorkgroupsResponse;
45
+ };
46
+ sdk: {
47
+ input: ListManagedWorkgroupsCommandInput;
48
+ output: ListManagedWorkgroupsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -29,6 +29,7 @@ export * from "./GetUsageLimitCommand";
29
29
  export * from "./GetWorkgroupCommand";
30
30
  export * from "./ListCustomDomainAssociationsCommand";
31
31
  export * from "./ListEndpointAccessCommand";
32
+ export * from "./ListManagedWorkgroupsCommand";
32
33
  export * from "./ListNamespacesCommand";
33
34
  export * from "./ListRecoveryPointsCommand";
34
35
  export * from "./ListScheduledActionsCommand";
@@ -636,6 +636,31 @@ export interface ListCustomDomainAssociationsResponse {
636
636
  nextToken?: string | undefined;
637
637
  associations?: Association[] | undefined;
638
638
  }
639
+ export interface ListManagedWorkgroupsRequest {
640
+ sourceArn?: string | undefined;
641
+ nextToken?: string | undefined;
642
+ maxResults?: number | undefined;
643
+ }
644
+ export declare const ManagedWorkgroupStatus: {
645
+ readonly AVAILABLE: "AVAILABLE";
646
+ readonly CREATING: "CREATING";
647
+ readonly DELETING: "DELETING";
648
+ readonly MODIFYING: "MODIFYING";
649
+ readonly NOT_AVAILABLE: "NOT_AVAILABLE";
650
+ };
651
+ export type ManagedWorkgroupStatus =
652
+ (typeof ManagedWorkgroupStatus)[keyof typeof ManagedWorkgroupStatus];
653
+ export interface ManagedWorkgroupListItem {
654
+ managedWorkgroupName?: string | undefined;
655
+ managedWorkgroupId?: string | undefined;
656
+ sourceArn?: string | undefined;
657
+ status?: ManagedWorkgroupStatus | undefined;
658
+ creationDate?: Date | undefined;
659
+ }
660
+ export interface ListManagedWorkgroupsResponse {
661
+ nextToken?: string | undefined;
662
+ managedWorkgroups?: ManagedWorkgroupListItem[] | undefined;
663
+ }
639
664
  export interface ListNamespacesRequest {
640
665
  nextToken?: string | undefined;
641
666
  maxResults?: number | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListManagedWorkgroupsCommandInput,
4
+ ListManagedWorkgroupsCommandOutput,
5
+ } from "../commands/ListManagedWorkgroupsCommand";
6
+ import { RedshiftServerlessPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListManagedWorkgroups: (
8
+ config: RedshiftServerlessPaginationConfiguration,
9
+ input: ListManagedWorkgroupsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListManagedWorkgroupsCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomDomainAssociationsPaginator";
3
3
  export * from "./ListEndpointAccessPaginator";
4
+ export * from "./ListManagedWorkgroupsPaginator";
4
5
  export * from "./ListNamespacesPaginator";
5
6
  export * from "./ListRecoveryPointsPaginator";
6
7
  export * from "./ListScheduledActionsPaginator";
@@ -127,6 +127,10 @@ import {
127
127
  ListEndpointAccessCommandInput,
128
128
  ListEndpointAccessCommandOutput,
129
129
  } from "../commands/ListEndpointAccessCommand";
130
+ import {
131
+ ListManagedWorkgroupsCommandInput,
132
+ ListManagedWorkgroupsCommandOutput,
133
+ } from "../commands/ListManagedWorkgroupsCommand";
130
134
  import {
131
135
  ListNamespacesCommandInput,
132
136
  ListNamespacesCommandOutput,
@@ -347,6 +351,10 @@ export declare const se_ListEndpointAccessCommand: (
347
351
  input: ListEndpointAccessCommandInput,
348
352
  context: __SerdeContext
349
353
  ) => Promise<__HttpRequest>;
354
+ export declare const se_ListManagedWorkgroupsCommand: (
355
+ input: ListManagedWorkgroupsCommandInput,
356
+ context: __SerdeContext
357
+ ) => Promise<__HttpRequest>;
350
358
  export declare const se_ListNamespacesCommand: (
351
359
  input: ListNamespacesCommandInput,
352
360
  context: __SerdeContext
@@ -567,6 +575,10 @@ export declare const de_ListEndpointAccessCommand: (
567
575
  output: __HttpResponse,
568
576
  context: __SerdeContext
569
577
  ) => Promise<ListEndpointAccessCommandOutput>;
578
+ export declare const de_ListManagedWorkgroupsCommand: (
579
+ output: __HttpResponse,
580
+ context: __SerdeContext
581
+ ) => Promise<ListManagedWorkgroupsCommandOutput>;
570
582
  export declare const de_ListNamespacesCommand: (
571
583
  output: __HttpResponse,
572
584
  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.699.0",
4
+ "version": "3.705.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",