@aws-sdk/client-accessanalyzer 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 (52) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist-cjs/models/models_0.js +1 -0
  3. package/dist-cjs/protocols/Aws_restJson1.js +34 -28
  4. package/dist-es/AccessAnalyzer.js +114 -121
  5. package/dist-es/AccessAnalyzerClient.js +22 -28
  6. package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
  7. package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
  8. package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
  9. package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
  10. package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
  11. package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
  12. package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
  13. package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
  14. package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
  15. package/dist-es/commands/GetAnalyzerCommand.js +21 -28
  16. package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
  17. package/dist-es/commands/GetFindingCommand.js +21 -28
  18. package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
  19. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
  20. package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
  21. package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
  22. package/dist-es/commands/ListAnalyzersCommand.js +21 -28
  23. package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
  24. package/dist-es/commands/ListFindingsCommand.js +21 -28
  25. package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
  26. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  27. package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
  28. package/dist-es/commands/StartResourceScanCommand.js +22 -29
  29. package/dist-es/commands/TagResourceCommand.js +21 -28
  30. package/dist-es/commands/UntagResourceCommand.js +21 -28
  31. package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
  32. package/dist-es/commands/UpdateFindingsCommand.js +22 -29
  33. package/dist-es/commands/ValidatePolicyCommand.js +21 -28
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +410 -220
  37. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
  38. package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
  39. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
  40. package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
  41. package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
  42. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  43. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
  44. package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
  45. package/dist-es/protocols/Aws_restJson1.js +2350 -3139
  46. package/dist-es/runtimeConfig.browser.js +26 -12
  47. package/dist-es/runtimeConfig.js +30 -12
  48. package/dist-es/runtimeConfig.native.js +8 -5
  49. package/dist-es/runtimeConfig.shared.js +8 -11
  50. package/dist-types/models/models_0.d.ts +3 -2
  51. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  52. 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 { CancelPolicyGenerationRequestFilterSensitiveLog, CancelPolicyGenerationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CancelPolicyGenerationCommand, serializeAws_restJson1CancelPolicyGenerationCommand, } from "../protocols/Aws_restJson1";
