@aws-sdk/client-accessanalyzer 3.744.0 → 3.748.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 +8 -0
- package/dist-cjs/index.js +60 -0
- package/dist-es/AccessAnalyzer.js +2 -0
- package/dist-es/commands/GetFindingsStatisticsCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -0
- package/dist-types/AccessAnalyzer.d.ts +7 -0
- package/dist-types/AccessAnalyzerClient.d.ts +3 -2
- package/dist-types/commands/GetFindingsStatisticsCommand.d.ts +122 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +191 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +17 -0
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetFindingsStatisticsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +66 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -361,6 +361,14 @@ GetFindingRecommendation
|
|
|
361
361
|
|
|
362
362
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/GetFindingRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetFindingRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetFindingRecommendationCommandOutput/)
|
|
363
363
|
|
|
364
|
+
</details>
|
|
365
|
+
<details>
|
|
366
|
+
<summary>
|
|
367
|
+
GetFindingsStatistics
|
|
368
|
+
</summary>
|
|
369
|
+
|
|
370
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/accessanalyzer/command/GetFindingsStatisticsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetFindingsStatisticsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-accessanalyzer/Interface/GetFindingsStatisticsCommandOutput/)
|
|
371
|
+
|
|
364
372
|
</details>
|
|
365
373
|
<details>
|
|
366
374
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
FindingChangeType: () => FindingChangeType,
|
|
54
54
|
FindingDetails: () => FindingDetails,
|
|
55
55
|
FindingType: () => FindingType,
|
|
56
|
+
FindingsStatistics: () => FindingsStatistics,
|
|
56
57
|
GenerateFindingRecommendationCommand: () => GenerateFindingRecommendationCommand,
|
|
57
58
|
GetAccessPreviewCommand: () => GetAccessPreviewCommand,
|
|
58
59
|
GetAnalyzedResourceCommand: () => GetAnalyzedResourceCommand,
|
|
@@ -61,6 +62,7 @@ __export(src_exports, {
|
|
|
61
62
|
GetFindingCommand: () => GetFindingCommand,
|
|
62
63
|
GetFindingRecommendationCommand: () => GetFindingRecommendationCommand,
|
|
63
64
|
GetFindingV2Command: () => GetFindingV2Command,
|
|
65
|
+
GetFindingsStatisticsCommand: () => GetFindingsStatisticsCommand,
|
|
64
66
|
GetGeneratedPolicyCommand: () => GetGeneratedPolicyCommand,
|
|
65
67
|
InternalServerException: () => InternalServerException,
|
|
66
68
|
InvalidParameterException: () => InvalidParameterException,
|
|
@@ -696,6 +698,16 @@ var Status = {
|
|
|
696
698
|
IN_PROGRESS: "IN_PROGRESS",
|
|
697
699
|
SUCCEEDED: "SUCCEEDED"
|
|
698
700
|
};
|
|
701
|
+
var FindingsStatistics;
|
|
702
|
+
((FindingsStatistics2) => {
|
|
703
|
+
FindingsStatistics2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
704
|
+
if (value.externalAccessFindingsStatistics !== void 0)
|
|
705
|
+
return visitor.externalAccessFindingsStatistics(value.externalAccessFindingsStatistics);
|
|
706
|
+
if (value.unusedAccessFindingsStatistics !== void 0)
|
|
707
|
+
return visitor.unusedAccessFindingsStatistics(value.unusedAccessFindingsStatistics);
|
|
708
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
709
|
+
}, "visit");
|
|
710
|
+
})(FindingsStatistics || (FindingsStatistics = {}));
|
|
699
711
|
var FindingDetails;
|
|
700
712
|
((FindingDetails3) => {
|
|
701
713
|
FindingDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -1034,6 +1046,21 @@ var se_GetFindingRecommendationCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1034
1046
|
b.m("GET").h(headers).q(query).b(body);
|
|
1035
1047
|
return b.build();
|
|
1036
1048
|
}, "se_GetFindingRecommendationCommand");
|
|
1049
|
+
var se_GetFindingsStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1050
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1051
|
+
const headers = {
|
|
1052
|
+
"content-type": "application/json"
|
|
1053
|
+
};
|
|
1054
|
+
b.bp("/analyzer/findings/statistics");
|
|
1055
|
+
let body;
|
|
1056
|
+
body = JSON.stringify(
|
|
1057
|
+
(0, import_smithy_client.take)(input, {
|
|
1058
|
+
analyzerArn: []
|
|
1059
|
+
})
|
|
1060
|
+
);
|
|
1061
|
+
b.m("POST").h(headers).b(body);
|
|
1062
|
+
return b.build();
|
|
1063
|
+
}, "se_GetFindingsStatisticsCommand");
|
|
1037
1064
|
var se_GetFindingV2Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
1038
1065
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1039
1066
|
const headers = {};
|
|
@@ -1561,6 +1588,21 @@ var de_GetFindingRecommendationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1561
1588
|
Object.assign(contents, doc);
|
|
1562
1589
|
return contents;
|
|
1563
1590
|
}, "de_GetFindingRecommendationCommand");
|
|
1591
|
+
var de_GetFindingsStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1593
|
+
return de_CommandError(output, context);
|
|
1594
|
+
}
|
|
1595
|
+
const contents = (0, import_smithy_client.map)({
|
|
1596
|
+
$metadata: deserializeMetadata(output)
|
|
1597
|
+
});
|
|
1598
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1599
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1600
|
+
findingsStatistics: import_smithy_client._json,
|
|
1601
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1602
|
+
});
|
|
1603
|
+
Object.assign(contents, doc);
|
|
1604
|
+
return contents;
|
|
1605
|
+
}, "de_GetFindingsStatisticsCommand");
|
|
1564
1606
|
var de_GetFindingV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
1565
1607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
1608
|
return de_CommandError(output, context);
|
|
@@ -2582,6 +2624,21 @@ var GetFindingRecommendationCommand = class extends import_smithy_client.Command
|
|
|
2582
2624
|
}
|
|
2583
2625
|
};
|
|
2584
2626
|
|
|
2627
|
+
// src/commands/GetFindingsStatisticsCommand.ts
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
var GetFindingsStatisticsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2632
|
+
return [
|
|
2633
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2634
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2635
|
+
];
|
|
2636
|
+
}).s("AccessAnalyzer", "GetFindingsStatistics", {}).n("AccessAnalyzerClient", "GetFindingsStatisticsCommand").f(void 0, void 0).ser(se_GetFindingsStatisticsCommand).de(de_GetFindingsStatisticsCommand).build() {
|
|
2637
|
+
static {
|
|
2638
|
+
__name(this, "GetFindingsStatisticsCommand");
|
|
2639
|
+
}
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2585
2642
|
// src/commands/GetFindingV2Command.ts
|
|
2586
2643
|
|
|
2587
2644
|
|
|
@@ -2886,6 +2943,7 @@ var commands = {
|
|
|
2886
2943
|
GetArchiveRuleCommand,
|
|
2887
2944
|
GetFindingCommand,
|
|
2888
2945
|
GetFindingRecommendationCommand,
|
|
2946
|
+
GetFindingsStatisticsCommand,
|
|
2889
2947
|
GetFindingV2Command,
|
|
2890
2948
|
GetGeneratedPolicyCommand,
|
|
2891
2949
|
ListAccessPreviewFindingsCommand,
|
|
@@ -2982,6 +3040,7 @@ var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClie
|
|
|
2982
3040
|
GetFindingCommand,
|
|
2983
3041
|
GetFindingRecommendationCommand,
|
|
2984
3042
|
GetFindingV2Command,
|
|
3043
|
+
GetFindingsStatisticsCommand,
|
|
2985
3044
|
GetGeneratedPolicyCommand,
|
|
2986
3045
|
ListAccessPreviewFindingsCommand,
|
|
2987
3046
|
ListAccessPreviewsCommand,
|
|
@@ -3041,6 +3100,7 @@ var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClie
|
|
|
3041
3100
|
RecommendedRemediationAction,
|
|
3042
3101
|
RecommendedStep,
|
|
3043
3102
|
Status,
|
|
3103
|
+
FindingsStatistics,
|
|
3044
3104
|
FindingDetails,
|
|
3045
3105
|
FindingType,
|
|
3046
3106
|
JobErrorCode,
|
|
@@ -17,6 +17,7 @@ import { GetAnalyzerCommand } from "./commands/GetAnalyzerCommand";
|
|
|
17
17
|
import { GetArchiveRuleCommand, } from "./commands/GetArchiveRuleCommand";
|
|
18
18
|
import { GetFindingCommand } from "./commands/GetFindingCommand";
|
|
19
19
|
import { GetFindingRecommendationCommand, } from "./commands/GetFindingRecommendationCommand";
|
|
20
|
+
import { GetFindingsStatisticsCommand, } from "./commands/GetFindingsStatisticsCommand";
|
|
20
21
|
import { GetFindingV2Command, } from "./commands/GetFindingV2Command";
|
|
21
22
|
import { GetGeneratedPolicyCommand, } from "./commands/GetGeneratedPolicyCommand";
|
|
22
23
|
import { ListAccessPreviewFindingsCommand, } from "./commands/ListAccessPreviewFindingsCommand";
|
|
@@ -54,6 +55,7 @@ const commands = {
|
|
|
54
55
|
GetArchiveRuleCommand,
|
|
55
56
|
GetFindingCommand,
|
|
56
57
|
GetFindingRecommendationCommand,
|
|
58
|
+
GetFindingsStatisticsCommand,
|
|
57
59
|
GetFindingV2Command,
|
|
58
60
|
GetGeneratedPolicyCommand,
|
|
59
61
|
ListAccessPreviewFindingsCommand,
|
|
@@ -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_GetFindingsStatisticsCommand, se_GetFindingsStatisticsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetFindingsStatisticsCommand 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", "GetFindingsStatistics", {})
|
|
17
|
+
.n("AccessAnalyzerClient", "GetFindingsStatisticsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetFindingsStatisticsCommand)
|
|
20
|
+
.de(de_GetFindingsStatisticsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -16,6 +16,7 @@ export * from "./GetArchiveRuleCommand";
|
|
|
16
16
|
export * from "./GetFindingCommand";
|
|
17
17
|
export * from "./GetFindingRecommendationCommand";
|
|
18
18
|
export * from "./GetFindingV2Command";
|
|
19
|
+
export * from "./GetFindingsStatisticsCommand";
|
|
19
20
|
export * from "./GetGeneratedPolicyCommand";
|
|
20
21
|
export * from "./ListAccessPreviewFindingsCommand";
|
|
21
22
|
export * from "./ListAccessPreviewsCommand";
|
|
@@ -311,6 +311,16 @@ export const Status = {
|
|
|
311
311
|
IN_PROGRESS: "IN_PROGRESS",
|
|
312
312
|
SUCCEEDED: "SUCCEEDED",
|
|
313
313
|
};
|
|
314
|
+
export var FindingsStatistics;
|
|
315
|
+
(function (FindingsStatistics) {
|
|
316
|
+
FindingsStatistics.visit = (value, visitor) => {
|
|
317
|
+
if (value.externalAccessFindingsStatistics !== undefined)
|
|
318
|
+
return visitor.externalAccessFindingsStatistics(value.externalAccessFindingsStatistics);
|
|
319
|
+
if (value.unusedAccessFindingsStatistics !== undefined)
|
|
320
|
+
return visitor.unusedAccessFindingsStatistics(value.unusedAccessFindingsStatistics);
|
|
321
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
322
|
+
};
|
|
323
|
+
})(FindingsStatistics || (FindingsStatistics = {}));
|
|
314
324
|
export var FindingDetails;
|
|
315
325
|
(function (FindingDetails) {
|
|
316
326
|
FindingDetails.visit = (value, visitor) => {
|
|
@@ -227,6 +227,19 @@ export const se_GetFindingRecommendationCommand = async (input, context) => {
|
|
|
227
227
|
b.m("GET").h(headers).q(query).b(body);
|
|
228
228
|
return b.build();
|
|
229
229
|
};
|
|
230
|
+
export const se_GetFindingsStatisticsCommand = async (input, context) => {
|
|
231
|
+
const b = rb(input, context);
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/json",
|
|
234
|
+
};
|
|
235
|
+
b.bp("/analyzer/findings/statistics");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(take(input, {
|
|
238
|
+
analyzerArn: [],
|
|
239
|
+
}));
|
|
240
|
+
b.m("POST").h(headers).b(body);
|
|
241
|
+
return b.build();
|
|
242
|
+
};
|
|
230
243
|
export const se_GetFindingV2Command = async (input, context) => {
|
|
231
244
|
const b = rb(input, context);
|
|
232
245
|
const headers = {};
|
|
@@ -732,6 +745,21 @@ export const de_GetFindingRecommendationCommand = async (output, context) => {
|
|
|
732
745
|
Object.assign(contents, doc);
|
|
733
746
|
return contents;
|
|
734
747
|
};
|
|
748
|
+
export const de_GetFindingsStatisticsCommand = async (output, context) => {
|
|
749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
+
return de_CommandError(output, context);
|
|
751
|
+
}
|
|
752
|
+
const contents = map({
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
});
|
|
755
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
756
|
+
const doc = take(data, {
|
|
757
|
+
findingsStatistics: _json,
|
|
758
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
761
|
+
return contents;
|
|
762
|
+
};
|
|
735
763
|
export const de_GetFindingV2Command = async (output, context) => {
|
|
736
764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
765
|
return de_CommandError(output, context);
|
|
@@ -17,6 +17,7 @@ import { GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "./commands/Ge
|
|
|
17
17
|
import { GetArchiveRuleCommandInput, GetArchiveRuleCommandOutput } from "./commands/GetArchiveRuleCommand";
|
|
18
18
|
import { GetFindingCommandInput, GetFindingCommandOutput } from "./commands/GetFindingCommand";
|
|
19
19
|
import { GetFindingRecommendationCommandInput, GetFindingRecommendationCommandOutput } from "./commands/GetFindingRecommendationCommand";
|
|
20
|
+
import { GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput } from "./commands/GetFindingsStatisticsCommand";
|
|
20
21
|
import { GetFindingV2CommandInput, GetFindingV2CommandOutput } from "./commands/GetFindingV2Command";
|
|
21
22
|
import { GetGeneratedPolicyCommandInput, GetGeneratedPolicyCommandOutput } from "./commands/GetGeneratedPolicyCommand";
|
|
22
23
|
import { ListAccessPreviewFindingsCommandInput, ListAccessPreviewFindingsCommandOutput } from "./commands/ListAccessPreviewFindingsCommand";
|
|
@@ -139,6 +140,12 @@ export interface AccessAnalyzer {
|
|
|
139
140
|
getFindingRecommendation(args: GetFindingRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetFindingRecommendationCommandOutput>;
|
|
140
141
|
getFindingRecommendation(args: GetFindingRecommendationCommandInput, cb: (err: any, data?: GetFindingRecommendationCommandOutput) => void): void;
|
|
141
142
|
getFindingRecommendation(args: GetFindingRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFindingRecommendationCommandOutput) => void): void;
|
|
143
|
+
/**
|
|
144
|
+
* @see {@link GetFindingsStatisticsCommand}
|
|
145
|
+
*/
|
|
146
|
+
getFindingsStatistics(args: GetFindingsStatisticsCommandInput, options?: __HttpHandlerOptions): Promise<GetFindingsStatisticsCommandOutput>;
|
|
147
|
+
getFindingsStatistics(args: GetFindingsStatisticsCommandInput, cb: (err: any, data?: GetFindingsStatisticsCommandOutput) => void): void;
|
|
148
|
+
getFindingsStatistics(args: GetFindingsStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFindingsStatisticsCommandOutput) => void): void;
|
|
142
149
|
/**
|
|
143
150
|
* @see {@link GetFindingV2Command}
|
|
144
151
|
*/
|
|
@@ -24,6 +24,7 @@ import { GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "./commands/Ge
|
|
|
24
24
|
import { GetArchiveRuleCommandInput, GetArchiveRuleCommandOutput } from "./commands/GetArchiveRuleCommand";
|
|
25
25
|
import { GetFindingCommandInput, GetFindingCommandOutput } from "./commands/GetFindingCommand";
|
|
26
26
|
import { GetFindingRecommendationCommandInput, GetFindingRecommendationCommandOutput } from "./commands/GetFindingRecommendationCommand";
|
|
27
|
+
import { GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput } from "./commands/GetFindingsStatisticsCommand";
|
|
27
28
|
import { GetFindingV2CommandInput, GetFindingV2CommandOutput } from "./commands/GetFindingV2Command";
|
|
28
29
|
import { GetGeneratedPolicyCommandInput, GetGeneratedPolicyCommandOutput } from "./commands/GetGeneratedPolicyCommand";
|
|
29
30
|
import { ListAccessPreviewFindingsCommandInput, ListAccessPreviewFindingsCommandOutput } from "./commands/ListAccessPreviewFindingsCommand";
|
|
@@ -49,11 +50,11 @@ export { __Client };
|
|
|
49
50
|
/**
|
|
50
51
|
* @public
|
|
51
52
|
*/
|
|
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;
|
|
53
|
+
export type ServiceInputTypes = ApplyArchiveRuleCommandInput | CancelPolicyGenerationCommandInput | CheckAccessNotGrantedCommandInput | CheckNoNewAccessCommandInput | CheckNoPublicAccessCommandInput | CreateAccessPreviewCommandInput | CreateAnalyzerCommandInput | CreateArchiveRuleCommandInput | DeleteAnalyzerCommandInput | DeleteArchiveRuleCommandInput | GenerateFindingRecommendationCommandInput | GetAccessPreviewCommandInput | GetAnalyzedResourceCommandInput | GetAnalyzerCommandInput | GetArchiveRuleCommandInput | GetFindingCommandInput | GetFindingRecommendationCommandInput | GetFindingV2CommandInput | GetFindingsStatisticsCommandInput | GetGeneratedPolicyCommandInput | ListAccessPreviewFindingsCommandInput | ListAccessPreviewsCommandInput | ListAnalyzedResourcesCommandInput | ListAnalyzersCommandInput | ListArchiveRulesCommandInput | ListFindingsCommandInput | ListFindingsV2CommandInput | ListPolicyGenerationsCommandInput | ListTagsForResourceCommandInput | StartPolicyGenerationCommandInput | StartResourceScanCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnalyzerCommandInput | UpdateArchiveRuleCommandInput | UpdateFindingsCommandInput | ValidatePolicyCommandInput;
|
|
53
54
|
/**
|
|
54
55
|
* @public
|
|
55
56
|
*/
|
|
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;
|
|
57
|
+
export type ServiceOutputTypes = ApplyArchiveRuleCommandOutput | CancelPolicyGenerationCommandOutput | CheckAccessNotGrantedCommandOutput | CheckNoNewAccessCommandOutput | CheckNoPublicAccessCommandOutput | CreateAccessPreviewCommandOutput | CreateAnalyzerCommandOutput | CreateArchiveRuleCommandOutput | DeleteAnalyzerCommandOutput | DeleteArchiveRuleCommandOutput | GenerateFindingRecommendationCommandOutput | GetAccessPreviewCommandOutput | GetAnalyzedResourceCommandOutput | GetAnalyzerCommandOutput | GetArchiveRuleCommandOutput | GetFindingCommandOutput | GetFindingRecommendationCommandOutput | GetFindingV2CommandOutput | GetFindingsStatisticsCommandOutput | GetGeneratedPolicyCommandOutput | ListAccessPreviewFindingsCommandOutput | ListAccessPreviewsCommandOutput | ListAnalyzedResourcesCommandOutput | ListAnalyzersCommandOutput | ListArchiveRulesCommandOutput | ListFindingsCommandOutput | ListFindingsV2CommandOutput | ListPolicyGenerationsCommandOutput | ListTagsForResourceCommandOutput | StartPolicyGenerationCommandOutput | StartResourceScanCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnalyzerCommandOutput | UpdateArchiveRuleCommandOutput | UpdateFindingsCommandOutput | ValidatePolicyCommandOutput;
|
|
57
58
|
/**
|
|
58
59
|
* @public
|
|
59
60
|
*/
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { GetFindingsStatisticsRequest, GetFindingsStatisticsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetFindingsStatisticsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetFindingsStatisticsCommandInput extends GetFindingsStatisticsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetFindingsStatisticsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetFindingsStatisticsCommandOutput extends GetFindingsStatisticsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetFindingsStatisticsCommand_base: {
|
|
25
|
+
new (input: GetFindingsStatisticsCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetFindingsStatisticsCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves a list of aggregated finding statistics for an external access or unused
|
|
31
|
+
* access analyzer.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { AccessAnalyzerClient, GetFindingsStatisticsCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
|
|
36
|
+
* // const { AccessAnalyzerClient, GetFindingsStatisticsCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
|
|
37
|
+
* const client = new AccessAnalyzerClient(config);
|
|
38
|
+
* const input = { // GetFindingsStatisticsRequest
|
|
39
|
+
* analyzerArn: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetFindingsStatisticsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetFindingsStatisticsResponse
|
|
44
|
+
* // findingsStatistics: [ // FindingsStatisticsList
|
|
45
|
+
* // { // FindingsStatistics Union: only one key present
|
|
46
|
+
* // externalAccessFindingsStatistics: { // ExternalAccessFindingsStatistics
|
|
47
|
+
* // resourceTypeStatistics: { // ResourceTypeStatisticsMap
|
|
48
|
+
* // "<keys>": { // ResourceTypeDetails
|
|
49
|
+
* // totalActivePublic: Number("int"),
|
|
50
|
+
* // totalActiveCrossAccount: Number("int"),
|
|
51
|
+
* // },
|
|
52
|
+
* // },
|
|
53
|
+
* // totalActiveFindings: Number("int"),
|
|
54
|
+
* // totalArchivedFindings: Number("int"),
|
|
55
|
+
* // totalResolvedFindings: Number("int"),
|
|
56
|
+
* // },
|
|
57
|
+
* // unusedAccessFindingsStatistics: { // UnusedAccessFindingsStatistics
|
|
58
|
+
* // unusedAccessTypeStatistics: [ // UnusedAccessTypeStatisticsList
|
|
59
|
+
* // { // UnusedAccessTypeStatistics
|
|
60
|
+
* // unusedAccessType: "STRING_VALUE",
|
|
61
|
+
* // total: Number("int"),
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // topAccounts: [ // AccountAggregations
|
|
65
|
+
* // { // FindingAggregationAccountDetails
|
|
66
|
+
* // account: "STRING_VALUE",
|
|
67
|
+
* // numberOfActiveFindings: Number("int"),
|
|
68
|
+
* // details: { // FindingAggregationAccountDetailsMap
|
|
69
|
+
* // "<keys>": Number("int"),
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // totalActiveFindings: Number("int"),
|
|
74
|
+
* // totalArchivedFindings: Number("int"),
|
|
75
|
+
* // totalResolvedFindings: Number("int"),
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"),
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param GetFindingsStatisticsCommandInput - {@link GetFindingsStatisticsCommandInput}
|
|
85
|
+
* @returns {@link GetFindingsStatisticsCommandOutput}
|
|
86
|
+
* @see {@link GetFindingsStatisticsCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link GetFindingsStatisticsCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
91
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* <p>Internal server error.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
97
|
+
* <p>The specified resource could not be found.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
100
|
+
* <p>Throttling limit exceeded error.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ValidationException} (client fault)
|
|
103
|
+
* <p>Validation exception error.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link AccessAnalyzerServiceException}
|
|
106
|
+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class GetFindingsStatisticsCommand extends GetFindingsStatisticsCommand_base {
|
|
111
|
+
/** @internal type navigation helper, not in runtime. */
|
|
112
|
+
protected static __types: {
|
|
113
|
+
api: {
|
|
114
|
+
input: GetFindingsStatisticsRequest;
|
|
115
|
+
output: GetFindingsStatisticsResponse;
|
|
116
|
+
};
|
|
117
|
+
sdk: {
|
|
118
|
+
input: GetFindingsStatisticsCommandInput;
|
|
119
|
+
output: GetFindingsStatisticsCommandOutput;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -16,6 +16,7 @@ export * from "./GetArchiveRuleCommand";
|
|
|
16
16
|
export * from "./GetFindingCommand";
|
|
17
17
|
export * from "./GetFindingRecommendationCommand";
|
|
18
18
|
export * from "./GetFindingV2Command";
|
|
19
|
+
export * from "./GetFindingsStatisticsCommand";
|
|
19
20
|
export * from "./GetGeneratedPolicyCommand";
|
|
20
21
|
export * from "./ListAccessPreviewFindingsCommand";
|
|
21
22
|
export * from "./ListAccessPreviewsCommand";
|
|
@@ -2841,6 +2841,197 @@ export interface GetFindingRecommendationResponse {
|
|
|
2841
2841
|
*/
|
|
2842
2842
|
status: Status | undefined;
|
|
2843
2843
|
}
|
|
2844
|
+
/**
|
|
2845
|
+
* @public
|
|
2846
|
+
*/
|
|
2847
|
+
export interface GetFindingsStatisticsRequest {
|
|
2848
|
+
/**
|
|
2849
|
+
* <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
|
|
2850
|
+
* the analyzer</a> used to generate the statistics.</p>
|
|
2851
|
+
* @public
|
|
2852
|
+
*/
|
|
2853
|
+
analyzerArn: string | undefined;
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* <p>Contains information about the total number of active cross-account and public findings
|
|
2857
|
+
* for a resource type of an external access analyzer.</p>
|
|
2858
|
+
* @public
|
|
2859
|
+
*/
|
|
2860
|
+
export interface ResourceTypeDetails {
|
|
2861
|
+
/**
|
|
2862
|
+
* <p>The total number of active public findings for the resource type.</p>
|
|
2863
|
+
* @public
|
|
2864
|
+
*/
|
|
2865
|
+
totalActivePublic?: number | undefined;
|
|
2866
|
+
/**
|
|
2867
|
+
* <p>The total number of active cross-account findings for the resource type.</p>
|
|
2868
|
+
* @public
|
|
2869
|
+
*/
|
|
2870
|
+
totalActiveCrossAccount?: number | undefined;
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* <p>Provides aggregate statistics about the findings for the specified external access
|
|
2874
|
+
* analyzer.</p>
|
|
2875
|
+
* @public
|
|
2876
|
+
*/
|
|
2877
|
+
export interface ExternalAccessFindingsStatistics {
|
|
2878
|
+
/**
|
|
2879
|
+
* <p>The total number of active cross-account and public findings for each resource type of
|
|
2880
|
+
* the specified external access analyzer.</p>
|
|
2881
|
+
* @public
|
|
2882
|
+
*/
|
|
2883
|
+
resourceTypeStatistics?: Partial<Record<ResourceType, ResourceTypeDetails>> | undefined;
|
|
2884
|
+
/**
|
|
2885
|
+
* <p>The number of active findings for the specified external access analyzer.</p>
|
|
2886
|
+
* @public
|
|
2887
|
+
*/
|
|
2888
|
+
totalActiveFindings?: number | undefined;
|
|
2889
|
+
/**
|
|
2890
|
+
* <p>The number of archived findings for the specified external access analyzer.</p>
|
|
2891
|
+
* @public
|
|
2892
|
+
*/
|
|
2893
|
+
totalArchivedFindings?: number | undefined;
|
|
2894
|
+
/**
|
|
2895
|
+
* <p>The number of resolved findings for the specified external access analyzer.</p>
|
|
2896
|
+
* @public
|
|
2897
|
+
*/
|
|
2898
|
+
totalResolvedFindings?: number | undefined;
|
|
2899
|
+
}
|
|
2900
|
+
/**
|
|
2901
|
+
* <p>Contains information about the findings for an Amazon Web Services account in an organization unused
|
|
2902
|
+
* access analyzer.</p>
|
|
2903
|
+
* @public
|
|
2904
|
+
*/
|
|
2905
|
+
export interface FindingAggregationAccountDetails {
|
|
2906
|
+
/**
|
|
2907
|
+
* <p>The ID of the Amazon Web Services account for which unused access finding details are provided.</p>
|
|
2908
|
+
* @public
|
|
2909
|
+
*/
|
|
2910
|
+
account?: string | undefined;
|
|
2911
|
+
/**
|
|
2912
|
+
* <p>The number of active unused access findings for the specified Amazon Web Services account.</p>
|
|
2913
|
+
* @public
|
|
2914
|
+
*/
|
|
2915
|
+
numberOfActiveFindings?: number | undefined;
|
|
2916
|
+
/**
|
|
2917
|
+
* <p>Provides the number of active findings for each type of unused access for the specified
|
|
2918
|
+
* Amazon Web Services account.</p>
|
|
2919
|
+
* @public
|
|
2920
|
+
*/
|
|
2921
|
+
details?: Record<string, number> | undefined;
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* <p>Contains information about the total number of findings for a type of unused
|
|
2925
|
+
* access.</p>
|
|
2926
|
+
* @public
|
|
2927
|
+
*/
|
|
2928
|
+
export interface UnusedAccessTypeStatistics {
|
|
2929
|
+
/**
|
|
2930
|
+
* <p>The type of unused access.</p>
|
|
2931
|
+
* @public
|
|
2932
|
+
*/
|
|
2933
|
+
unusedAccessType?: string | undefined;
|
|
2934
|
+
/**
|
|
2935
|
+
* <p>The total number of findings for the specified unused access type.</p>
|
|
2936
|
+
* @public
|
|
2937
|
+
*/
|
|
2938
|
+
total?: number | undefined;
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* <p>Provides aggregate statistics about the findings for the specified unused access
|
|
2942
|
+
* analyzer.</p>
|
|
2943
|
+
* @public
|
|
2944
|
+
*/
|
|
2945
|
+
export interface UnusedAccessFindingsStatistics {
|
|
2946
|
+
/**
|
|
2947
|
+
* <p>A list of details about the total number of findings for each type of unused access for
|
|
2948
|
+
* the analyzer. </p>
|
|
2949
|
+
* @public
|
|
2950
|
+
*/
|
|
2951
|
+
unusedAccessTypeStatistics?: UnusedAccessTypeStatistics[] | undefined;
|
|
2952
|
+
/**
|
|
2953
|
+
* <p>A list of one to ten Amazon Web Services accounts that have the most active findings for the unused
|
|
2954
|
+
* access analyzer.</p>
|
|
2955
|
+
* @public
|
|
2956
|
+
*/
|
|
2957
|
+
topAccounts?: FindingAggregationAccountDetails[] | undefined;
|
|
2958
|
+
/**
|
|
2959
|
+
* <p>The total number of active findings for the unused access analyzer.</p>
|
|
2960
|
+
* @public
|
|
2961
|
+
*/
|
|
2962
|
+
totalActiveFindings?: number | undefined;
|
|
2963
|
+
/**
|
|
2964
|
+
* <p>The total number of archived findings for the unused access analyzer.</p>
|
|
2965
|
+
* @public
|
|
2966
|
+
*/
|
|
2967
|
+
totalArchivedFindings?: number | undefined;
|
|
2968
|
+
/**
|
|
2969
|
+
* <p>The total number of resolved findings for the unused access analyzer.</p>
|
|
2970
|
+
* @public
|
|
2971
|
+
*/
|
|
2972
|
+
totalResolvedFindings?: number | undefined;
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* <p>Contains information about the aggregate statistics for an external or unused access
|
|
2976
|
+
* analyzer. Only one parameter can be used in a <code>FindingsStatistics</code>
|
|
2977
|
+
* object.</p>
|
|
2978
|
+
* @public
|
|
2979
|
+
*/
|
|
2980
|
+
export type FindingsStatistics = FindingsStatistics.ExternalAccessFindingsStatisticsMember | FindingsStatistics.UnusedAccessFindingsStatisticsMember | FindingsStatistics.$UnknownMember;
|
|
2981
|
+
/**
|
|
2982
|
+
* @public
|
|
2983
|
+
*/
|
|
2984
|
+
export declare namespace FindingsStatistics {
|
|
2985
|
+
/**
|
|
2986
|
+
* <p>The aggregate statistics for an external access analyzer.</p>
|
|
2987
|
+
* @public
|
|
2988
|
+
*/
|
|
2989
|
+
interface ExternalAccessFindingsStatisticsMember {
|
|
2990
|
+
externalAccessFindingsStatistics: ExternalAccessFindingsStatistics;
|
|
2991
|
+
unusedAccessFindingsStatistics?: never;
|
|
2992
|
+
$unknown?: never;
|
|
2993
|
+
}
|
|
2994
|
+
/**
|
|
2995
|
+
* <p>The aggregate statistics for an unused access analyzer.</p>
|
|
2996
|
+
* @public
|
|
2997
|
+
*/
|
|
2998
|
+
interface UnusedAccessFindingsStatisticsMember {
|
|
2999
|
+
externalAccessFindingsStatistics?: never;
|
|
3000
|
+
unusedAccessFindingsStatistics: UnusedAccessFindingsStatistics;
|
|
3001
|
+
$unknown?: never;
|
|
3002
|
+
}
|
|
3003
|
+
/**
|
|
3004
|
+
* @public
|
|
3005
|
+
*/
|
|
3006
|
+
interface $UnknownMember {
|
|
3007
|
+
externalAccessFindingsStatistics?: never;
|
|
3008
|
+
unusedAccessFindingsStatistics?: never;
|
|
3009
|
+
$unknown: [string, any];
|
|
3010
|
+
}
|
|
3011
|
+
interface Visitor<T> {
|
|
3012
|
+
externalAccessFindingsStatistics: (value: ExternalAccessFindingsStatistics) => T;
|
|
3013
|
+
unusedAccessFindingsStatistics: (value: UnusedAccessFindingsStatistics) => T;
|
|
3014
|
+
_: (name: string, value: any) => T;
|
|
3015
|
+
}
|
|
3016
|
+
const visit: <T>(value: FindingsStatistics, visitor: Visitor<T>) => T;
|
|
3017
|
+
}
|
|
3018
|
+
/**
|
|
3019
|
+
* @public
|
|
3020
|
+
*/
|
|
3021
|
+
export interface GetFindingsStatisticsResponse {
|
|
3022
|
+
/**
|
|
3023
|
+
* <p>A group of external access or unused access findings statistics.</p>
|
|
3024
|
+
* @public
|
|
3025
|
+
*/
|
|
3026
|
+
findingsStatistics?: FindingsStatistics[] | undefined;
|
|
3027
|
+
/**
|
|
3028
|
+
* <p>The time at which the retrieval of the findings statistics was last updated. If the
|
|
3029
|
+
* findings statistics have not been previously retrieved for the specified analyzer, this
|
|
3030
|
+
* field will not be populated.</p>
|
|
3031
|
+
* @public
|
|
3032
|
+
*/
|
|
3033
|
+
lastUpdatedAt?: Date | undefined;
|
|
3034
|
+
}
|
|
2844
3035
|
/**
|
|
2845
3036
|
* @public
|
|
2846
3037
|
*/
|
|
@@ -17,6 +17,7 @@ import { GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "../commands/G
|
|
|
17
17
|
import { GetArchiveRuleCommandInput, GetArchiveRuleCommandOutput } from "../commands/GetArchiveRuleCommand";
|
|
18
18
|
import { GetFindingCommandInput, GetFindingCommandOutput } from "../commands/GetFindingCommand";
|
|
19
19
|
import { GetFindingRecommendationCommandInput, GetFindingRecommendationCommandOutput } from "../commands/GetFindingRecommendationCommand";
|
|
20
|
+
import { GetFindingsStatisticsCommandInput, GetFindingsStatisticsCommandOutput } from "../commands/GetFindingsStatisticsCommand";
|
|
20
21
|
import { GetFindingV2CommandInput, GetFindingV2CommandOutput } from "../commands/GetFindingV2Command";
|
|
21
22
|
import { GetGeneratedPolicyCommandInput, GetGeneratedPolicyCommandOutput } from "../commands/GetGeneratedPolicyCommand";
|
|
22
23
|
import { ListAccessPreviewFindingsCommandInput, ListAccessPreviewFindingsCommandOutput } from "../commands/ListAccessPreviewFindingsCommand";
|
|
@@ -104,6 +105,10 @@ export declare const se_GetFindingCommand: (input: GetFindingCommandInput, conte
|
|
|
104
105
|
* serializeAws_restJson1GetFindingRecommendationCommand
|
|
105
106
|
*/
|
|
106
107
|
export declare const se_GetFindingRecommendationCommand: (input: GetFindingRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
108
|
+
/**
|
|
109
|
+
* serializeAws_restJson1GetFindingsStatisticsCommand
|
|
110
|
+
*/
|
|
111
|
+
export declare const se_GetFindingsStatisticsCommand: (input: GetFindingsStatisticsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
107
112
|
/**
|
|
108
113
|
* serializeAws_restJson1GetFindingV2Command
|
|
109
114
|
*/
|
|
@@ -248,6 +253,10 @@ export declare const de_GetFindingCommand: (output: __HttpResponse, context: __S
|
|
|
248
253
|
* deserializeAws_restJson1GetFindingRecommendationCommand
|
|
249
254
|
*/
|
|
250
255
|
export declare const de_GetFindingRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetFindingRecommendationCommandOutput>;
|
|
256
|
+
/**
|
|
257
|
+
* deserializeAws_restJson1GetFindingsStatisticsCommand
|
|
258
|
+
*/
|
|
259
|
+
export declare const de_GetFindingsStatisticsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetFindingsStatisticsCommandOutput>;
|
|
251
260
|
/**
|
|
252
261
|
* deserializeAws_restJson1GetFindingV2Command
|
|
253
262
|
*/
|
|
@@ -68,6 +68,10 @@ import {
|
|
|
68
68
|
GetFindingRecommendationCommandInput,
|
|
69
69
|
GetFindingRecommendationCommandOutput,
|
|
70
70
|
} from "./commands/GetFindingRecommendationCommand";
|
|
71
|
+
import {
|
|
72
|
+
GetFindingsStatisticsCommandInput,
|
|
73
|
+
GetFindingsStatisticsCommandOutput,
|
|
74
|
+
} from "./commands/GetFindingsStatisticsCommand";
|
|
71
75
|
import {
|
|
72
76
|
GetFindingV2CommandInput,
|
|
73
77
|
GetFindingV2CommandOutput,
|
|
@@ -366,6 +370,19 @@ export interface AccessAnalyzer {
|
|
|
366
370
|
options: __HttpHandlerOptions,
|
|
367
371
|
cb: (err: any, data?: GetFindingRecommendationCommandOutput) => void
|
|
368
372
|
): void;
|
|
373
|
+
getFindingsStatistics(
|
|
374
|
+
args: GetFindingsStatisticsCommandInput,
|
|
375
|
+
options?: __HttpHandlerOptions
|
|
376
|
+
): Promise<GetFindingsStatisticsCommandOutput>;
|
|
377
|
+
getFindingsStatistics(
|
|
378
|
+
args: GetFindingsStatisticsCommandInput,
|
|
379
|
+
cb: (err: any, data?: GetFindingsStatisticsCommandOutput) => void
|
|
380
|
+
): void;
|
|
381
|
+
getFindingsStatistics(
|
|
382
|
+
args: GetFindingsStatisticsCommandInput,
|
|
383
|
+
options: __HttpHandlerOptions,
|
|
384
|
+
cb: (err: any, data?: GetFindingsStatisticsCommandOutput) => void
|
|
385
|
+
): void;
|
|
369
386
|
getFindingV2(
|
|
370
387
|
args: GetFindingV2CommandInput,
|
|
371
388
|
options?: __HttpHandlerOptions
|
|
@@ -113,6 +113,10 @@ import {
|
|
|
113
113
|
GetFindingRecommendationCommandInput,
|
|
114
114
|
GetFindingRecommendationCommandOutput,
|
|
115
115
|
} from "./commands/GetFindingRecommendationCommand";
|
|
116
|
+
import {
|
|
117
|
+
GetFindingsStatisticsCommandInput,
|
|
118
|
+
GetFindingsStatisticsCommandOutput,
|
|
119
|
+
} from "./commands/GetFindingsStatisticsCommand";
|
|
116
120
|
import {
|
|
117
121
|
GetFindingV2CommandInput,
|
|
118
122
|
GetFindingV2CommandOutput,
|
|
@@ -215,6 +219,7 @@ export type ServiceInputTypes =
|
|
|
215
219
|
| GetFindingCommandInput
|
|
216
220
|
| GetFindingRecommendationCommandInput
|
|
217
221
|
| GetFindingV2CommandInput
|
|
222
|
+
| GetFindingsStatisticsCommandInput
|
|
218
223
|
| GetGeneratedPolicyCommandInput
|
|
219
224
|
| ListAccessPreviewFindingsCommandInput
|
|
220
225
|
| ListAccessPreviewsCommandInput
|
|
@@ -252,6 +257,7 @@ export type ServiceOutputTypes =
|
|
|
252
257
|
| GetFindingCommandOutput
|
|
253
258
|
| GetFindingRecommendationCommandOutput
|
|
254
259
|
| GetFindingV2CommandOutput
|
|
260
|
+
| GetFindingsStatisticsCommandOutput
|
|
255
261
|
| GetGeneratedPolicyCommandOutput
|
|
256
262
|
| ListAccessPreviewFindingsCommandOutput
|
|
257
263
|
| ListAccessPreviewsCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
AccessAnalyzerClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../AccessAnalyzerClient";
|
|
8
|
+
import {
|
|
9
|
+
GetFindingsStatisticsRequest,
|
|
10
|
+
GetFindingsStatisticsResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetFindingsStatisticsCommandInput
|
|
15
|
+
extends GetFindingsStatisticsRequest {}
|
|
16
|
+
export interface GetFindingsStatisticsCommandOutput
|
|
17
|
+
extends GetFindingsStatisticsResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetFindingsStatisticsCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetFindingsStatisticsCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetFindingsStatisticsCommandInput,
|
|
24
|
+
GetFindingsStatisticsCommandOutput,
|
|
25
|
+
AccessAnalyzerClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: GetFindingsStatisticsCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetFindingsStatisticsCommandInput,
|
|
33
|
+
GetFindingsStatisticsCommandOutput,
|
|
34
|
+
AccessAnalyzerClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetFindingsStatisticsCommand extends GetFindingsStatisticsCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: GetFindingsStatisticsRequest;
|
|
44
|
+
output: GetFindingsStatisticsResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetFindingsStatisticsCommandInput;
|
|
48
|
+
output: GetFindingsStatisticsCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -16,6 +16,7 @@ export * from "./GetArchiveRuleCommand";
|
|
|
16
16
|
export * from "./GetFindingCommand";
|
|
17
17
|
export * from "./GetFindingRecommendationCommand";
|
|
18
18
|
export * from "./GetFindingV2Command";
|
|
19
|
+
export * from "./GetFindingsStatisticsCommand";
|
|
19
20
|
export * from "./GetGeneratedPolicyCommand";
|
|
20
21
|
export * from "./ListAccessPreviewFindingsCommand";
|
|
21
22
|
export * from "./ListAccessPreviewsCommand";
|
|
@@ -1008,6 +1008,72 @@ export interface GetFindingRecommendationResponse {
|
|
|
1008
1008
|
recommendationType: RecommendationType | undefined;
|
|
1009
1009
|
status: Status | undefined;
|
|
1010
1010
|
}
|
|
1011
|
+
export interface GetFindingsStatisticsRequest {
|
|
1012
|
+
analyzerArn: string | undefined;
|
|
1013
|
+
}
|
|
1014
|
+
export interface ResourceTypeDetails {
|
|
1015
|
+
totalActivePublic?: number | undefined;
|
|
1016
|
+
totalActiveCrossAccount?: number | undefined;
|
|
1017
|
+
}
|
|
1018
|
+
export interface ExternalAccessFindingsStatistics {
|
|
1019
|
+
resourceTypeStatistics?:
|
|
1020
|
+
| Partial<Record<ResourceType, ResourceTypeDetails>>
|
|
1021
|
+
| undefined;
|
|
1022
|
+
totalActiveFindings?: number | undefined;
|
|
1023
|
+
totalArchivedFindings?: number | undefined;
|
|
1024
|
+
totalResolvedFindings?: number | undefined;
|
|
1025
|
+
}
|
|
1026
|
+
export interface FindingAggregationAccountDetails {
|
|
1027
|
+
account?: string | undefined;
|
|
1028
|
+
numberOfActiveFindings?: number | undefined;
|
|
1029
|
+
details?: Record<string, number> | undefined;
|
|
1030
|
+
}
|
|
1031
|
+
export interface UnusedAccessTypeStatistics {
|
|
1032
|
+
unusedAccessType?: string | undefined;
|
|
1033
|
+
total?: number | undefined;
|
|
1034
|
+
}
|
|
1035
|
+
export interface UnusedAccessFindingsStatistics {
|
|
1036
|
+
unusedAccessTypeStatistics?: UnusedAccessTypeStatistics[] | undefined;
|
|
1037
|
+
topAccounts?: FindingAggregationAccountDetails[] | undefined;
|
|
1038
|
+
totalActiveFindings?: number | undefined;
|
|
1039
|
+
totalArchivedFindings?: number | undefined;
|
|
1040
|
+
totalResolvedFindings?: number | undefined;
|
|
1041
|
+
}
|
|
1042
|
+
export type FindingsStatistics =
|
|
1043
|
+
| FindingsStatistics.ExternalAccessFindingsStatisticsMember
|
|
1044
|
+
| FindingsStatistics.UnusedAccessFindingsStatisticsMember
|
|
1045
|
+
| FindingsStatistics.$UnknownMember;
|
|
1046
|
+
export declare namespace FindingsStatistics {
|
|
1047
|
+
interface ExternalAccessFindingsStatisticsMember {
|
|
1048
|
+
externalAccessFindingsStatistics: ExternalAccessFindingsStatistics;
|
|
1049
|
+
unusedAccessFindingsStatistics?: never;
|
|
1050
|
+
$unknown?: never;
|
|
1051
|
+
}
|
|
1052
|
+
interface UnusedAccessFindingsStatisticsMember {
|
|
1053
|
+
externalAccessFindingsStatistics?: never;
|
|
1054
|
+
unusedAccessFindingsStatistics: UnusedAccessFindingsStatistics;
|
|
1055
|
+
$unknown?: never;
|
|
1056
|
+
}
|
|
1057
|
+
interface $UnknownMember {
|
|
1058
|
+
externalAccessFindingsStatistics?: never;
|
|
1059
|
+
unusedAccessFindingsStatistics?: never;
|
|
1060
|
+
$unknown: [string, any];
|
|
1061
|
+
}
|
|
1062
|
+
interface Visitor<T> {
|
|
1063
|
+
externalAccessFindingsStatistics: (
|
|
1064
|
+
value: ExternalAccessFindingsStatistics
|
|
1065
|
+
) => T;
|
|
1066
|
+
unusedAccessFindingsStatistics: (
|
|
1067
|
+
value: UnusedAccessFindingsStatistics
|
|
1068
|
+
) => T;
|
|
1069
|
+
_: (name: string, value: any) => T;
|
|
1070
|
+
}
|
|
1071
|
+
const visit: <T>(value: FindingsStatistics, visitor: Visitor<T>) => T;
|
|
1072
|
+
}
|
|
1073
|
+
export interface GetFindingsStatisticsResponse {
|
|
1074
|
+
findingsStatistics?: FindingsStatistics[] | undefined;
|
|
1075
|
+
lastUpdatedAt?: Date | undefined;
|
|
1076
|
+
}
|
|
1011
1077
|
export interface GetFindingV2Request {
|
|
1012
1078
|
analyzerArn: string | undefined;
|
|
1013
1079
|
id: string | undefined;
|
|
@@ -71,6 +71,10 @@ import {
|
|
|
71
71
|
GetFindingRecommendationCommandInput,
|
|
72
72
|
GetFindingRecommendationCommandOutput,
|
|
73
73
|
} from "../commands/GetFindingRecommendationCommand";
|
|
74
|
+
import {
|
|
75
|
+
GetFindingsStatisticsCommandInput,
|
|
76
|
+
GetFindingsStatisticsCommandOutput,
|
|
77
|
+
} from "../commands/GetFindingsStatisticsCommand";
|
|
74
78
|
import {
|
|
75
79
|
GetFindingV2CommandInput,
|
|
76
80
|
GetFindingV2CommandOutput,
|
|
@@ -215,6 +219,10 @@ export declare const se_GetFindingRecommendationCommand: (
|
|
|
215
219
|
input: GetFindingRecommendationCommandInput,
|
|
216
220
|
context: __SerdeContext
|
|
217
221
|
) => Promise<__HttpRequest>;
|
|
222
|
+
export declare const se_GetFindingsStatisticsCommand: (
|
|
223
|
+
input: GetFindingsStatisticsCommandInput,
|
|
224
|
+
context: __SerdeContext
|
|
225
|
+
) => Promise<__HttpRequest>;
|
|
218
226
|
export declare const se_GetFindingV2Command: (
|
|
219
227
|
input: GetFindingV2CommandInput,
|
|
220
228
|
context: __SerdeContext
|
|
@@ -359,6 +367,10 @@ export declare const de_GetFindingRecommendationCommand: (
|
|
|
359
367
|
output: __HttpResponse,
|
|
360
368
|
context: __SerdeContext
|
|
361
369
|
) => Promise<GetFindingRecommendationCommandOutput>;
|
|
370
|
+
export declare const de_GetFindingsStatisticsCommand: (
|
|
371
|
+
output: __HttpResponse,
|
|
372
|
+
context: __SerdeContext
|
|
373
|
+
) => Promise<GetFindingsStatisticsCommandOutput>;
|
|
362
374
|
export declare const de_GetFindingV2Command: (
|
|
363
375
|
output: __HttpResponse,
|
|
364
376
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-accessanalyzer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Accessanalyzer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.748.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-accessanalyzer",
|