@aws-sdk/client-inspector2 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/Inspector2.js +36 -448
- package/dist-cjs/protocols/Aws_restJson1.js +637 -1691
- package/dist-es/Inspector2.js +36 -448
- package/dist-es/protocols/Aws_restJson1.js +598 -1652
- package/dist-types/Inspector2.d.ts +40 -74
- package/dist-types/ts3.4/Inspector2.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/Inspector2.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Inspector2 = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AssociateMemberCommand_1 = require("./commands/AssociateMemberCommand");
|
|
5
6
|
const BatchGetAccountStatusCommand_1 = require("./commands/BatchGetAccountStatusCommand");
|
|
6
7
|
const BatchGetFreeTrialInfoCommand_1 = require("./commands/BatchGetFreeTrialInfoCommand");
|
|
@@ -34,454 +35,41 @@ const UpdateConfigurationCommand_1 = require("./commands/UpdateConfigurationComm
|
|
|
34
35
|
const UpdateFilterCommand_1 = require("./commands/UpdateFilterCommand");
|
|
35
36
|
const UpdateOrganizationConfigurationCommand_1 = require("./commands/UpdateOrganizationConfigurationCommand");
|
|
36
37
|
const Inspector2Client_1 = require("./Inspector2Client");
|
|
38
|
+
const commands = {
|
|
39
|
+
AssociateMemberCommand: AssociateMemberCommand_1.AssociateMemberCommand,
|
|
40
|
+
BatchGetAccountStatusCommand: BatchGetAccountStatusCommand_1.BatchGetAccountStatusCommand,
|
|
41
|
+
BatchGetFreeTrialInfoCommand: BatchGetFreeTrialInfoCommand_1.BatchGetFreeTrialInfoCommand,
|
|
42
|
+
CancelFindingsReportCommand: CancelFindingsReportCommand_1.CancelFindingsReportCommand,
|
|
43
|
+
CreateFilterCommand: CreateFilterCommand_1.CreateFilterCommand,
|
|
44
|
+
CreateFindingsReportCommand: CreateFindingsReportCommand_1.CreateFindingsReportCommand,
|
|
45
|
+
DeleteFilterCommand: DeleteFilterCommand_1.DeleteFilterCommand,
|
|
46
|
+
DescribeOrganizationConfigurationCommand: DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand,
|
|
47
|
+
DisableCommand: DisableCommand_1.DisableCommand,
|
|
48
|
+
DisableDelegatedAdminAccountCommand: DisableDelegatedAdminAccountCommand_1.DisableDelegatedAdminAccountCommand,
|
|
49
|
+
DisassociateMemberCommand: DisassociateMemberCommand_1.DisassociateMemberCommand,
|
|
50
|
+
EnableCommand: EnableCommand_1.EnableCommand,
|
|
51
|
+
EnableDelegatedAdminAccountCommand: EnableDelegatedAdminAccountCommand_1.EnableDelegatedAdminAccountCommand,
|
|
52
|
+
GetConfigurationCommand: GetConfigurationCommand_1.GetConfigurationCommand,
|
|
53
|
+
GetDelegatedAdminAccountCommand: GetDelegatedAdminAccountCommand_1.GetDelegatedAdminAccountCommand,
|
|
54
|
+
GetFindingsReportStatusCommand: GetFindingsReportStatusCommand_1.GetFindingsReportStatusCommand,
|
|
55
|
+
GetMemberCommand: GetMemberCommand_1.GetMemberCommand,
|
|
56
|
+
ListAccountPermissionsCommand: ListAccountPermissionsCommand_1.ListAccountPermissionsCommand,
|
|
57
|
+
ListCoverageCommand: ListCoverageCommand_1.ListCoverageCommand,
|
|
58
|
+
ListCoverageStatisticsCommand: ListCoverageStatisticsCommand_1.ListCoverageStatisticsCommand,
|
|
59
|
+
ListDelegatedAdminAccountsCommand: ListDelegatedAdminAccountsCommand_1.ListDelegatedAdminAccountsCommand,
|
|
60
|
+
ListFiltersCommand: ListFiltersCommand_1.ListFiltersCommand,
|
|
61
|
+
ListFindingAggregationsCommand: ListFindingAggregationsCommand_1.ListFindingAggregationsCommand,
|
|
62
|
+
ListFindingsCommand: ListFindingsCommand_1.ListFindingsCommand,
|
|
63
|
+
ListMembersCommand: ListMembersCommand_1.ListMembersCommand,
|
|
64
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
65
|
+
ListUsageTotalsCommand: ListUsageTotalsCommand_1.ListUsageTotalsCommand,
|
|
66
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
67
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
68
|
+
UpdateConfigurationCommand: UpdateConfigurationCommand_1.UpdateConfigurationCommand,
|
|
69
|
+
UpdateFilterCommand: UpdateFilterCommand_1.UpdateFilterCommand,
|
|
70
|
+
UpdateOrganizationConfigurationCommand: UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand,
|
|
71
|
+
};
|
|
37
72
|
class Inspector2 extends Inspector2Client_1.Inspector2Client {
|
|
38
|
-
associateMember(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new AssociateMemberCommand_1.AssociateMemberCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
batchGetAccountStatus(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new BatchGetAccountStatusCommand_1.BatchGetAccountStatusCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
batchGetFreeTrialInfo(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new BatchGetFreeTrialInfoCommand_1.BatchGetFreeTrialInfoCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
cancelFindingsReport(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new CancelFindingsReportCommand_1.CancelFindingsReportCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
createFilter(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new CreateFilterCommand_1.CreateFilterCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
createFindingsReport(args, optionsOrCb, cb) {
|
|
109
|
-
const command = new CreateFindingsReportCommand_1.CreateFindingsReportCommand(args);
|
|
110
|
-
if (typeof optionsOrCb === "function") {
|
|
111
|
-
this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
else if (typeof cb === "function") {
|
|
114
|
-
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
deleteFilter(args, optionsOrCb, cb) {
|
|
123
|
-
const command = new DeleteFilterCommand_1.DeleteFilterCommand(args);
|
|
124
|
-
if (typeof optionsOrCb === "function") {
|
|
125
|
-
this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
describeOrganizationConfiguration(args, optionsOrCb, cb) {
|
|
137
|
-
const command = new DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand(args);
|
|
138
|
-
if (typeof optionsOrCb === "function") {
|
|
139
|
-
this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
return this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
disable(args, optionsOrCb, cb) {
|
|
151
|
-
const command = new DisableCommand_1.DisableCommand(args);
|
|
152
|
-
if (typeof optionsOrCb === "function") {
|
|
153
|
-
this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
else if (typeof cb === "function") {
|
|
156
|
-
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
disableDelegatedAdminAccount(args, optionsOrCb, cb) {
|
|
165
|
-
const command = new DisableDelegatedAdminAccountCommand_1.DisableDelegatedAdminAccountCommand(args);
|
|
166
|
-
if (typeof optionsOrCb === "function") {
|
|
167
|
-
this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
disassociateMember(args, optionsOrCb, cb) {
|
|
179
|
-
const command = new DisassociateMemberCommand_1.DisassociateMemberCommand(args);
|
|
180
|
-
if (typeof optionsOrCb === "function") {
|
|
181
|
-
this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
else if (typeof cb === "function") {
|
|
184
|
-
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
enable(args, optionsOrCb, cb) {
|
|
193
|
-
const command = new EnableCommand_1.EnableCommand(args);
|
|
194
|
-
if (typeof optionsOrCb === "function") {
|
|
195
|
-
this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
else if (typeof cb === "function") {
|
|
198
|
-
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
enableDelegatedAdminAccount(args, optionsOrCb, cb) {
|
|
207
|
-
const command = new EnableDelegatedAdminAccountCommand_1.EnableDelegatedAdminAccountCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
else if (typeof cb === "function") {
|
|
212
|
-
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
return this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
getConfiguration(args, optionsOrCb, cb) {
|
|
221
|
-
const command = new GetConfigurationCommand_1.GetConfigurationCommand(args);
|
|
222
|
-
if (typeof optionsOrCb === "function") {
|
|
223
|
-
this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
else if (typeof cb === "function") {
|
|
226
|
-
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
getDelegatedAdminAccount(args, optionsOrCb, cb) {
|
|
235
|
-
const command = new GetDelegatedAdminAccountCommand_1.GetDelegatedAdminAccountCommand(args);
|
|
236
|
-
if (typeof optionsOrCb === "function") {
|
|
237
|
-
this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
else if (typeof cb === "function") {
|
|
240
|
-
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
getFindingsReportStatus(args, optionsOrCb, cb) {
|
|
249
|
-
const command = new GetFindingsReportStatusCommand_1.GetFindingsReportStatusCommand(args);
|
|
250
|
-
if (typeof optionsOrCb === "function") {
|
|
251
|
-
this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
else if (typeof cb === "function") {
|
|
254
|
-
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
return this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
getMember(args, optionsOrCb, cb) {
|
|
263
|
-
const command = new GetMemberCommand_1.GetMemberCommand(args);
|
|
264
|
-
if (typeof optionsOrCb === "function") {
|
|
265
|
-
this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
else if (typeof cb === "function") {
|
|
268
|
-
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
return this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
listAccountPermissions(args, optionsOrCb, cb) {
|
|
277
|
-
const command = new ListAccountPermissionsCommand_1.ListAccountPermissionsCommand(args);
|
|
278
|
-
if (typeof optionsOrCb === "function") {
|
|
279
|
-
this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
else if (typeof cb === "function") {
|
|
282
|
-
if (typeof optionsOrCb !== "object")
|
|
283
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
284
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
return this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
listCoverage(args, optionsOrCb, cb) {
|
|
291
|
-
const command = new ListCoverageCommand_1.ListCoverageCommand(args);
|
|
292
|
-
if (typeof optionsOrCb === "function") {
|
|
293
|
-
this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
else if (typeof cb === "function") {
|
|
296
|
-
if (typeof optionsOrCb !== "object")
|
|
297
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
listCoverageStatistics(args, optionsOrCb, cb) {
|
|
305
|
-
const command = new ListCoverageStatisticsCommand_1.ListCoverageStatisticsCommand(args);
|
|
306
|
-
if (typeof optionsOrCb === "function") {
|
|
307
|
-
this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
else if (typeof cb === "function") {
|
|
310
|
-
if (typeof optionsOrCb !== "object")
|
|
311
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
312
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
return this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
listDelegatedAdminAccounts(args, optionsOrCb, cb) {
|
|
319
|
-
const command = new ListDelegatedAdminAccountsCommand_1.ListDelegatedAdminAccountsCommand(args);
|
|
320
|
-
if (typeof optionsOrCb === "function") {
|
|
321
|
-
this.send(command, optionsOrCb);
|
|
322
|
-
}
|
|
323
|
-
else if (typeof cb === "function") {
|
|
324
|
-
if (typeof optionsOrCb !== "object")
|
|
325
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
326
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
return this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
listFilters(args, optionsOrCb, cb) {
|
|
333
|
-
const command = new ListFiltersCommand_1.ListFiltersCommand(args);
|
|
334
|
-
if (typeof optionsOrCb === "function") {
|
|
335
|
-
this.send(command, optionsOrCb);
|
|
336
|
-
}
|
|
337
|
-
else if (typeof cb === "function") {
|
|
338
|
-
if (typeof optionsOrCb !== "object")
|
|
339
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
340
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
return this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
listFindingAggregations(args, optionsOrCb, cb) {
|
|
347
|
-
const command = new ListFindingAggregationsCommand_1.ListFindingAggregationsCommand(args);
|
|
348
|
-
if (typeof optionsOrCb === "function") {
|
|
349
|
-
this.send(command, optionsOrCb);
|
|
350
|
-
}
|
|
351
|
-
else if (typeof cb === "function") {
|
|
352
|
-
if (typeof optionsOrCb !== "object")
|
|
353
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
354
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
return this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
listFindings(args, optionsOrCb, cb) {
|
|
361
|
-
const command = new ListFindingsCommand_1.ListFindingsCommand(args);
|
|
362
|
-
if (typeof optionsOrCb === "function") {
|
|
363
|
-
this.send(command, optionsOrCb);
|
|
364
|
-
}
|
|
365
|
-
else if (typeof cb === "function") {
|
|
366
|
-
if (typeof optionsOrCb !== "object")
|
|
367
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
368
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
return this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
listMembers(args, optionsOrCb, cb) {
|
|
375
|
-
const command = new ListMembersCommand_1.ListMembersCommand(args);
|
|
376
|
-
if (typeof optionsOrCb === "function") {
|
|
377
|
-
this.send(command, optionsOrCb);
|
|
378
|
-
}
|
|
379
|
-
else if (typeof cb === "function") {
|
|
380
|
-
if (typeof optionsOrCb !== "object")
|
|
381
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
382
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
return this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
389
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
390
|
-
if (typeof optionsOrCb === "function") {
|
|
391
|
-
this.send(command, optionsOrCb);
|
|
392
|
-
}
|
|
393
|
-
else if (typeof cb === "function") {
|
|
394
|
-
if (typeof optionsOrCb !== "object")
|
|
395
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
396
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
return this.send(command, optionsOrCb);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
listUsageTotals(args, optionsOrCb, cb) {
|
|
403
|
-
const command = new ListUsageTotalsCommand_1.ListUsageTotalsCommand(args);
|
|
404
|
-
if (typeof optionsOrCb === "function") {
|
|
405
|
-
this.send(command, optionsOrCb);
|
|
406
|
-
}
|
|
407
|
-
else if (typeof cb === "function") {
|
|
408
|
-
if (typeof optionsOrCb !== "object")
|
|
409
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
410
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
return this.send(command, optionsOrCb);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
tagResource(args, optionsOrCb, cb) {
|
|
417
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
418
|
-
if (typeof optionsOrCb === "function") {
|
|
419
|
-
this.send(command, optionsOrCb);
|
|
420
|
-
}
|
|
421
|
-
else if (typeof cb === "function") {
|
|
422
|
-
if (typeof optionsOrCb !== "object")
|
|
423
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
424
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
return this.send(command, optionsOrCb);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
untagResource(args, optionsOrCb, cb) {
|
|
431
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
432
|
-
if (typeof optionsOrCb === "function") {
|
|
433
|
-
this.send(command, optionsOrCb);
|
|
434
|
-
}
|
|
435
|
-
else if (typeof cb === "function") {
|
|
436
|
-
if (typeof optionsOrCb !== "object")
|
|
437
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
438
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
return this.send(command, optionsOrCb);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
updateConfiguration(args, optionsOrCb, cb) {
|
|
445
|
-
const command = new UpdateConfigurationCommand_1.UpdateConfigurationCommand(args);
|
|
446
|
-
if (typeof optionsOrCb === "function") {
|
|
447
|
-
this.send(command, optionsOrCb);
|
|
448
|
-
}
|
|
449
|
-
else if (typeof cb === "function") {
|
|
450
|
-
if (typeof optionsOrCb !== "object")
|
|
451
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
452
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
return this.send(command, optionsOrCb);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
updateFilter(args, optionsOrCb, cb) {
|
|
459
|
-
const command = new UpdateFilterCommand_1.UpdateFilterCommand(args);
|
|
460
|
-
if (typeof optionsOrCb === "function") {
|
|
461
|
-
this.send(command, optionsOrCb);
|
|
462
|
-
}
|
|
463
|
-
else if (typeof cb === "function") {
|
|
464
|
-
if (typeof optionsOrCb !== "object")
|
|
465
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
466
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
467
|
-
}
|
|
468
|
-
else {
|
|
469
|
-
return this.send(command, optionsOrCb);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
updateOrganizationConfiguration(args, optionsOrCb, cb) {
|
|
473
|
-
const command = new UpdateOrganizationConfigurationCommand_1.UpdateOrganizationConfigurationCommand(args);
|
|
474
|
-
if (typeof optionsOrCb === "function") {
|
|
475
|
-
this.send(command, optionsOrCb);
|
|
476
|
-
}
|
|
477
|
-
else if (typeof cb === "function") {
|
|
478
|
-
if (typeof optionsOrCb !== "object")
|
|
479
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
480
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
return this.send(command, optionsOrCb);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
73
|
}
|
|
487
74
|
exports.Inspector2 = Inspector2;
|
|
75
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Inspector2);
|