@aws-sdk/client-wafv2 3.987.0 → 3.988.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/index.js +73 -2885
- package/dist-cjs/models/WAFV2ServiceException.js +12 -0
- package/dist-cjs/models/errors.js +310 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2232 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +161 -155
- package/dist-types/schemas/schemas_0.d.ts +28 -21
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -21
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WAFV2ServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class WAFV2ServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, WAFV2ServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.WAFV2ServiceException = WAFV2ServiceException;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WAFInvalidPermissionPolicyException = exports.WAFServiceLinkedRoleErrorException = exports.WAFLogDestinationPermissionIssueException = exports.WAFUnsupportedAggregateKeyTypeException = exports.WAFAssociatedItemException = exports.WAFConfigurationWarningException = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFOptimisticLockException = exports.WAFDuplicateItemException = exports.WAFSubscriptionNotFoundException = exports.WAFInvalidResourceException = exports.WAFExpiredManagedRuleGroupVersionException = exports.WAFUnavailableEntityException = exports.WAFNonexistentItemException = exports.WAFLimitsExceededException = exports.WAFInvalidParameterException = exports.WAFInvalidOperationException = exports.WAFInternalErrorException = exports.WAFFeatureNotIncludedInPricingPlanException = void 0;
|
|
4
|
+
const WAFV2ServiceException_1 = require("./WAFV2ServiceException");
|
|
5
|
+
class WAFFeatureNotIncludedInPricingPlanException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
6
|
+
name = "WAFFeatureNotIncludedInPricingPlanException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
DisallowedFeatures;
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super({
|
|
12
|
+
name: "WAFFeatureNotIncludedInPricingPlanException",
|
|
13
|
+
$fault: "client",
|
|
14
|
+
...opts,
|
|
15
|
+
});
|
|
16
|
+
Object.setPrototypeOf(this, WAFFeatureNotIncludedInPricingPlanException.prototype);
|
|
17
|
+
this.Message = opts.Message;
|
|
18
|
+
this.DisallowedFeatures = opts.DisallowedFeatures;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.WAFFeatureNotIncludedInPricingPlanException = WAFFeatureNotIncludedInPricingPlanException;
|
|
22
|
+
class WAFInternalErrorException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
23
|
+
name = "WAFInternalErrorException";
|
|
24
|
+
$fault = "server";
|
|
25
|
+
Message;
|
|
26
|
+
constructor(opts) {
|
|
27
|
+
super({
|
|
28
|
+
name: "WAFInternalErrorException",
|
|
29
|
+
$fault: "server",
|
|
30
|
+
...opts,
|
|
31
|
+
});
|
|
32
|
+
Object.setPrototypeOf(this, WAFInternalErrorException.prototype);
|
|
33
|
+
this.Message = opts.Message;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.WAFInternalErrorException = WAFInternalErrorException;
|
|
37
|
+
class WAFInvalidOperationException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
38
|
+
name = "WAFInvalidOperationException";
|
|
39
|
+
$fault = "client";
|
|
40
|
+
Message;
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "WAFInvalidOperationException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, WAFInvalidOperationException.prototype);
|
|
48
|
+
this.Message = opts.Message;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.WAFInvalidOperationException = WAFInvalidOperationException;
|
|
52
|
+
class WAFInvalidParameterException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
53
|
+
name = "WAFInvalidParameterException";
|
|
54
|
+
$fault = "client";
|
|
55
|
+
Field;
|
|
56
|
+
Parameter;
|
|
57
|
+
Reason;
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "WAFInvalidParameterException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
Object.setPrototypeOf(this, WAFInvalidParameterException.prototype);
|
|
65
|
+
this.Field = opts.Field;
|
|
66
|
+
this.Parameter = opts.Parameter;
|
|
67
|
+
this.Reason = opts.Reason;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.WAFInvalidParameterException = WAFInvalidParameterException;
|
|
71
|
+
class WAFLimitsExceededException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
72
|
+
name = "WAFLimitsExceededException";
|
|
73
|
+
$fault = "client";
|
|
74
|
+
Message;
|
|
75
|
+
SourceType;
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "WAFLimitsExceededException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
|
|
83
|
+
this.Message = opts.Message;
|
|
84
|
+
this.SourceType = opts.SourceType;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.WAFLimitsExceededException = WAFLimitsExceededException;
|
|
88
|
+
class WAFNonexistentItemException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
89
|
+
name = "WAFNonexistentItemException";
|
|
90
|
+
$fault = "client";
|
|
91
|
+
Message;
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "WAFNonexistentItemException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
Object.setPrototypeOf(this, WAFNonexistentItemException.prototype);
|
|
99
|
+
this.Message = opts.Message;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.WAFNonexistentItemException = WAFNonexistentItemException;
|
|
103
|
+
class WAFUnavailableEntityException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
104
|
+
name = "WAFUnavailableEntityException";
|
|
105
|
+
$fault = "client";
|
|
106
|
+
Message;
|
|
107
|
+
constructor(opts) {
|
|
108
|
+
super({
|
|
109
|
+
name: "WAFUnavailableEntityException",
|
|
110
|
+
$fault: "client",
|
|
111
|
+
...opts,
|
|
112
|
+
});
|
|
113
|
+
Object.setPrototypeOf(this, WAFUnavailableEntityException.prototype);
|
|
114
|
+
this.Message = opts.Message;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.WAFUnavailableEntityException = WAFUnavailableEntityException;
|
|
118
|
+
class WAFExpiredManagedRuleGroupVersionException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
119
|
+
name = "WAFExpiredManagedRuleGroupVersionException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
Message;
|
|
122
|
+
constructor(opts) {
|
|
123
|
+
super({
|
|
124
|
+
name: "WAFExpiredManagedRuleGroupVersionException",
|
|
125
|
+
$fault: "client",
|
|
126
|
+
...opts,
|
|
127
|
+
});
|
|
128
|
+
Object.setPrototypeOf(this, WAFExpiredManagedRuleGroupVersionException.prototype);
|
|
129
|
+
this.Message = opts.Message;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.WAFExpiredManagedRuleGroupVersionException = WAFExpiredManagedRuleGroupVersionException;
|
|
133
|
+
class WAFInvalidResourceException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
134
|
+
name = "WAFInvalidResourceException";
|
|
135
|
+
$fault = "client";
|
|
136
|
+
Message;
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "WAFInvalidResourceException",
|
|
140
|
+
$fault: "client",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
Object.setPrototypeOf(this, WAFInvalidResourceException.prototype);
|
|
144
|
+
this.Message = opts.Message;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.WAFInvalidResourceException = WAFInvalidResourceException;
|
|
148
|
+
class WAFSubscriptionNotFoundException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
149
|
+
name = "WAFSubscriptionNotFoundException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
Message;
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "WAFSubscriptionNotFoundException",
|
|
155
|
+
$fault: "client",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, WAFSubscriptionNotFoundException.prototype);
|
|
159
|
+
this.Message = opts.Message;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.WAFSubscriptionNotFoundException = WAFSubscriptionNotFoundException;
|
|
163
|
+
class WAFDuplicateItemException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
164
|
+
name = "WAFDuplicateItemException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
Message;
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "WAFDuplicateItemException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, WAFDuplicateItemException.prototype);
|
|
174
|
+
this.Message = opts.Message;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.WAFDuplicateItemException = WAFDuplicateItemException;
|
|
178
|
+
class WAFOptimisticLockException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
179
|
+
name = "WAFOptimisticLockException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
Message;
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "WAFOptimisticLockException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts,
|
|
187
|
+
});
|
|
188
|
+
Object.setPrototypeOf(this, WAFOptimisticLockException.prototype);
|
|
189
|
+
this.Message = opts.Message;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
exports.WAFOptimisticLockException = WAFOptimisticLockException;
|
|
193
|
+
class WAFTagOperationException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
194
|
+
name = "WAFTagOperationException";
|
|
195
|
+
$fault = "client";
|
|
196
|
+
Message;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "WAFTagOperationException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, WAFTagOperationException.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.WAFTagOperationException = WAFTagOperationException;
|
|
208
|
+
class WAFTagOperationInternalErrorException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
209
|
+
name = "WAFTagOperationInternalErrorException";
|
|
210
|
+
$fault = "server";
|
|
211
|
+
Message;
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "WAFTagOperationInternalErrorException",
|
|
215
|
+
$fault: "server",
|
|
216
|
+
...opts,
|
|
217
|
+
});
|
|
218
|
+
Object.setPrototypeOf(this, WAFTagOperationInternalErrorException.prototype);
|
|
219
|
+
this.Message = opts.Message;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
exports.WAFTagOperationInternalErrorException = WAFTagOperationInternalErrorException;
|
|
223
|
+
class WAFConfigurationWarningException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
224
|
+
name = "WAFConfigurationWarningException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
Message;
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "WAFConfigurationWarningException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, WAFConfigurationWarningException.prototype);
|
|
234
|
+
this.Message = opts.Message;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
exports.WAFConfigurationWarningException = WAFConfigurationWarningException;
|
|
238
|
+
class WAFAssociatedItemException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
239
|
+
name = "WAFAssociatedItemException";
|
|
240
|
+
$fault = "client";
|
|
241
|
+
Message;
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "WAFAssociatedItemException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, WAFAssociatedItemException.prototype);
|
|
249
|
+
this.Message = opts.Message;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
exports.WAFAssociatedItemException = WAFAssociatedItemException;
|
|
253
|
+
class WAFUnsupportedAggregateKeyTypeException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
254
|
+
name = "WAFUnsupportedAggregateKeyTypeException";
|
|
255
|
+
$fault = "client";
|
|
256
|
+
Message;
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "WAFUnsupportedAggregateKeyTypeException",
|
|
260
|
+
$fault: "client",
|
|
261
|
+
...opts,
|
|
262
|
+
});
|
|
263
|
+
Object.setPrototypeOf(this, WAFUnsupportedAggregateKeyTypeException.prototype);
|
|
264
|
+
this.Message = opts.Message;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.WAFUnsupportedAggregateKeyTypeException = WAFUnsupportedAggregateKeyTypeException;
|
|
268
|
+
class WAFLogDestinationPermissionIssueException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
269
|
+
name = "WAFLogDestinationPermissionIssueException";
|
|
270
|
+
$fault = "client";
|
|
271
|
+
Message;
|
|
272
|
+
constructor(opts) {
|
|
273
|
+
super({
|
|
274
|
+
name: "WAFLogDestinationPermissionIssueException",
|
|
275
|
+
$fault: "client",
|
|
276
|
+
...opts,
|
|
277
|
+
});
|
|
278
|
+
Object.setPrototypeOf(this, WAFLogDestinationPermissionIssueException.prototype);
|
|
279
|
+
this.Message = opts.Message;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
exports.WAFLogDestinationPermissionIssueException = WAFLogDestinationPermissionIssueException;
|
|
283
|
+
class WAFServiceLinkedRoleErrorException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
284
|
+
name = "WAFServiceLinkedRoleErrorException";
|
|
285
|
+
$fault = "client";
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
super({
|
|
288
|
+
name: "WAFServiceLinkedRoleErrorException",
|
|
289
|
+
$fault: "client",
|
|
290
|
+
...opts,
|
|
291
|
+
});
|
|
292
|
+
Object.setPrototypeOf(this, WAFServiceLinkedRoleErrorException.prototype);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.WAFServiceLinkedRoleErrorException = WAFServiceLinkedRoleErrorException;
|
|
296
|
+
class WAFInvalidPermissionPolicyException extends WAFV2ServiceException_1.WAFV2ServiceException {
|
|
297
|
+
name = "WAFInvalidPermissionPolicyException";
|
|
298
|
+
$fault = "client";
|
|
299
|
+
Message;
|
|
300
|
+
constructor(opts) {
|
|
301
|
+
super({
|
|
302
|
+
name: "WAFInvalidPermissionPolicyException",
|
|
303
|
+
$fault: "client",
|
|
304
|
+
...opts,
|
|
305
|
+
});
|
|
306
|
+
Object.setPrototypeOf(this, WAFInvalidPermissionPolicyException.prototype);
|
|
307
|
+
this.Message = opts.Message;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.WAFInvalidPermissionPolicyException = WAFInvalidPermissionPolicyException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2019-07-29",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.wafv2",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://waf.amazonaws.com/doc/2019-07-29/",
|
|
33
35
|
version: "2019-07-29",
|
|
34
36
|
serviceTarget: "AWSWAF_20190729",
|