@aws-sdk/client-accessanalyzer 3.775.0 → 3.777.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/dist-types/commands/ApplyArchiveRuleCommand.d.ts +1 -0
- package/dist-types/commands/CancelPolicyGenerationCommand.d.ts +1 -0
- package/dist-types/commands/CheckAccessNotGrantedCommand.d.ts +27 -29
- package/dist-types/commands/CheckNoNewAccessCommand.d.ts +1 -0
- package/dist-types/commands/CheckNoPublicAccessCommand.d.ts +16 -17
- package/dist-types/commands/CreateAccessPreviewCommand.d.ts +1 -0
- package/dist-types/commands/CreateAnalyzerCommand.d.ts +1 -0
- package/dist-types/commands/CreateArchiveRuleCommand.d.ts +1 -0
- package/dist-types/commands/DeleteAnalyzerCommand.d.ts +1 -0
- package/dist-types/commands/DeleteArchiveRuleCommand.d.ts +1 -0
- package/dist-types/commands/GenerateFindingRecommendationCommand.d.ts +14 -9
- package/dist-types/commands/GetAccessPreviewCommand.d.ts +1 -0
- package/dist-types/commands/GetAnalyzedResourceCommand.d.ts +1 -0
- package/dist-types/commands/GetAnalyzerCommand.d.ts +1 -0
- package/dist-types/commands/GetArchiveRuleCommand.d.ts +1 -0
- package/dist-types/commands/GetFindingCommand.d.ts +1 -0
- package/dist-types/commands/GetFindingRecommendationCommand.d.ts +46 -46
- package/dist-types/commands/GetFindingV2Command.d.ts +1 -0
- package/dist-types/commands/GetFindingsStatisticsCommand.d.ts +1 -0
- package/dist-types/commands/GetGeneratedPolicyCommand.d.ts +1 -0
- package/dist-types/commands/ListAccessPreviewFindingsCommand.d.ts +1 -0
- package/dist-types/commands/ListAccessPreviewsCommand.d.ts +1 -0
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +1 -0
- package/dist-types/commands/ListAnalyzersCommand.d.ts +1 -0
- package/dist-types/commands/ListArchiveRulesCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsV2Command.d.ts +1 -0
- package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/StartPolicyGenerationCommand.d.ts +1 -0
- package/dist-types/commands/StartResourceScanCommand.d.ts +1 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateAnalyzerCommand.d.ts +1 -0
- package/dist-types/commands/UpdateArchiveRuleCommand.d.ts +1 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +1 -0
- package/dist-types/commands/ValidatePolicyCommand.d.ts +1 -0
- package/package.json +2 -2
|
@@ -70,6 +70,7 @@ declare const ApplyArchiveRuleCommand_base: {
|
|
|
70
70
|
* @throws {@link AccessAnalyzerServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class ApplyArchiveRuleCommand extends ApplyArchiveRuleCommand_base {
|
|
@@ -64,6 +64,7 @@ declare const CancelPolicyGenerationCommand_base: {
|
|
|
64
64
|
* @throws {@link AccessAnalyzerServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
66
66
|
*
|
|
67
|
+
*
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
70
|
export declare class CancelPolicyGenerationCommand extends CancelPolicyGenerationCommand_base {
|
|
@@ -91,89 +91,87 @@ declare const CheckAccessNotGrantedCommand_base: {
|
|
|
91
91
|
* @throws {@link AccessAnalyzerServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* @example Passing check. Restrictive identity policy.
|
|
96
96
|
* ```javascript
|
|
97
97
|
* //
|
|
98
98
|
* const input = {
|
|
99
|
-
*
|
|
99
|
+
* access: [
|
|
100
100
|
* {
|
|
101
|
-
*
|
|
101
|
+
* actions: [
|
|
102
102
|
* "s3:PutObject"
|
|
103
103
|
* ]
|
|
104
104
|
* }
|
|
105
105
|
* ],
|
|
106
|
-
*
|
|
107
|
-
*
|
|
106
|
+
* policyDocument: `{"Version":"2012-10-17","Id":"123","Statement":[{"Sid":"AllowJohnDoe","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::123456789012:user/JohnDoe"},"Action":"s3:GetObject","Resource":"*"}]}`,
|
|
107
|
+
* policyType: "RESOURCE_POLICY"
|
|
108
108
|
* };
|
|
109
109
|
* const command = new CheckAccessNotGrantedCommand(input);
|
|
110
110
|
* const response = await client.send(command);
|
|
111
|
-
* /* response
|
|
111
|
+
* /* response is
|
|
112
112
|
* {
|
|
113
|
-
*
|
|
114
|
-
*
|
|
113
|
+
* message: "The policy document does not grant access to perform the listed actions or resources.",
|
|
114
|
+
* result: "PASS"
|
|
115
115
|
* }
|
|
116
116
|
* *\/
|
|
117
|
-
* // example id: example-1
|
|
118
117
|
* ```
|
|
119
118
|
*
|
|
120
119
|
* @example Passing check. Restrictive S3 Bucket resource policy.
|
|
121
120
|
* ```javascript
|
|
122
121
|
* //
|
|
123
122
|
* const input = {
|
|
124
|
-
*
|
|
123
|
+
* access: [
|
|
125
124
|
* {
|
|
126
|
-
*
|
|
125
|
+
* resources: [
|
|
127
126
|
* "arn:aws:s3:::sensitive-bucket/*"
|
|
128
127
|
* ]
|
|
129
128
|
* }
|
|
130
129
|
* ],
|
|
131
|
-
*
|
|
132
|
-
*
|
|
130
|
+
* policyDocument: `{"Version":"2012-10-17","Id":"123","Statement":[{"Sid":"AllowJohnDoe","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::123456789012:user/JohnDoe"},"Action":"s3:PutObject","Resource":"arn:aws:s3:::non-sensitive-bucket/*"}]}`,
|
|
131
|
+
* policyType: "RESOURCE_POLICY"
|
|
133
132
|
* };
|
|
134
133
|
* const command = new CheckAccessNotGrantedCommand(input);
|
|
135
134
|
* const response = await client.send(command);
|
|
136
|
-
* /* response
|
|
135
|
+
* /* response is
|
|
137
136
|
* {
|
|
138
|
-
*
|
|
139
|
-
*
|
|
137
|
+
* message: "The policy document does not grant access to perform the listed actions or resources.",
|
|
138
|
+
* result: "PASS"
|
|
140
139
|
* }
|
|
141
140
|
* *\/
|
|
142
|
-
* // example id: example-2
|
|
143
141
|
* ```
|
|
144
142
|
*
|
|
145
143
|
* @example Failing check. Permissive S3 Bucket resource policy.
|
|
146
144
|
* ```javascript
|
|
147
145
|
* //
|
|
148
146
|
* const input = {
|
|
149
|
-
*
|
|
147
|
+
* access: [
|
|
150
148
|
* {
|
|
151
|
-
*
|
|
149
|
+
* resources: [
|
|
152
150
|
* "arn:aws:s3:::my-bucket/*"
|
|
153
151
|
* ]
|
|
154
152
|
* }
|
|
155
153
|
* ],
|
|
156
|
-
*
|
|
157
|
-
*
|
|
154
|
+
* policyDocument: `{"Version":"2012-10-17","Id":"123","Statement":[{"Sid":"AllowJohnDoe","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::123456789012:user/JohnDoe"},"Action":"s3:PutObject","Resource":"arn:aws:s3:::my-bucket/*"}]}`,
|
|
155
|
+
* policyType: "RESOURCE_POLICY"
|
|
158
156
|
* };
|
|
159
157
|
* const command = new CheckAccessNotGrantedCommand(input);
|
|
160
158
|
* const response = await client.send(command);
|
|
161
|
-
* /* response
|
|
159
|
+
* /* response is
|
|
162
160
|
* {
|
|
163
|
-
*
|
|
164
|
-
*
|
|
161
|
+
* message: "The policy document grants access to perform one or more of the listed actions or resources.",
|
|
162
|
+
* reasons: [
|
|
165
163
|
* {
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
164
|
+
* description: "One or more of the listed actions or resources in the statement with sid: AllowJohnDoe.",
|
|
165
|
+
* statementId: "AllowJohnDoe",
|
|
166
|
+
* statementIndex: 0
|
|
169
167
|
* }
|
|
170
168
|
* ],
|
|
171
|
-
*
|
|
169
|
+
* result: "FAIL"
|
|
172
170
|
* }
|
|
173
171
|
* *\/
|
|
174
|
-
* // example id: example-3
|
|
175
172
|
* ```
|
|
176
173
|
*
|
|
174
|
+
* @public
|
|
177
175
|
*/
|
|
178
176
|
export declare class CheckAccessNotGrantedCommand extends CheckAccessNotGrantedCommand_base {
|
|
179
177
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -87,6 +87,7 @@ declare const CheckNoNewAccessCommand_base: {
|
|
|
87
87
|
* @throws {@link AccessAnalyzerServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
89
89
|
*
|
|
90
|
+
*
|
|
90
91
|
* @public
|
|
91
92
|
*/
|
|
92
93
|
export declare class CheckNoNewAccessCommand extends CheckNoNewAccessCommand_base {
|
|
@@ -82,50 +82,49 @@ declare const CheckNoPublicAccessCommand_base: {
|
|
|
82
82
|
* @throws {@link AccessAnalyzerServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example Passing check. S3 Bucket policy without public access.
|
|
87
87
|
* ```javascript
|
|
88
88
|
* //
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* policyDocument: `{"Version":"2012-10-17","Statement":[{"Sid":"Bob","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::111122223333:user/JohnDoe"},"Action":["s3:GetObject"]}]}`,
|
|
91
|
+
* resourceType: "AWS::S3::Bucket"
|
|
92
92
|
* };
|
|
93
93
|
* const command = new CheckNoPublicAccessCommand(input);
|
|
94
94
|
* const response = await client.send(command);
|
|
95
|
-
* /* response
|
|
95
|
+
* /* response is
|
|
96
96
|
* {
|
|
97
|
-
*
|
|
98
|
-
*
|
|
97
|
+
* message: "The resource policy does not grant public access for the given resource type.",
|
|
98
|
+
* result: "PASS"
|
|
99
99
|
* }
|
|
100
100
|
* *\/
|
|
101
|
-
* // example id: example-1
|
|
102
101
|
* ```
|
|
103
102
|
*
|
|
104
103
|
* @example Failing check. S3 Bucket policy with public access.
|
|
105
104
|
* ```javascript
|
|
106
105
|
* //
|
|
107
106
|
* const input = {
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* policyDocument: `{"Version":"2012-10-17","Statement":[{"Sid":"Bob","Effect":"Allow","Principal":"*","Action":["s3:GetObject"]}]}`,
|
|
108
|
+
* resourceType: "AWS::S3::Bucket"
|
|
110
109
|
* };
|
|
111
110
|
* const command = new CheckNoPublicAccessCommand(input);
|
|
112
111
|
* const response = await client.send(command);
|
|
113
|
-
* /* response
|
|
112
|
+
* /* response is
|
|
114
113
|
* {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
114
|
+
* message: "The resource policy grants public access for the given resource type.",
|
|
115
|
+
* reasons: [
|
|
117
116
|
* {
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
117
|
+
* description: "Public access granted in the following statement with sid: Bob.",
|
|
118
|
+
* statementId: "Bob",
|
|
119
|
+
* statementIndex: 0
|
|
121
120
|
* }
|
|
122
121
|
* ],
|
|
123
|
-
*
|
|
122
|
+
* result: "FAIL"
|
|
124
123
|
* }
|
|
125
124
|
* *\/
|
|
126
|
-
* // example id: example-2
|
|
127
125
|
* ```
|
|
128
126
|
*
|
|
127
|
+
* @public
|
|
129
128
|
*/
|
|
130
129
|
export declare class CheckNoPublicAccessCommand extends CheckNoPublicAccessCommand_base {
|
|
131
130
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -192,6 +192,7 @@ declare const CreateAccessPreviewCommand_base: {
|
|
|
192
192
|
* @throws {@link AccessAnalyzerServiceException}
|
|
193
193
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
194
194
|
*
|
|
195
|
+
*
|
|
195
196
|
* @public
|
|
196
197
|
*/
|
|
197
198
|
export declare class CreateAccessPreviewCommand extends CreateAccessPreviewCommand_base {
|
|
@@ -115,6 +115,7 @@ declare const CreateAnalyzerCommand_base: {
|
|
|
115
115
|
* @throws {@link AccessAnalyzerServiceException}
|
|
116
116
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
117
117
|
*
|
|
118
|
+
*
|
|
118
119
|
* @public
|
|
119
120
|
*/
|
|
120
121
|
export declare class CreateAnalyzerCommand extends CreateAnalyzerCommand_base {
|
|
@@ -91,6 +91,7 @@ declare const CreateArchiveRuleCommand_base: {
|
|
|
91
91
|
* @throws {@link AccessAnalyzerServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
93
93
|
*
|
|
94
|
+
*
|
|
94
95
|
* @public
|
|
95
96
|
*/
|
|
96
97
|
export declare class CreateArchiveRuleCommand extends CreateArchiveRuleCommand_base {
|
|
@@ -70,6 +70,7 @@ declare const DeleteAnalyzerCommand_base: {
|
|
|
70
70
|
* @throws {@link AccessAnalyzerServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class DeleteAnalyzerCommand extends DeleteAnalyzerCommand_base {
|
|
@@ -69,6 +69,7 @@ declare const DeleteArchiveRuleCommand_base: {
|
|
|
69
69
|
* @throws {@link AccessAnalyzerServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class DeleteArchiveRuleCommand extends DeleteArchiveRuleCommand_base {
|
|
@@ -65,31 +65,36 @@ declare const GenerateFindingRecommendationCommand_base: {
|
|
|
65
65
|
* @throws {@link AccessAnalyzerServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example Successfully started generating finding recommendation
|
|
70
70
|
* ```javascript
|
|
71
71
|
* //
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
74
|
+
* id: "finding-id"
|
|
75
75
|
* };
|
|
76
76
|
* const command = new GenerateFindingRecommendationCommand(input);
|
|
77
|
-
* await client.send(command);
|
|
78
|
-
*
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* empty *\/ }
|
|
80
|
+
* *\/
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
81
83
|
* @example Failed field validation for id value
|
|
82
84
|
* ```javascript
|
|
83
85
|
* //
|
|
84
86
|
* const input = {
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
88
|
+
* id: "!"
|
|
87
89
|
* };
|
|
88
90
|
* const command = new GenerateFindingRecommendationCommand(input);
|
|
89
|
-
* await client.send(command);
|
|
90
|
-
*
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* /* response is
|
|
93
|
+
* { /* metadata only *\/ }
|
|
94
|
+
* *\/
|
|
91
95
|
* ```
|
|
92
96
|
*
|
|
97
|
+
* @public
|
|
93
98
|
*/
|
|
94
99
|
export declare class GenerateFindingRecommendationCommand extends GenerateFindingRecommendationCommand_base {
|
|
95
100
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -193,6 +193,7 @@ declare const GetAccessPreviewCommand_base: {
|
|
|
193
193
|
* @throws {@link AccessAnalyzerServiceException}
|
|
194
194
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
195
195
|
*
|
|
196
|
+
*
|
|
196
197
|
* @public
|
|
197
198
|
*/
|
|
198
199
|
export declare class GetAccessPreviewCommand extends GetAccessPreviewCommand_base {
|
|
@@ -86,6 +86,7 @@ declare const GetAnalyzedResourceCommand_base: {
|
|
|
86
86
|
* @throws {@link AccessAnalyzerServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
88
88
|
*
|
|
89
|
+
*
|
|
89
90
|
* @public
|
|
90
91
|
*/
|
|
91
92
|
export declare class GetAnalyzedResourceCommand extends GetAnalyzedResourceCommand_base {
|
|
@@ -102,6 +102,7 @@ declare const GetAnalyzerCommand_base: {
|
|
|
102
102
|
* @throws {@link AccessAnalyzerServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
104
104
|
*
|
|
105
|
+
*
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
107
108
|
export declare class GetAnalyzerCommand extends GetAnalyzerCommand_base {
|
|
@@ -89,6 +89,7 @@ declare const GetArchiveRuleCommand_base: {
|
|
|
89
89
|
* @throws {@link AccessAnalyzerServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class GetArchiveRuleCommand extends GetArchiveRuleCommand_base {
|
|
@@ -103,6 +103,7 @@ declare const GetFindingCommand_base: {
|
|
|
103
103
|
* @throws {@link AccessAnalyzerServiceException}
|
|
104
104
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
105
105
|
*
|
|
106
|
+
*
|
|
106
107
|
* @public
|
|
107
108
|
*/
|
|
108
109
|
export declare class GetFindingCommand extends GetFindingCommand_base {
|
|
@@ -91,104 +91,104 @@ declare const GetFindingRecommendationCommand_base: {
|
|
|
91
91
|
* @throws {@link AccessAnalyzerServiceException}
|
|
92
92
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
93
93
|
*
|
|
94
|
-
*
|
|
94
|
+
*
|
|
95
95
|
* @example Successfully fetched finding recommendation
|
|
96
96
|
* ```javascript
|
|
97
97
|
* //
|
|
98
98
|
* const input = {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
99
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
100
|
+
* id: "finding-id",
|
|
101
|
+
* maxResults: 3,
|
|
102
|
+
* nextToken: "token"
|
|
103
103
|
* };
|
|
104
104
|
* const command = new GetFindingRecommendationCommand(input);
|
|
105
105
|
* const response = await client.send(command);
|
|
106
|
-
* /* response
|
|
106
|
+
* /* response is
|
|
107
107
|
* {
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
108
|
+
* completedAt: "2000-01-01T00:00:01Z",
|
|
109
|
+
* recommendationType: "UnusedPermissionRecommendation",
|
|
110
|
+
* recommendedSteps: [
|
|
111
111
|
* {
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
112
|
+
* unusedPermissionsRecommendedStep: {
|
|
113
|
+
* existingPolicyId: "policy-id",
|
|
114
|
+
* recommendedAction: "DETACH_POLICY"
|
|
115
115
|
* }
|
|
116
116
|
* },
|
|
117
117
|
* {
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
118
|
+
* unusedPermissionsRecommendedStep: {
|
|
119
|
+
* existingPolicyId: "policy-id",
|
|
120
|
+
* recommendedAction: "CREATE_POLICY",
|
|
121
|
+
* recommendedPolicy: "policy-content"
|
|
122
122
|
* }
|
|
123
123
|
* }
|
|
124
124
|
* ],
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
125
|
+
* resourceArn: "arn:aws:iam::111122223333:role/test",
|
|
126
|
+
* startedAt: "2000-01-01T00:00:00Z",
|
|
127
|
+
* status: "SUCCEEDED"
|
|
128
128
|
* }
|
|
129
129
|
* *\/
|
|
130
|
-
* // example id: example-1
|
|
131
130
|
* ```
|
|
132
131
|
*
|
|
133
132
|
* @example In progress finding recommendation
|
|
134
133
|
* ```javascript
|
|
135
134
|
* //
|
|
136
135
|
* const input = {
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
136
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
137
|
+
* id: "finding-id",
|
|
138
|
+
* maxResults: 3
|
|
140
139
|
* };
|
|
141
140
|
* const command = new GetFindingRecommendationCommand(input);
|
|
142
141
|
* const response = await client.send(command);
|
|
143
|
-
* /* response
|
|
142
|
+
* /* response is
|
|
144
143
|
* {
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
144
|
+
* recommendationType: "UnusedPermissionRecommendation",
|
|
145
|
+
* resourceArn: "arn:aws:iam::111122223333:role/test",
|
|
146
|
+
* startedAt: "2000-01-01T00:00:00Z",
|
|
147
|
+
* status: "IN_PROGRESS"
|
|
149
148
|
* }
|
|
150
149
|
* *\/
|
|
151
|
-
* // example id: example-2
|
|
152
150
|
* ```
|
|
153
151
|
*
|
|
154
152
|
* @example Failed finding recommendation
|
|
155
153
|
* ```javascript
|
|
156
154
|
* //
|
|
157
155
|
* const input = {
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
156
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
157
|
+
* id: "finding-id",
|
|
158
|
+
* maxResults: 3
|
|
161
159
|
* };
|
|
162
160
|
* const command = new GetFindingRecommendationCommand(input);
|
|
163
161
|
* const response = await client.send(command);
|
|
164
|
-
* /* response
|
|
162
|
+
* /* response is
|
|
165
163
|
* {
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
164
|
+
* completedAt: "2000-01-01T00:00:01Z",
|
|
165
|
+
* error: {
|
|
166
|
+
* code: "SERVICE_ERROR",
|
|
167
|
+
* message: "Service error. Please try again."
|
|
170
168
|
* },
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
169
|
+
* recommendationType: "UnusedPermissionRecommendation",
|
|
170
|
+
* resourceArn: "arn:aws:iam::111122223333:role/test",
|
|
171
|
+
* startedAt: "2000-01-01T00:00:00Z",
|
|
172
|
+
* status: "FAILED"
|
|
175
173
|
* }
|
|
176
174
|
* *\/
|
|
177
|
-
* // example id: example-3
|
|
178
175
|
* ```
|
|
179
176
|
*
|
|
180
177
|
* @example Failed field validation for id value
|
|
181
178
|
* ```javascript
|
|
182
179
|
* //
|
|
183
180
|
* const input = {
|
|
184
|
-
*
|
|
185
|
-
*
|
|
181
|
+
* analyzerArn: "arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a",
|
|
182
|
+
* id: "!"
|
|
186
183
|
* };
|
|
187
184
|
* const command = new GetFindingRecommendationCommand(input);
|
|
188
|
-
* await client.send(command);
|
|
189
|
-
*
|
|
185
|
+
* const response = await client.send(command);
|
|
186
|
+
* /* response is
|
|
187
|
+
* { /* metadata only *\/ }
|
|
188
|
+
* *\/
|
|
190
189
|
* ```
|
|
191
190
|
*
|
|
191
|
+
* @public
|
|
192
192
|
*/
|
|
193
193
|
export declare class GetFindingRecommendationCommand extends GetFindingRecommendationCommand_base {
|
|
194
194
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -131,6 +131,7 @@ declare const GetFindingV2Command_base: {
|
|
|
131
131
|
* @throws {@link AccessAnalyzerServiceException}
|
|
132
132
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
133
133
|
*
|
|
134
|
+
*
|
|
134
135
|
* @public
|
|
135
136
|
*/
|
|
136
137
|
export declare class GetFindingV2Command extends GetFindingV2Command_base {
|
|
@@ -105,6 +105,7 @@ declare const GetFindingsStatisticsCommand_base: {
|
|
|
105
105
|
* @throws {@link AccessAnalyzerServiceException}
|
|
106
106
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
107
107
|
*
|
|
108
|
+
*
|
|
108
109
|
* @public
|
|
109
110
|
*/
|
|
110
111
|
export declare class GetFindingsStatisticsCommand extends GetFindingsStatisticsCommand_base {
|
|
@@ -102,6 +102,7 @@ declare const GetGeneratedPolicyCommand_base: {
|
|
|
102
102
|
* @throws {@link AccessAnalyzerServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
104
104
|
*
|
|
105
|
+
*
|
|
105
106
|
* @public
|
|
106
107
|
*/
|
|
107
108
|
export declare class GetGeneratedPolicyCommand extends GetGeneratedPolicyCommand_base {
|
|
@@ -124,6 +124,7 @@ declare const ListAccessPreviewFindingsCommand_base: {
|
|
|
124
124
|
* @throws {@link AccessAnalyzerServiceException}
|
|
125
125
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
126
126
|
*
|
|
127
|
+
*
|
|
127
128
|
* @public
|
|
128
129
|
*/
|
|
129
130
|
export declare class ListAccessPreviewFindingsCommand extends ListAccessPreviewFindingsCommand_base {
|
|
@@ -82,6 +82,7 @@ declare const ListAccessPreviewsCommand_base: {
|
|
|
82
82
|
* @throws {@link AccessAnalyzerServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
84
84
|
*
|
|
85
|
+
*
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
88
|
export declare class ListAccessPreviewsCommand extends ListAccessPreviewsCommand_base {
|
|
@@ -80,6 +80,7 @@ declare const ListAnalyzedResourcesCommand_base: {
|
|
|
80
80
|
* @throws {@link AccessAnalyzerServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
82
82
|
*
|
|
83
|
+
*
|
|
83
84
|
* @public
|
|
84
85
|
*/
|
|
85
86
|
export declare class ListAnalyzedResourcesCommand extends ListAnalyzedResourcesCommand_base {
|
|
@@ -104,6 +104,7 @@ declare const ListAnalyzersCommand_base: {
|
|
|
104
104
|
* @throws {@link AccessAnalyzerServiceException}
|
|
105
105
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
106
106
|
*
|
|
107
|
+
*
|
|
107
108
|
* @public
|
|
108
109
|
*/
|
|
109
110
|
export declare class ListAnalyzersCommand extends ListAnalyzersCommand_base {
|
|
@@ -89,6 +89,7 @@ declare const ListArchiveRulesCommand_base: {
|
|
|
89
89
|
* @throws {@link AccessAnalyzerServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class ListArchiveRulesCommand extends ListArchiveRulesCommand_base {
|
|
@@ -126,6 +126,7 @@ declare const ListFindingsCommand_base: {
|
|
|
126
126
|
* @throws {@link AccessAnalyzerServiceException}
|
|
127
127
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
128
128
|
*
|
|
129
|
+
*
|
|
129
130
|
* @public
|
|
130
131
|
*/
|
|
131
132
|
export declare class ListFindingsCommand extends ListFindingsCommand_base {
|
|
@@ -107,6 +107,7 @@ declare const ListFindingsV2Command_base: {
|
|
|
107
107
|
* @throws {@link AccessAnalyzerServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
109
109
|
*
|
|
110
|
+
*
|
|
110
111
|
* @public
|
|
111
112
|
*/
|
|
112
113
|
export declare class ListFindingsV2Command extends ListFindingsV2Command_base {
|
|
@@ -77,6 +77,7 @@ declare const ListPolicyGenerationsCommand_base: {
|
|
|
77
77
|
* @throws {@link AccessAnalyzerServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
79
79
|
*
|
|
80
|
+
*
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
82
83
|
export declare class ListPolicyGenerationsCommand extends ListPolicyGenerationsCommand_base {
|
|
@@ -71,6 +71,7 @@ declare const ListTagsForResourceCommand_base: {
|
|
|
71
71
|
* @throws {@link AccessAnalyzerServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
74
75
|
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
@@ -89,6 +89,7 @@ declare const StartPolicyGenerationCommand_base: {
|
|
|
89
89
|
* @throws {@link AccessAnalyzerServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class StartPolicyGenerationCommand extends StartPolicyGenerationCommand_base {
|
|
@@ -69,6 +69,7 @@ declare const StartResourceScanCommand_base: {
|
|
|
69
69
|
* @throws {@link AccessAnalyzerServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class StartResourceScanCommand extends StartResourceScanCommand_base {
|
|
@@ -70,6 +70,7 @@ declare const TagResourceCommand_base: {
|
|
|
70
70
|
* @throws {@link AccessAnalyzerServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
@@ -70,6 +70,7 @@ declare const UntagResourceCommand_base: {
|
|
|
70
70
|
* @throws {@link AccessAnalyzerServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
@@ -109,6 +109,7 @@ declare const UpdateAnalyzerCommand_base: {
|
|
|
109
109
|
* @throws {@link AccessAnalyzerServiceException}
|
|
110
110
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
111
111
|
*
|
|
112
|
+
*
|
|
112
113
|
* @public
|
|
113
114
|
*/
|
|
114
115
|
export declare class UpdateAnalyzerCommand extends UpdateAnalyzerCommand_base {
|
|
@@ -83,6 +83,7 @@ declare const UpdateArchiveRuleCommand_base: {
|
|
|
83
83
|
* @throws {@link AccessAnalyzerServiceException}
|
|
84
84
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
85
85
|
*
|
|
86
|
+
*
|
|
86
87
|
* @public
|
|
87
88
|
*/
|
|
88
89
|
export declare class UpdateArchiveRuleCommand extends UpdateArchiveRuleCommand_base {
|
|
@@ -73,6 +73,7 @@ declare const UpdateFindingsCommand_base: {
|
|
|
73
73
|
* @throws {@link AccessAnalyzerServiceException}
|
|
74
74
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
75
75
|
*
|
|
76
|
+
*
|
|
76
77
|
* @public
|
|
77
78
|
*/
|
|
78
79
|
export declare class UpdateFindingsCommand extends UpdateFindingsCommand_base {
|
|
@@ -108,6 +108,7 @@ declare const ValidatePolicyCommand_base: {
|
|
|
108
108
|
* @throws {@link AccessAnalyzerServiceException}
|
|
109
109
|
* <p>Base exception class for all service exceptions from AccessAnalyzer service.</p>
|
|
110
110
|
*
|
|
111
|
+
*
|
|
111
112
|
* @public
|
|
112
113
|
*/
|
|
113
114
|
export declare class ValidatePolicyCommand extends ValidatePolicyCommand_base {
|
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.777.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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.775.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.777.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|