@aws-sdk/client-shield 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.
- package/CHANGELOG.md +8 -0
- package/dist-es/Shield.js +146 -153
- package/dist-es/ShieldClient.js +22 -28
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +21 -28
- package/dist-es/commands/AssociateDRTRoleCommand.js +21 -28
- package/dist-es/commands/AssociateHealthCheckCommand.js +21 -28
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +21 -28
- package/dist-es/commands/CreateProtectionCommand.js +21 -28
- package/dist-es/commands/CreateProtectionGroupCommand.js +21 -28
- package/dist-es/commands/CreateSubscriptionCommand.js +21 -28
- package/dist-es/commands/DeleteProtectionCommand.js +21 -28
- package/dist-es/commands/DeleteProtectionGroupCommand.js +21 -28
- package/dist-es/commands/DeleteSubscriptionCommand.js +21 -28
- package/dist-es/commands/DescribeAttackCommand.js +21 -28
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +21 -28
- package/dist-es/commands/DescribeDRTAccessCommand.js +21 -28
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeProtectionCommand.js +21 -28
- package/dist-es/commands/DescribeProtectionGroupCommand.js +21 -28
- package/dist-es/commands/DescribeSubscriptionCommand.js +21 -28
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/DisableProactiveEngagementCommand.js +21 -28
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +21 -28
- package/dist-es/commands/DisassociateDRTRoleCommand.js +21 -28
- package/dist-es/commands/DisassociateHealthCheckCommand.js +21 -28
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/EnableProactiveEngagementCommand.js +21 -28
- package/dist-es/commands/GetSubscriptionStateCommand.js +21 -28
- package/dist-es/commands/ListAttacksCommand.js +21 -28
- package/dist-es/commands/ListProtectionGroupsCommand.js +21 -28
- package/dist-es/commands/ListProtectionsCommand.js +21 -28
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.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/UpdateApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateProtectionGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSubscriptionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ShieldServiceException.js +5 -10
- package/dist-es/models/models_0.js +458 -253
- package/dist-es/pagination/ListAttacksPaginator.js +25 -68
- package/dist-es/pagination/ListProtectionGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListProtectionsPaginator.js +25 -68
- package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2384 -3132
- 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/Shield.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AssociateDRTLogBucketCommand, } from "./commands/AssociateDRTLogBucketCommand";
|
|
3
2
|
import { AssociateDRTRoleCommand, } from "./commands/AssociateDRTRoleCommand";
|
|
4
3
|
import { AssociateHealthCheckCommand, } from "./commands/AssociateHealthCheckCommand";
|
|
@@ -36,515 +35,509 @@ import { UpdateEmergencyContactSettingsCommand, } from "./commands/UpdateEmergen
|
|
|
36
35
|
import { UpdateProtectionGroupCommand, } from "./commands/UpdateProtectionGroupCommand";
|
|
37
36
|
import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
|
|
38
37
|
import { ShieldClient } from "./ShieldClient";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
43
|
-
}
|
|
44
|
-
Shield.prototype.associateDRTLogBucket = function (args, optionsOrCb, cb) {
|
|
45
|
-
var command = new AssociateDRTLogBucketCommand(args);
|
|
38
|
+
export class Shield extends ShieldClient {
|
|
39
|
+
associateDRTLogBucket(args, optionsOrCb, cb) {
|
|
40
|
+
const command = new AssociateDRTLogBucketCommand(args);
|
|
46
41
|
if (typeof optionsOrCb === "function") {
|
|
47
42
|
this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
44
|
else if (typeof cb === "function") {
|
|
50
45
|
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(
|
|
46
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
return this.send(command, optionsOrCb);
|
|
56
51
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
}
|
|
53
|
+
associateDRTRole(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new AssociateDRTRoleCommand(args);
|
|
60
55
|
if (typeof optionsOrCb === "function") {
|
|
61
56
|
this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
58
|
else if (typeof cb === "function") {
|
|
64
59
|
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
67
62
|
}
|
|
68
63
|
else {
|
|
69
64
|
return this.send(command, optionsOrCb);
|
|
70
65
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
}
|
|
67
|
+
associateHealthCheck(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new AssociateHealthCheckCommand(args);
|
|
74
69
|
if (typeof optionsOrCb === "function") {
|
|
75
70
|
this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
72
|
else if (typeof cb === "function") {
|
|
78
73
|
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
81
76
|
}
|
|
82
77
|
else {
|
|
83
78
|
return this.send(command, optionsOrCb);
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
associateProactiveEngagementDetails(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new AssociateProactiveEngagementDetailsCommand(args);
|
|
88
83
|
if (typeof optionsOrCb === "function") {
|
|
89
84
|
this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
86
|
else if (typeof cb === "function") {
|
|
92
87
|
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
95
90
|
}
|
|
96
91
|
else {
|
|
97
92
|
return this.send(command, optionsOrCb);
|
|
98
93
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
}
|
|
95
|
+
createProtection(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new CreateProtectionCommand(args);
|
|
102
97
|
if (typeof optionsOrCb === "function") {
|
|
103
98
|
this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
100
|
else if (typeof cb === "function") {
|
|
106
101
|
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
109
104
|
}
|
|
110
105
|
else {
|
|
111
106
|
return this.send(command, optionsOrCb);
|
|
112
107
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
}
|
|
109
|
+
createProtectionGroup(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new CreateProtectionGroupCommand(args);
|
|
116
111
|
if (typeof optionsOrCb === "function") {
|
|
117
112
|
this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
114
|
else if (typeof cb === "function") {
|
|
120
115
|
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
123
118
|
}
|
|
124
119
|
else {
|
|
125
120
|
return this.send(command, optionsOrCb);
|
|
126
121
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
}
|
|
123
|
+
createSubscription(args, optionsOrCb, cb) {
|
|
124
|
+
const command = new CreateSubscriptionCommand(args);
|
|
130
125
|
if (typeof optionsOrCb === "function") {
|
|
131
126
|
this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
128
|
else if (typeof cb === "function") {
|
|
134
129
|
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(
|
|
130
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
137
132
|
}
|
|
138
133
|
else {
|
|
139
134
|
return this.send(command, optionsOrCb);
|
|
140
135
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
}
|
|
137
|
+
deleteProtection(args, optionsOrCb, cb) {
|
|
138
|
+
const command = new DeleteProtectionCommand(args);
|
|
144
139
|
if (typeof optionsOrCb === "function") {
|
|
145
140
|
this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
142
|
else if (typeof cb === "function") {
|
|
148
143
|
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(
|
|
144
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
151
146
|
}
|
|
152
147
|
else {
|
|
153
148
|
return this.send(command, optionsOrCb);
|
|
154
149
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
}
|
|
151
|
+
deleteProtectionGroup(args, optionsOrCb, cb) {
|
|
152
|
+
const command = new DeleteProtectionGroupCommand(args);
|
|
158
153
|
if (typeof optionsOrCb === "function") {
|
|
159
154
|
this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
156
|
else if (typeof cb === "function") {
|
|
162
157
|
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(
|
|
158
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
165
160
|
}
|
|
166
161
|
else {
|
|
167
162
|
return this.send(command, optionsOrCb);
|
|
168
163
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
164
|
+
}
|
|
165
|
+
deleteSubscription(args, optionsOrCb, cb) {
|
|
166
|
+
const command = new DeleteSubscriptionCommand(args);
|
|
172
167
|
if (typeof optionsOrCb === "function") {
|
|
173
168
|
this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
170
|
else if (typeof cb === "function") {
|
|
176
171
|
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(
|
|
172
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
179
174
|
}
|
|
180
175
|
else {
|
|
181
176
|
return this.send(command, optionsOrCb);
|
|
182
177
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
}
|
|
179
|
+
describeAttack(args, optionsOrCb, cb) {
|
|
180
|
+
const command = new DescribeAttackCommand(args);
|
|
186
181
|
if (typeof optionsOrCb === "function") {
|
|
187
182
|
this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
184
|
else if (typeof cb === "function") {
|
|
190
185
|
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(
|
|
186
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
193
188
|
}
|
|
194
189
|
else {
|
|
195
190
|
return this.send(command, optionsOrCb);
|
|
196
191
|
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
}
|
|
193
|
+
describeAttackStatistics(args, optionsOrCb, cb) {
|
|
194
|
+
const command = new DescribeAttackStatisticsCommand(args);
|
|
200
195
|
if (typeof optionsOrCb === "function") {
|
|
201
196
|
this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
198
|
else if (typeof cb === "function") {
|
|
204
199
|
if (typeof optionsOrCb !== "object")
|
|
205
|
-
throw new Error(
|
|
200
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
207
202
|
}
|
|
208
203
|
else {
|
|
209
204
|
return this.send(command, optionsOrCb);
|
|
210
205
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
}
|
|
207
|
+
describeDRTAccess(args, optionsOrCb, cb) {
|
|
208
|
+
const command = new DescribeDRTAccessCommand(args);
|
|
214
209
|
if (typeof optionsOrCb === "function") {
|
|
215
210
|
this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
212
|
else if (typeof cb === "function") {
|
|
218
213
|
if (typeof optionsOrCb !== "object")
|
|
219
|
-
throw new Error(
|
|
214
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
220
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
221
216
|
}
|
|
222
217
|
else {
|
|
223
218
|
return this.send(command, optionsOrCb);
|
|
224
219
|
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
220
|
+
}
|
|
221
|
+
describeEmergencyContactSettings(args, optionsOrCb, cb) {
|
|
222
|
+
const command = new DescribeEmergencyContactSettingsCommand(args);
|
|
228
223
|
if (typeof optionsOrCb === "function") {
|
|
229
224
|
this.send(command, optionsOrCb);
|
|
230
225
|
}
|
|
231
226
|
else if (typeof cb === "function") {
|
|
232
227
|
if (typeof optionsOrCb !== "object")
|
|
233
|
-
throw new Error(
|
|
228
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
235
230
|
}
|
|
236
231
|
else {
|
|
237
232
|
return this.send(command, optionsOrCb);
|
|
238
233
|
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
}
|
|
235
|
+
describeProtection(args, optionsOrCb, cb) {
|
|
236
|
+
const command = new DescribeProtectionCommand(args);
|
|
242
237
|
if (typeof optionsOrCb === "function") {
|
|
243
238
|
this.send(command, optionsOrCb);
|
|
244
239
|
}
|
|
245
240
|
else if (typeof cb === "function") {
|
|
246
241
|
if (typeof optionsOrCb !== "object")
|
|
247
|
-
throw new Error(
|
|
242
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
248
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
249
244
|
}
|
|
250
245
|
else {
|
|
251
246
|
return this.send(command, optionsOrCb);
|
|
252
247
|
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
}
|
|
249
|
+
describeProtectionGroup(args, optionsOrCb, cb) {
|
|
250
|
+
const command = new DescribeProtectionGroupCommand(args);
|
|
256
251
|
if (typeof optionsOrCb === "function") {
|
|
257
252
|
this.send(command, optionsOrCb);
|
|
258
253
|
}
|
|
259
254
|
else if (typeof cb === "function") {
|
|
260
255
|
if (typeof optionsOrCb !== "object")
|
|
261
|
-
throw new Error(
|
|
256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
262
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
263
258
|
}
|
|
264
259
|
else {
|
|
265
260
|
return this.send(command, optionsOrCb);
|
|
266
261
|
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
}
|
|
263
|
+
describeSubscription(args, optionsOrCb, cb) {
|
|
264
|
+
const command = new DescribeSubscriptionCommand(args);
|
|
270
265
|
if (typeof optionsOrCb === "function") {
|
|
271
266
|
this.send(command, optionsOrCb);
|
|
272
267
|
}
|
|
273
268
|
else if (typeof cb === "function") {
|
|
274
269
|
if (typeof optionsOrCb !== "object")
|
|
275
|
-
throw new Error(
|
|
270
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
271
|
this.send(command, optionsOrCb || {}, cb);
|
|
277
272
|
}
|
|
278
273
|
else {
|
|
279
274
|
return this.send(command, optionsOrCb);
|
|
280
275
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
}
|
|
277
|
+
disableApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
|
|
278
|
+
const command = new DisableApplicationLayerAutomaticResponseCommand(args);
|
|
284
279
|
if (typeof optionsOrCb === "function") {
|
|
285
280
|
this.send(command, optionsOrCb);
|
|
286
281
|
}
|
|
287
282
|
else if (typeof cb === "function") {
|
|
288
283
|
if (typeof optionsOrCb !== "object")
|
|
289
|
-
throw new Error(
|
|
284
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
285
|
this.send(command, optionsOrCb || {}, cb);
|
|
291
286
|
}
|
|
292
287
|
else {
|
|
293
288
|
return this.send(command, optionsOrCb);
|
|
294
289
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
290
|
+
}
|
|
291
|
+
disableProactiveEngagement(args, optionsOrCb, cb) {
|
|
292
|
+
const command = new DisableProactiveEngagementCommand(args);
|
|
298
293
|
if (typeof optionsOrCb === "function") {
|
|
299
294
|
this.send(command, optionsOrCb);
|
|
300
295
|
}
|
|
301
296
|
else if (typeof cb === "function") {
|
|
302
297
|
if (typeof optionsOrCb !== "object")
|
|
303
|
-
throw new Error(
|
|
298
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
299
|
this.send(command, optionsOrCb || {}, cb);
|
|
305
300
|
}
|
|
306
301
|
else {
|
|
307
302
|
return this.send(command, optionsOrCb);
|
|
308
303
|
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
304
|
+
}
|
|
305
|
+
disassociateDRTLogBucket(args, optionsOrCb, cb) {
|
|
306
|
+
const command = new DisassociateDRTLogBucketCommand(args);
|
|
312
307
|
if (typeof optionsOrCb === "function") {
|
|
313
308
|
this.send(command, optionsOrCb);
|
|
314
309
|
}
|
|
315
310
|
else if (typeof cb === "function") {
|
|
316
311
|
if (typeof optionsOrCb !== "object")
|
|
317
|
-
throw new Error(
|
|
312
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
318
313
|
this.send(command, optionsOrCb || {}, cb);
|
|
319
314
|
}
|
|
320
315
|
else {
|
|
321
316
|
return this.send(command, optionsOrCb);
|
|
322
317
|
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
318
|
+
}
|
|
319
|
+
disassociateDRTRole(args, optionsOrCb, cb) {
|
|
320
|
+
const command = new DisassociateDRTRoleCommand(args);
|
|
326
321
|
if (typeof optionsOrCb === "function") {
|
|
327
322
|
this.send(command, optionsOrCb);
|
|
328
323
|
}
|
|
329
324
|
else if (typeof cb === "function") {
|
|
330
325
|
if (typeof optionsOrCb !== "object")
|
|
331
|
-
throw new Error(
|
|
326
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
327
|
this.send(command, optionsOrCb || {}, cb);
|
|
333
328
|
}
|
|
334
329
|
else {
|
|
335
330
|
return this.send(command, optionsOrCb);
|
|
336
331
|
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
332
|
+
}
|
|
333
|
+
disassociateHealthCheck(args, optionsOrCb, cb) {
|
|
334
|
+
const command = new DisassociateHealthCheckCommand(args);
|
|
340
335
|
if (typeof optionsOrCb === "function") {
|
|
341
336
|
this.send(command, optionsOrCb);
|
|
342
337
|
}
|
|
343
338
|
else if (typeof cb === "function") {
|
|
344
339
|
if (typeof optionsOrCb !== "object")
|
|
345
|
-
throw new Error(
|
|
340
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
346
341
|
this.send(command, optionsOrCb || {}, cb);
|
|
347
342
|
}
|
|
348
343
|
else {
|
|
349
344
|
return this.send(command, optionsOrCb);
|
|
350
345
|
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
}
|
|
347
|
+
enableApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
|
|
348
|
+
const command = new EnableApplicationLayerAutomaticResponseCommand(args);
|
|
354
349
|
if (typeof optionsOrCb === "function") {
|
|
355
350
|
this.send(command, optionsOrCb);
|
|
356
351
|
}
|
|
357
352
|
else if (typeof cb === "function") {
|
|
358
353
|
if (typeof optionsOrCb !== "object")
|
|
359
|
-
throw new Error(
|
|
354
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
360
355
|
this.send(command, optionsOrCb || {}, cb);
|
|
361
356
|
}
|
|
362
357
|
else {
|
|
363
358
|
return this.send(command, optionsOrCb);
|
|
364
359
|
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
360
|
+
}
|
|
361
|
+
enableProactiveEngagement(args, optionsOrCb, cb) {
|
|
362
|
+
const command = new EnableProactiveEngagementCommand(args);
|
|
368
363
|
if (typeof optionsOrCb === "function") {
|
|
369
364
|
this.send(command, optionsOrCb);
|
|
370
365
|
}
|
|
371
366
|
else if (typeof cb === "function") {
|
|
372
367
|
if (typeof optionsOrCb !== "object")
|
|
373
|
-
throw new Error(
|
|
368
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
374
369
|
this.send(command, optionsOrCb || {}, cb);
|
|
375
370
|
}
|
|
376
371
|
else {
|
|
377
372
|
return this.send(command, optionsOrCb);
|
|
378
373
|
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
374
|
+
}
|
|
375
|
+
getSubscriptionState(args, optionsOrCb, cb) {
|
|
376
|
+
const command = new GetSubscriptionStateCommand(args);
|
|
382
377
|
if (typeof optionsOrCb === "function") {
|
|
383
378
|
this.send(command, optionsOrCb);
|
|
384
379
|
}
|
|
385
380
|
else if (typeof cb === "function") {
|
|
386
381
|
if (typeof optionsOrCb !== "object")
|
|
387
|
-
throw new Error(
|
|
382
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
388
383
|
this.send(command, optionsOrCb || {}, cb);
|
|
389
384
|
}
|
|
390
385
|
else {
|
|
391
386
|
return this.send(command, optionsOrCb);
|
|
392
387
|
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
388
|
+
}
|
|
389
|
+
listAttacks(args, optionsOrCb, cb) {
|
|
390
|
+
const command = new ListAttacksCommand(args);
|
|
396
391
|
if (typeof optionsOrCb === "function") {
|
|
397
392
|
this.send(command, optionsOrCb);
|
|
398
393
|
}
|
|
399
394
|
else if (typeof cb === "function") {
|
|
400
395
|
if (typeof optionsOrCb !== "object")
|
|
401
|
-
throw new Error(
|
|
396
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
402
397
|
this.send(command, optionsOrCb || {}, cb);
|
|
403
398
|
}
|
|
404
399
|
else {
|
|
405
400
|
return this.send(command, optionsOrCb);
|
|
406
401
|
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
402
|
+
}
|
|
403
|
+
listProtectionGroups(args, optionsOrCb, cb) {
|
|
404
|
+
const command = new ListProtectionGroupsCommand(args);
|
|
410
405
|
if (typeof optionsOrCb === "function") {
|
|
411
406
|
this.send(command, optionsOrCb);
|
|
412
407
|
}
|
|
413
408
|
else if (typeof cb === "function") {
|
|
414
409
|
if (typeof optionsOrCb !== "object")
|
|
415
|
-
throw new Error(
|
|
410
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
416
411
|
this.send(command, optionsOrCb || {}, cb);
|
|
417
412
|
}
|
|
418
413
|
else {
|
|
419
414
|
return this.send(command, optionsOrCb);
|
|
420
415
|
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
416
|
+
}
|
|
417
|
+
listProtections(args, optionsOrCb, cb) {
|
|
418
|
+
const command = new ListProtectionsCommand(args);
|
|
424
419
|
if (typeof optionsOrCb === "function") {
|
|
425
420
|
this.send(command, optionsOrCb);
|
|
426
421
|
}
|
|
427
422
|
else if (typeof cb === "function") {
|
|
428
423
|
if (typeof optionsOrCb !== "object")
|
|
429
|
-
throw new Error(
|
|
424
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
430
425
|
this.send(command, optionsOrCb || {}, cb);
|
|
431
426
|
}
|
|
432
427
|
else {
|
|
433
428
|
return this.send(command, optionsOrCb);
|
|
434
429
|
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
|
|
430
|
+
}
|
|
431
|
+
listResourcesInProtectionGroup(args, optionsOrCb, cb) {
|
|
432
|
+
const command = new ListResourcesInProtectionGroupCommand(args);
|
|
438
433
|
if (typeof optionsOrCb === "function") {
|
|
439
434
|
this.send(command, optionsOrCb);
|
|
440
435
|
}
|
|
441
436
|
else if (typeof cb === "function") {
|
|
442
437
|
if (typeof optionsOrCb !== "object")
|
|
443
|
-
throw new Error(
|
|
438
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
444
439
|
this.send(command, optionsOrCb || {}, cb);
|
|
445
440
|
}
|
|
446
441
|
else {
|
|
447
442
|
return this.send(command, optionsOrCb);
|
|
448
443
|
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
444
|
+
}
|
|
445
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
446
|
+
const command = new ListTagsForResourceCommand(args);
|
|
452
447
|
if (typeof optionsOrCb === "function") {
|
|
453
448
|
this.send(command, optionsOrCb);
|
|
454
449
|
}
|
|
455
450
|
else if (typeof cb === "function") {
|
|
456
451
|
if (typeof optionsOrCb !== "object")
|
|
457
|
-
throw new Error(
|
|
452
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
458
453
|
this.send(command, optionsOrCb || {}, cb);
|
|
459
454
|
}
|
|
460
455
|
else {
|
|
461
456
|
return this.send(command, optionsOrCb);
|
|
462
457
|
}
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
458
|
+
}
|
|
459
|
+
tagResource(args, optionsOrCb, cb) {
|
|
460
|
+
const command = new TagResourceCommand(args);
|
|
466
461
|
if (typeof optionsOrCb === "function") {
|
|
467
462
|
this.send(command, optionsOrCb);
|
|
468
463
|
}
|
|
469
464
|
else if (typeof cb === "function") {
|
|
470
465
|
if (typeof optionsOrCb !== "object")
|
|
471
|
-
throw new Error(
|
|
466
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
472
467
|
this.send(command, optionsOrCb || {}, cb);
|
|
473
468
|
}
|
|
474
469
|
else {
|
|
475
470
|
return this.send(command, optionsOrCb);
|
|
476
471
|
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
}
|
|
473
|
+
untagResource(args, optionsOrCb, cb) {
|
|
474
|
+
const command = new UntagResourceCommand(args);
|
|
480
475
|
if (typeof optionsOrCb === "function") {
|
|
481
476
|
this.send(command, optionsOrCb);
|
|
482
477
|
}
|
|
483
478
|
else if (typeof cb === "function") {
|
|
484
479
|
if (typeof optionsOrCb !== "object")
|
|
485
|
-
throw new Error(
|
|
480
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
486
481
|
this.send(command, optionsOrCb || {}, cb);
|
|
487
482
|
}
|
|
488
483
|
else {
|
|
489
484
|
return this.send(command, optionsOrCb);
|
|
490
485
|
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
}
|
|
487
|
+
updateApplicationLayerAutomaticResponse(args, optionsOrCb, cb) {
|
|
488
|
+
const command = new UpdateApplicationLayerAutomaticResponseCommand(args);
|
|
494
489
|
if (typeof optionsOrCb === "function") {
|
|
495
490
|
this.send(command, optionsOrCb);
|
|
496
491
|
}
|
|
497
492
|
else if (typeof cb === "function") {
|
|
498
493
|
if (typeof optionsOrCb !== "object")
|
|
499
|
-
throw new Error(
|
|
494
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
500
495
|
this.send(command, optionsOrCb || {}, cb);
|
|
501
496
|
}
|
|
502
497
|
else {
|
|
503
498
|
return this.send(command, optionsOrCb);
|
|
504
499
|
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
500
|
+
}
|
|
501
|
+
updateEmergencyContactSettings(args, optionsOrCb, cb) {
|
|
502
|
+
const command = new UpdateEmergencyContactSettingsCommand(args);
|
|
508
503
|
if (typeof optionsOrCb === "function") {
|
|
509
504
|
this.send(command, optionsOrCb);
|
|
510
505
|
}
|
|
511
506
|
else if (typeof cb === "function") {
|
|
512
507
|
if (typeof optionsOrCb !== "object")
|
|
513
|
-
throw new Error(
|
|
508
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
514
509
|
this.send(command, optionsOrCb || {}, cb);
|
|
515
510
|
}
|
|
516
511
|
else {
|
|
517
512
|
return this.send(command, optionsOrCb);
|
|
518
513
|
}
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
514
|
+
}
|
|
515
|
+
updateProtectionGroup(args, optionsOrCb, cb) {
|
|
516
|
+
const command = new UpdateProtectionGroupCommand(args);
|
|
522
517
|
if (typeof optionsOrCb === "function") {
|
|
523
518
|
this.send(command, optionsOrCb);
|
|
524
519
|
}
|
|
525
520
|
else if (typeof cb === "function") {
|
|
526
521
|
if (typeof optionsOrCb !== "object")
|
|
527
|
-
throw new Error(
|
|
522
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
528
523
|
this.send(command, optionsOrCb || {}, cb);
|
|
529
524
|
}
|
|
530
525
|
else {
|
|
531
526
|
return this.send(command, optionsOrCb);
|
|
532
527
|
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
|
|
528
|
+
}
|
|
529
|
+
updateSubscription(args, optionsOrCb, cb) {
|
|
530
|
+
const command = new UpdateSubscriptionCommand(args);
|
|
536
531
|
if (typeof optionsOrCb === "function") {
|
|
537
532
|
this.send(command, optionsOrCb);
|
|
538
533
|
}
|
|
539
534
|
else if (typeof cb === "function") {
|
|
540
535
|
if (typeof optionsOrCb !== "object")
|
|
541
|
-
throw new Error(
|
|
536
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
542
537
|
this.send(command, optionsOrCb || {}, cb);
|
|
543
538
|
}
|
|
544
539
|
else {
|
|
545
540
|
return this.send(command, optionsOrCb);
|
|
546
541
|
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
}(ShieldClient));
|
|
550
|
-
export { Shield };
|
|
542
|
+
}
|
|
543
|
+
}
|