@aws-sdk/client-securityhub 3.185.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.
- package/CHANGELOG.md +16 -0
- package/dist-es/SecurityHub.js +226 -233
- package/dist-es/SecurityHubClient.js +22 -28
- package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
- package/dist-es/commands/AcceptInvitationCommand.js +21 -28
- package/dist-es/commands/BatchDisableStandardsCommand.js +21 -28
- package/dist-es/commands/BatchEnableStandardsCommand.js +21 -28
- package/dist-es/commands/BatchImportFindingsCommand.js +21 -28
- package/dist-es/commands/BatchUpdateFindingsCommand.js +21 -28
- package/dist-es/commands/CreateActionTargetCommand.js +21 -28
- package/dist-es/commands/CreateFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/CreateInsightCommand.js +21 -28
- package/dist-es/commands/CreateMembersCommand.js +21 -28
- package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteActionTargetCommand.js +21 -28
- package/dist-es/commands/DeleteFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/DeleteInsightCommand.js +21 -28
- package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteMembersCommand.js +21 -28
- package/dist-es/commands/DescribeActionTargetsCommand.js +21 -28
- package/dist-es/commands/DescribeHubCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeProductsCommand.js +21 -28
- package/dist-es/commands/DescribeStandardsCommand.js +21 -28
- package/dist-es/commands/DescribeStandardsControlsCommand.js +21 -28
- package/dist-es/commands/DisableImportFindingsForProductCommand.js +21 -28
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/DisableSecurityHubCommand.js +21 -28
- package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateMembersCommand.js +21 -28
- package/dist-es/commands/EnableImportFindingsForProductCommand.js +21 -28
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/EnableSecurityHubCommand.js +21 -28
- package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/GetEnabledStandardsCommand.js +21 -28
- package/dist-es/commands/GetFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/GetFindingsCommand.js +21 -28
- package/dist-es/commands/GetInsightResultsCommand.js +21 -28
- package/dist-es/commands/GetInsightsCommand.js +21 -28
- package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
- package/dist-es/commands/GetMasterAccountCommand.js +21 -28
- package/dist-es/commands/GetMembersCommand.js +21 -28
- package/dist-es/commands/InviteMembersCommand.js +21 -28
- package/dist-es/commands/ListEnabledProductsForImportCommand.js +21 -28
- package/dist-es/commands/ListFindingAggregatorsCommand.js +21 -28
- package/dist-es/commands/ListInvitationsCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateActionTargetCommand.js +21 -28
- package/dist-es/commands/UpdateFindingAggregatorCommand.js +21 -28
- package/dist-es/commands/UpdateFindingsCommand.js +21 -28
- package/dist-es/commands/UpdateInsightCommand.js +21 -28
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateStandardsControlCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SecurityHubServiceException.js +5 -10
- package/dist-es/models/models_0.js +951 -370
- package/dist-es/models/models_1.js +841 -290
- package/dist-es/models/models_2.js +93 -32
- package/dist-es/pagination/DescribeActionTargetsPaginator.js +25 -68
- package/dist-es/pagination/DescribeProductsPaginator.js +25 -68
- package/dist-es/pagination/DescribeStandardsControlsPaginator.js +25 -68
- package/dist-es/pagination/DescribeStandardsPaginator.js +25 -68
- package/dist-es/pagination/GetEnabledStandardsPaginator.js +25 -68
- package/dist-es/pagination/GetFindingsPaginator.js +25 -68
- package/dist-es/pagination/GetInsightsPaginator.js +25 -68
- package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +25 -68
- package/dist-es/pagination/ListFindingAggregatorsPaginator.js +25 -68
- package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +10756 -9674
- 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/package.json +33 -33
package/dist-es/SecurityHub.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AcceptAdministratorInvitationCommand, } from "./commands/AcceptAdministratorInvitationCommand";
|
|
3
2
|
import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
|
|
4
3
|
import { BatchDisableStandardsCommand, } from "./commands/BatchDisableStandardsCommand";
|
|
@@ -56,795 +55,789 @@ import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrgani
|
|
|
56
55
|
import { UpdateSecurityHubConfigurationCommand, } from "./commands/UpdateSecurityHubConfigurationCommand";
|
|
57
56
|
import { UpdateStandardsControlCommand, } from "./commands/UpdateStandardsControlCommand";
|
|
58
57
|
import { SecurityHubClient } from "./SecurityHubClient";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
63
|
-
}
|
|
64
|
-
SecurityHub.prototype.acceptAdministratorInvitation = function (args, optionsOrCb, cb) {
|
|
65
|
-
var command = new AcceptAdministratorInvitationCommand(args);
|
|
58
|
+
export class SecurityHub extends SecurityHubClient {
|
|
59
|
+
acceptAdministratorInvitation(args, optionsOrCb, cb) {
|
|
60
|
+
const command = new AcceptAdministratorInvitationCommand(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
|
+
acceptInvitation(args, optionsOrCb, cb) {
|
|
74
|
+
const command = new AcceptInvitationCommand(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
|
+
batchDisableStandards(args, optionsOrCb, cb) {
|
|
88
|
+
const command = new BatchDisableStandardsCommand(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
|
+
batchEnableStandards(args, optionsOrCb, cb) {
|
|
102
|
+
const command = new BatchEnableStandardsCommand(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
|
+
batchImportFindings(args, optionsOrCb, cb) {
|
|
116
|
+
const command = new BatchImportFindingsCommand(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
|
+
batchUpdateFindings(args, optionsOrCb, cb) {
|
|
130
|
+
const command = new BatchUpdateFindingsCommand(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
|
+
createActionTarget(args, optionsOrCb, cb) {
|
|
144
|
+
const command = new CreateActionTargetCommand(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
|
+
createFindingAggregator(args, optionsOrCb, cb) {
|
|
158
|
+
const command = new CreateFindingAggregatorCommand(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
|
+
createInsight(args, optionsOrCb, cb) {
|
|
172
|
+
const command = new CreateInsightCommand(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
|
+
createMembers(args, optionsOrCb, cb) {
|
|
186
|
+
const command = new CreateMembersCommand(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
|
+
declineInvitations(args, optionsOrCb, cb) {
|
|
200
|
+
const command = new DeclineInvitationsCommand(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
|
+
deleteActionTarget(args, optionsOrCb, cb) {
|
|
214
|
+
const command = new DeleteActionTargetCommand(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
|
+
deleteFindingAggregator(args, optionsOrCb, cb) {
|
|
228
|
+
const command = new DeleteFindingAggregatorCommand(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
|
+
deleteInsight(args, optionsOrCb, cb) {
|
|
242
|
+
const command = new DeleteInsightCommand(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
|
+
deleteInvitations(args, optionsOrCb, cb) {
|
|
256
|
+
const command = new DeleteInvitationsCommand(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
|
+
deleteMembers(args, optionsOrCb, cb) {
|
|
270
|
+
const command = new DeleteMembersCommand(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
|
+
describeActionTargets(args, optionsOrCb, cb) {
|
|
284
|
+
const command = new DescribeActionTargetsCommand(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
|
+
describeHub(args, optionsOrCb, cb) {
|
|
298
|
+
const command = new DescribeHubCommand(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
|
+
describeOrganizationConfiguration(args, optionsOrCb, cb) {
|
|
312
|
+
const command = new DescribeOrganizationConfigurationCommand(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
|
+
describeProducts(args, optionsOrCb, cb) {
|
|
326
|
+
const command = new DescribeProductsCommand(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
|
+
describeStandards(args, optionsOrCb, cb) {
|
|
340
|
+
const command = new DescribeStandardsCommand(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
|
+
describeStandardsControls(args, optionsOrCb, cb) {
|
|
354
|
+
const command = new DescribeStandardsControlsCommand(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
|
+
disableImportFindingsForProduct(args, optionsOrCb, cb) {
|
|
368
|
+
const command = new DisableImportFindingsForProductCommand(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
|
+
disableOrganizationAdminAccount(args, optionsOrCb, cb) {
|
|
382
|
+
const command = new DisableOrganizationAdminAccountCommand(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
|
+
disableSecurityHub(args, optionsOrCb, cb) {
|
|
396
|
+
const command = new DisableSecurityHubCommand(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
|
+
disassociateFromAdministratorAccount(args, optionsOrCb, cb) {
|
|
410
|
+
const command = new DisassociateFromAdministratorAccountCommand(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
|
-
|
|
422
|
+
}
|
|
423
|
+
disassociateFromMasterAccount(args, optionsOrCb, cb) {
|
|
424
|
+
const command = new DisassociateFromMasterAccountCommand(args);
|
|
430
425
|
if (typeof optionsOrCb === "function") {
|
|
431
426
|
this.send(command, optionsOrCb);
|
|
432
427
|
}
|
|
433
428
|
else if (typeof cb === "function") {
|
|
434
429
|
if (typeof optionsOrCb !== "object")
|
|
435
|
-
throw new Error(
|
|
430
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
431
|
this.send(command, optionsOrCb || {}, cb);
|
|
437
432
|
}
|
|
438
433
|
else {
|
|
439
434
|
return this.send(command, optionsOrCb);
|
|
440
435
|
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
|
|
436
|
+
}
|
|
437
|
+
disassociateMembers(args, optionsOrCb, cb) {
|
|
438
|
+
const command = new DisassociateMembersCommand(args);
|
|
444
439
|
if (typeof optionsOrCb === "function") {
|
|
445
440
|
this.send(command, optionsOrCb);
|
|
446
441
|
}
|
|
447
442
|
else if (typeof cb === "function") {
|
|
448
443
|
if (typeof optionsOrCb !== "object")
|
|
449
|
-
throw new Error(
|
|
444
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
450
445
|
this.send(command, optionsOrCb || {}, cb);
|
|
451
446
|
}
|
|
452
447
|
else {
|
|
453
448
|
return this.send(command, optionsOrCb);
|
|
454
449
|
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
}
|
|
451
|
+
enableImportFindingsForProduct(args, optionsOrCb, cb) {
|
|
452
|
+
const command = new EnableImportFindingsForProductCommand(args);
|
|
458
453
|
if (typeof optionsOrCb === "function") {
|
|
459
454
|
this.send(command, optionsOrCb);
|
|
460
455
|
}
|
|
461
456
|
else if (typeof cb === "function") {
|
|
462
457
|
if (typeof optionsOrCb !== "object")
|
|
463
|
-
throw new Error(
|
|
458
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
464
459
|
this.send(command, optionsOrCb || {}, cb);
|
|
465
460
|
}
|
|
466
461
|
else {
|
|
467
462
|
return this.send(command, optionsOrCb);
|
|
468
463
|
}
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
464
|
+
}
|
|
465
|
+
enableOrganizationAdminAccount(args, optionsOrCb, cb) {
|
|
466
|
+
const command = new EnableOrganizationAdminAccountCommand(args);
|
|
472
467
|
if (typeof optionsOrCb === "function") {
|
|
473
468
|
this.send(command, optionsOrCb);
|
|
474
469
|
}
|
|
475
470
|
else if (typeof cb === "function") {
|
|
476
471
|
if (typeof optionsOrCb !== "object")
|
|
477
|
-
throw new Error(
|
|
472
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
478
473
|
this.send(command, optionsOrCb || {}, cb);
|
|
479
474
|
}
|
|
480
475
|
else {
|
|
481
476
|
return this.send(command, optionsOrCb);
|
|
482
477
|
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
478
|
+
}
|
|
479
|
+
enableSecurityHub(args, optionsOrCb, cb) {
|
|
480
|
+
const command = new EnableSecurityHubCommand(args);
|
|
486
481
|
if (typeof optionsOrCb === "function") {
|
|
487
482
|
this.send(command, optionsOrCb);
|
|
488
483
|
}
|
|
489
484
|
else if (typeof cb === "function") {
|
|
490
485
|
if (typeof optionsOrCb !== "object")
|
|
491
|
-
throw new Error(
|
|
486
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
492
487
|
this.send(command, optionsOrCb || {}, cb);
|
|
493
488
|
}
|
|
494
489
|
else {
|
|
495
490
|
return this.send(command, optionsOrCb);
|
|
496
491
|
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
492
|
+
}
|
|
493
|
+
getAdministratorAccount(args, optionsOrCb, cb) {
|
|
494
|
+
const command = new GetAdministratorAccountCommand(args);
|
|
500
495
|
if (typeof optionsOrCb === "function") {
|
|
501
496
|
this.send(command, optionsOrCb);
|
|
502
497
|
}
|
|
503
498
|
else if (typeof cb === "function") {
|
|
504
499
|
if (typeof optionsOrCb !== "object")
|
|
505
|
-
throw new Error(
|
|
500
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
506
501
|
this.send(command, optionsOrCb || {}, cb);
|
|
507
502
|
}
|
|
508
503
|
else {
|
|
509
504
|
return this.send(command, optionsOrCb);
|
|
510
505
|
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
506
|
+
}
|
|
507
|
+
getEnabledStandards(args, optionsOrCb, cb) {
|
|
508
|
+
const command = new GetEnabledStandardsCommand(args);
|
|
514
509
|
if (typeof optionsOrCb === "function") {
|
|
515
510
|
this.send(command, optionsOrCb);
|
|
516
511
|
}
|
|
517
512
|
else if (typeof cb === "function") {
|
|
518
513
|
if (typeof optionsOrCb !== "object")
|
|
519
|
-
throw new Error(
|
|
514
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
520
515
|
this.send(command, optionsOrCb || {}, cb);
|
|
521
516
|
}
|
|
522
517
|
else {
|
|
523
518
|
return this.send(command, optionsOrCb);
|
|
524
519
|
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
520
|
+
}
|
|
521
|
+
getFindingAggregator(args, optionsOrCb, cb) {
|
|
522
|
+
const command = new GetFindingAggregatorCommand(args);
|
|
528
523
|
if (typeof optionsOrCb === "function") {
|
|
529
524
|
this.send(command, optionsOrCb);
|
|
530
525
|
}
|
|
531
526
|
else if (typeof cb === "function") {
|
|
532
527
|
if (typeof optionsOrCb !== "object")
|
|
533
|
-
throw new Error(
|
|
528
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
534
529
|
this.send(command, optionsOrCb || {}, cb);
|
|
535
530
|
}
|
|
536
531
|
else {
|
|
537
532
|
return this.send(command, optionsOrCb);
|
|
538
533
|
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
534
|
+
}
|
|
535
|
+
getFindings(args, optionsOrCb, cb) {
|
|
536
|
+
const command = new GetFindingsCommand(args);
|
|
542
537
|
if (typeof optionsOrCb === "function") {
|
|
543
538
|
this.send(command, optionsOrCb);
|
|
544
539
|
}
|
|
545
540
|
else if (typeof cb === "function") {
|
|
546
541
|
if (typeof optionsOrCb !== "object")
|
|
547
|
-
throw new Error(
|
|
542
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
548
543
|
this.send(command, optionsOrCb || {}, cb);
|
|
549
544
|
}
|
|
550
545
|
else {
|
|
551
546
|
return this.send(command, optionsOrCb);
|
|
552
547
|
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
548
|
+
}
|
|
549
|
+
getInsightResults(args, optionsOrCb, cb) {
|
|
550
|
+
const command = new GetInsightResultsCommand(args);
|
|
556
551
|
if (typeof optionsOrCb === "function") {
|
|
557
552
|
this.send(command, optionsOrCb);
|
|
558
553
|
}
|
|
559
554
|
else if (typeof cb === "function") {
|
|
560
555
|
if (typeof optionsOrCb !== "object")
|
|
561
|
-
throw new Error(
|
|
556
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
562
557
|
this.send(command, optionsOrCb || {}, cb);
|
|
563
558
|
}
|
|
564
559
|
else {
|
|
565
560
|
return this.send(command, optionsOrCb);
|
|
566
561
|
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
562
|
+
}
|
|
563
|
+
getInsights(args, optionsOrCb, cb) {
|
|
564
|
+
const command = new GetInsightsCommand(args);
|
|
570
565
|
if (typeof optionsOrCb === "function") {
|
|
571
566
|
this.send(command, optionsOrCb);
|
|
572
567
|
}
|
|
573
568
|
else if (typeof cb === "function") {
|
|
574
569
|
if (typeof optionsOrCb !== "object")
|
|
575
|
-
throw new Error(
|
|
570
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
576
571
|
this.send(command, optionsOrCb || {}, cb);
|
|
577
572
|
}
|
|
578
573
|
else {
|
|
579
574
|
return this.send(command, optionsOrCb);
|
|
580
575
|
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
576
|
+
}
|
|
577
|
+
getInvitationsCount(args, optionsOrCb, cb) {
|
|
578
|
+
const command = new GetInvitationsCountCommand(args);
|
|
584
579
|
if (typeof optionsOrCb === "function") {
|
|
585
580
|
this.send(command, optionsOrCb);
|
|
586
581
|
}
|
|
587
582
|
else if (typeof cb === "function") {
|
|
588
583
|
if (typeof optionsOrCb !== "object")
|
|
589
|
-
throw new Error(
|
|
584
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
590
585
|
this.send(command, optionsOrCb || {}, cb);
|
|
591
586
|
}
|
|
592
587
|
else {
|
|
593
588
|
return this.send(command, optionsOrCb);
|
|
594
589
|
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
|
|
590
|
+
}
|
|
591
|
+
getMasterAccount(args, optionsOrCb, cb) {
|
|
592
|
+
const command = new GetMasterAccountCommand(args);
|
|
598
593
|
if (typeof optionsOrCb === "function") {
|
|
599
594
|
this.send(command, optionsOrCb);
|
|
600
595
|
}
|
|
601
596
|
else if (typeof cb === "function") {
|
|
602
597
|
if (typeof optionsOrCb !== "object")
|
|
603
|
-
throw new Error(
|
|
598
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
604
599
|
this.send(command, optionsOrCb || {}, cb);
|
|
605
600
|
}
|
|
606
601
|
else {
|
|
607
602
|
return this.send(command, optionsOrCb);
|
|
608
603
|
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
604
|
+
}
|
|
605
|
+
getMembers(args, optionsOrCb, cb) {
|
|
606
|
+
const command = new GetMembersCommand(args);
|
|
612
607
|
if (typeof optionsOrCb === "function") {
|
|
613
608
|
this.send(command, optionsOrCb);
|
|
614
609
|
}
|
|
615
610
|
else if (typeof cb === "function") {
|
|
616
611
|
if (typeof optionsOrCb !== "object")
|
|
617
|
-
throw new Error(
|
|
612
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
618
613
|
this.send(command, optionsOrCb || {}, cb);
|
|
619
614
|
}
|
|
620
615
|
else {
|
|
621
616
|
return this.send(command, optionsOrCb);
|
|
622
617
|
}
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
618
|
+
}
|
|
619
|
+
inviteMembers(args, optionsOrCb, cb) {
|
|
620
|
+
const command = new InviteMembersCommand(args);
|
|
626
621
|
if (typeof optionsOrCb === "function") {
|
|
627
622
|
this.send(command, optionsOrCb);
|
|
628
623
|
}
|
|
629
624
|
else if (typeof cb === "function") {
|
|
630
625
|
if (typeof optionsOrCb !== "object")
|
|
631
|
-
throw new Error(
|
|
626
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
632
627
|
this.send(command, optionsOrCb || {}, cb);
|
|
633
628
|
}
|
|
634
629
|
else {
|
|
635
630
|
return this.send(command, optionsOrCb);
|
|
636
631
|
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
632
|
+
}
|
|
633
|
+
listEnabledProductsForImport(args, optionsOrCb, cb) {
|
|
634
|
+
const command = new ListEnabledProductsForImportCommand(args);
|
|
640
635
|
if (typeof optionsOrCb === "function") {
|
|
641
636
|
this.send(command, optionsOrCb);
|
|
642
637
|
}
|
|
643
638
|
else if (typeof cb === "function") {
|
|
644
639
|
if (typeof optionsOrCb !== "object")
|
|
645
|
-
throw new Error(
|
|
640
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
646
641
|
this.send(command, optionsOrCb || {}, cb);
|
|
647
642
|
}
|
|
648
643
|
else {
|
|
649
644
|
return this.send(command, optionsOrCb);
|
|
650
645
|
}
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
646
|
+
}
|
|
647
|
+
listFindingAggregators(args, optionsOrCb, cb) {
|
|
648
|
+
const command = new ListFindingAggregatorsCommand(args);
|
|
654
649
|
if (typeof optionsOrCb === "function") {
|
|
655
650
|
this.send(command, optionsOrCb);
|
|
656
651
|
}
|
|
657
652
|
else if (typeof cb === "function") {
|
|
658
653
|
if (typeof optionsOrCb !== "object")
|
|
659
|
-
throw new Error(
|
|
654
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
660
655
|
this.send(command, optionsOrCb || {}, cb);
|
|
661
656
|
}
|
|
662
657
|
else {
|
|
663
658
|
return this.send(command, optionsOrCb);
|
|
664
659
|
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
660
|
+
}
|
|
661
|
+
listInvitations(args, optionsOrCb, cb) {
|
|
662
|
+
const command = new ListInvitationsCommand(args);
|
|
668
663
|
if (typeof optionsOrCb === "function") {
|
|
669
664
|
this.send(command, optionsOrCb);
|
|
670
665
|
}
|
|
671
666
|
else if (typeof cb === "function") {
|
|
672
667
|
if (typeof optionsOrCb !== "object")
|
|
673
|
-
throw new Error(
|
|
668
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
674
669
|
this.send(command, optionsOrCb || {}, cb);
|
|
675
670
|
}
|
|
676
671
|
else {
|
|
677
672
|
return this.send(command, optionsOrCb);
|
|
678
673
|
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
674
|
+
}
|
|
675
|
+
listMembers(args, optionsOrCb, cb) {
|
|
676
|
+
const command = new ListMembersCommand(args);
|
|
682
677
|
if (typeof optionsOrCb === "function") {
|
|
683
678
|
this.send(command, optionsOrCb);
|
|
684
679
|
}
|
|
685
680
|
else if (typeof cb === "function") {
|
|
686
681
|
if (typeof optionsOrCb !== "object")
|
|
687
|
-
throw new Error(
|
|
682
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
688
683
|
this.send(command, optionsOrCb || {}, cb);
|
|
689
684
|
}
|
|
690
685
|
else {
|
|
691
686
|
return this.send(command, optionsOrCb);
|
|
692
687
|
}
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
|
|
688
|
+
}
|
|
689
|
+
listOrganizationAdminAccounts(args, optionsOrCb, cb) {
|
|
690
|
+
const command = new ListOrganizationAdminAccountsCommand(args);
|
|
696
691
|
if (typeof optionsOrCb === "function") {
|
|
697
692
|
this.send(command, optionsOrCb);
|
|
698
693
|
}
|
|
699
694
|
else if (typeof cb === "function") {
|
|
700
695
|
if (typeof optionsOrCb !== "object")
|
|
701
|
-
throw new Error(
|
|
696
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
702
697
|
this.send(command, optionsOrCb || {}, cb);
|
|
703
698
|
}
|
|
704
699
|
else {
|
|
705
700
|
return this.send(command, optionsOrCb);
|
|
706
701
|
}
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
|
|
702
|
+
}
|
|
703
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
704
|
+
const command = new ListTagsForResourceCommand(args);
|
|
710
705
|
if (typeof optionsOrCb === "function") {
|
|
711
706
|
this.send(command, optionsOrCb);
|
|
712
707
|
}
|
|
713
708
|
else if (typeof cb === "function") {
|
|
714
709
|
if (typeof optionsOrCb !== "object")
|
|
715
|
-
throw new Error(
|
|
710
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
716
711
|
this.send(command, optionsOrCb || {}, cb);
|
|
717
712
|
}
|
|
718
713
|
else {
|
|
719
714
|
return this.send(command, optionsOrCb);
|
|
720
715
|
}
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
|
|
716
|
+
}
|
|
717
|
+
tagResource(args, optionsOrCb, cb) {
|
|
718
|
+
const command = new TagResourceCommand(args);
|
|
724
719
|
if (typeof optionsOrCb === "function") {
|
|
725
720
|
this.send(command, optionsOrCb);
|
|
726
721
|
}
|
|
727
722
|
else if (typeof cb === "function") {
|
|
728
723
|
if (typeof optionsOrCb !== "object")
|
|
729
|
-
throw new Error(
|
|
724
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
730
725
|
this.send(command, optionsOrCb || {}, cb);
|
|
731
726
|
}
|
|
732
727
|
else {
|
|
733
728
|
return this.send(command, optionsOrCb);
|
|
734
729
|
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
730
|
+
}
|
|
731
|
+
untagResource(args, optionsOrCb, cb) {
|
|
732
|
+
const command = new UntagResourceCommand(args);
|
|
738
733
|
if (typeof optionsOrCb === "function") {
|
|
739
734
|
this.send(command, optionsOrCb);
|
|
740
735
|
}
|
|
741
736
|
else if (typeof cb === "function") {
|
|
742
737
|
if (typeof optionsOrCb !== "object")
|
|
743
|
-
throw new Error(
|
|
738
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
744
739
|
this.send(command, optionsOrCb || {}, cb);
|
|
745
740
|
}
|
|
746
741
|
else {
|
|
747
742
|
return this.send(command, optionsOrCb);
|
|
748
743
|
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
744
|
+
}
|
|
745
|
+
updateActionTarget(args, optionsOrCb, cb) {
|
|
746
|
+
const command = new UpdateActionTargetCommand(args);
|
|
752
747
|
if (typeof optionsOrCb === "function") {
|
|
753
748
|
this.send(command, optionsOrCb);
|
|
754
749
|
}
|
|
755
750
|
else if (typeof cb === "function") {
|
|
756
751
|
if (typeof optionsOrCb !== "object")
|
|
757
|
-
throw new Error(
|
|
752
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
758
753
|
this.send(command, optionsOrCb || {}, cb);
|
|
759
754
|
}
|
|
760
755
|
else {
|
|
761
756
|
return this.send(command, optionsOrCb);
|
|
762
757
|
}
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
758
|
+
}
|
|
759
|
+
updateFindingAggregator(args, optionsOrCb, cb) {
|
|
760
|
+
const command = new UpdateFindingAggregatorCommand(args);
|
|
766
761
|
if (typeof optionsOrCb === "function") {
|
|
767
762
|
this.send(command, optionsOrCb);
|
|
768
763
|
}
|
|
769
764
|
else if (typeof cb === "function") {
|
|
770
765
|
if (typeof optionsOrCb !== "object")
|
|
771
|
-
throw new Error(
|
|
766
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
772
767
|
this.send(command, optionsOrCb || {}, cb);
|
|
773
768
|
}
|
|
774
769
|
else {
|
|
775
770
|
return this.send(command, optionsOrCb);
|
|
776
771
|
}
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
772
|
+
}
|
|
773
|
+
updateFindings(args, optionsOrCb, cb) {
|
|
774
|
+
const command = new UpdateFindingsCommand(args);
|
|
780
775
|
if (typeof optionsOrCb === "function") {
|
|
781
776
|
this.send(command, optionsOrCb);
|
|
782
777
|
}
|
|
783
778
|
else if (typeof cb === "function") {
|
|
784
779
|
if (typeof optionsOrCb !== "object")
|
|
785
|
-
throw new Error(
|
|
780
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
786
781
|
this.send(command, optionsOrCb || {}, cb);
|
|
787
782
|
}
|
|
788
783
|
else {
|
|
789
784
|
return this.send(command, optionsOrCb);
|
|
790
785
|
}
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
|
|
786
|
+
}
|
|
787
|
+
updateInsight(args, optionsOrCb, cb) {
|
|
788
|
+
const command = new UpdateInsightCommand(args);
|
|
794
789
|
if (typeof optionsOrCb === "function") {
|
|
795
790
|
this.send(command, optionsOrCb);
|
|
796
791
|
}
|
|
797
792
|
else if (typeof cb === "function") {
|
|
798
793
|
if (typeof optionsOrCb !== "object")
|
|
799
|
-
throw new Error(
|
|
794
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
800
795
|
this.send(command, optionsOrCb || {}, cb);
|
|
801
796
|
}
|
|
802
797
|
else {
|
|
803
798
|
return this.send(command, optionsOrCb);
|
|
804
799
|
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
|
|
800
|
+
}
|
|
801
|
+
updateOrganizationConfiguration(args, optionsOrCb, cb) {
|
|
802
|
+
const command = new UpdateOrganizationConfigurationCommand(args);
|
|
808
803
|
if (typeof optionsOrCb === "function") {
|
|
809
804
|
this.send(command, optionsOrCb);
|
|
810
805
|
}
|
|
811
806
|
else if (typeof cb === "function") {
|
|
812
807
|
if (typeof optionsOrCb !== "object")
|
|
813
|
-
throw new Error(
|
|
808
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
814
809
|
this.send(command, optionsOrCb || {}, cb);
|
|
815
810
|
}
|
|
816
811
|
else {
|
|
817
812
|
return this.send(command, optionsOrCb);
|
|
818
813
|
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
|
|
814
|
+
}
|
|
815
|
+
updateSecurityHubConfiguration(args, optionsOrCb, cb) {
|
|
816
|
+
const command = new UpdateSecurityHubConfigurationCommand(args);
|
|
822
817
|
if (typeof optionsOrCb === "function") {
|
|
823
818
|
this.send(command, optionsOrCb);
|
|
824
819
|
}
|
|
825
820
|
else if (typeof cb === "function") {
|
|
826
821
|
if (typeof optionsOrCb !== "object")
|
|
827
|
-
throw new Error(
|
|
822
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
828
823
|
this.send(command, optionsOrCb || {}, cb);
|
|
829
824
|
}
|
|
830
825
|
else {
|
|
831
826
|
return this.send(command, optionsOrCb);
|
|
832
827
|
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
|
|
828
|
+
}
|
|
829
|
+
updateStandardsControl(args, optionsOrCb, cb) {
|
|
830
|
+
const command = new UpdateStandardsControlCommand(args);
|
|
836
831
|
if (typeof optionsOrCb === "function") {
|
|
837
832
|
this.send(command, optionsOrCb);
|
|
838
833
|
}
|
|
839
834
|
else if (typeof cb === "function") {
|
|
840
835
|
if (typeof optionsOrCb !== "object")
|
|
841
|
-
throw new Error(
|
|
836
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
842
837
|
this.send(command, optionsOrCb || {}, cb);
|
|
843
838
|
}
|
|
844
839
|
else {
|
|
845
840
|
return this.send(command, optionsOrCb);
|
|
846
841
|
}
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
}(SecurityHubClient));
|
|
850
|
-
export { SecurityHub };
|
|
842
|
+
}
|
|
843
|
+
}
|