@aws-sdk/client-accessanalyzer 3.180.0 → 3.183.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/CHANGELOG.md +23 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +34 -28
- package/dist-es/AccessAnalyzer.js +114 -121
- package/dist-es/AccessAnalyzerClient.js +22 -28
- package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
- package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
- package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
- package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
- package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
- package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
- package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
- package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
- package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
- package/dist-es/commands/GetAnalyzerCommand.js +21 -28
- package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
- package/dist-es/commands/GetFindingCommand.js +21 -28
- package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
- package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
- package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
- package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
- package/dist-es/commands/ListAnalyzersCommand.js +21 -28
- package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
- package/dist-es/commands/StartResourceScanCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
- package/dist-es/commands/UpdateFindingsCommand.js +22 -29
- package/dist-es/commands/ValidatePolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
- package/dist-es/models/models_0.js +410 -220
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
- package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
- package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2350 -3139
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/models/models_0.d.ts +3 -2
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +33 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AccessAnalyzerClient } from "./AccessAnalyzerClient";
|
|
3
2
|
import { ApplyArchiveRuleCommand, } from "./commands/ApplyArchiveRuleCommand";
|
|
4
3
|
import { CancelPolicyGenerationCommand, } from "./commands/CancelPolicyGenerationCommand";
|
|
@@ -28,403 +27,397 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
28
27
|
import { UpdateArchiveRuleCommand, } from "./commands/UpdateArchiveRuleCommand";
|
|
29
28
|
import { UpdateFindingsCommand, } from "./commands/UpdateFindingsCommand";
|
|
30
29
|
import { ValidatePolicyCommand, } from "./commands/ValidatePolicyCommand";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
}
|
|
36
|
-
AccessAnalyzer.prototype.applyArchiveRule = function (args, optionsOrCb, cb) {
|
|
37
|
-
var command = new ApplyArchiveRuleCommand(args);
|
|
30
|
+
export class AccessAnalyzer extends AccessAnalyzerClient {
|
|
31
|
+
applyArchiveRule(args, optionsOrCb, cb) {
|
|
32
|
+
const command = new ApplyArchiveRuleCommand(args);
|
|
38
33
|
if (typeof optionsOrCb === "function") {
|
|
39
34
|
this.send(command, optionsOrCb);
|
|
40
35
|
}
|
|
41
36
|
else if (typeof cb === "function") {
|
|
42
37
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
38
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
39
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
40
|
}
|
|
46
41
|
else {
|
|
47
42
|
return this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
}
|
|
45
|
+
cancelPolicyGeneration(args, optionsOrCb, cb) {
|
|
46
|
+
const command = new CancelPolicyGenerationCommand(args);
|
|
52
47
|
if (typeof optionsOrCb === "function") {
|
|
53
48
|
this.send(command, optionsOrCb);
|
|
54
49
|
}
|
|
55
50
|
else if (typeof cb === "function") {
|
|
56
51
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
52
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
53
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
54
|
}
|
|
60
55
|
else {
|
|
61
56
|
return this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
}
|
|
59
|
+
createAccessPreview(args, optionsOrCb, cb) {
|
|
60
|
+
const command = new CreateAccessPreviewCommand(args);
|
|
66
61
|
if (typeof optionsOrCb === "function") {
|
|
67
62
|
this.send(command, optionsOrCb);
|
|
68
63
|
}
|
|
69
64
|
else if (typeof cb === "function") {
|
|
70
65
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
66
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
68
|
}
|
|
74
69
|
else {
|
|
75
70
|
return this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
}
|
|
73
|
+
createAnalyzer(args, optionsOrCb, cb) {
|
|
74
|
+
const command = new CreateAnalyzerCommand(args);
|
|
80
75
|
if (typeof optionsOrCb === "function") {
|
|
81
76
|
this.send(command, optionsOrCb);
|
|
82
77
|
}
|
|
83
78
|
else if (typeof cb === "function") {
|
|
84
79
|
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(
|
|
80
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
87
82
|
}
|
|
88
83
|
else {
|
|
89
84
|
return this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
}
|
|
87
|
+
createArchiveRule(args, optionsOrCb, cb) {
|
|
88
|
+
const command = new CreateArchiveRuleCommand(args);
|
|
94
89
|
if (typeof optionsOrCb === "function") {
|
|
95
90
|
this.send(command, optionsOrCb);
|
|
96
91
|
}
|
|
97
92
|
else if (typeof cb === "function") {
|
|
98
93
|
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(
|
|
94
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
101
96
|
}
|
|
102
97
|
else {
|
|
103
98
|
return this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
}
|
|
101
|
+
deleteAnalyzer(args, optionsOrCb, cb) {
|
|
102
|
+
const command = new DeleteAnalyzerCommand(args);
|
|
108
103
|
if (typeof optionsOrCb === "function") {
|
|
109
104
|
this.send(command, optionsOrCb);
|
|
110
105
|
}
|
|
111
106
|
else if (typeof cb === "function") {
|
|
112
107
|
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(
|
|
108
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
115
110
|
}
|
|
116
111
|
else {
|
|
117
112
|
return this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
}
|
|
115
|
+
deleteArchiveRule(args, optionsOrCb, cb) {
|
|
116
|
+
const command = new DeleteArchiveRuleCommand(args);
|
|
122
117
|
if (typeof optionsOrCb === "function") {
|
|
123
118
|
this.send(command, optionsOrCb);
|
|
124
119
|
}
|
|
125
120
|
else if (typeof cb === "function") {
|
|
126
121
|
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(
|
|
122
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
129
124
|
}
|
|
130
125
|
else {
|
|
131
126
|
return this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
}
|
|
129
|
+
getAccessPreview(args, optionsOrCb, cb) {
|
|
130
|
+
const command = new GetAccessPreviewCommand(args);
|
|
136
131
|
if (typeof optionsOrCb === "function") {
|
|
137
132
|
this.send(command, optionsOrCb);
|
|
138
133
|
}
|
|
139
134
|
else if (typeof cb === "function") {
|
|
140
135
|
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(
|
|
136
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
143
138
|
}
|
|
144
139
|
else {
|
|
145
140
|
return this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
}
|
|
143
|
+
getAnalyzedResource(args, optionsOrCb, cb) {
|
|
144
|
+
const command = new GetAnalyzedResourceCommand(args);
|
|
150
145
|
if (typeof optionsOrCb === "function") {
|
|
151
146
|
this.send(command, optionsOrCb);
|
|
152
147
|
}
|
|
153
148
|
else if (typeof cb === "function") {
|
|
154
149
|
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(
|
|
150
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
151
|
this.send(command, optionsOrCb || {}, cb);
|
|
157
152
|
}
|
|
158
153
|
else {
|
|
159
154
|
return this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
156
|
+
}
|
|
157
|
+
getAnalyzer(args, optionsOrCb, cb) {
|
|
158
|
+
const command = new GetAnalyzerCommand(args);
|
|
164
159
|
if (typeof optionsOrCb === "function") {
|
|
165
160
|
this.send(command, optionsOrCb);
|
|
166
161
|
}
|
|
167
162
|
else if (typeof cb === "function") {
|
|
168
163
|
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(
|
|
164
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
165
|
this.send(command, optionsOrCb || {}, cb);
|
|
171
166
|
}
|
|
172
167
|
else {
|
|
173
168
|
return this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
}
|
|
171
|
+
getArchiveRule(args, optionsOrCb, cb) {
|
|
172
|
+
const command = new GetArchiveRuleCommand(args);
|
|
178
173
|
if (typeof optionsOrCb === "function") {
|
|
179
174
|
this.send(command, optionsOrCb);
|
|
180
175
|
}
|
|
181
176
|
else if (typeof cb === "function") {
|
|
182
177
|
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(
|
|
178
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
179
|
this.send(command, optionsOrCb || {}, cb);
|
|
185
180
|
}
|
|
186
181
|
else {
|
|
187
182
|
return this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
184
|
+
}
|
|
185
|
+
getFinding(args, optionsOrCb, cb) {
|
|
186
|
+
const command = new GetFindingCommand(args);
|
|
192
187
|
if (typeof optionsOrCb === "function") {
|
|
193
188
|
this.send(command, optionsOrCb);
|
|
194
189
|
}
|
|
195
190
|
else if (typeof cb === "function") {
|
|
196
191
|
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(
|
|
192
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
193
|
this.send(command, optionsOrCb || {}, cb);
|
|
199
194
|
}
|
|
200
195
|
else {
|
|
201
196
|
return this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
}
|
|
199
|
+
getGeneratedPolicy(args, optionsOrCb, cb) {
|
|
200
|
+
const command = new GetGeneratedPolicyCommand(args);
|
|
206
201
|
if (typeof optionsOrCb === "function") {
|
|
207
202
|
this.send(command, optionsOrCb);
|
|
208
203
|
}
|
|
209
204
|
else if (typeof cb === "function") {
|
|
210
205
|
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(
|
|
206
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
207
|
this.send(command, optionsOrCb || {}, cb);
|
|
213
208
|
}
|
|
214
209
|
else {
|
|
215
210
|
return this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
}
|
|
213
|
+
listAccessPreviewFindings(args, optionsOrCb, cb) {
|
|
214
|
+
const command = new ListAccessPreviewFindingsCommand(args);
|
|
220
215
|
if (typeof optionsOrCb === "function") {
|
|
221
216
|
this.send(command, optionsOrCb);
|
|
222
217
|
}
|
|
223
218
|
else if (typeof cb === "function") {
|
|
224
219
|
if (typeof optionsOrCb !== "object")
|
|
225
|
-
throw new Error(
|
|
220
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
226
221
|
this.send(command, optionsOrCb || {}, cb);
|
|
227
222
|
}
|
|
228
223
|
else {
|
|
229
224
|
return this.send(command, optionsOrCb);
|
|
230
225
|
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
226
|
+
}
|
|
227
|
+
listAccessPreviews(args, optionsOrCb, cb) {
|
|
228
|
+
const command = new ListAccessPreviewsCommand(args);
|
|
234
229
|
if (typeof optionsOrCb === "function") {
|
|
235
230
|
this.send(command, optionsOrCb);
|
|
236
231
|
}
|
|
237
232
|
else if (typeof cb === "function") {
|
|
238
233
|
if (typeof optionsOrCb !== "object")
|
|
239
|
-
throw new Error(
|
|
234
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
240
235
|
this.send(command, optionsOrCb || {}, cb);
|
|
241
236
|
}
|
|
242
237
|
else {
|
|
243
238
|
return this.send(command, optionsOrCb);
|
|
244
239
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
240
|
+
}
|
|
241
|
+
listAnalyzedResources(args, optionsOrCb, cb) {
|
|
242
|
+
const command = new ListAnalyzedResourcesCommand(args);
|
|
248
243
|
if (typeof optionsOrCb === "function") {
|
|
249
244
|
this.send(command, optionsOrCb);
|
|
250
245
|
}
|
|
251
246
|
else if (typeof cb === "function") {
|
|
252
247
|
if (typeof optionsOrCb !== "object")
|
|
253
|
-
throw new Error(
|
|
248
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
254
249
|
this.send(command, optionsOrCb || {}, cb);
|
|
255
250
|
}
|
|
256
251
|
else {
|
|
257
252
|
return this.send(command, optionsOrCb);
|
|
258
253
|
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
}
|
|
255
|
+
listAnalyzers(args, optionsOrCb, cb) {
|
|
256
|
+
const command = new ListAnalyzersCommand(args);
|
|
262
257
|
if (typeof optionsOrCb === "function") {
|
|
263
258
|
this.send(command, optionsOrCb);
|
|
264
259
|
}
|
|
265
260
|
else if (typeof cb === "function") {
|
|
266
261
|
if (typeof optionsOrCb !== "object")
|
|
267
|
-
throw new Error(
|
|
262
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
268
263
|
this.send(command, optionsOrCb || {}, cb);
|
|
269
264
|
}
|
|
270
265
|
else {
|
|
271
266
|
return this.send(command, optionsOrCb);
|
|
272
267
|
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
268
|
+
}
|
|
269
|
+
listArchiveRules(args, optionsOrCb, cb) {
|
|
270
|
+
const command = new ListArchiveRulesCommand(args);
|
|
276
271
|
if (typeof optionsOrCb === "function") {
|
|
277
272
|
this.send(command, optionsOrCb);
|
|
278
273
|
}
|
|
279
274
|
else if (typeof cb === "function") {
|
|
280
275
|
if (typeof optionsOrCb !== "object")
|
|
281
|
-
throw new Error(
|
|
276
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
282
277
|
this.send(command, optionsOrCb || {}, cb);
|
|
283
278
|
}
|
|
284
279
|
else {
|
|
285
280
|
return this.send(command, optionsOrCb);
|
|
286
281
|
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
282
|
+
}
|
|
283
|
+
listFindings(args, optionsOrCb, cb) {
|
|
284
|
+
const command = new ListFindingsCommand(args);
|
|
290
285
|
if (typeof optionsOrCb === "function") {
|
|
291
286
|
this.send(command, optionsOrCb);
|
|
292
287
|
}
|
|
293
288
|
else if (typeof cb === "function") {
|
|
294
289
|
if (typeof optionsOrCb !== "object")
|
|
295
|
-
throw new Error(
|
|
290
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
296
291
|
this.send(command, optionsOrCb || {}, cb);
|
|
297
292
|
}
|
|
298
293
|
else {
|
|
299
294
|
return this.send(command, optionsOrCb);
|
|
300
295
|
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
296
|
+
}
|
|
297
|
+
listPolicyGenerations(args, optionsOrCb, cb) {
|
|
298
|
+
const command = new ListPolicyGenerationsCommand(args);
|
|
304
299
|
if (typeof optionsOrCb === "function") {
|
|
305
300
|
this.send(command, optionsOrCb);
|
|
306
301
|
}
|
|
307
302
|
else if (typeof cb === "function") {
|
|
308
303
|
if (typeof optionsOrCb !== "object")
|
|
309
|
-
throw new Error(
|
|
304
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
310
305
|
this.send(command, optionsOrCb || {}, cb);
|
|
311
306
|
}
|
|
312
307
|
else {
|
|
313
308
|
return this.send(command, optionsOrCb);
|
|
314
309
|
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
310
|
+
}
|
|
311
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
312
|
+
const command = new ListTagsForResourceCommand(args);
|
|
318
313
|
if (typeof optionsOrCb === "function") {
|
|
319
314
|
this.send(command, optionsOrCb);
|
|
320
315
|
}
|
|
321
316
|
else if (typeof cb === "function") {
|
|
322
317
|
if (typeof optionsOrCb !== "object")
|
|
323
|
-
throw new Error(
|
|
318
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
324
319
|
this.send(command, optionsOrCb || {}, cb);
|
|
325
320
|
}
|
|
326
321
|
else {
|
|
327
322
|
return this.send(command, optionsOrCb);
|
|
328
323
|
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
324
|
+
}
|
|
325
|
+
startPolicyGeneration(args, optionsOrCb, cb) {
|
|
326
|
+
const command = new StartPolicyGenerationCommand(args);
|
|
332
327
|
if (typeof optionsOrCb === "function") {
|
|
333
328
|
this.send(command, optionsOrCb);
|
|
334
329
|
}
|
|
335
330
|
else if (typeof cb === "function") {
|
|
336
331
|
if (typeof optionsOrCb !== "object")
|
|
337
|
-
throw new Error(
|
|
332
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
338
333
|
this.send(command, optionsOrCb || {}, cb);
|
|
339
334
|
}
|
|
340
335
|
else {
|
|
341
336
|
return this.send(command, optionsOrCb);
|
|
342
337
|
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
}
|
|
339
|
+
startResourceScan(args, optionsOrCb, cb) {
|
|
340
|
+
const command = new StartResourceScanCommand(args);
|
|
346
341
|
if (typeof optionsOrCb === "function") {
|
|
347
342
|
this.send(command, optionsOrCb);
|
|
348
343
|
}
|
|
349
344
|
else if (typeof cb === "function") {
|
|
350
345
|
if (typeof optionsOrCb !== "object")
|
|
351
|
-
throw new Error(
|
|
346
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
352
347
|
this.send(command, optionsOrCb || {}, cb);
|
|
353
348
|
}
|
|
354
349
|
else {
|
|
355
350
|
return this.send(command, optionsOrCb);
|
|
356
351
|
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
352
|
+
}
|
|
353
|
+
tagResource(args, optionsOrCb, cb) {
|
|
354
|
+
const command = new TagResourceCommand(args);
|
|
360
355
|
if (typeof optionsOrCb === "function") {
|
|
361
356
|
this.send(command, optionsOrCb);
|
|
362
357
|
}
|
|
363
358
|
else if (typeof cb === "function") {
|
|
364
359
|
if (typeof optionsOrCb !== "object")
|
|
365
|
-
throw new Error(
|
|
360
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
366
361
|
this.send(command, optionsOrCb || {}, cb);
|
|
367
362
|
}
|
|
368
363
|
else {
|
|
369
364
|
return this.send(command, optionsOrCb);
|
|
370
365
|
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
|
|
366
|
+
}
|
|
367
|
+
untagResource(args, optionsOrCb, cb) {
|
|
368
|
+
const command = new UntagResourceCommand(args);
|
|
374
369
|
if (typeof optionsOrCb === "function") {
|
|
375
370
|
this.send(command, optionsOrCb);
|
|
376
371
|
}
|
|
377
372
|
else if (typeof cb === "function") {
|
|
378
373
|
if (typeof optionsOrCb !== "object")
|
|
379
|
-
throw new Error(
|
|
374
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
380
375
|
this.send(command, optionsOrCb || {}, cb);
|
|
381
376
|
}
|
|
382
377
|
else {
|
|
383
378
|
return this.send(command, optionsOrCb);
|
|
384
379
|
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
380
|
+
}
|
|
381
|
+
updateArchiveRule(args, optionsOrCb, cb) {
|
|
382
|
+
const command = new UpdateArchiveRuleCommand(args);
|
|
388
383
|
if (typeof optionsOrCb === "function") {
|
|
389
384
|
this.send(command, optionsOrCb);
|
|
390
385
|
}
|
|
391
386
|
else if (typeof cb === "function") {
|
|
392
387
|
if (typeof optionsOrCb !== "object")
|
|
393
|
-
throw new Error(
|
|
388
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
394
389
|
this.send(command, optionsOrCb || {}, cb);
|
|
395
390
|
}
|
|
396
391
|
else {
|
|
397
392
|
return this.send(command, optionsOrCb);
|
|
398
393
|
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
394
|
+
}
|
|
395
|
+
updateFindings(args, optionsOrCb, cb) {
|
|
396
|
+
const command = new UpdateFindingsCommand(args);
|
|
402
397
|
if (typeof optionsOrCb === "function") {
|
|
403
398
|
this.send(command, optionsOrCb);
|
|
404
399
|
}
|
|
405
400
|
else if (typeof cb === "function") {
|
|
406
401
|
if (typeof optionsOrCb !== "object")
|
|
407
|
-
throw new Error(
|
|
402
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
408
403
|
this.send(command, optionsOrCb || {}, cb);
|
|
409
404
|
}
|
|
410
405
|
else {
|
|
411
406
|
return this.send(command, optionsOrCb);
|
|
412
407
|
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
408
|
+
}
|
|
409
|
+
validatePolicy(args, optionsOrCb, cb) {
|
|
410
|
+
const command = new ValidatePolicyCommand(args);
|
|
416
411
|
if (typeof optionsOrCb === "function") {
|
|
417
412
|
this.send(command, optionsOrCb);
|
|
418
413
|
}
|
|
419
414
|
else if (typeof cb === "function") {
|
|
420
415
|
if (typeof optionsOrCb !== "object")
|
|
421
|
-
throw new Error(
|
|
416
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
422
417
|
this.send(command, optionsOrCb || {}, cb);
|
|
423
418
|
}
|
|
424
419
|
else {
|
|
425
420
|
return this.send(command, optionsOrCb);
|
|
426
421
|
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
}(AccessAnalyzerClient));
|
|
430
|
-
export { AccessAnalyzer };
|
|
422
|
+
}
|
|
423
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class AccessAnalyzerClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { AccessAnalyzerClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ApplyArchiveRuleRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1ApplyArchiveRuleCommand, serializeAws_restJson1ApplyArchiveRuleCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ApplyArchiveRuleCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AccessAnalyzerClient";
|
|
15
|
+
const commandName = "ApplyArchiveRuleCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ApplyArchiveRuleRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ApplyArchiveRuleCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1ApplyArchiveRuleCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1ApplyArchiveRuleCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ApplyArchiveRuleCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|