@aws-sdk/client-redshift-serverless 3.186.0 → 3.188.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 (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/RedshiftServerless.js +150 -157
  3. package/dist-es/RedshiftServerlessClient.js +22 -28
  4. package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +21 -28
  5. package/dist-es/commands/CreateEndpointAccessCommand.js +21 -28
  6. package/dist-es/commands/CreateNamespaceCommand.js +21 -28
  7. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  8. package/dist-es/commands/CreateUsageLimitCommand.js +21 -28
  9. package/dist-es/commands/CreateWorkgroupCommand.js +21 -28
  10. package/dist-es/commands/DeleteEndpointAccessCommand.js +21 -28
  11. package/dist-es/commands/DeleteNamespaceCommand.js +21 -28
  12. package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
  13. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  14. package/dist-es/commands/DeleteUsageLimitCommand.js +21 -28
  15. package/dist-es/commands/DeleteWorkgroupCommand.js +21 -28
  16. package/dist-es/commands/GetCredentialsCommand.js +21 -28
  17. package/dist-es/commands/GetEndpointAccessCommand.js +21 -28
  18. package/dist-es/commands/GetNamespaceCommand.js +21 -28
  19. package/dist-es/commands/GetRecoveryPointCommand.js +21 -28
  20. package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
  21. package/dist-es/commands/GetSnapshotCommand.js +21 -28
  22. package/dist-es/commands/GetUsageLimitCommand.js +21 -28
  23. package/dist-es/commands/GetWorkgroupCommand.js +21 -28
  24. package/dist-es/commands/ListEndpointAccessCommand.js +21 -28
  25. package/dist-es/commands/ListNamespacesCommand.js +21 -28
  26. package/dist-es/commands/ListRecoveryPointsCommand.js +21 -28
  27. package/dist-es/commands/ListSnapshotsCommand.js +21 -28
  28. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  29. package/dist-es/commands/ListUsageLimitsCommand.js +21 -28
  30. package/dist-es/commands/ListWorkgroupsCommand.js +21 -28
  31. package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
  32. package/dist-es/commands/RestoreFromRecoveryPointCommand.js +21 -28
  33. package/dist-es/commands/RestoreFromSnapshotCommand.js +21 -28
  34. package/dist-es/commands/TagResourceCommand.js +21 -28
  35. package/dist-es/commands/UntagResourceCommand.js +21 -28
  36. package/dist-es/commands/UpdateEndpointAccessCommand.js +21 -28
  37. package/dist-es/commands/UpdateNamespaceCommand.js +21 -28
  38. package/dist-es/commands/UpdateSnapshotCommand.js +21 -28
  39. package/dist-es/commands/UpdateUsageLimitCommand.js +21 -28
  40. package/dist-es/commands/UpdateWorkgroupCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/RedshiftServerlessServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +392 -205
  44. package/dist-es/pagination/ListEndpointAccessPaginator.js +25 -68
  45. package/dist-es/pagination/ListNamespacesPaginator.js +25 -68
  46. package/dist-es/pagination/ListRecoveryPointsPaginator.js +25 -68
  47. package/dist-es/pagination/ListSnapshotsPaginator.js +25 -68
  48. package/dist-es/pagination/ListUsageLimitsPaginator.js +25 -68
  49. package/dist-es/pagination/ListWorkgroupsPaginator.js +25 -68
  50. package/dist-es/protocols/Aws_json1_1.js +2414 -3133
  51. package/dist-es/runtimeConfig.browser.js +26 -12
  52. package/dist-es/runtimeConfig.js +30 -12
  53. package/dist-es/runtimeConfig.native.js +8 -5
  54. package/dist-es/runtimeConfig.shared.js +8 -11
  55. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetWorkgroupRequestFilterSensitiveLog, GetWorkgroupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetWorkgroupCommand, serializeAws_json1_1GetWorkgroupCommand, } from "../protocols/Aws_json1_1";
