@aws-sdk/client-accessanalyzer 3.691.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 +8 -0
- package/dist-cjs/index.js +47 -0
- package/dist-es/AccessAnalyzer.js +2 -0
- package/dist-es/commands/UpdateAnalyzerCommand.js +22 -0
- package/dist-es/commands/index.js +1 -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/CreateAnalyzerCommand.d.ts +14 -0
- package/dist-types/commands/GetAnalyzerCommand.d.ts +14 -0
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +1 -2
- package/dist-types/commands/ListAnalyzersCommand.d.ts +14 -0
- package/dist-types/commands/UpdateAnalyzerCommand.d.ts +126 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +91 -10
- 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/UpdateAnalyzerCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +16 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +35 -35
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
|
@@ -95,6 +95,7 @@ __export(src_exports, {
|
|
|
95
95
|
ThrottlingException: () => ThrottlingException,
|
|
96
96
|
UnprocessableEntityException: () => UnprocessableEntityException,
|
|
97
97
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
98
|
+
UpdateAnalyzerCommand: () => UpdateAnalyzerCommand,
|
|
98
99
|
UpdateArchiveRuleCommand: () => UpdateArchiveRuleCommand,
|
|
99
100
|
UpdateFindingsCommand: () => UpdateFindingsCommand,
|
|
100
101
|
ValidatePolicyCommand: () => ValidatePolicyCommand,
|
|
@@ -1193,6 +1194,22 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1193
1194
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
1194
1195
|
return b.build();
|
|
1195
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");
|
|
1196
1213
|
var se_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1197
1214
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1198
1215
|
const headers = {
|
|
@@ -1697,6 +1714,20 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1697
1714
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1698
1715
|
return contents;
|
|
1699
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");
|
|
1700
1731
|
var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1701
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
1733
|
return de_CommandError(output, context);
|
|
@@ -2679,6 +2710,20 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
|
|
|
2679
2710
|
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2680
2711
|
var UntagResourceCommand = _UntagResourceCommand;
|
|
2681
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
|
+
|
|
2682
2727
|
// src/commands/UpdateArchiveRuleCommand.ts
|
|
2683
2728
|
|
|
2684
2729
|
|
|
@@ -2755,6 +2800,7 @@ var commands = {
|
|
|
2755
2800
|
StartResourceScanCommand,
|
|
2756
2801
|
TagResourceCommand,
|
|
2757
2802
|
UntagResourceCommand,
|
|
2803
|
+
UpdateAnalyzerCommand,
|
|
2758
2804
|
UpdateArchiveRuleCommand,
|
|
2759
2805
|
UpdateFindingsCommand,
|
|
2760
2806
|
ValidatePolicyCommand
|
|
@@ -2848,6 +2894,7 @@ var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClie
|
|
|
2848
2894
|
StartResourceScanCommand,
|
|
2849
2895
|
TagResourceCommand,
|
|
2850
2896
|
UntagResourceCommand,
|
|
2897
|
+
UpdateAnalyzerCommand,
|
|
2851
2898
|
UpdateArchiveRuleCommand,
|
|
2852
2899
|
UpdateFindingsCommand,
|
|
2853
2900
|
ValidatePolicyCommand,
|
|
@@ -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";
|
|
@@ -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);
|
|
@@ -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
|
* // },
|
|
@@ -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
|
|
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
|
* // },
|
|
@@ -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";
|
|
@@ -282,7 +282,8 @@ export interface GetArchiveRuleRequest {
|
|
|
282
282
|
ruleName: string | undefined;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
|
-
* <p>Contains information about an archive rule
|
|
285
|
+
* <p>Contains information about an archive rule. Archive rules automatically archive new
|
|
286
|
+
* findings that meet the criteria you define when you create the rule.</p>
|
|
286
287
|
* @public
|
|
287
288
|
*/
|
|
288
289
|
export interface ArchiveRuleSummary {
|
|
@@ -313,7 +314,8 @@ export interface ArchiveRuleSummary {
|
|
|
313
314
|
*/
|
|
314
315
|
export interface GetArchiveRuleResponse {
|
|
315
316
|
/**
|
|
316
|
-
* <p>Contains information about an archive rule
|
|
317
|
+
* <p>Contains information about an archive rule. Archive rules automatically archive new
|
|
318
|
+
* findings that meet the criteria you define when you create the rule.</p>
|
|
317
319
|
* @public
|
|
318
320
|
*/
|
|
319
321
|
archiveRule: ArchiveRuleSummary | undefined;
|
|
@@ -399,6 +401,47 @@ export interface InlineArchiveRule {
|
|
|
399
401
|
*/
|
|
400
402
|
filter: Record<string, Criterion> | undefined;
|
|
401
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* <p>The criteria for an analysis rule for an analyzer. The criteria determine which entities
|
|
406
|
+
* will generate findings.</p>
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
409
|
+
export interface AnalysisRuleCriteria {
|
|
410
|
+
/**
|
|
411
|
+
* <p>A list of Amazon Web Services account IDs to apply to the analysis rule criteria. The accounts cannot
|
|
412
|
+
* include the organization analyzer owner account. Account IDs can only be applied to the
|
|
413
|
+
* analysis rule criteria for organization-level analyzers. The list cannot include more than
|
|
414
|
+
* 2,000 account IDs.</p>
|
|
415
|
+
* @public
|
|
416
|
+
*/
|
|
417
|
+
accountIds?: string[] | undefined;
|
|
418
|
+
/**
|
|
419
|
+
* <p>An array of key-value pairs to match for your resources. You can use the set of Unicode
|
|
420
|
+
* letters, digits, whitespace, <code>_</code>, <code>.</code>, <code>/</code>,
|
|
421
|
+
* <code>=</code>, <code>+</code>, and <code>-</code>.</p>
|
|
422
|
+
* <p>For the tag key, you can specify a value that is 1 to 128 characters in length and
|
|
423
|
+
* cannot be prefixed with <code>aws:</code>.</p>
|
|
424
|
+
* <p>For the tag value, you can specify a value that is 0 to 256 characters in length. If the
|
|
425
|
+
* specified tag value is 0 characters, the rule is applied to all principals with the
|
|
426
|
+
* specified tag key.</p>
|
|
427
|
+
* @public
|
|
428
|
+
*/
|
|
429
|
+
resourceTags?: Record<string, string>[] | undefined;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* <p>Contains information about analysis rules for the analyzer. Analysis rules determine
|
|
433
|
+
* which entities will generate findings based on the criteria you define when you create the
|
|
434
|
+
* rule.</p>
|
|
435
|
+
* @public
|
|
436
|
+
*/
|
|
437
|
+
export interface AnalysisRule {
|
|
438
|
+
/**
|
|
439
|
+
* <p>A list of rules for the analyzer containing criteria to exclude from analysis. Entities
|
|
440
|
+
* that meet the rule criteria will not generate findings.</p>
|
|
441
|
+
* @public
|
|
442
|
+
*/
|
|
443
|
+
exclusions?: AnalysisRuleCriteria[] | undefined;
|
|
444
|
+
}
|
|
402
445
|
/**
|
|
403
446
|
* <p>Contains information about an unused access analyzer.</p>
|
|
404
447
|
* @public
|
|
@@ -408,15 +451,22 @@ export interface UnusedAccessConfiguration {
|
|
|
408
451
|
* <p>The specified access age in days for which to generate findings for unused access. For
|
|
409
452
|
* example, if you specify 90 days, the analyzer will generate findings for IAM entities
|
|
410
453
|
* within the accounts of the selected organization for any access that hasn't been used in 90
|
|
411
|
-
* or more days since the analyzer's last scan. You can choose a value between 1 and
|
|
454
|
+
* or more days since the analyzer's last scan. You can choose a value between 1 and 365
|
|
412
455
|
* days.</p>
|
|
413
456
|
* @public
|
|
414
457
|
*/
|
|
415
458
|
unusedAccessAge?: number | undefined;
|
|
459
|
+
/**
|
|
460
|
+
* <p>Contains information about analysis rules for the analyzer. Analysis rules determine
|
|
461
|
+
* which entities will generate findings based on the criteria you define when you create the
|
|
462
|
+
* rule.</p>
|
|
463
|
+
* @public
|
|
464
|
+
*/
|
|
465
|
+
analysisRule?: AnalysisRule | undefined;
|
|
416
466
|
}
|
|
417
467
|
/**
|
|
418
|
-
* <p>Contains information about the configuration of an
|
|
419
|
-
*
|
|
468
|
+
* <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or
|
|
469
|
+
* account.</p>
|
|
420
470
|
* @public
|
|
421
471
|
*/
|
|
422
472
|
export type AnalyzerConfiguration = AnalyzerConfiguration.UnusedAccessMember | AnalyzerConfiguration.$UnknownMember;
|
|
@@ -426,7 +476,7 @@ export type AnalyzerConfiguration = AnalyzerConfiguration.UnusedAccessMember | A
|
|
|
426
476
|
export declare namespace AnalyzerConfiguration {
|
|
427
477
|
/**
|
|
428
478
|
* <p>Specifies the configuration of an unused access analyzer for an Amazon Web Services organization or
|
|
429
|
-
* account
|
|
479
|
+
* account.</p>
|
|
430
480
|
* @public
|
|
431
481
|
*/
|
|
432
482
|
interface UnusedAccessMember {
|
|
@@ -475,7 +525,12 @@ export interface CreateAnalyzerRequest {
|
|
|
475
525
|
*/
|
|
476
526
|
archiveRules?: InlineArchiveRule[] | undefined;
|
|
477
527
|
/**
|
|
478
|
-
* <p>An array of key-value pairs to apply to the analyzer
|
|
528
|
+
* <p>An array of key-value pairs to apply to the analyzer. You can use the set of Unicode
|
|
529
|
+
* letters, digits, whitespace, <code>_</code>, <code>.</code>, <code>/</code>,
|
|
530
|
+
* <code>=</code>, <code>+</code>, and <code>-</code>.</p>
|
|
531
|
+
* <p>For the tag key, you can specify a value that is 1 to 128 characters in length and
|
|
532
|
+
* cannot be prefixed with <code>aws:</code>.</p>
|
|
533
|
+
* <p>For the tag value, you can specify a value that is 0 to 256 characters in length.</p>
|
|
479
534
|
* @public
|
|
480
535
|
*/
|
|
481
536
|
tags?: Record<string, string> | undefined;
|
|
@@ -486,8 +541,7 @@ export interface CreateAnalyzerRequest {
|
|
|
486
541
|
clientToken?: string | undefined;
|
|
487
542
|
/**
|
|
488
543
|
* <p>Specifies the configuration of the analyzer. If the analyzer is an unused access
|
|
489
|
-
* analyzer, the specified scope of unused access is used for the configuration
|
|
490
|
-
* analyzer is an external access analyzer, this field is not used.</p>
|
|
544
|
+
* analyzer, the specified scope of unused access is used for the configuration.</p>
|
|
491
545
|
* @public
|
|
492
546
|
*/
|
|
493
547
|
configuration?: AnalyzerConfiguration | undefined;
|
|
@@ -667,6 +721,33 @@ export interface ListAnalyzersResponse {
|
|
|
667
721
|
*/
|
|
668
722
|
nextToken?: string | undefined;
|
|
669
723
|
}
|
|
724
|
+
/**
|
|
725
|
+
* @public
|
|
726
|
+
*/
|
|
727
|
+
export interface UpdateAnalyzerRequest {
|
|
728
|
+
/**
|
|
729
|
+
* <p>The name of the analyzer to modify.</p>
|
|
730
|
+
* @public
|
|
731
|
+
*/
|
|
732
|
+
analyzerName: string | undefined;
|
|
733
|
+
/**
|
|
734
|
+
* <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or
|
|
735
|
+
* account.</p>
|
|
736
|
+
* @public
|
|
737
|
+
*/
|
|
738
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* @public
|
|
742
|
+
*/
|
|
743
|
+
export interface UpdateAnalyzerResponse {
|
|
744
|
+
/**
|
|
745
|
+
* <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or
|
|
746
|
+
* account.</p>
|
|
747
|
+
* @public
|
|
748
|
+
*/
|
|
749
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
750
|
+
}
|
|
670
751
|
/**
|
|
671
752
|
* <p>Retroactively applies an archive rule.</p>
|
|
672
753
|
* @public
|
|
@@ -2325,7 +2406,7 @@ export interface GetAnalyzedResourceRequest {
|
|
|
2325
2406
|
/**
|
|
2326
2407
|
* @public
|
|
2327
2408
|
*/
|
|
2328
|
-
export type ResourceType = "AWS::DynamoDB::Stream" | "AWS::DynamoDB::Table" | "AWS::EC2::Snapshot" | "AWS::ECR::Repository" | "AWS::EFS::FileSystem" | "AWS::IAM::Role" | "AWS::KMS::Key" | "AWS::Lambda::Function" | "AWS::Lambda::LayerVersion" | "AWS::RDS::DBClusterSnapshot" | "AWS::RDS::DBSnapshot" | "AWS::S3::Bucket" | "AWS::S3Express::DirectoryBucket" | "AWS::SNS::Topic" | "AWS::SQS::Queue" | "AWS::SecretsManager::Secret";
|
|
2409
|
+
export type ResourceType = "AWS::DynamoDB::Stream" | "AWS::DynamoDB::Table" | "AWS::EC2::Snapshot" | "AWS::ECR::Repository" | "AWS::EFS::FileSystem" | "AWS::IAM::Role" | "AWS::IAM::User" | "AWS::KMS::Key" | "AWS::Lambda::Function" | "AWS::Lambda::LayerVersion" | "AWS::RDS::DBClusterSnapshot" | "AWS::RDS::DBSnapshot" | "AWS::S3::Bucket" | "AWS::S3Express::DirectoryBucket" | "AWS::SNS::Topic" | "AWS::SQS::Queue" | "AWS::SecretsManager::Secret";
|
|
2329
2410
|
/**
|
|
2330
2411
|
* @public
|
|
2331
2412
|
*/
|
|
@@ -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";
|
|
@@ -163,6 +164,10 @@ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, con
|
|
|
163
164
|
* serializeAws_restJson1UntagResourceCommand
|
|
164
165
|
*/
|
|
165
166
|
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
167
|
+
/**
|
|
168
|
+
* serializeAws_restJson1UpdateAnalyzerCommand
|
|
169
|
+
*/
|
|
170
|
+
export declare const se_UpdateAnalyzerCommand: (input: UpdateAnalyzerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
166
171
|
/**
|
|
167
172
|
* serializeAws_restJson1UpdateArchiveRuleCommand
|
|
168
173
|
*/
|
|
@@ -303,6 +308,10 @@ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __
|
|
|
303
308
|
* deserializeAws_restJson1UntagResourceCommand
|
|
304
309
|
*/
|
|
305
310
|
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
311
|
+
/**
|
|
312
|
+
* deserializeAws_restJson1UpdateAnalyzerCommand
|
|
313
|
+
*/
|
|
314
|
+
export declare const de_UpdateAnalyzerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateAnalyzerCommandOutput>;
|
|
306
315
|
/**
|
|
307
316
|
* deserializeAws_restJson1UpdateArchiveRuleCommand
|
|
308
317
|
*/
|
|
@@ -128,6 +128,10 @@ import {
|
|
|
128
128
|
UntagResourceCommandInput,
|
|
129
129
|
UntagResourceCommandOutput,
|
|
130
130
|
} from "./commands/UntagResourceCommand";
|
|
131
|
+
import {
|
|
132
|
+
UpdateAnalyzerCommandInput,
|
|
133
|
+
UpdateAnalyzerCommandOutput,
|
|
134
|
+
} from "./commands/UpdateAnalyzerCommand";
|
|
131
135
|
import {
|
|
132
136
|
UpdateArchiveRuleCommandInput,
|
|
133
137
|
UpdateArchiveRuleCommandOutput,
|
|
@@ -559,6 +563,19 @@ export interface AccessAnalyzer {
|
|
|
559
563
|
options: __HttpHandlerOptions,
|
|
560
564
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
561
565
|
): void;
|
|
566
|
+
updateAnalyzer(
|
|
567
|
+
args: UpdateAnalyzerCommandInput,
|
|
568
|
+
options?: __HttpHandlerOptions
|
|
569
|
+
): Promise<UpdateAnalyzerCommandOutput>;
|
|
570
|
+
updateAnalyzer(
|
|
571
|
+
args: UpdateAnalyzerCommandInput,
|
|
572
|
+
cb: (err: any, data?: UpdateAnalyzerCommandOutput) => void
|
|
573
|
+
): void;
|
|
574
|
+
updateAnalyzer(
|
|
575
|
+
args: UpdateAnalyzerCommandInput,
|
|
576
|
+
options: __HttpHandlerOptions,
|
|
577
|
+
cb: (err: any, data?: UpdateAnalyzerCommandOutput) => void
|
|
578
|
+
): void;
|
|
562
579
|
updateArchiveRule(
|
|
563
580
|
args: UpdateArchiveRuleCommandInput,
|
|
564
581
|
options?: __HttpHandlerOptions
|
|
@@ -173,6 +173,10 @@ import {
|
|
|
173
173
|
UntagResourceCommandInput,
|
|
174
174
|
UntagResourceCommandOutput,
|
|
175
175
|
} from "./commands/UntagResourceCommand";
|
|
176
|
+
import {
|
|
177
|
+
UpdateAnalyzerCommandInput,
|
|
178
|
+
UpdateAnalyzerCommandOutput,
|
|
179
|
+
} from "./commands/UpdateAnalyzerCommand";
|
|
176
180
|
import {
|
|
177
181
|
UpdateArchiveRuleCommandInput,
|
|
178
182
|
UpdateArchiveRuleCommandOutput,
|
|
@@ -225,6 +229,7 @@ export type ServiceInputTypes =
|
|
|
225
229
|
| StartResourceScanCommandInput
|
|
226
230
|
| TagResourceCommandInput
|
|
227
231
|
| UntagResourceCommandInput
|
|
232
|
+
| UpdateAnalyzerCommandInput
|
|
228
233
|
| UpdateArchiveRuleCommandInput
|
|
229
234
|
| UpdateFindingsCommandInput
|
|
230
235
|
| ValidatePolicyCommandInput;
|
|
@@ -261,6 +266,7 @@ export type ServiceOutputTypes =
|
|
|
261
266
|
| StartResourceScanCommandOutput
|
|
262
267
|
| TagResourceCommandOutput
|
|
263
268
|
| UntagResourceCommandOutput
|
|
269
|
+
| UpdateAnalyzerCommandOutput
|
|
264
270
|
| UpdateArchiveRuleCommandOutput
|
|
265
271
|
| UpdateFindingsCommandOutput
|
|
266
272
|
| ValidatePolicyCommandOutput;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
UpdateAnalyzerRequest,
|
|
10
|
+
UpdateAnalyzerResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface UpdateAnalyzerCommandInput extends UpdateAnalyzerRequest {}
|
|
15
|
+
export interface UpdateAnalyzerCommandOutput
|
|
16
|
+
extends UpdateAnalyzerResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const UpdateAnalyzerCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: UpdateAnalyzerCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
UpdateAnalyzerCommandInput,
|
|
23
|
+
UpdateAnalyzerCommandOutput,
|
|
24
|
+
AccessAnalyzerClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: UpdateAnalyzerCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
UpdateAnalyzerCommandInput,
|
|
32
|
+
UpdateAnalyzerCommandOutput,
|
|
33
|
+
AccessAnalyzerClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class UpdateAnalyzerCommand extends UpdateAnalyzerCommand_base {
|
|
40
|
+
protected static __types: {
|
|
41
|
+
api: {
|
|
42
|
+
input: UpdateAnalyzerRequest;
|
|
43
|
+
output: UpdateAnalyzerResponse;
|
|
44
|
+
};
|
|
45
|
+
sdk: {
|
|
46
|
+
input: UpdateAnalyzerCommandInput;
|
|
47
|
+
output: UpdateAnalyzerCommandOutput;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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";
|
|
@@ -127,8 +127,16 @@ export interface InlineArchiveRule {
|
|
|
127
127
|
ruleName: string | undefined;
|
|
128
128
|
filter: Record<string, Criterion> | undefined;
|
|
129
129
|
}
|
|
130
|
+
export interface AnalysisRuleCriteria {
|
|
131
|
+
accountIds?: string[] | undefined;
|
|
132
|
+
resourceTags?: Record<string, string>[] | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface AnalysisRule {
|
|
135
|
+
exclusions?: AnalysisRuleCriteria[] | undefined;
|
|
136
|
+
}
|
|
130
137
|
export interface UnusedAccessConfiguration {
|
|
131
138
|
unusedAccessAge?: number | undefined;
|
|
139
|
+
analysisRule?: AnalysisRule | undefined;
|
|
132
140
|
}
|
|
133
141
|
export type AnalyzerConfiguration =
|
|
134
142
|
| AnalyzerConfiguration.UnusedAccessMember
|
|
@@ -204,6 +212,13 @@ export interface ListAnalyzersResponse {
|
|
|
204
212
|
analyzers: AnalyzerSummary[] | undefined;
|
|
205
213
|
nextToken?: string | undefined;
|
|
206
214
|
}
|
|
215
|
+
export interface UpdateAnalyzerRequest {
|
|
216
|
+
analyzerName: string | undefined;
|
|
217
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
218
|
+
}
|
|
219
|
+
export interface UpdateAnalyzerResponse {
|
|
220
|
+
configuration?: AnalyzerConfiguration | undefined;
|
|
221
|
+
}
|
|
207
222
|
export interface ApplyArchiveRuleRequest {
|
|
208
223
|
analyzerArn: string | undefined;
|
|
209
224
|
ruleName: string | undefined;
|
|
@@ -856,6 +871,7 @@ export type ResourceType =
|
|
|
856
871
|
| "AWS::ECR::Repository"
|
|
857
872
|
| "AWS::EFS::FileSystem"
|
|
858
873
|
| "AWS::IAM::Role"
|
|
874
|
+
| "AWS::IAM::User"
|
|
859
875
|
| "AWS::KMS::Key"
|
|
860
876
|
| "AWS::Lambda::Function"
|
|
861
877
|
| "AWS::Lambda::LayerVersion"
|
|
@@ -131,6 +131,10 @@ import {
|
|
|
131
131
|
UntagResourceCommandInput,
|
|
132
132
|
UntagResourceCommandOutput,
|
|
133
133
|
} from "../commands/UntagResourceCommand";
|
|
134
|
+
import {
|
|
135
|
+
UpdateAnalyzerCommandInput,
|
|
136
|
+
UpdateAnalyzerCommandOutput,
|
|
137
|
+
} from "../commands/UpdateAnalyzerCommand";
|
|
134
138
|
import {
|
|
135
139
|
UpdateArchiveRuleCommandInput,
|
|
136
140
|
UpdateArchiveRuleCommandOutput,
|
|
@@ -271,6 +275,10 @@ export declare const se_UntagResourceCommand: (
|
|
|
271
275
|
input: UntagResourceCommandInput,
|
|
272
276
|
context: __SerdeContext
|
|
273
277
|
) => Promise<__HttpRequest>;
|
|
278
|
+
export declare const se_UpdateAnalyzerCommand: (
|
|
279
|
+
input: UpdateAnalyzerCommandInput,
|
|
280
|
+
context: __SerdeContext
|
|
281
|
+
) => Promise<__HttpRequest>;
|
|
274
282
|
export declare const se_UpdateArchiveRuleCommand: (
|
|
275
283
|
input: UpdateArchiveRuleCommandInput,
|
|
276
284
|
context: __SerdeContext
|
|
@@ -411,6 +419,10 @@ export declare const de_UntagResourceCommand: (
|
|
|
411
419
|
output: __HttpResponse,
|
|
412
420
|
context: __SerdeContext
|
|
413
421
|
) => Promise<UntagResourceCommandOutput>;
|
|
422
|
+
export declare const de_UpdateAnalyzerCommand: (
|
|
423
|
+
output: __HttpResponse,
|
|
424
|
+
context: __SerdeContext
|
|
425
|
+
) => Promise<UpdateAnalyzerCommandOutput>;
|
|
414
426
|
export declare const de_UpdateArchiveRuleCommand: (
|
|
415
427
|
output: __HttpResponse,
|
|
416
428
|
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.692.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",
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.5.
|
|
38
|
-
"@smithy/fetch-http-handler": "^4.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.4.
|
|
50
|
-
"@smithy/types": "^3.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.692.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.692.0",
|
|
25
|
+
"@aws-sdk/core": "3.692.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.692.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.692.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.692.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.692.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.692.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.692.0",
|
|
32
|
+
"@aws-sdk/types": "3.692.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.692.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.692.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.692.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.11",
|
|
37
|
+
"@smithy/core": "^2.5.2",
|
|
38
|
+
"@smithy/fetch-http-handler": "^4.1.0",
|
|
39
|
+
"@smithy/hash-node": "^3.0.9",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.9",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.11",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.2.2",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.26",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.9",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.9",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
47
|
+
"@smithy/node-http-handler": "^3.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
49
|
+
"@smithy/smithy-client": "^3.4.3",
|
|
50
|
+
"@smithy/types": "^3.7.0",
|
|
51
|
+
"@smithy/url-parser": "^3.0.9",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.26",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.26",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.5",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
59
|
+
"@smithy/util-retry": "^3.0.9",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"@types/uuid": "^9.0.1",
|
|
62
62
|
"tslib": "^2.6.2",
|