@aws-sdk/client-accessanalyzer 3.181.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 (51) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/models/models_0.js +1 -0
  3. package/dist-es/AccessAnalyzer.js +114 -121
  4. package/dist-es/AccessAnalyzerClient.js +22 -28
  5. package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
  6. package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
  7. package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
  8. package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
  9. package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
  10. package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
  11. package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
  12. package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
  13. package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
  14. package/dist-es/commands/GetAnalyzerCommand.js +21 -28
  15. package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
  16. package/dist-es/commands/GetFindingCommand.js +21 -28
  17. package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
  18. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
  19. package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
  20. package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
  21. package/dist-es/commands/ListAnalyzersCommand.js +21 -28
  22. package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
  23. package/dist-es/commands/ListFindingsCommand.js +21 -28
  24. package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
  25. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  26. package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
  27. package/dist-es/commands/StartResourceScanCommand.js +22 -29
  28. package/dist-es/commands/TagResourceCommand.js +21 -28
  29. package/dist-es/commands/UntagResourceCommand.js +21 -28
  30. package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
  31. package/dist-es/commands/UpdateFindingsCommand.js +22 -29
  32. package/dist-es/commands/ValidatePolicyCommand.js +21 -28
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
  35. package/dist-es/models/models_0.js +410 -220
  36. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
  37. package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
  38. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
  39. package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
  40. package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
  41. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  42. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
  43. package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
  44. package/dist-es/protocols/Aws_restJson1.js +2350 -3152
  45. package/dist-es/runtimeConfig.browser.js +26 -12
  46. package/dist-es/runtimeConfig.js +30 -12
  47. package/dist-es/runtimeConfig.native.js +8 -5
  48. package/dist-es/runtimeConfig.shared.js +8 -11
  49. package/dist-types/models/models_0.d.ts +3 -2
  50. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  51. 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 { GetArchiveRuleRequestFilterSensitiveLog, GetArchiveRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetArchiveRuleCommand, serializeAws_restJson1GetArchiveRuleCommand, } from "../protocols/Aws_restJson1";