6
- var GetWorkgroupCommand = (function (_super) {
7
- __extends(GetWorkgroupCommand, _super);
8
- function GetWorkgroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetWorkgroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetWorkgroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "GetWorkgroupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "GetWorkgroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetWorkgroupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetWorkgroupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetWorkgroupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetWorkgroupCommand(input, context);
33
- };
34
- GetWorkgroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetWorkgroupCommand(output, context);
36
- };
37
- return GetWorkgroupCommand;
38
- }($Command));
39
- export { GetWorkgroupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListEndpointAccessRequestFilterSensitiveLog, ListEndpointAccessResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListEndpointAccessCommand, serializeAws_json1_1ListEndpointAccessCommand, } from "../protocols/Aws_json1_1";
6
- var ListEndpointAccessCommand = (function (_super) {
7
- __extends(ListEndpointAccessCommand, _super);
8
- function ListEndpointAccessCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEndpointAccessCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEndpointAccessCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListEndpointAccessCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListEndpointAccessCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEndpointAccessRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEndpointAccessResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEndpointAccessCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListEndpointAccessCommand(input, context);
33
- };
34
- ListEndpointAccessCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListEndpointAccessCommand(output, context);
36
- };
37
- return ListEndpointAccessCommand;
38
- }($Command));
39
- export { ListEndpointAccessCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListNamespacesRequestFilterSensitiveLog, ListNamespacesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListNamespacesCommand, serializeAws_json1_1ListNamespacesCommand, } from "../protocols/Aws_json1_1";
6
- var ListNamespacesCommand = (function (_super) {
7
- __extends(ListNamespacesCommand, _super);
8
- function ListNamespacesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListNamespacesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListNamespacesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListNamespacesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListNamespacesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListNamespacesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListNamespacesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListNamespacesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListNamespacesCommand(input, context);
33
- };
34
- ListNamespacesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListNamespacesCommand(output, context);
36
- };
37
- return ListNamespacesCommand;
38
- }($Command));
39
- export { ListNamespacesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListRecoveryPointsRequestFilterSensitiveLog, ListRecoveryPointsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListRecoveryPointsCommand, serializeAws_json1_1ListRecoveryPointsCommand, } from "../protocols/Aws_json1_1";
6
- var ListRecoveryPointsCommand = (function (_super) {
7
- __extends(ListRecoveryPointsCommand, _super);
8
- function ListRecoveryPointsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRecoveryPointsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRecoveryPointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListRecoveryPointsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListRecoveryPointsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRecoveryPointsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRecoveryPointsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRecoveryPointsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListRecoveryPointsCommand(input, context);
33
- };
34
- ListRecoveryPointsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListRecoveryPointsCommand(output, context);
36
- };
37
- return ListRecoveryPointsCommand;
38
- }($Command));
39
- export { ListRecoveryPointsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListSnapshotsRequestFilterSensitiveLog, ListSnapshotsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListSnapshotsCommand, serializeAws_json1_1ListSnapshotsCommand, } from "../protocols/Aws_json1_1";
6
- var ListSnapshotsCommand = (function (_super) {
7
- __extends(ListSnapshotsCommand, _super);
8
- function ListSnapshotsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSnapshotsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSnapshotsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListSnapshotsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListSnapshotsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSnapshotsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSnapshotsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSnapshotsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListSnapshotsCommand(input, context);
33
- };
34
- ListSnapshotsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListSnapshotsCommand(output, context);
36
- };
37
- return ListSnapshotsCommand;
38
- }($Command));
39
- export { ListSnapshotsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListUsageLimitsRequestFilterSensitiveLog, ListUsageLimitsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListUsageLimitsCommand, serializeAws_json1_1ListUsageLimitsCommand, } from "../protocols/Aws_json1_1";
6
- var ListUsageLimitsCommand = (function (_super) {
7
- __extends(ListUsageLimitsCommand, _super);
8
- function ListUsageLimitsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListUsageLimitsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListUsageLimitsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListUsageLimitsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListUsageLimitsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListUsageLimitsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListUsageLimitsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListUsageLimitsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListUsageLimitsCommand(input, context);
33
- };
34
- ListUsageLimitsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListUsageLimitsCommand(output, context);
36
- };
37
- return ListUsageLimitsCommand;
38
- }($Command));
39
- export { ListUsageLimitsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListWorkgroupsRequestFilterSensitiveLog, ListWorkgroupsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListWorkgroupsCommand, serializeAws_json1_1ListWorkgroupsCommand, } from "../protocols/Aws_json1_1";
6
- var ListWorkgroupsCommand = (function (_super) {
7
- __extends(ListWorkgroupsCommand, _super);
8
- function ListWorkgroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWorkgroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWorkgroupsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "ListWorkgroupsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "ListWorkgroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWorkgroupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWorkgroupsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWorkgroupsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListWorkgroupsCommand(input, context);
33
- };
34
- ListWorkgroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListWorkgroupsCommand(output, context);
36
- };
37
- return ListWorkgroupsCommand;
38
- }($Command));
39
- export { ListWorkgroupsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutResourcePolicyRequestFilterSensitiveLog, PutResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutResourcePolicyCommand, serializeAws_json1_1PutResourcePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var PutResourcePolicyCommand = (function (_super) {
7
- __extends(PutResourcePolicyCommand, _super);
8
- function PutResourcePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutResourcePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutResourcePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "PutResourcePolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "PutResourcePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutResourcePolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutResourcePolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutResourcePolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1PutResourcePolicyCommand(input, context);
33
- };
34
- PutResourcePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutResourcePolicyCommand(output, context);
36
- };
37
- return PutResourcePolicyCommand;
38
- }($Command));
39
- export { PutResourcePolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RestoreFromRecoveryPointRequestFilterSensitiveLog, RestoreFromRecoveryPointResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RestoreFromRecoveryPointCommand, serializeAws_json1_1RestoreFromRecoveryPointCommand, } from "../protocols/Aws_json1_1";
6
- var RestoreFromRecoveryPointCommand = (function (_super) {
7
- __extends(RestoreFromRecoveryPointCommand, _super);
8
- function RestoreFromRecoveryPointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RestoreFromRecoveryPointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RestoreFromRecoveryPointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "RedshiftServerlessClient";
18
- var commandName = "RestoreFromRecoveryPointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftServerlessClient";
15
+ const commandName = "RestoreFromRecoveryPointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RestoreFromRecoveryPointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RestoreFromRecoveryPointResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RestoreFromRecoveryPointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RestoreFromRecoveryPointCommand(input, context);
33
- };
34
- RestoreFromRecoveryPointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RestoreFromRecoveryPointCommand(output, context);
36
- };
37
- return RestoreFromRecoveryPointCommand;
38
- }($Command));
39
- export { RestoreFromRecoveryPointCommand };
31
+ }
32
+ }