@aws-sdk/client-accessanalyzer 3.687.0 → 3.692.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.
package/README.md CHANGED
@@ -481,6 +481,14 @@ UntagResource
481
481
 
482
482
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/UntagResourceCommandOutput/)
483
483
 
484
+ </details>
485
+ <details>
486
+ <summary>
487
+ UpdateAnalyzer
488
+ </summary>
489
+
490
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/UpdateAnalyzerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/UpdateAnalyzerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/UpdateAnalyzerCommandOutput/)
491
+
484
492
  </details>
485
493
  <details>
486
494
  <summary>
package/dist-cjs/index.js CHANGED
@@ -85,6 +85,7 @@ __export(src_exports, {
85
85
  RecommendationType: () => RecommendationType,
86
86
  RecommendedRemediationAction: () => RecommendedRemediationAction,
87
87
  RecommendedStep: () => RecommendedStep,
88
+ ResourceControlPolicyRestriction: () => ResourceControlPolicyRestriction,
88
89
  ResourceNotFoundException: () => ResourceNotFoundException,
89
90
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
90
91
  StartPolicyGenerationCommand: () => StartPolicyGenerationCommand,
@@ -94,6 +95,7 @@ __export(src_exports, {
94
95
  ThrottlingException: () => ThrottlingException,
95
96
  UnprocessableEntityException: () => UnprocessableEntityException,
96
97
  UntagResourceCommand: () => UntagResourceCommand,
98
+ UpdateAnalyzerCommand: () => UpdateAnalyzerCommand,
97
99
  UpdateArchiveRuleCommand: () => UpdateArchiveRuleCommand,
98
100
  UpdateFindingsCommand: () => UpdateFindingsCommand,
99
101
  ValidatePolicyCommand: () => ValidatePolicyCommand,
@@ -604,6 +606,11 @@ var AccessPreviewStatusReasonCode = {
604
606
  INTERNAL_ERROR: "INTERNAL_ERROR",
605
607
  INVALID_CONFIGURATION: "INVALID_CONFIGURATION"
606
608
  };
609
+ var ResourceControlPolicyRestriction = {
610
+ APPLICABLE: "APPLICABLE",
611
+ FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP",
612
+ NOT_APPLICABLE: "NOT_APPLICABLE"
613
+ };
607
614
  var RecommendationType = {
608
615
  UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation"
609
616
  };
@@ -678,6 +685,7 @@ var Locale = {
678
685
  };
679
686
  var PolicyType = {
680
687
  IDENTITY_POLICY: "IDENTITY_POLICY",
688
+ RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY",
681
689
  RESOURCE_POLICY: "RESOURCE_POLICY",
682
690
  SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY"
683
691
  };
@@ -1186,6 +1194,22 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1186
1194
  b.m("DELETE").h(headers).q(query).b(body);
1187
1195
  return b.build();
1188
1196
  }, "se_UntagResourceCommand");
1197
+ var se_UpdateAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {
1198
+ const b = (0, import_core.requestBuilder)(input, context);
1199
+ const headers = {
1200
+ "content-type": "application/json"
1201
+ };
1202
+ b.bp("/analyzer/{analyzerName}");
1203
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
1204
+ let body;
1205
+ body = JSON.stringify(
1206
+ (0, import_smithy_client.take)(input, {
1207
+ configuration: (_) => (0, import_smithy_client._json)(_)
1208
+ })
1209
+ );
1210
+ b.m("PUT").h(headers).b(body);
1211
+ return b.build();
1212
+ }, "se_UpdateAnalyzerCommand");
1189
1213
  var se_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
1190
1214
  const b = (0, import_core.requestBuilder)(input, context);
1191
1215
  const headers = {
@@ -1690,6 +1714,20 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1690
1714
  await (0, import_smithy_client.collectBody)(output.body, context);
1691
1715
  return contents;
1692
1716
  }, "de_UntagResourceCommand");
