@aws-sdk/client-accessanalyzer 3.186.0 → 3.188.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/AccessAnalyzer.js +114 -121
  3. package/dist-es/AccessAnalyzerClient.js +22 -28
  4. package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
  5. package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
  6. package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
  7. package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
  8. package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
  9. package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
  10. package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
  11. package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
  12. package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
  13. package/dist-es/commands/GetAnalyzerCommand.js +21 -28
  14. package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
  15. package/dist-es/commands/GetFindingCommand.js +21 -28
  16. package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
  17. package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
  18. package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
  19. package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
  20. package/dist-es/commands/ListAnalyzersCommand.js +21 -28
  21. package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
  22. package/dist-es/commands/ListFindingsCommand.js +21 -28
  23. package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
  26. package/dist-es/commands/StartResourceScanCommand.js +22 -29
  27. package/dist-es/commands/TagResourceCommand.js +21 -28
  28. package/dist-es/commands/UntagResourceCommand.js +21 -28
  29. package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
  30. package/dist-es/commands/UpdateFindingsCommand.js +22 -29
  31. package/dist-es/commands/ValidatePolicyCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +409 -220
  35. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
  36. package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
  37. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
  38. package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
  39. package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
  40. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  41. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
  42. package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2350 -3152
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-accessanalyzer
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-accessanalyzer
@@ -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
- var AccessAnalyzer = (function (_super) {
32
- __extends(AccessAnalyzer, _super);
33
- function AccessAnalyzer() {
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.cancelPolicyGeneration = function (args, optionsOrCb, cb) {
51
- var command = new CancelPolicyGenerationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.createAccessPreview = function (args, optionsOrCb, cb) {
65
- var command = new CreateAccessPreviewCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.createAnalyzer = function (args, optionsOrCb, cb) {
79
- var command = new CreateAnalyzerCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.createArchiveRule = function (args, optionsOrCb, cb) {
93
- var command = new CreateArchiveRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.deleteAnalyzer = function (args, optionsOrCb, cb) {
107
- var command = new DeleteAnalyzerCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.deleteArchiveRule = function (args, optionsOrCb, cb) {
121
- var command = new DeleteArchiveRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getAccessPreview = function (args, optionsOrCb, cb) {
135
- var command = new GetAccessPreviewCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getAnalyzedResource = function (args, optionsOrCb, cb) {
149
- var command = new GetAnalyzedResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getAnalyzer = function (args, optionsOrCb, cb) {
163
- var command = new GetAnalyzerCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getArchiveRule = function (args, optionsOrCb, cb) {
177
- var command = new GetArchiveRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getFinding = function (args, optionsOrCb, cb) {
191
- var command = new GetFindingCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.getGeneratedPolicy = function (args, optionsOrCb, cb) {
205
- var command = new GetGeneratedPolicyCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listAccessPreviewFindings = function (args, optionsOrCb, cb) {
219
- var command = new ListAccessPreviewFindingsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listAccessPreviews = function (args, optionsOrCb, cb) {
233
- var command = new ListAccessPreviewsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listAnalyzedResources = function (args, optionsOrCb, cb) {
247
- var command = new ListAnalyzedResourcesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listAnalyzers = function (args, optionsOrCb, cb) {
261
- var command = new ListAnalyzersCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listArchiveRules = function (args, optionsOrCb, cb) {
275
- var command = new ListArchiveRulesCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listFindings = function (args, optionsOrCb, cb) {
289
- var command = new ListFindingsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listPolicyGenerations = function (args, optionsOrCb, cb) {
303
- var command = new ListPolicyGenerationsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
317
- var command = new ListTagsForResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.startPolicyGeneration = function (args, optionsOrCb, cb) {
331
- var command = new StartPolicyGenerationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.startResourceScan = function (args, optionsOrCb, cb) {
345
- var command = new StartResourceScanCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.tagResource = function (args, optionsOrCb, cb) {
359
- var command = new TagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.untagResource = function (args, optionsOrCb, cb) {
373
- var command = new UntagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.updateArchiveRule = function (args, optionsOrCb, cb) {
387
- var command = new UpdateArchiveRuleCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.updateFindings = function (args, optionsOrCb, cb) {
401
- var command = new UpdateFindingsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- AccessAnalyzer.prototype.validatePolicy = function (args, optionsOrCb, cb) {
415
- var command = new ValidatePolicyCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- return AccessAnalyzer;
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
- var AccessAnalyzerClient = (function (_super) {
13
- __extends(AccessAnalyzerClient, _super);
14
- function AccessAnalyzerClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
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
- AccessAnalyzerClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return AccessAnalyzerClient;
38
- }(__Client));
39
- export { AccessAnalyzerClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }