@aws-sdk/client-resiliencehub 3.180.0 → 3.183.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 (66) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +45 -39
  3. package/dist-es/Resiliencehub.js +158 -165
  4. package/dist-es/ResiliencehubClient.js +22 -28
  5. package/dist-es/commands/AddDraftAppVersionResourceMappingsCommand.js +21 -28
  6. package/dist-es/commands/CreateAppCommand.js +21 -28
  7. package/dist-es/commands/CreateRecommendationTemplateCommand.js +21 -28
  8. package/dist-es/commands/CreateResiliencyPolicyCommand.js +21 -28
  9. package/dist-es/commands/DeleteAppAssessmentCommand.js +21 -28
  10. package/dist-es/commands/DeleteAppCommand.js +21 -28
  11. package/dist-es/commands/DeleteRecommendationTemplateCommand.js +21 -28
  12. package/dist-es/commands/DeleteResiliencyPolicyCommand.js +21 -28
  13. package/dist-es/commands/DescribeAppAssessmentCommand.js +21 -28
  14. package/dist-es/commands/DescribeAppCommand.js +21 -28
  15. package/dist-es/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +21 -28
  16. package/dist-es/commands/DescribeAppVersionTemplateCommand.js +21 -28
  17. package/dist-es/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +21 -28
  18. package/dist-es/commands/DescribeResiliencyPolicyCommand.js +21 -28
  19. package/dist-es/commands/ImportResourcesToDraftAppVersionCommand.js +21 -28
  20. package/dist-es/commands/ListAlarmRecommendationsCommand.js +21 -28
  21. package/dist-es/commands/ListAppAssessmentsCommand.js +21 -28
  22. package/dist-es/commands/ListAppComponentCompliancesCommand.js +21 -28
  23. package/dist-es/commands/ListAppComponentRecommendationsCommand.js +21 -28
  24. package/dist-es/commands/ListAppVersionResourceMappingsCommand.js +21 -28
  25. package/dist-es/commands/ListAppVersionResourcesCommand.js +21 -28
  26. package/dist-es/commands/ListAppVersionsCommand.js +21 -28
  27. package/dist-es/commands/ListAppsCommand.js +21 -28
  28. package/dist-es/commands/ListRecommendationTemplatesCommand.js +21 -28
  29. package/dist-es/commands/ListResiliencyPoliciesCommand.js +21 -28
  30. package/dist-es/commands/ListSopRecommendationsCommand.js +21 -28
  31. package/dist-es/commands/ListSuggestedResiliencyPoliciesCommand.js +21 -28
  32. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  33. package/dist-es/commands/ListTestRecommendationsCommand.js +21 -28
  34. package/dist-es/commands/ListUnsupportedAppVersionResourcesCommand.js +21 -28
  35. package/dist-es/commands/PublishAppVersionCommand.js +21 -28
  36. package/dist-es/commands/PutDraftAppVersionTemplateCommand.js +21 -28
  37. package/dist-es/commands/RemoveDraftAppVersionResourceMappingsCommand.js +21 -28
  38. package/dist-es/commands/ResolveAppVersionResourcesCommand.js +21 -28
  39. package/dist-es/commands/StartAppAssessmentCommand.js +21 -28
  40. package/dist-es/commands/TagResourceCommand.js +21 -28
  41. package/dist-es/commands/UntagResourceCommand.js +21 -28
  42. package/dist-es/commands/UpdateAppCommand.js +21 -28
  43. package/dist-es/commands/UpdateResiliencyPolicyCommand.js +21 -28
  44. package/dist-es/endpoints.js +8 -8
  45. package/dist-es/models/ResiliencehubServiceException.js +5 -10
  46. package/dist-es/models/models_0.js +435 -198
  47. package/dist-es/pagination/ListAlarmRecommendationsPaginator.js +24 -67
  48. package/dist-es/pagination/ListAppAssessmentsPaginator.js +24 -67
  49. package/dist-es/pagination/ListAppComponentCompliancesPaginator.js +24 -67
  50. package/dist-es/pagination/ListAppComponentRecommendationsPaginator.js +24 -67
  51. package/dist-es/pagination/ListAppVersionResourceMappingsPaginator.js +24 -67
  52. package/dist-es/pagination/ListAppVersionResourcesPaginator.js +24 -67
  53. package/dist-es/pagination/ListAppVersionsPaginator.js +24 -67
  54. package/dist-es/pagination/ListAppsPaginator.js +24 -67
  55. package/dist-es/pagination/ListRecommendationTemplatesPaginator.js +24 -67
  56. package/dist-es/pagination/ListResiliencyPoliciesPaginator.js +24 -67
  57. package/dist-es/pagination/ListSopRecommendationsPaginator.js +24 -67
  58. package/dist-es/pagination/ListSuggestedResiliencyPoliciesPaginator.js +24 -67
  59. package/dist-es/pagination/ListTestRecommendationsPaginator.js +24 -67
  60. package/dist-es/pagination/ListUnsupportedAppVersionResourcesPaginator.js +24 -67
  61. package/dist-es/protocols/Aws_restJson1.js +3102 -4255
  62. package/dist-es/runtimeConfig.browser.js +26 -12
  63. package/dist-es/runtimeConfig.js +30 -12
  64. package/dist-es/runtimeConfig.native.js +8 -5
  65. package/dist-es/runtimeConfig.shared.js +8 -11
  66. 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 { ListAppVersionResourceMappingsRequestFilterSensitiveLog, ListAppVersionResourceMappingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAppVersionResourceMappingsCommand, serializeAws_restJson1ListAppVersionResourceMappingsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAppVersionResourceMappingsCommand = (function (_super) {
7
- __extends(ListAppVersionResourceMappingsCommand, _super);
8
- function ListAppVersionResourceMappingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAppVersionResourceMappingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAppVersionResourceMappingsCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListAppVersionResourceMappingsCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListAppVersionResourceMappingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAppVersionResourceMappingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAppVersionResourceMappingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAppVersionResourceMappingsCommand.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_restJson1ListAppVersionResourceMappingsCommand(input, context);
33
- };
34
- ListAppVersionResourceMappingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAppVersionResourceMappingsCommand(output, context);
36
- };
37
- return ListAppVersionResourceMappingsCommand;
38
- }($Command));
39
- export { ListAppVersionResourceMappingsCommand };
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 { ListAppVersionResourcesRequestFilterSensitiveLog, ListAppVersionResourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAppVersionResourcesCommand, serializeAws_restJson1ListAppVersionResourcesCommand, } from "../protocols/Aws_restJson1";
6
- var ListAppVersionResourcesCommand = (function (_super) {
7
- __extends(ListAppVersionResourcesCommand, _super);
8
- function ListAppVersionResourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAppVersionResourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAppVersionResourcesCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListAppVersionResourcesCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListAppVersionResourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAppVersionResourcesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAppVersionResourcesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAppVersionResourcesCommand.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_restJson1ListAppVersionResourcesCommand(input, context);
33
- };
34
- ListAppVersionResourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAppVersionResourcesCommand(output, context);
36
- };
37
- return ListAppVersionResourcesCommand;
38
- }($Command));
39
- export { ListAppVersionResourcesCommand };
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 { ListAppVersionsRequestFilterSensitiveLog, ListAppVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAppVersionsCommand, serializeAws_restJson1ListAppVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAppVersionsCommand = (function (_super) {
7
- __extends(ListAppVersionsCommand, _super);
8
- function ListAppVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAppVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAppVersionsCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListAppVersionsCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListAppVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAppVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAppVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAppVersionsCommand.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_restJson1ListAppVersionsCommand(input, context);
33
- };
34
- ListAppVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAppVersionsCommand(output, context);
36
- };
37
- return ListAppVersionsCommand;
38
- }($Command));
39
- export { ListAppVersionsCommand };
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 { ListAppsRequestFilterSensitiveLog, ListAppsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAppsCommand, serializeAws_restJson1ListAppsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAppsCommand = (function (_super) {
7
- __extends(ListAppsCommand, _super);
8
- function ListAppsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAppsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAppsCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListAppsCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListAppsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAppsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAppsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAppsCommand.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_restJson1ListAppsCommand(input, context);
33
- };
34
- ListAppsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAppsCommand(output, context);
36
- };
37
- return ListAppsCommand;
38
- }($Command));
39
- export { ListAppsCommand };
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 { ListRecommendationTemplatesRequestFilterSensitiveLog, ListRecommendationTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListRecommendationTemplatesCommand, serializeAws_restJson1ListRecommendationTemplatesCommand, } from "../protocols/Aws_restJson1";
6
- var ListRecommendationTemplatesCommand = (function (_super) {
7
- __extends(ListRecommendationTemplatesCommand, _super);
8
- function ListRecommendationTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRecommendationTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRecommendationTemplatesCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListRecommendationTemplatesCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListRecommendationTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRecommendationTemplatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRecommendationTemplatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRecommendationTemplatesCommand.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_restJson1ListRecommendationTemplatesCommand(input, context);
33
- };
34
- ListRecommendationTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListRecommendationTemplatesCommand(output, context);
36
- };
37
- return ListRecommendationTemplatesCommand;
38
- }($Command));
39
- export { ListRecommendationTemplatesCommand };
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 { ListResiliencyPoliciesRequestFilterSensitiveLog, ListResiliencyPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListResiliencyPoliciesCommand, serializeAws_restJson1ListResiliencyPoliciesCommand, } from "../protocols/Aws_restJson1";
6
- var ListResiliencyPoliciesCommand = (function (_super) {
7
- __extends(ListResiliencyPoliciesCommand, _super);
8
- function ListResiliencyPoliciesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListResiliencyPoliciesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListResiliencyPoliciesCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListResiliencyPoliciesCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListResiliencyPoliciesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListResiliencyPoliciesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListResiliencyPoliciesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListResiliencyPoliciesCommand.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_restJson1ListResiliencyPoliciesCommand(input, context);
33
- };
34
- ListResiliencyPoliciesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListResiliencyPoliciesCommand(output, context);
36
- };
37
- return ListResiliencyPoliciesCommand;
38
- }($Command));
39
- export { ListResiliencyPoliciesCommand };
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 { ListSopRecommendationsRequestFilterSensitiveLog, ListSopRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListSopRecommendationsCommand, serializeAws_restJson1ListSopRecommendationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListSopRecommendationsCommand = (function (_super) {
7
- __extends(ListSopRecommendationsCommand, _super);
8
- function ListSopRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSopRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSopRecommendationsCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListSopRecommendationsCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListSopRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSopRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSopRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSopRecommendationsCommand.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_restJson1ListSopRecommendationsCommand(input, context);
33
- };
34
- ListSopRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListSopRecommendationsCommand(output, context);
36
- };
37
- return ListSopRecommendationsCommand;
38
- }($Command));
39
- export { ListSopRecommendationsCommand };
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 { ListSuggestedResiliencyPoliciesRequestFilterSensitiveLog, ListSuggestedResiliencyPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand, serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand, } from "../protocols/Aws_restJson1";
6
- var ListSuggestedResiliencyPoliciesCommand = (function (_super) {
7
- __extends(ListSuggestedResiliencyPoliciesCommand, _super);
8
- function ListSuggestedResiliencyPoliciesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSuggestedResiliencyPoliciesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSuggestedResiliencyPoliciesCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListSuggestedResiliencyPoliciesCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListSuggestedResiliencyPoliciesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSuggestedResiliencyPoliciesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSuggestedResiliencyPoliciesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSuggestedResiliencyPoliciesCommand.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_restJson1ListSuggestedResiliencyPoliciesCommand(input, context);
33
- };
34
- ListSuggestedResiliencyPoliciesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand(output, context);
36
- };
37
- return ListSuggestedResiliencyPoliciesCommand;
38
- }($Command));
39
- export { ListSuggestedResiliencyPoliciesCommand };
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_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
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 = "ResiliencehubClient";
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 = "ResiliencehubClient";
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_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(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 { ListTestRecommendationsRequestFilterSensitiveLog, ListTestRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTestRecommendationsCommand, serializeAws_restJson1ListTestRecommendationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListTestRecommendationsCommand = (function (_super) {
7
- __extends(ListTestRecommendationsCommand, _super);
8
- function ListTestRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTestRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTestRecommendationsCommand.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 = "ResiliencehubClient";
18
- var commandName = "ListTestRecommendationsCommand";
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 = "ResiliencehubClient";
15
+ const commandName = "ListTestRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTestRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTestRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTestRecommendationsCommand.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_restJson1ListTestRecommendationsCommand(input, context);
33
- };
34
- ListTestRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTestRecommendationsCommand(output, context);
36
- };
37
- return ListTestRecommendationsCommand;
38
- }($Command));
39
- export { ListTestRecommendationsCommand };
31
+ }
32
+ }