6
- var CancelPolicyGenerationCommand = (function (_super) {
7
- __extends(CancelPolicyGenerationCommand, _super);
8
- function CancelPolicyGenerationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelPolicyGenerationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelPolicyGenerationCommand.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 = "CancelPolicyGenerationCommand";
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 = "CancelPolicyGenerationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelPolicyGenerationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelPolicyGenerationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelPolicyGenerationCommand.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_restJson1CancelPolicyGenerationCommand(input, context);
33
- };
34
- CancelPolicyGenerationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelPolicyGenerationCommand(output, context);
36
- };
37
- return CancelPolicyGenerationCommand;
38
- }($Command));
39
- export { CancelPolicyGenerationCommand };
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 { CreateAccessPreviewRequestFilterSensitiveLog, CreateAccessPreviewResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAccessPreviewCommand, serializeAws_restJson1CreateAccessPreviewCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAccessPreviewCommand = (function (_super) {
7
- __extends(CreateAccessPreviewCommand, _super);
8
- function CreateAccessPreviewCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAccessPreviewCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAccessPreviewCommand.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 = "CreateAccessPreviewCommand";
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 = "CreateAccessPreviewCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAccessPreviewRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAccessPreviewResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAccessPreviewCommand.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_restJson1CreateAccessPreviewCommand(input, context);
33
- };
34
- CreateAccessPreviewCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAccessPreviewCommand(output, context);
36
- };
37
- return CreateAccessPreviewCommand;
38
- }($Command));
39
- export { CreateAccessPreviewCommand };
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 { CreateAnalyzerRequestFilterSensitiveLog, CreateAnalyzerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAnalyzerCommand, serializeAws_restJson1CreateAnalyzerCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAnalyzerCommand = (function (_super) {
7
- __extends(CreateAnalyzerCommand, _super);
8
- function CreateAnalyzerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAnalyzerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAnalyzerCommand.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 = "CreateAnalyzerCommand";
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 = "CreateAnalyzerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAnalyzerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAnalyzerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAnalyzerCommand.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_restJson1CreateAnalyzerCommand(input, context);
33
- };
34
- CreateAnalyzerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAnalyzerCommand(output, context);
36
- };
37
- return CreateAnalyzerCommand;
38
- }($Command));
39
- export { CreateAnalyzerCommand };
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 { CreateArchiveRuleRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateArchiveRuleCommand, serializeAws_restJson1CreateArchiveRuleCommand, } from "../protocols/Aws_restJson1";
6
- var CreateArchiveRuleCommand = (function (_super) {
7
- __extends(CreateArchiveRuleCommand, _super);
8
- function CreateArchiveRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateArchiveRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateArchiveRuleCommand.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 = "CreateArchiveRuleCommand";
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 = "CreateArchiveRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateArchiveRuleRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateArchiveRuleCommand.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_restJson1CreateArchiveRuleCommand(input, context);
33
- };
34
- CreateArchiveRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateArchiveRuleCommand(output, context);
36
- };
37
- return CreateArchiveRuleCommand;
38
- }($Command));
39
- export { CreateArchiveRuleCommand };
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 { DeleteAnalyzerRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteAnalyzerCommand, serializeAws_restJson1DeleteAnalyzerCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteAnalyzerCommand = (function (_super) {
7
- __extends(DeleteAnalyzerCommand, _super);
8
- function DeleteAnalyzerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAnalyzerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAnalyzerCommand.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 = "DeleteAnalyzerCommand";
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 = "DeleteAnalyzerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAnalyzerRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAnalyzerCommand.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_restJson1DeleteAnalyzerCommand(input, context);
33
- };
34
- DeleteAnalyzerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteAnalyzerCommand(output, context);
36
- };
37
- return DeleteAnalyzerCommand;
38
- }($Command));
39
- export { DeleteAnalyzerCommand };
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 { DeleteArchiveRuleRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteArchiveRuleCommand, serializeAws_restJson1DeleteArchiveRuleCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteArchiveRuleCommand = (function (_super) {
7
- __extends(DeleteArchiveRuleCommand, _super);
8
- function DeleteArchiveRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteArchiveRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteArchiveRuleCommand.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 = "DeleteArchiveRuleCommand";
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 = "DeleteArchiveRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteArchiveRuleRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteArchiveRuleCommand.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_restJson1DeleteArchiveRuleCommand(input, context);
33
- };
34
- DeleteArchiveRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteArchiveRuleCommand(output, context);
36
- };
37
- return DeleteArchiveRuleCommand;
38
- }($Command));
39
- export { DeleteArchiveRuleCommand };
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 { GetAccessPreviewRequestFilterSensitiveLog, GetAccessPreviewResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAccessPreviewCommand, serializeAws_restJson1GetAccessPreviewCommand, } from "../protocols/Aws_restJson1";
6
- var GetAccessPreviewCommand = (function (_super) {
7
- __extends(GetAccessPreviewCommand, _super);
8
- function GetAccessPreviewCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAccessPreviewCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAccessPreviewCommand.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 = "GetAccessPreviewCommand";
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 = "GetAccessPreviewCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAccessPreviewRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAccessPreviewResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAccessPreviewCommand.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_restJson1GetAccessPreviewCommand(input, context);
33
- };
34
- GetAccessPreviewCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAccessPreviewCommand(output, context);
36
- };
37
- return GetAccessPreviewCommand;
38
- }($Command));
39
- export { GetAccessPreviewCommand };
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 { GetAnalyzedResourceRequestFilterSensitiveLog, GetAnalyzedResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAnalyzedResourceCommand, serializeAws_restJson1GetAnalyzedResourceCommand, } from "../protocols/Aws_restJson1";
6
- var GetAnalyzedResourceCommand = (function (_super) {
7
- __extends(GetAnalyzedResourceCommand, _super);
8
- function GetAnalyzedResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAnalyzedResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAnalyzedResourceCommand.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 = "GetAnalyzedResourceCommand";
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 = "GetAnalyzedResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAnalyzedResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAnalyzedResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAnalyzedResourceCommand.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_restJson1GetAnalyzedResourceCommand(input, context);
33
- };
34
- GetAnalyzedResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAnalyzedResourceCommand(output, context);
36
- };
37
- return GetAnalyzedResourceCommand;
38
- }($Command));
39
- export { GetAnalyzedResourceCommand };
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 { GetAnalyzerRequestFilterSensitiveLog, GetAnalyzerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAnalyzerCommand, serializeAws_restJson1GetAnalyzerCommand, } from "../protocols/Aws_restJson1";
6
- var GetAnalyzerCommand = (function (_super) {
7
- __extends(GetAnalyzerCommand, _super);
8
- function GetAnalyzerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAnalyzerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAnalyzerCommand.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 = "GetAnalyzerCommand";
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 = "GetAnalyzerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAnalyzerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAnalyzerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAnalyzerCommand.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_restJson1GetAnalyzerCommand(input, context);
33
- };
34
- GetAnalyzerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAnalyzerCommand(output, context);
36
- };
37
- return GetAnalyzerCommand;
38
- }($Command));
39
- export { GetAnalyzerCommand };
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 { 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
+ }