6
- var GetArchiveRuleCommand = (function (_super) {
7
- __extends(GetArchiveRuleCommand, _super);
8
- function GetArchiveRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetArchiveRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetArchiveRuleCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "GetArchiveRuleCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "GetArchiveRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetArchiveRuleRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetArchiveRuleResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetArchiveRuleCommand.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_restJson1GetArchiveRuleCommand(input, context);
33
- };
34
- GetArchiveRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetArchiveRuleCommand(output, context);
36
- };
37
- return GetArchiveRuleCommand;
38
- }($Command));
39
- export { GetArchiveRuleCommand };
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 { GetFindingRequestFilterSensitiveLog, GetFindingResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetFindingCommand, serializeAws_restJson1GetFindingCommand, } from "../protocols/Aws_restJson1";
6
- var GetFindingCommand = (function (_super) {
7
- __extends(GetFindingCommand, _super);
8
- function GetFindingCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetFindingCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetFindingCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "GetFindingCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "GetFindingCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetFindingRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetFindingResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetFindingCommand.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_restJson1GetFindingCommand(input, context);
33
- };
34
- GetFindingCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetFindingCommand(output, context);
36
- };
37
- return GetFindingCommand;
38
- }($Command));
39
- export { GetFindingCommand };
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 { GetGeneratedPolicyRequestFilterSensitiveLog, GetGeneratedPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetGeneratedPolicyCommand, serializeAws_restJson1GetGeneratedPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetGeneratedPolicyCommand = (function (_super) {
7
- __extends(GetGeneratedPolicyCommand, _super);
8
- function GetGeneratedPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetGeneratedPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetGeneratedPolicyCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "GetGeneratedPolicyCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "GetGeneratedPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetGeneratedPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetGeneratedPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetGeneratedPolicyCommand.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_restJson1GetGeneratedPolicyCommand(input, context);
33
- };
34
- GetGeneratedPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetGeneratedPolicyCommand(output, context);
36
- };
37
- return GetGeneratedPolicyCommand;
38
- }($Command));
39
- export { GetGeneratedPolicyCommand };
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 { ListAccessPreviewFindingsRequestFilterSensitiveLog, ListAccessPreviewFindingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAccessPreviewFindingsCommand, serializeAws_restJson1ListAccessPreviewFindingsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAccessPreviewFindingsCommand = (function (_super) {
7
- __extends(ListAccessPreviewFindingsCommand, _super);
8
- function ListAccessPreviewFindingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAccessPreviewFindingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAccessPreviewFindingsCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListAccessPreviewFindingsCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListAccessPreviewFindingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAccessPreviewFindingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAccessPreviewFindingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAccessPreviewFindingsCommand.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_restJson1ListAccessPreviewFindingsCommand(input, context);
33
- };
34
- ListAccessPreviewFindingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAccessPreviewFindingsCommand(output, context);
36
- };
37
- return ListAccessPreviewFindingsCommand;
38
- }($Command));
39
- export { ListAccessPreviewFindingsCommand };
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 { ListAccessPreviewsRequestFilterSensitiveLog, ListAccessPreviewsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAccessPreviewsCommand, serializeAws_restJson1ListAccessPreviewsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAccessPreviewsCommand = (function (_super) {
7
- __extends(ListAccessPreviewsCommand, _super);
8
- function ListAccessPreviewsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAccessPreviewsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAccessPreviewsCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListAccessPreviewsCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListAccessPreviewsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAccessPreviewsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAccessPreviewsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAccessPreviewsCommand.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_restJson1ListAccessPreviewsCommand(input, context);
33
- };
34
- ListAccessPreviewsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAccessPreviewsCommand(output, context);
36
- };
37
- return ListAccessPreviewsCommand;
38
- }($Command));
39
- export { ListAccessPreviewsCommand };
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 { ListAnalyzedResourcesRequestFilterSensitiveLog, ListAnalyzedResourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAnalyzedResourcesCommand, serializeAws_restJson1ListAnalyzedResourcesCommand, } from "../protocols/Aws_restJson1";
6
- var ListAnalyzedResourcesCommand = (function (_super) {
7
- __extends(ListAnalyzedResourcesCommand, _super);
8
- function ListAnalyzedResourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAnalyzedResourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAnalyzedResourcesCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListAnalyzedResourcesCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListAnalyzedResourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAnalyzedResourcesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAnalyzedResourcesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAnalyzedResourcesCommand.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_restJson1ListAnalyzedResourcesCommand(input, context);
33
- };
34
- ListAnalyzedResourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAnalyzedResourcesCommand(output, context);
36
- };
37
- return ListAnalyzedResourcesCommand;
38
- }($Command));
39
- export { ListAnalyzedResourcesCommand };
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 { ListAnalyzersRequestFilterSensitiveLog, ListAnalyzersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAnalyzersCommand, serializeAws_restJson1ListAnalyzersCommand, } from "../protocols/Aws_restJson1";
6
- var ListAnalyzersCommand = (function (_super) {
7
- __extends(ListAnalyzersCommand, _super);
8
- function ListAnalyzersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAnalyzersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAnalyzersCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListAnalyzersCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListAnalyzersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAnalyzersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAnalyzersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAnalyzersCommand.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_restJson1ListAnalyzersCommand(input, context);
33
- };
34
- ListAnalyzersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAnalyzersCommand(output, context);
36
- };
37
- return ListAnalyzersCommand;
38
- }($Command));
39
- export { ListAnalyzersCommand };
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 { ListArchiveRulesRequestFilterSensitiveLog, ListArchiveRulesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListArchiveRulesCommand, serializeAws_restJson1ListArchiveRulesCommand, } from "../protocols/Aws_restJson1";
6
- var ListArchiveRulesCommand = (function (_super) {
7
- __extends(ListArchiveRulesCommand, _super);
8
- function ListArchiveRulesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListArchiveRulesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListArchiveRulesCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListArchiveRulesCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListArchiveRulesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListArchiveRulesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListArchiveRulesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListArchiveRulesCommand.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_restJson1ListArchiveRulesCommand(input, context);
33
- };
34
- ListArchiveRulesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListArchiveRulesCommand(output, context);
36
- };
37
- return ListArchiveRulesCommand;
38
- }($Command));
39
- export { ListArchiveRulesCommand };
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 { ListFindingsRequestFilterSensitiveLog, ListFindingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListFindingsCommand, serializeAws_restJson1ListFindingsCommand, } from "../protocols/Aws_restJson1";
6
- var ListFindingsCommand = (function (_super) {
7
- __extends(ListFindingsCommand, _super);
8
- function ListFindingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListFindingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListFindingsCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListFindingsCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListFindingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListFindingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListFindingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListFindingsCommand.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_restJson1ListFindingsCommand(input, context);
33
- };
34
- ListFindingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListFindingsCommand(output, context);
36
- };
37
- return ListFindingsCommand;
38
- }($Command));
39
- export { ListFindingsCommand };
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 { ListPolicyGenerationsRequestFilterSensitiveLog, ListPolicyGenerationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPolicyGenerationsCommand, serializeAws_restJson1ListPolicyGenerationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListPolicyGenerationsCommand = (function (_super) {
7
- __extends(ListPolicyGenerationsCommand, _super);
8
- function ListPolicyGenerationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPolicyGenerationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPolicyGenerationsCommand.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 = "AccessAnalyzerClient";
18
- var commandName = "ListPolicyGenerationsCommand";
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 = "AccessAnalyzerClient";
15
+ const commandName = "ListPolicyGenerationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPolicyGenerationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPolicyGenerationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPolicyGenerationsCommand.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_restJson1ListPolicyGenerationsCommand(input, context);
33
- };
34
- ListPolicyGenerationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPolicyGenerationsCommand(output, context);
36
- };
37
- return ListPolicyGenerationsCommand;
38
- }($Command));
39
- export { ListPolicyGenerationsCommand };
31
+ }
32
+ }