@aws-sdk/client-accessanalyzer 3.312.0 → 3.316.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-cjs/AccessAnalyzer.js +32 -392
- package/dist-cjs/protocols/Aws_restJson1.js +386 -1418
- package/dist-es/AccessAnalyzer.js +32 -392
- package/dist-es/protocols/Aws_restJson1.js +341 -1373
- package/dist-types/AccessAnalyzer.d.ts +43 -82
- package/dist-types/ts3.4/AccessAnalyzer.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AccessAnalyzer = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("./AccessAnalyzerClient");
|
|
5
6
|
const ApplyArchiveRuleCommand_1 = require("./commands/ApplyArchiveRuleCommand");
|
|
6
7
|
const CancelPolicyGenerationCommand_1 = require("./commands/CancelPolicyGenerationCommand");
|
|
@@ -30,398 +31,37 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
30
31
|
const UpdateArchiveRuleCommand_1 = require("./commands/UpdateArchiveRuleCommand");
|
|
31
32
|
const UpdateFindingsCommand_1 = require("./commands/UpdateFindingsCommand");
|
|
32
33
|
const ValidatePolicyCommand_1 = require("./commands/ValidatePolicyCommand");
|
|
34
|
+
const commands = {
|
|
35
|
+
ApplyArchiveRuleCommand: ApplyArchiveRuleCommand_1.ApplyArchiveRuleCommand,
|
|
36
|
+
CancelPolicyGenerationCommand: CancelPolicyGenerationCommand_1.CancelPolicyGenerationCommand,
|
|
37
|
+
CreateAccessPreviewCommand: CreateAccessPreviewCommand_1.CreateAccessPreviewCommand,
|
|
38
|
+
CreateAnalyzerCommand: CreateAnalyzerCommand_1.CreateAnalyzerCommand,
|
|
39
|
+
CreateArchiveRuleCommand: CreateArchiveRuleCommand_1.CreateArchiveRuleCommand,
|
|
40
|
+
DeleteAnalyzerCommand: DeleteAnalyzerCommand_1.DeleteAnalyzerCommand,
|
|
41
|
+
DeleteArchiveRuleCommand: DeleteArchiveRuleCommand_1.DeleteArchiveRuleCommand,
|
|
42
|
+
GetAccessPreviewCommand: GetAccessPreviewCommand_1.GetAccessPreviewCommand,
|
|
43
|
+
GetAnalyzedResourceCommand: GetAnalyzedResourceCommand_1.GetAnalyzedResourceCommand,
|
|
44
|
+
GetAnalyzerCommand: GetAnalyzerCommand_1.GetAnalyzerCommand,
|
|
45
|
+
GetArchiveRuleCommand: GetArchiveRuleCommand_1.GetArchiveRuleCommand,
|
|
46
|
+
GetFindingCommand: GetFindingCommand_1.GetFindingCommand,
|
|
47
|
+
GetGeneratedPolicyCommand: GetGeneratedPolicyCommand_1.GetGeneratedPolicyCommand,
|
|
48
|
+
ListAccessPreviewFindingsCommand: ListAccessPreviewFindingsCommand_1.ListAccessPreviewFindingsCommand,
|
|
49
|
+
ListAccessPreviewsCommand: ListAccessPreviewsCommand_1.ListAccessPreviewsCommand,
|
|
50
|
+
ListAnalyzedResourcesCommand: ListAnalyzedResourcesCommand_1.ListAnalyzedResourcesCommand,
|
|
51
|
+
ListAnalyzersCommand: ListAnalyzersCommand_1.ListAnalyzersCommand,
|
|
52
|
+
ListArchiveRulesCommand: ListArchiveRulesCommand_1.ListArchiveRulesCommand,
|
|
53
|
+
ListFindingsCommand: ListFindingsCommand_1.ListFindingsCommand,
|
|
54
|
+
ListPolicyGenerationsCommand: ListPolicyGenerationsCommand_1.ListPolicyGenerationsCommand,
|
|
55
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
56
|
+
StartPolicyGenerationCommand: StartPolicyGenerationCommand_1.StartPolicyGenerationCommand,
|
|
57
|
+
StartResourceScanCommand: StartResourceScanCommand_1.StartResourceScanCommand,
|
|
58
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
59
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
60
|
+
UpdateArchiveRuleCommand: UpdateArchiveRuleCommand_1.UpdateArchiveRuleCommand,
|
|
61
|
+
UpdateFindingsCommand: UpdateFindingsCommand_1.UpdateFindingsCommand,
|
|
62
|
+
ValidatePolicyCommand: ValidatePolicyCommand_1.ValidatePolicyCommand,
|
|
63
|
+
};
|
|
33
64
|
class AccessAnalyzer extends AccessAnalyzerClient_1.AccessAnalyzerClient {
|
|
34
|
-
applyArchiveRule(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new ApplyArchiveRuleCommand_1.ApplyArchiveRuleCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
cancelPolicyGeneration(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new CancelPolicyGenerationCommand_1.CancelPolicyGenerationCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
createAccessPreview(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new CreateAccessPreviewCommand_1.CreateAccessPreviewCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
createAnalyzer(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new CreateAnalyzerCommand_1.CreateAnalyzerCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
createArchiveRule(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new CreateArchiveRuleCommand_1.CreateArchiveRuleCommand(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
deleteAnalyzer(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new DeleteAnalyzerCommand_1.DeleteAnalyzerCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
deleteArchiveRule(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new DeleteArchiveRuleCommand_1.DeleteArchiveRuleCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
getAccessPreview(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new GetAccessPreviewCommand_1.GetAccessPreviewCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
getAnalyzedResource(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new GetAnalyzedResourceCommand_1.GetAnalyzedResourceCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
getAnalyzer(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new GetAnalyzerCommand_1.GetAnalyzerCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
getArchiveRule(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new GetArchiveRuleCommand_1.GetArchiveRuleCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
getFinding(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new GetFindingCommand_1.GetFindingCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
getGeneratedPolicy(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new GetGeneratedPolicyCommand_1.GetGeneratedPolicyCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
listAccessPreviewFindings(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new ListAccessPreviewFindingsCommand_1.ListAccessPreviewFindingsCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
listAccessPreviews(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new ListAccessPreviewsCommand_1.ListAccessPreviewsCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
listAnalyzedResources(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new ListAnalyzedResourcesCommand_1.ListAnalyzedResourcesCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
listAnalyzers(args, optionsOrCb, cb) {
|
|
259
|
-
const command = new ListAnalyzersCommand_1.ListAnalyzersCommand(args);
|
|
260
|
-
if (typeof optionsOrCb === "function") {
|
|
261
|
-
this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
else if (typeof cb === "function") {
|
|
264
|
-
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
return this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
listArchiveRules(args, optionsOrCb, cb) {
|
|
273
|
-
const command = new ListArchiveRulesCommand_1.ListArchiveRulesCommand(args);
|
|
274
|
-
if (typeof optionsOrCb === "function") {
|
|
275
|
-
this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
else if (typeof cb === "function") {
|
|
278
|
-
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
return this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
listFindings(args, optionsOrCb, cb) {
|
|
287
|
-
const command = new ListFindingsCommand_1.ListFindingsCommand(args);
|
|
288
|
-
if (typeof optionsOrCb === "function") {
|
|
289
|
-
this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
else if (typeof cb === "function") {
|
|
292
|
-
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
return this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
listPolicyGenerations(args, optionsOrCb, cb) {
|
|
301
|
-
const command = new ListPolicyGenerationsCommand_1.ListPolicyGenerationsCommand(args);
|
|
302
|
-
if (typeof optionsOrCb === "function") {
|
|
303
|
-
this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
else if (typeof cb === "function") {
|
|
306
|
-
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
return this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
315
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
316
|
-
if (typeof optionsOrCb === "function") {
|
|
317
|
-
this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
else if (typeof cb === "function") {
|
|
320
|
-
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
return this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
startPolicyGeneration(args, optionsOrCb, cb) {
|
|
329
|
-
const command = new StartPolicyGenerationCommand_1.StartPolicyGenerationCommand(args);
|
|
330
|
-
if (typeof optionsOrCb === "function") {
|
|
331
|
-
this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
else if (typeof cb === "function") {
|
|
334
|
-
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return this.send(command, optionsOrCb);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
startResourceScan(args, optionsOrCb, cb) {
|
|
343
|
-
const command = new StartResourceScanCommand_1.StartResourceScanCommand(args);
|
|
344
|
-
if (typeof optionsOrCb === "function") {
|
|
345
|
-
this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
else if (typeof cb === "function") {
|
|
348
|
-
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return this.send(command, optionsOrCb);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
tagResource(args, optionsOrCb, cb) {
|
|
357
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
358
|
-
if (typeof optionsOrCb === "function") {
|
|
359
|
-
this.send(command, optionsOrCb);
|
|
360
|
-
}
|
|
361
|
-
else if (typeof cb === "function") {
|
|
362
|
-
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return this.send(command, optionsOrCb);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
untagResource(args, optionsOrCb, cb) {
|
|
371
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
372
|
-
if (typeof optionsOrCb === "function") {
|
|
373
|
-
this.send(command, optionsOrCb);
|
|
374
|
-
}
|
|
375
|
-
else if (typeof cb === "function") {
|
|
376
|
-
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
return this.send(command, optionsOrCb);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
updateArchiveRule(args, optionsOrCb, cb) {
|
|
385
|
-
const command = new UpdateArchiveRuleCommand_1.UpdateArchiveRuleCommand(args);
|
|
386
|
-
if (typeof optionsOrCb === "function") {
|
|
387
|
-
this.send(command, optionsOrCb);
|
|
388
|
-
}
|
|
389
|
-
else if (typeof cb === "function") {
|
|
390
|
-
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return this.send(command, optionsOrCb);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
updateFindings(args, optionsOrCb, cb) {
|
|
399
|
-
const command = new UpdateFindingsCommand_1.UpdateFindingsCommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
}
|
|
403
|
-
else if (typeof cb === "function") {
|
|
404
|
-
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
return this.send(command, optionsOrCb);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
validatePolicy(args, optionsOrCb, cb) {
|
|
413
|
-
const command = new ValidatePolicyCommand_1.ValidatePolicyCommand(args);
|
|
414
|
-
if (typeof optionsOrCb === "function") {
|
|
415
|
-
this.send(command, optionsOrCb);
|
|
416
|
-
}
|
|
417
|
-
else if (typeof cb === "function") {
|
|
418
|
-
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
return this.send(command, optionsOrCb);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
65
|
}
|
|
427
66
|
exports.AccessAnalyzer = AccessAnalyzer;
|
|
67
|
+
(0, smithy_client_1.createAggregatedClient)(commands, AccessAnalyzer);
|