1717
+ var de_UpdateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {
1718
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1719
+ return de_CommandError(output, context);
1720
+ }
1721
+ const contents = (0, import_smithy_client.map)({
1722
+ $metadata: deserializeMetadata(output)
1723
+ });
1724
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1725
+ const doc = (0, import_smithy_client.take)(data, {
1726
+ configuration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_))
1727
+ });
1728
+ Object.assign(contents, doc);
1729
+ return contents;
1730
+ }, "de_UpdateAnalyzerCommand");
1693
1731
  var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1694
1732
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1695
1733
  return de_CommandError(output, context);
@@ -1929,6 +1967,7 @@ var de_AccessPreviewFinding = /* @__PURE__ */ __name((output, context) => {
1929
1967
  isPublic: import_smithy_client.expectBoolean,
1930
1968
  principal: import_smithy_client._json,
1931
1969
  resource: import_smithy_client.expectString,
1970
+ resourceControlPolicyRestriction: import_smithy_client.expectString,
1932
1971
  resourceOwnerAccount: import_smithy_client.expectString,
1933
1972
  resourceType: import_smithy_client.expectString,
1934
1973
  sources: import_smithy_client._json,
@@ -2023,6 +2062,7 @@ var de_Finding = /* @__PURE__ */ __name((output, context) => {
2023
2062
  isPublic: import_smithy_client.expectBoolean,
2024
2063
  principal: import_smithy_client._json,
2025
2064
  resource: import_smithy_client.expectString,
2065
+ resourceControlPolicyRestriction: import_smithy_client.expectString,
2026
2066
  resourceOwnerAccount: import_smithy_client.expectString,
2027
2067
  resourceType: import_smithy_client.expectString,
2028
2068
  sources: import_smithy_client._json,
@@ -2087,6 +2127,7 @@ var de_FindingSummary = /* @__PURE__ */ __name((output, context) => {
2087
2127
  isPublic: import_smithy_client.expectBoolean,
2088
2128
  principal: import_smithy_client._json,
2089
2129
  resource: import_smithy_client.expectString,
2130
+ resourceControlPolicyRestriction: import_smithy_client.expectString,
2090
2131
  resourceOwnerAccount: import_smithy_client.expectString,
2091
2132
  resourceType: import_smithy_client.expectString,
2092
2133
  sources: import_smithy_client._json,
@@ -2669,6 +2710,20 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
2669
2710
  __name(_UntagResourceCommand, "UntagResourceCommand");
2670
2711
  var UntagResourceCommand = _UntagResourceCommand;
2671
2712
 
2713
+ // src/commands/UpdateAnalyzerCommand.ts
2714
+
2715
+
2716
+
2717
+ var _UpdateAnalyzerCommand = class _UpdateAnalyzerCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2718
+ return [
2719
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2720
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2721
+ ];
2722
+ }).s("AccessAnalyzer", "UpdateAnalyzer", {}).n("AccessAnalyzerClient", "UpdateAnalyzerCommand").f(void 0, void 0).ser(se_UpdateAnalyzerCommand).de(de_UpdateAnalyzerCommand).build() {
2723
+ };
2724
+ __name(_UpdateAnalyzerCommand, "UpdateAnalyzerCommand");
2725
+ var UpdateAnalyzerCommand = _UpdateAnalyzerCommand;
2726
+
2672
2727
  // src/commands/UpdateArchiveRuleCommand.ts
2673
2728
 
2674
2729
 
@@ -2745,6 +2800,7 @@ var commands = {
2745
2800
  StartResourceScanCommand,
2746
2801
  TagResourceCommand,
2747
2802
  UntagResourceCommand,
2803
+ UpdateAnalyzerCommand,
2748
2804
  UpdateArchiveRuleCommand,
2749
2805
  UpdateFindingsCommand,
2750
2806
  ValidatePolicyCommand
@@ -2838,6 +2894,7 @@ var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClie
2838
2894
  StartResourceScanCommand,
2839
2895
  TagResourceCommand,
2840
2896
  UntagResourceCommand,
2897
+ UpdateAnalyzerCommand,
2841
2898
  UpdateArchiveRuleCommand,
2842
2899
  UpdateFindingsCommand,
2843
2900
  ValidatePolicyCommand,
@@ -2877,6 +2934,7 @@ var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClie
2877
2934
  Configuration,
2878
2935
  AccessPreviewStatus,
2879
2936
  AccessPreviewStatusReasonCode,
2937
+ ResourceControlPolicyRestriction,
2880
2938
  RecommendationType,
2881
2939
  RecommendedRemediationAction,
2882
2940
  RecommendedStep,
@@ -32,6 +32,7 @@ import { StartPolicyGenerationCommand, } from "./commands/StartPolicyGenerationC
32
32
  import { StartResourceScanCommand, } from "./commands/StartResourceScanCommand";
33
33
  import { TagResourceCommand } from "./commands/TagResourceCommand";
34
34
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
35
+ import { UpdateAnalyzerCommand, } from "./commands/UpdateAnalyzerCommand";
35
36
  import { UpdateArchiveRuleCommand, } from "./commands/UpdateArchiveRuleCommand";
36
37
  import { UpdateFindingsCommand, } from "./commands/UpdateFindingsCommand";
37
38
  import { ValidatePolicyCommand, } from "./commands/ValidatePolicyCommand";
@@ -68,6 +69,7 @@ const commands = {
68
69
  StartResourceScanCommand,
69
70
  TagResourceCommand,
70
71
  UntagResourceCommand,
72
+ UpdateAnalyzerCommand,
71
73
  UpdateArchiveRuleCommand,
72
74
  UpdateFindingsCommand,
73
75
  ValidatePolicyCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateAnalyzerCommand, se_UpdateAnalyzerCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateAnalyzerCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AccessAnalyzer", "UpdateAnalyzer", {})
17
+ .n("AccessAnalyzerClient", "UpdateAnalyzerCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateAnalyzerCommand)
20
+ .de(de_UpdateAnalyzerCommand)
21
+ .build() {
22
+ }
@@ -30,6 +30,7 @@ export * from "./StartPolicyGenerationCommand";
30
30
  export * from "./StartResourceScanCommand";
31
31
  export * from "./TagResourceCommand";
32
32
  export * from "./UntagResourceCommand";
33
+ export * from "./UpdateAnalyzerCommand";
33
34
  export * from "./UpdateArchiveRuleCommand";
34
35
  export * from "./UpdateFindingsCommand";
35
36
  export * from "./ValidatePolicyCommand";
@@ -276,6 +276,11 @@ export const AccessPreviewStatusReasonCode = {
276
276
  INTERNAL_ERROR: "INTERNAL_ERROR",
277
277
  INVALID_CONFIGURATION: "INVALID_CONFIGURATION",
278
278
  };
279
+ export const ResourceControlPolicyRestriction = {
280
+ APPLICABLE: "APPLICABLE",
281
+ FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP",
282
+ NOT_APPLICABLE: "NOT_APPLICABLE",
283
+ };
279
284
  export const RecommendationType = {
280
285
  UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation",
281
286
  };
@@ -350,6 +355,7 @@ export const Locale = {
350
355
  };
351
356
  export const PolicyType = {
352
357
  IDENTITY_POLICY: "IDENTITY_POLICY",
358
+ RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY",
353
359
  RESOURCE_POLICY: "RESOURCE_POLICY",
354
360
  SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY",
355
361
  };
@@ -438,6 +438,20 @@ export const se_UntagResourceCommand = async (input, context) => {
438
438
  b.m("DELETE").h(headers).q(query).b(body);
439
439
  return b.build();
440
440
  };
441
+ export const se_UpdateAnalyzerCommand = async (input, context) => {
442
+ const b = rb(input, context);
443
+ const headers = {
444
+ "content-type": "application/json",
445
+ };
446
+ b.bp("/analyzer/{analyzerName}");
447
+ b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);
448
+ let body;
449
+ body = JSON.stringify(take(input, {
450
+ configuration: (_) => _json(_),
451
+ }));
452
+ b.m("PUT").h(headers).b(body);
453
+ return b.build();
454
+ };
441
455
  export const se_UpdateArchiveRuleCommand = async (input, context) => {
442
456
  const b = rb(input, context);
443
457
  const headers = {
@@ -936,6 +950,20 @@ export const de_UntagResourceCommand = async (output, context) => {
936
950
  await collectBody(output.body, context);
937
951
  return contents;
938
952
  };
953
+ export const de_UpdateAnalyzerCommand = async (output, context) => {
954
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
955
+ return de_CommandError(output, context);
956
+ }
957
+ const contents = map({
958
+ $metadata: deserializeMetadata(output),
959
+ });
960
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
961
+ const doc = take(data, {
962
+ configuration: (_) => _json(__expectUnion(_)),
963
+ });
964
+ Object.assign(contents, doc);
965
+ return contents;
966
+ };
939
967
  export const de_UpdateArchiveRuleCommand = async (output, context) => {
940
968
  if (output.statusCode !== 200 && output.statusCode >= 300) {
941
969
  return de_CommandError(output, context);
@@ -1175,6 +1203,7 @@ const de_AccessPreviewFinding = (output, context) => {
1175
1203
  isPublic: __expectBoolean,
1176
1204
  principal: _json,
1177
1205
  resource: __expectString,
1206
+ resourceControlPolicyRestriction: __expectString,
1178
1207
  resourceOwnerAccount: __expectString,
1179
1208
  resourceType: __expectString,
1180
1209
  sources: _json,
@@ -1277,6 +1306,7 @@ const de_Finding = (output, context) => {
1277
1306
  isPublic: __expectBoolean,
1278
1307
  principal: _json,
1279
1308
  resource: __expectString,
1309
+ resourceControlPolicyRestriction: __expectString,
1280
1310
  resourceOwnerAccount: __expectString,
1281
1311
  resourceType: __expectString,
1282
1312
  sources: _json,
@@ -1347,6 +1377,7 @@ const de_FindingSummary = (output, context) => {
1347
1377
  isPublic: __expectBoolean,
1348
1378
  principal: _json,
1349
1379
  resource: __expectString,
1380
+ resourceControlPolicyRestriction: __expectString,
1350
1381
  resourceOwnerAccount: __expectString,
1351
1382
  resourceType: __expectString,
1352
1383
  sources: _json,
@@ -32,6 +32,7 @@ import { StartPolicyGenerationCommandInput, StartPolicyGenerationCommandOutput }
32
32
  import { StartResourceScanCommandInput, StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
33
33
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
34
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateAnalyzerCommandInput, UpdateAnalyzerCommandOutput } from "./commands/UpdateAnalyzerCommand";
35
36
  import { UpdateArchiveRuleCommandInput, UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand";
36
37
  import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand";
37
38
  import { ValidatePolicyCommandInput, ValidatePolicyCommandOutput } from "./commands/ValidatePolicyCommand";
@@ -230,6 +231,12 @@ export interface AccessAnalyzer {
230
231
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
231
232
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
232
233
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
234
+ /**
235
+ * @see {@link UpdateAnalyzerCommand}
236
+ */
237
+ updateAnalyzer(args: UpdateAnalyzerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAnalyzerCommandOutput>;
238
+ updateAnalyzer(args: UpdateAnalyzerCommandInput, cb: (err: any, data?: UpdateAnalyzerCommandOutput) => void): void;
239
+ updateAnalyzer(args: UpdateAnalyzerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAnalyzerCommandOutput) => void): void;
233
240
  /**
234
241
  * @see {@link UpdateArchiveRuleCommand}
235
242
  */
@@ -39,6 +39,7 @@ import { StartPolicyGenerationCommandInput, StartPolicyGenerationCommandOutput }
39
39
  import { StartResourceScanCommandInput, StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
40
40
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
41
41
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
42
+ import { UpdateAnalyzerCommandInput, UpdateAnalyzerCommandOutput } from "./commands/UpdateAnalyzerCommand";
42
43
  import { UpdateArchiveRuleCommandInput, UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand";
43
44
  import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand";
44
45
  import { ValidatePolicyCommandInput, ValidatePolicyCommandOutput } from "./commands/ValidatePolicyCommand";
@@ -48,11 +49,11 @@ export { __Client };
48
49
  /**
49
50
  * @public
50
51
  */
51
- export type ServiceInputTypes = ApplyArchiveRuleCommandInput | CancelPolicyGenerationCommandInput | CheckAccessNotGrantedCommandInput | CheckNoNewAccessCommandInput | CheckNoPublicAccessCommandInput | CreateAccessPreviewCommandInput | CreateAnalyzerCommandInput | CreateArchiveRuleCommandInput | DeleteAnalyzerCommandInput | DeleteArchiveRuleCommandInput | GenerateFindingRecommendationCommandInput | GetAccessPreviewCommandInput | GetAnalyzedResourceCommandInput | GetAnalyzerCommandInput | GetArchiveRuleCommandInput | GetFindingCommandInput | GetFindingRecommendationCommandInput | GetFindingV2CommandInput | GetGeneratedPolicyCommandInput | ListAccessPreviewFindingsCommandInput | ListAccessPreviewsCommandInput | ListAnalyzedResourcesCommandInput | ListAnalyzersCommandInput | ListArchiveRulesCommandInput | ListFindingsCommandInput | ListFindingsV2CommandInput | ListPolicyGenerationsCommandInput | ListTagsForResourceCommandInput | StartPolicyGenerationCommandInput | StartResourceScanCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateArchiveRuleCommandInput | UpdateFindingsCommandInput | ValidatePolicyCommandInput;
52
+ export type ServiceInputTypes = ApplyArchiveRuleCommandInput | CancelPolicyGenerationCommandInput | CheckAccessNotGrantedCommandInput | CheckNoNewAccessCommandInput | CheckNoPublicAccessCommandInput | CreateAccessPreviewCommandInput | CreateAnalyzerCommandInput | CreateArchiveRuleCommandInput | DeleteAnalyzerCommandInput | DeleteArchiveRuleCommandInput | GenerateFindingRecommendationCommandInput | GetAccessPreviewCommandInput | GetAnalyzedResourceCommandInput | GetAnalyzerCommandInput | GetArchiveRuleCommandInput | GetFindingCommandInput | GetFindingRecommendationCommandInput | GetFindingV2CommandInput | GetGeneratedPolicyCommandInput | ListAccessPreviewFindingsCommandInput | ListAccessPreviewsCommandInput | ListAnalyzedResourcesCommandInput | ListAnalyzersCommandInput | ListArchiveRulesCommandInput | ListFindingsCommandInput | ListFindingsV2CommandInput | ListPolicyGenerationsCommandInput | ListTagsForResourceCommandInput | StartPolicyGenerationCommandInput | StartResourceScanCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnalyzerCommandInput | UpdateArchiveRuleCommandInput | UpdateFindingsCommandInput | ValidatePolicyCommandInput;
52
53
  /**
53
54
  * @public
54
55
  */
55
- export type ServiceOutputTypes = ApplyArchiveRuleCommandOutput | CancelPolicyGenerationCommandOutput | CheckAccessNotGrantedCommandOutput | CheckNoNewAccessCommandOutput | CheckNoPublicAccessCommandOutput | CreateAccessPreviewCommandOutput | CreateAnalyzerCommandOutput | CreateArchiveRuleCommandOutput | DeleteAnalyzerCommandOutput | DeleteArchiveRuleCommandOutput | GenerateFindingRecommendationCommandOutput | GetAccessPreviewCommandOutput | GetAnalyzedResourceCommandOutput | GetAnalyzerCommandOutput | GetArchiveRuleCommandOutput | GetFindingCommandOutput | GetFindingRecommendationCommandOutput | GetFindingV2CommandOutput | GetGeneratedPolicyCommandOutput | ListAccessPreviewFindingsCommandOutput | ListAccessPreviewsCommandOutput | ListAnalyzedResourcesCommandOutput | ListAnalyzersCommandOutput | ListArchiveRulesCommandOutput | ListFindingsCommandOutput | ListFindingsV2CommandOutput | ListPolicyGenerationsCommandOutput | ListTagsForResourceCommandOutput | StartPolicyGenerationCommandOutput | StartResourceScanCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateArchiveRuleCommandOutput | UpdateFindingsCommandOutput | ValidatePolicyCommandOutput;
56
+ export type ServiceOutputTypes = ApplyArchiveRuleCommandOutput | CancelPolicyGenerationCommandOutput | CheckAccessNotGrantedCommandOutput | CheckNoNewAccessCommandOutput | CheckNoPublicAccessCommandOutput | CreateAccessPreviewCommandOutput | CreateAnalyzerCommandOutput | CreateArchiveRuleCommandOutput | DeleteAnalyzerCommandOutput | DeleteArchiveRuleCommandOutput | GenerateFindingRecommendationCommandOutput | GetAccessPreviewCommandOutput | GetAnalyzedResourceCommandOutput | GetAnalyzerCommandOutput | GetArchiveRuleCommandOutput | GetFindingCommandOutput | GetFindingRecommendationCommandOutput | GetFindingV2CommandOutput | GetGeneratedPolicyCommandOutput | ListAccessPreviewFindingsCommandOutput | ListAccessPreviewsCommandOutput | ListAnalyzedResourcesCommandOutput | ListAnalyzersCommandOutput | ListArchiveRulesCommandOutput | ListFindingsCommandOutput | ListFindingsV2CommandOutput | ListPolicyGenerationsCommandOutput | ListTagsForResourceCommandOutput | StartPolicyGenerationCommandOutput | StartResourceScanCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnalyzerCommandOutput | UpdateArchiveRuleCommandOutput | UpdateFindingsCommandOutput | ValidatePolicyCommandOutput;
56
57
  /**
57
58
  * @public
58
59
  */
@@ -63,6 +63,20 @@ declare const CreateAnalyzerCommand_base: {
63
63
  * configuration: { // AnalyzerConfiguration Union: only one key present
64
64
  * unusedAccess: { // UnusedAccessConfiguration
65
65
  * unusedAccessAge: Number("int"),
66
+ * analysisRule: { // AnalysisRule
67
+ * exclusions: [ // AnalysisRuleCriteriaList
68
+ * { // AnalysisRuleCriteria
69
+ * accountIds: [ // AccountIdsList
70
+ * "STRING_VALUE",
71
+ * ],
72
+ * resourceTags: [ // TagsList
73
+ * {
74
+ * "<keys>": "STRING_VALUE",
75
+ * },
76
+ * ],
77
+ * },
78
+ * ],
79
+ * },
66
80
  * },
67
81
  * },
68
82
  * };
@@ -57,6 +57,20 @@ declare const GetAnalyzerCommand_base: {
57
57
  * // configuration: { // AnalyzerConfiguration Union: only one key present
58
58
  * // unusedAccess: { // UnusedAccessConfiguration
59
59
  * // unusedAccessAge: Number("int"),
60
+ * // analysisRule: { // AnalysisRule
61
+ * // exclusions: [ // AnalysisRuleCriteriaList
62
+ * // { // AnalysisRuleCriteria
63
+ * // accountIds: [ // AccountIdsList
64
+ * // "STRING_VALUE",
65
+ * // ],
66
+ * // resourceTags: [ // TagsList
67
+ * // {
68
+ * // "<keys>": "STRING_VALUE",
69
+ * // },
70
+ * // ],
71
+ * // },
72
+ * // ],
73
+ * // },
60
74
  * // },
61
75
  * // },
62
76
  * // },
@@ -73,6 +73,7 @@ declare const GetFindingCommand_base: {
73
73
  * // },
74
74
  * // },
75
75
  * // ],
76
+ * // resourceControlPolicyRestriction: "STRING_VALUE",
76
77
  * // },
77
78
  * // };
78
79
  *
@@ -78,6 +78,7 @@ declare const GetFindingV2Command_base: {
78
78
  * // },
79
79
  * // },
80
80
  * // ],
81
+ * // resourceControlPolicyRestriction: "STRING_VALUE",
81
82
  * // },
82
83
  * // unusedPermissionDetails: { // UnusedPermissionDetails
83
84
  * // actions: [ // UnusedActionList
@@ -89,6 +89,7 @@ declare const ListAccessPreviewFindingsCommand_base: {
89
89
  * // },
90
90
  * // },
91
91
  * // ],
92
+ * // resourceControlPolicyRestriction: "STRING_VALUE",
92
93
  * // },
93
94
  * // ],
94
95
  * // nextToken: "STRING_VALUE",
@@ -28,8 +28,7 @@ declare const ListAnalyzedResourcesCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Retrieves a list of resources of the specified type that have been analyzed by the
31
- * specified external access analyzer. This action is not supported for unused access
32
- * analyzers.</p>
31
+ * specified analyzer.</p>
33
32
  * @example
34
33
  * Use a bare-bones client and the command you need to make an API call.
35
34
  * ```javascript
@@ -60,6 +60,20 @@ declare const ListAnalyzersCommand_base: {
60
60
  * // configuration: { // AnalyzerConfiguration Union: only one key present
61
61
  * // unusedAccess: { // UnusedAccessConfiguration
62
62
  * // unusedAccessAge: Number("int"),
63
+ * // analysisRule: { // AnalysisRule
64
+ * // exclusions: [ // AnalysisRuleCriteriaList
65
+ * // { // AnalysisRuleCriteria
66
+ * // accountIds: [ // AccountIdsList
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // resourceTags: [ // TagsList
70
+ * // {
71
+ * // "<keys>": "STRING_VALUE",
72
+ * // },
73
+ * // ],
74
+ * // },
75
+ * // ],
76
+ * // },
63
77
  * // },
64
78
  * // },
65
79
  * // },
@@ -94,6 +94,7 @@ declare const ListFindingsCommand_base: {
94
94
  * // },
95
95
  * // },
96
96
  * // ],
97
+ * // resourceControlPolicyRestriction: "STRING_VALUE",
97
98
  * // },
98
99
  * // ],
99
100
  * // nextToken: "STRING_VALUE",
@@ -0,0 +1,126 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
4
+ import { UpdateAnalyzerRequest, UpdateAnalyzerResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateAnalyzerCommand}.
14
+ */
15
+ export interface UpdateAnalyzerCommandInput extends UpdateAnalyzerRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateAnalyzerCommand}.
21
+ */
22
+ export interface UpdateAnalyzerCommandOutput extends UpdateAnalyzerResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateAnalyzerCommand_base: {
25
+ new (input: UpdateAnalyzerCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAnalyzerCommandInput, UpdateAnalyzerCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateAnalyzerCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAnalyzerCommandInput, UpdateAnalyzerCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Modifies the configuration of an existing analyzer.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AccessAnalyzerClient, UpdateAnalyzerCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
35
+ * // const { AccessAnalyzerClient, UpdateAnalyzerCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
36
+ * const client = new AccessAnalyzerClient(config);
37
+ * const input = { // UpdateAnalyzerRequest
38
+ * analyzerName: "STRING_VALUE", // required
39
+ * configuration: { // AnalyzerConfiguration Union: only one key present
40
+ * unusedAccess: { // UnusedAccessConfiguration
41
+ * unusedAccessAge: Number("int"),
42
+ * analysisRule: { // AnalysisRule
43
+ * exclusions: [ // AnalysisRuleCriteriaList
44
+ * { // AnalysisRuleCriteria
45
+ * accountIds: [ // AccountIdsList
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * resourceTags: [ // TagsList
49
+ * { // TagsMap
50
+ * "<keys>": "STRING_VALUE",
51
+ * },
52
+ * ],
53
+ * },
54
+ * ],
55
+ * },
56
+ * },
57
+ * },
58
+ * };
59
+ * const command = new UpdateAnalyzerCommand(input);
60
+ * const response = await client.send(command);
61
+ * // { // UpdateAnalyzerResponse
62
+ * // configuration: { // AnalyzerConfiguration Union: only one key present
63
+ * // unusedAccess: { // UnusedAccessConfiguration
64
+ * // unusedAccessAge: Number("int"),
65
+ * // analysisRule: { // AnalysisRule
66
+ * // exclusions: [ // AnalysisRuleCriteriaList
67
+ * // { // AnalysisRuleCriteria
68
+ * // accountIds: [ // AccountIdsList
69
+ * // "STRING_VALUE",
70
+ * // ],
71
+ * // resourceTags: [ // TagsList
72
+ * // { // TagsMap
73
+ * // "<keys>": "STRING_VALUE",
74
+ * // },
75
+ * // ],
76
+ * // },
77
+ * // ],
78
+ * // },
79
+ * // },
80
+ * // },
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param UpdateAnalyzerCommandInput - {@link UpdateAnalyzerCommandInput}
86
+ * @returns {@link UpdateAnalyzerCommandOutput}
87
+ * @see {@link UpdateAnalyzerCommandInput} for command's `input` shape.
88
+ * @see {@link UpdateAnalyzerCommandOutput} for command's `response` shape.
89
+ * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
90
+ *
91
+ * @throws {@link AccessDeniedException} (client fault)
92
+ * <p>You do not have sufficient access to perform this action.</p>
93
+ *
94
+ * @throws {@link ConflictException} (client fault)
95
+ * <p>A conflict exception error.</p>
96
+ *
97
+ * @throws {@link InternalServerException} (server fault)
98
+ * <p>Internal server error.</p>
99
+ *
100
+ * @throws {@link ResourceNotFoundException} (client fault)
101
+ * <p>The specified resource could not be found.</p>
102
+ *
103
+ * @throws {@link ThrottlingException} (client fault)
104
+ * <p>Throttling limit exceeded error.</p>
105
+ *
106
+ * @throws {@link ValidationException} (client fault)
107
+ * <p>Validation exception error.</p>
108
+ *
109
+ * @throws {@link AccessAnalyzerServiceException}
110
+ * <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
111
+ *
112
+ * @public
113
+ */
114
+ export declare class UpdateAnalyzerCommand extends UpdateAnalyzerCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: UpdateAnalyzerRequest;
119
+ output: UpdateAnalyzerResponse;
120
+ };
121
+ sdk: {
122
+ input: UpdateAnalyzerCommandInput;
123
+ output: UpdateAnalyzerCommandOutput;
124
+ };
125
+ };
126
+ }
@@ -30,6 +30,7 @@ export * from "./StartPolicyGenerationCommand";
30
30
  export * from "./StartResourceScanCommand";
31
31
  export * from "./TagResourceCommand";
32
32
  export * from "./UntagResourceCommand";
33
+ export * from "./UpdateAnalyzerCommand";
33
34
  export * from "./UpdateArchiveRuleCommand";
34
35
  export * from "./UpdateFindingsCommand";
35
36
  export * from "./ValidatePolicyCommand";