@aws-sdk/client-accessanalyzer 3.928.0 → 3.930.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 (61) hide show
  1. package/dist-cjs/index.js +2113 -1976
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AccessAnalyzerClient.js +2 -0
  4. package/dist-es/commands/ApplyArchiveRuleCommand.js +3 -9
  5. package/dist-es/commands/CancelPolicyGenerationCommand.js +3 -9
  6. package/dist-es/commands/CheckAccessNotGrantedCommand.js +3 -10
  7. package/dist-es/commands/CheckNoNewAccessCommand.js +3 -10
  8. package/dist-es/commands/CheckNoPublicAccessCommand.js +3 -10
  9. package/dist-es/commands/CreateAccessPreviewCommand.js +3 -9
  10. package/dist-es/commands/CreateAnalyzerCommand.js +3 -9
  11. package/dist-es/commands/CreateArchiveRuleCommand.js +3 -9
  12. package/dist-es/commands/DeleteAnalyzerCommand.js +3 -9
  13. package/dist-es/commands/DeleteArchiveRuleCommand.js +3 -9
  14. package/dist-es/commands/GenerateFindingRecommendationCommand.js +3 -9
  15. package/dist-es/commands/GetAccessPreviewCommand.js +3 -9
  16. package/dist-es/commands/GetAnalyzedResourceCommand.js +3 -9
  17. package/dist-es/commands/GetAnalyzerCommand.js +3 -9
  18. package/dist-es/commands/GetArchiveRuleCommand.js +3 -9
  19. package/dist-es/commands/GetFindingCommand.js +3 -9
  20. package/dist-es/commands/GetFindingRecommendationCommand.js +3 -9
  21. package/dist-es/commands/GetFindingV2Command.js +3 -9
  22. package/dist-es/commands/GetFindingsStatisticsCommand.js +3 -9
  23. package/dist-es/commands/GetGeneratedPolicyCommand.js +3 -9
  24. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +3 -9
  25. package/dist-es/commands/ListAccessPreviewsCommand.js +3 -9
  26. package/dist-es/commands/ListAnalyzedResourcesCommand.js +3 -9
  27. package/dist-es/commands/ListAnalyzersCommand.js +3 -9
  28. package/dist-es/commands/ListArchiveRulesCommand.js +3 -9
  29. package/dist-es/commands/ListFindingsCommand.js +3 -9
  30. package/dist-es/commands/ListFindingsV2Command.js +3 -9
  31. package/dist-es/commands/ListPolicyGenerationsCommand.js +3 -9
  32. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  33. package/dist-es/commands/StartPolicyGenerationCommand.js +3 -9
  34. package/dist-es/commands/StartResourceScanCommand.js +3 -9
  35. package/dist-es/commands/TagResourceCommand.js +3 -9
  36. package/dist-es/commands/UntagResourceCommand.js +3 -9
  37. package/dist-es/commands/UpdateAnalyzerCommand.js +3 -9
  38. package/dist-es/commands/UpdateArchiveRuleCommand.js +3 -9
  39. package/dist-es/commands/UpdateFindingsCommand.js +3 -9
  40. package/dist-es/commands/ValidatePolicyCommand.js +3 -9
  41. package/dist-es/models/models_0.js +0 -146
  42. package/dist-es/runtimeConfig.shared.js +2 -0
  43. package/dist-es/schemas/schemas_0.js +2043 -0
  44. package/dist-types/AccessAnalyzerClient.d.ts +10 -1
  45. package/dist-types/models/models_0.d.ts +40 -22
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  47. package/dist-types/runtimeConfig.d.ts +1 -0
  48. package/dist-types/runtimeConfig.native.d.ts +1 -0
  49. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  50. package/dist-types/schemas/schemas_0.d.ts +266 -0
  51. package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +4 -0
  52. package/dist-types/ts3.4/models/models_0.d.ts +0 -25
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  56. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  57. package/dist-types/ts3.4/schemas/schemas_0.d.ts +273 -0
  58. package/package.json +33 -34
  59. package/dist-es/protocols/Aws_restJson1.js +0 -1553
  60. package/dist-types/protocols/Aws_restJson1.d.ts +0 -335
  61. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -449
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListAnalyzedResourcesCommand, se_ListAnalyzedResourcesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListAnalyzedResources } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAnalyzedResourcesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListAnalyzedResources", {})
17
13
  .n("AccessAnalyzerClient", "ListAnalyzedResourcesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAnalyzedResourcesCommand)
20
- .de(de_ListAnalyzedResourcesCommand)
14
+ .sc(ListAnalyzedResources)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListAnalyzersCommand, se_ListAnalyzersCommand } from "../protocols/Aws_restJson1";
4
+ import { ListAnalyzers } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAnalyzersCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListAnalyzers", {})
17
13
  .n("AccessAnalyzerClient", "ListAnalyzersCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAnalyzersCommand)
20
- .de(de_ListAnalyzersCommand)
14
+ .sc(ListAnalyzers)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListArchiveRulesCommand, se_ListArchiveRulesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListArchiveRules } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListArchiveRulesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListArchiveRules", {})
17
13
  .n("AccessAnalyzerClient", "ListArchiveRulesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListArchiveRulesCommand)
20
- .de(de_ListArchiveRulesCommand)
14
+ .sc(ListArchiveRules)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListFindingsCommand, se_ListFindingsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListFindings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListFindingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListFindings", {})
17
13
  .n("AccessAnalyzerClient", "ListFindingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListFindingsCommand)
20
- .de(de_ListFindingsCommand)
14
+ .sc(ListFindings)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListFindingsV2Command, se_ListFindingsV2Command } from "../protocols/Aws_restJson1";
4
+ import { ListFindingsV2 } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListFindingsV2Command extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListFindingsV2", {})
17
13
  .n("AccessAnalyzerClient", "ListFindingsV2Command")
18
- .f(void 0, void 0)
19
- .ser(se_ListFindingsV2Command)
20
- .de(de_ListFindingsV2Command)
14
+ .sc(ListFindingsV2)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPolicyGenerationsCommand, se_ListPolicyGenerationsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListPolicyGenerations } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPolicyGenerationsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListPolicyGenerations", {})
17
13
  .n("AccessAnalyzerClient", "ListPolicyGenerationsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPolicyGenerationsCommand)
20
- .de(de_ListPolicyGenerationsCommand)
14
+ .sc(ListPolicyGenerations)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ListTagsForResource", {})
17
13
  .n("AccessAnalyzerClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartPolicyGenerationCommand, se_StartPolicyGenerationCommand } from "../protocols/Aws_restJson1";
4
+ import { StartPolicyGeneration } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartPolicyGenerationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "StartPolicyGeneration", {})
17
13
  .n("AccessAnalyzerClient", "StartPolicyGenerationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartPolicyGenerationCommand)
20
- .de(de_StartPolicyGenerationCommand)
14
+ .sc(StartPolicyGeneration)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartResourceScanCommand, se_StartResourceScanCommand } from "../protocols/Aws_restJson1";
4
+ import { StartResourceScan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartResourceScanCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "StartResourceScan", {})
17
13
  .n("AccessAnalyzerClient", "StartResourceScanCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartResourceScanCommand)
20
- .de(de_StartResourceScanCommand)
14
+ .sc(StartResourceScan)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "TagResource", {})
17
13
  .n("AccessAnalyzerClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "UntagResource", {})
17
13
  .n("AccessAnalyzerClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateAnalyzerCommand, se_UpdateAnalyzerCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateAnalyzer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateAnalyzerCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "UpdateAnalyzer", {})
17
13
  .n("AccessAnalyzerClient", "UpdateAnalyzerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateAnalyzerCommand)
20
- .de(de_UpdateAnalyzerCommand)
14
+ .sc(UpdateAnalyzer)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateArchiveRuleCommand, se_UpdateArchiveRuleCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateArchiveRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateArchiveRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "UpdateArchiveRule", {})
17
13
  .n("AccessAnalyzerClient", "UpdateArchiveRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateArchiveRuleCommand)
20
- .de(de_UpdateArchiveRuleCommand)
14
+ .sc(UpdateArchiveRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateFindingsCommand, se_UpdateFindingsCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateFindings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateFindingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "UpdateFindings", {})
17
13
  .n("AccessAnalyzerClient", "UpdateFindingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateFindingsCommand)
20
- .de(de_UpdateFindingsCommand)
14
+ .sc(UpdateFindings)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ValidatePolicyCommand, se_ValidatePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { ValidatePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ValidatePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AccessAnalyzer", "ValidatePolicy", {})
17
13
  .n("AccessAnalyzerClient", "ValidatePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ValidatePolicyCommand)
20
- .de(de_ValidatePolicyCommand)
14
+ .sc(ValidatePolicy)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -115,16 +114,6 @@ export class ValidationException extends __BaseException {
115
114
  this.fieldList = opts.fieldList;
116
115
  }
117
116
  }
118
- export var AnalyzerConfiguration;
119
- (function (AnalyzerConfiguration) {
120
- AnalyzerConfiguration.visit = (value, visitor) => {
121
- if (value.unusedAccess !== undefined)
122
- return visitor.unusedAccess(value.unusedAccess);
123
- if (value.internalAccess !== undefined)
124
- return visitor.internalAccess(value.internalAccess);
125
- return visitor._(value.$unknown[0], value.$unknown[1]);
126
- };
127
- })(AnalyzerConfiguration || (AnalyzerConfiguration = {}));
128
117
  export const AccessCheckPolicyType = {
129
118
  IDENTITY_POLICY: "IDENTITY_POLICY",
130
119
  RESOURCE_POLICY: "RESOURCE_POLICY",
@@ -210,42 +199,6 @@ export const KmsGrantOperation = {
210
199
  SIGN: "Sign",
211
200
  VERIFY: "Verify",
212
201
  };
213
- export var RdsDbClusterSnapshotAttributeValue;
214
- (function (RdsDbClusterSnapshotAttributeValue) {
215
- RdsDbClusterSnapshotAttributeValue.visit = (value, visitor) => {
216
- if (value.accountIds !== undefined)
217
- return visitor.accountIds(value.accountIds);
218
- return visitor._(value.$unknown[0], value.$unknown[1]);
219
- };
220
- })(RdsDbClusterSnapshotAttributeValue || (RdsDbClusterSnapshotAttributeValue = {}));
221
- export var RdsDbSnapshotAttributeValue;
222
- (function (RdsDbSnapshotAttributeValue) {
223
- RdsDbSnapshotAttributeValue.visit = (value, visitor) => {
224
- if (value.accountIds !== undefined)
225
- return visitor.accountIds(value.accountIds);
226
- return visitor._(value.$unknown[0], value.$unknown[1]);
227
- };
228
- })(RdsDbSnapshotAttributeValue || (RdsDbSnapshotAttributeValue = {}));
229
- export var NetworkOriginConfiguration;
230
- (function (NetworkOriginConfiguration) {
231
- NetworkOriginConfiguration.visit = (value, visitor) => {
232
- if (value.vpcConfiguration !== undefined)
233
- return visitor.vpcConfiguration(value.vpcConfiguration);
234
- if (value.internetConfiguration !== undefined)
235
- return visitor.internetConfiguration(value.internetConfiguration);
236
- return visitor._(value.$unknown[0], value.$unknown[1]);
237
- };
238
- })(NetworkOriginConfiguration || (NetworkOriginConfiguration = {}));
239
- export var AclGrantee;
240
- (function (AclGrantee) {
241
- AclGrantee.visit = (value, visitor) => {
242
- if (value.id !== undefined)
243
- return visitor.id(value.id);
244
- if (value.uri !== undefined)
245
- return visitor.uri(value.uri);
246
- return visitor._(value.$unknown[0], value.$unknown[1]);
247
- };
248
- })(AclGrantee || (AclGrantee = {}));
249
202
  export const AclPermission = {
250
203
  FULL_CONTROL: "FULL_CONTROL",
251
204
  READ: "READ",
@@ -253,40 +206,6 @@ export const AclPermission = {
253
206
  WRITE: "WRITE",
254
207
  WRITE_ACP: "WRITE_ACP",
255
208
  };
256
- export var Configuration;
257
- (function (Configuration) {
258
- Configuration.visit = (value, visitor) => {
259
- if (value.ebsSnapshot !== undefined)
260
- return visitor.ebsSnapshot(value.ebsSnapshot);
261
- if (value.ecrRepository !== undefined)
262
- return visitor.ecrRepository(value.ecrRepository);
263
- if (value.iamRole !== undefined)
264
- return visitor.iamRole(value.iamRole);
265
- if (value.efsFileSystem !== undefined)
266
- return visitor.efsFileSystem(value.efsFileSystem);
267
- if (value.kmsKey !== undefined)
268
- return visitor.kmsKey(value.kmsKey);
269
- if (value.rdsDbClusterSnapshot !== undefined)
270
- return visitor.rdsDbClusterSnapshot(value.rdsDbClusterSnapshot);
271
- if (value.rdsDbSnapshot !== undefined)
272
- return visitor.rdsDbSnapshot(value.rdsDbSnapshot);
273
- if (value.secretsManagerSecret !== undefined)
274
- return visitor.secretsManagerSecret(value.secretsManagerSecret);
275
- if (value.s3Bucket !== undefined)
276
- return visitor.s3Bucket(value.s3Bucket);
277
- if (value.snsTopic !== undefined)
278
- return visitor.snsTopic(value.snsTopic);
279
- if (value.sqsQueue !== undefined)
280
- return visitor.sqsQueue(value.sqsQueue);
281
- if (value.s3ExpressDirectoryBucket !== undefined)
282
- return visitor.s3ExpressDirectoryBucket(value.s3ExpressDirectoryBucket);
283
- if (value.dynamodbStream !== undefined)
284
- return visitor.dynamodbStream(value.dynamodbStream);
285
- if (value.dynamodbTable !== undefined)
286
- return visitor.dynamodbTable(value.dynamodbTable);
287
- return visitor._(value.$unknown[0], value.$unknown[1]);
288
- };
289
- })(Configuration || (Configuration = {}));
290
209
  export const AccessPreviewStatus = {
291
210
  COMPLETED: "COMPLETED",
292
211
  CREATING: "CREATING",
@@ -309,31 +228,11 @@ export const RecommendedRemediationAction = {
309
228
  CREATE_POLICY: "CREATE_POLICY",
310
229
  DETACH_POLICY: "DETACH_POLICY",
311
230
  };
312
- export var RecommendedStep;
313
- (function (RecommendedStep) {
314
- RecommendedStep.visit = (value, visitor) => {
315
- if (value.unusedPermissionsRecommendedStep !== undefined)
316
- return visitor.unusedPermissionsRecommendedStep(value.unusedPermissionsRecommendedStep);
317
- return visitor._(value.$unknown[0], value.$unknown[1]);
318
- };
319
- })(RecommendedStep || (RecommendedStep = {}));
320
231
  export const Status = {
321
232
  FAILED: "FAILED",
322
233
  IN_PROGRESS: "IN_PROGRESS",
323
234
  SUCCEEDED: "SUCCEEDED",
324
235
  };
325
- export var FindingsStatistics;
326
- (function (FindingsStatistics) {
327
- FindingsStatistics.visit = (value, visitor) => {
328
- if (value.externalAccessFindingsStatistics !== undefined)
329
- return visitor.externalAccessFindingsStatistics(value.externalAccessFindingsStatistics);
330
- if (value.internalAccessFindingsStatistics !== undefined)
331
- return visitor.internalAccessFindingsStatistics(value.internalAccessFindingsStatistics);
332
- if (value.unusedAccessFindingsStatistics !== undefined)
333
- return visitor.unusedAccessFindingsStatistics(value.unusedAccessFindingsStatistics);
334
- return visitor._(value.$unknown[0], value.$unknown[1]);
335
- };
336
- })(FindingsStatistics || (FindingsStatistics = {}));
337
236
  export const InternalAccessType = {
338
237
  INTRA_ACCOUNT: "INTRA_ACCOUNT",
339
238
  INTRA_ORG: "INTRA_ORG",
@@ -348,24 +247,6 @@ export const ServiceControlPolicyRestriction = {
348
247
  FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP",
349
248
  NOT_APPLICABLE: "NOT_APPLICABLE",
350
249
  };
351
- export var FindingDetails;
352
- (function (FindingDetails) {
353
- FindingDetails.visit = (value, visitor) => {
354
- if (value.internalAccessDetails !== undefined)
355
- return visitor.internalAccessDetails(value.internalAccessDetails);
356
- if (value.externalAccessDetails !== undefined)
357
- return visitor.externalAccessDetails(value.externalAccessDetails);
358
- if (value.unusedPermissionDetails !== undefined)
359
- return visitor.unusedPermissionDetails(value.unusedPermissionDetails);
360
- if (value.unusedIamUserAccessKeyDetails !== undefined)
361
- return visitor.unusedIamUserAccessKeyDetails(value.unusedIamUserAccessKeyDetails);
362
- if (value.unusedIamRoleDetails !== undefined)
363
- return visitor.unusedIamRoleDetails(value.unusedIamRoleDetails);
364
- if (value.unusedIamUserPasswordDetails !== undefined)
365
- return visitor.unusedIamUserPasswordDetails(value.unusedIamUserPasswordDetails);
366
- return visitor._(value.$unknown[0], value.$unknown[1]);
367
- };
368
- })(FindingDetails || (FindingDetails = {}));
369
250
  export const FindingType = {
370
251
  EXTERNAL_ACCESS: "ExternalAccess",
371
252
  INTERNAL_ACCESS: "InternalAccess",
@@ -423,30 +304,3 @@ export const ValidatePolicyFindingType = {
423
304
  SUGGESTION: "SUGGESTION",
424
305
  WARNING: "WARNING",
425
306
  };
426
- export var PathElement;
427
- (function (PathElement) {
428
- PathElement.visit = (value, visitor) => {
429
- if (value.index !== undefined)
430
- return visitor.index(value.index);
431
- if (value.key !== undefined)
432
- return visitor.key(value.key);
433
- if (value.substring !== undefined)
434
- return visitor.substring(value.substring);
435
- if (value.value !== undefined)
436
- return visitor.value(value.value);
437
- return visitor._(value.$unknown[0], value.$unknown[1]);
438
- };
439
- })(PathElement || (PathElement = {}));
440
- export const CheckAccessNotGrantedRequestFilterSensitiveLog = (obj) => ({
441
- ...obj,
442
- ...(obj.policyDocument && { policyDocument: SENSITIVE_STRING }),
443
- });
444
- export const CheckNoNewAccessRequestFilterSensitiveLog = (obj) => ({
445
- ...obj,
446
- ...(obj.newPolicyDocument && { newPolicyDocument: SENSITIVE_STRING }),
447
- ...(obj.existingPolicyDocument && { existingPolicyDocument: SENSITIVE_STRING }),
448
- });
449
- export const CheckNoPublicAccessRequestFilterSensitiveLog = (obj) => ({
450
- ...obj,
451
- ...(obj.policyDocument && { policyDocument: SENSITIVE_STRING }),
452
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.accessanalyzer" }),
25
27
  serviceId: config?.serviceId ?? "AccessAnalyzer",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,