@aws-sdk/client-accessanalyzer 3.590.0 → 3.595.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 +24 -0
- package/dist-cjs/index.js +241 -33
- package/dist-es/AccessAnalyzer.js +6 -0
- package/dist-es/commands/CheckNoPublicAccessCommand.js +25 -0
- package/dist-es/commands/GenerateFindingRecommendationCommand.js +24 -0
- package/dist-es/commands/GetFindingRecommendationCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/GetFindingRecommendationPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +111 -0
- package/dist-types/AccessAnalyzer.d.ts +21 -0
- package/dist-types/AccessAnalyzerClient.d.ts +5 -2
- package/dist-types/commands/ApplyArchiveRuleCommand.d.ts +2 -1
- package/dist-types/commands/CancelPolicyGenerationCommand.d.ts +2 -1
- package/dist-types/commands/CheckAccessNotGrantedCommand.d.ts +6 -2
- package/dist-types/commands/CheckNoNewAccessCommand.d.ts +2 -1
- package/dist-types/commands/CheckNoPublicAccessCommand.d.ts +88 -0
- package/dist-types/commands/CreateAccessPreviewCommand.d.ts +2 -1
- package/dist-types/commands/CreateAnalyzerCommand.d.ts +2 -1
- package/dist-types/commands/CreateArchiveRuleCommand.d.ts +2 -1
- package/dist-types/commands/DeleteAnalyzerCommand.d.ts +2 -1
- package/dist-types/commands/DeleteArchiveRuleCommand.d.ts +2 -1
- package/dist-types/commands/GenerateFindingRecommendationCommand.d.ts +71 -0
- package/dist-types/commands/GetAccessPreviewCommand.d.ts +2 -1
- package/dist-types/commands/GetAnalyzedResourceCommand.d.ts +2 -1
- package/dist-types/commands/GetAnalyzerCommand.d.ts +2 -1
- package/dist-types/commands/GetArchiveRuleCommand.d.ts +2 -1
- package/dist-types/commands/GetFindingCommand.d.ts +2 -1
- package/dist-types/commands/GetFindingRecommendationCommand.d.ts +97 -0
- package/dist-types/commands/GetFindingV2Command.d.ts +2 -1
- package/dist-types/commands/GetGeneratedPolicyCommand.d.ts +2 -1
- package/dist-types/commands/ListAccessPreviewFindingsCommand.d.ts +2 -1
- package/dist-types/commands/ListAccessPreviewsCommand.d.ts +2 -1
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +2 -1
- package/dist-types/commands/ListAnalyzersCommand.d.ts +2 -1
- package/dist-types/commands/ListArchiveRulesCommand.d.ts +2 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +2 -1
- package/dist-types/commands/ListFindingsV2Command.d.ts +2 -1
- package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/StartPolicyGenerationCommand.d.ts +2 -1
- package/dist-types/commands/StartResourceScanCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateArchiveRuleCommand.d.ts +2 -1
- package/dist-types/commands/UpdateFindingsCommand.d.ts +2 -1
- package/dist-types/commands/ValidatePolicyCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/AccessAnalyzerServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +308 -5
- package/dist-types/pagination/GetFindingRecommendationPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +51 -0
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CancelPolicyGenerationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CheckAccessNotGrantedCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CheckNoNewAccessCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CheckNoPublicAccessCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateAnalyzerCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GenerateFindingRecommendationCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetAccessPreviewCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetAnalyzedResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetAnalyzerCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetArchiveRuleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetFindingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetFindingRecommendationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetFindingV2Command.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListAccessPreviewFindingsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListAccessPreviewsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListAnalyzersCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListArchiveRulesCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListFindingsV2Command.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/StartPolicyGenerationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ValidatePolicyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/AccessAnalyzerServiceException.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +110 -1
- package/dist-types/ts3.4/pagination/GetFindingRecommendationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +6 -6
|
@@ -0,0 +1,71 @@
|
|
|
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 { GenerateFindingRecommendationRequest } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GenerateFindingRecommendationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GenerateFindingRecommendationCommandInput extends GenerateFindingRecommendationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GenerateFindingRecommendationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GenerateFindingRecommendationCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GenerateFindingRecommendationCommand_base: {
|
|
25
|
+
new (input: GenerateFindingRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateFindingRecommendationCommandInput, GenerateFindingRecommendationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GenerateFindingRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateFindingRecommendationCommandInput, GenerateFindingRecommendationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a recommendation for an unused permissions finding.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AccessAnalyzerClient, GenerateFindingRecommendationCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
|
|
35
|
+
* // const { AccessAnalyzerClient, GenerateFindingRecommendationCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
|
|
36
|
+
* const client = new AccessAnalyzerClient(config);
|
|
37
|
+
* const input = { // GenerateFindingRecommendationRequest
|
|
38
|
+
* analyzerArn: "STRING_VALUE", // required
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GenerateFindingRecommendationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param GenerateFindingRecommendationCommandInput - {@link GenerateFindingRecommendationCommandInput}
|
|
48
|
+
* @returns {@link GenerateFindingRecommendationCommandOutput}
|
|
49
|
+
* @see {@link GenerateFindingRecommendationCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link GenerateFindingRecommendationCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
54
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InternalServerException} (server fault)
|
|
57
|
+
* <p>Internal server error.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
60
|
+
* <p>Throttling limit exceeded error.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
* <p>Validation exception error.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessAnalyzerServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class GenerateFindingRecommendationCommand extends GenerateFindingRecommendationCommand_base {
|
|
71
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { GetFindingRecommendationRequest, GetFindingRecommendationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetFindingRecommendationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetFindingRecommendationCommandInput extends GetFindingRecommendationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetFindingRecommendationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetFindingRecommendationCommandOutput extends GetFindingRecommendationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetFindingRecommendationCommand_base: {
|
|
25
|
+
new (input: GetFindingRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingRecommendationCommandInput, GetFindingRecommendationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetFindingRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingRecommendationCommandInput, GetFindingRecommendationCommandOutput, AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves information about a finding recommendation for the specified 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, GetFindingRecommendationCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import
|
|
35
|
+
* // const { AccessAnalyzerClient, GetFindingRecommendationCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import
|
|
36
|
+
* const client = new AccessAnalyzerClient(config);
|
|
37
|
+
* const input = { // GetFindingRecommendationRequest
|
|
38
|
+
* analyzerArn: "STRING_VALUE", // required
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* nextToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetFindingRecommendationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetFindingRecommendationResponse
|
|
46
|
+
* // startedAt: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // completedAt: new Date("TIMESTAMP"),
|
|
48
|
+
* // nextToken: "STRING_VALUE",
|
|
49
|
+
* // error: { // RecommendationError
|
|
50
|
+
* // code: "STRING_VALUE", // required
|
|
51
|
+
* // message: "STRING_VALUE", // required
|
|
52
|
+
* // },
|
|
53
|
+
* // resourceArn: "STRING_VALUE", // required
|
|
54
|
+
* // recommendedSteps: [ // RecommendedStepList
|
|
55
|
+
* // { // RecommendedStep Union: only one key present
|
|
56
|
+
* // unusedPermissionsRecommendedStep: { // UnusedPermissionsRecommendedStep
|
|
57
|
+
* // policyUpdatedAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // recommendedAction: "STRING_VALUE", // required
|
|
59
|
+
* // recommendedPolicy: "STRING_VALUE",
|
|
60
|
+
* // existingPolicyId: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // recommendationType: "STRING_VALUE", // required
|
|
65
|
+
* // status: "STRING_VALUE", // required
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param GetFindingRecommendationCommandInput - {@link GetFindingRecommendationCommandInput}
|
|
71
|
+
* @returns {@link GetFindingRecommendationCommandOutput}
|
|
72
|
+
* @see {@link GetFindingRecommendationCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link GetFindingRecommendationCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>Internal server error.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
83
|
+
* <p>The specified resource could not be found.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p>Throttling limit exceeded error.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>Validation exception error.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessAnalyzerServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export declare class GetFindingRecommendationCommand extends GetFindingRecommendationCommand_base {
|
|
97
|
+
}
|
|
@@ -2,16 +2,19 @@ export * from "./ApplyArchiveRuleCommand";
|
|
|
2
2
|
export * from "./CancelPolicyGenerationCommand";
|
|
3
3
|
export * from "./CheckAccessNotGrantedCommand";
|
|
4
4
|
export * from "./CheckNoNewAccessCommand";
|
|
5
|
+
export * from "./CheckNoPublicAccessCommand";
|
|
5
6
|
export * from "./CreateAccessPreviewCommand";
|
|
6
7
|
export * from "./CreateAnalyzerCommand";
|
|
7
8
|
export * from "./CreateArchiveRuleCommand";
|
|
8
9
|
export * from "./DeleteAnalyzerCommand";
|
|
9
10
|
export * from "./DeleteArchiveRuleCommand";
|
|
11
|
+
export * from "./GenerateFindingRecommendationCommand";
|
|
10
12
|
export * from "./GetAccessPreviewCommand";
|
|
11
13
|
export * from "./GetAnalyzedResourceCommand";
|
|
12
14
|
export * from "./GetAnalyzerCommand";
|
|
13
15
|
export * from "./GetArchiveRuleCommand";
|
|
14
16
|
export * from "./GetFindingCommand";
|
|
17
|
+
export * from "./GetFindingRecommendationCommand";
|
|
15
18
|
export * from "./GetFindingV2Command";
|
|
16
19
|
export * from "./GetGeneratedPolicyCommand";
|
|
17
20
|
export * from "./ListAccessPreviewFindingsCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
export * from "./AccessAnalyzerClient";
|
|
30
30
|
export * from "./AccessAnalyzer";
|
|
31
31
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
32
|
-
export { RuntimeExtension } from "./runtimeExtensions";
|
|
33
|
-
export { AccessAnalyzerExtensionConfiguration } from "./extensionConfiguration";
|
|
32
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
33
|
+
export type { AccessAnalyzerExtensionConfiguration } from "./extensionConfiguration";
|
|
34
34
|
export * from "./commands";
|
|
35
35
|
export * from "./pagination";
|
|
36
36
|
export * from "./models";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
-
export {
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*
|