@aws-sdk/client-waf-regional 3.934.0 → 3.936.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-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./WAFRegionalClient";
2
2
  export * from "./WAFRegional";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { WAFRegionalServiceException } from "./models/WAFRegionalServiceException";
@@ -0,0 +1,364 @@
1
+ export const WafActionType = {
2
+ ALLOW: "ALLOW",
3
+ BLOCK: "BLOCK",
4
+ COUNT: "COUNT",
5
+ };
6
+ export const WafOverrideActionType = {
7
+ COUNT: "COUNT",
8
+ NONE: "NONE",
9
+ };
10
+ export const WafRuleType = {
11
+ GROUP: "GROUP",
12
+ RATE_BASED: "RATE_BASED",
13
+ REGULAR: "REGULAR",
14
+ };
15
+ export const ParameterExceptionField = {
16
+ BYTE_MATCH_FIELD_TYPE: "BYTE_MATCH_FIELD_TYPE",
17
+ BYTE_MATCH_POSITIONAL_CONSTRAINT: "BYTE_MATCH_POSITIONAL_CONSTRAINT",
18
+ BYTE_MATCH_TEXT_TRANSFORMATION: "BYTE_MATCH_TEXT_TRANSFORMATION",
19
+ CHANGE_ACTION: "CHANGE_ACTION",
20
+ GEO_MATCH_LOCATION_TYPE: "GEO_MATCH_LOCATION_TYPE",
21
+ GEO_MATCH_LOCATION_VALUE: "GEO_MATCH_LOCATION_VALUE",
22
+ IPSET_TYPE: "IPSET_TYPE",
23
+ NEXT_MARKER: "NEXT_MARKER",
24
+ PREDICATE_TYPE: "PREDICATE_TYPE",
25
+ RATE_KEY: "RATE_KEY",
26
+ RESOURCE_ARN: "RESOURCE_ARN",
27
+ RULE_TYPE: "RULE_TYPE",
28
+ SIZE_CONSTRAINT_COMPARISON_OPERATOR: "SIZE_CONSTRAINT_COMPARISON_OPERATOR",
29
+ SQL_INJECTION_MATCH_FIELD_TYPE: "SQL_INJECTION_MATCH_FIELD_TYPE",
30
+ TAGS: "TAGS",
31
+ TAG_KEYS: "TAG_KEYS",
32
+ WAF_ACTION: "WAF_ACTION",
33
+ WAF_OVERRIDE_ACTION: "WAF_OVERRIDE_ACTION",
34
+ };
35
+ export const ParameterExceptionReason = {
36
+ ILLEGAL_ARGUMENT: "ILLEGAL_ARGUMENT",
37
+ ILLEGAL_COMBINATION: "ILLEGAL_COMBINATION",
38
+ INVALID_OPTION: "INVALID_OPTION",
39
+ INVALID_TAG_KEY: "INVALID_TAG_KEY",
40
+ };
41
+ export const MatchFieldType = {
42
+ ALL_QUERY_ARGS: "ALL_QUERY_ARGS",
43
+ BODY: "BODY",
44
+ HEADER: "HEADER",
45
+ METHOD: "METHOD",
46
+ QUERY_STRING: "QUERY_STRING",
47
+ SINGLE_QUERY_ARG: "SINGLE_QUERY_ARG",
48
+ URI: "URI",
49
+ };
50
+ export const PositionalConstraint = {
51
+ CONTAINS: "CONTAINS",
52
+ CONTAINS_WORD: "CONTAINS_WORD",
53
+ ENDS_WITH: "ENDS_WITH",
54
+ EXACTLY: "EXACTLY",
55
+ STARTS_WITH: "STARTS_WITH",
56
+ };
57
+ export const TextTransformation = {
58
+ CMD_LINE: "CMD_LINE",
59
+ COMPRESS_WHITE_SPACE: "COMPRESS_WHITE_SPACE",
60
+ HTML_ENTITY_DECODE: "HTML_ENTITY_DECODE",
61
+ LOWERCASE: "LOWERCASE",
62
+ NONE: "NONE",
63
+ URL_DECODE: "URL_DECODE",
64
+ };
65
+ export const GeoMatchConstraintType = {
66
+ Country: "Country",
67
+ };
68
+ export const GeoMatchConstraintValue = {
69
+ AD: "AD",
70
+ AE: "AE",
71
+ AF: "AF",
72
+ AG: "AG",
73
+ AI: "AI",
74
+ AL: "AL",
75
+ AM: "AM",
76
+ AO: "AO",
77
+ AQ: "AQ",
78
+ AR: "AR",
79
+ AS: "AS",
80
+ AT: "AT",
81
+ AU: "AU",
82
+ AW: "AW",
83
+ AX: "AX",
84
+ AZ: "AZ",
85
+ BA: "BA",
86
+ BB: "BB",
87
+ BD: "BD",
88
+ BE: "BE",
89
+ BF: "BF",
90
+ BG: "BG",
91
+ BH: "BH",
92
+ BI: "BI",
93
+ BJ: "BJ",
94
+ BL: "BL",
95
+ BM: "BM",
96
+ BN: "BN",
97
+ BO: "BO",
98
+ BQ: "BQ",
99
+ BR: "BR",
100
+ BS: "BS",
101
+ BT: "BT",
102
+ BV: "BV",
103
+ BW: "BW",
104
+ BY: "BY",
105
+ BZ: "BZ",
106
+ CA: "CA",
107
+ CC: "CC",
108
+ CD: "CD",
109
+ CF: "CF",
110
+ CG: "CG",
111
+ CH: "CH",
112
+ CI: "CI",
113
+ CK: "CK",
114
+ CL: "CL",
115
+ CM: "CM",
116
+ CN: "CN",
117
+ CO: "CO",
118
+ CR: "CR",
119
+ CU: "CU",
120
+ CV: "CV",
121
+ CW: "CW",
122
+ CX: "CX",
123
+ CY: "CY",
124
+ CZ: "CZ",
125
+ DE: "DE",
126
+ DJ: "DJ",
127
+ DK: "DK",
128
+ DM: "DM",
129
+ DO: "DO",
130
+ DZ: "DZ",
131
+ EC: "EC",
132
+ EE: "EE",
133
+ EG: "EG",
134
+ EH: "EH",
135
+ ER: "ER",
136
+ ES: "ES",
137
+ ET: "ET",
138
+ FI: "FI",
139
+ FJ: "FJ",
140
+ FK: "FK",
141
+ FM: "FM",
142
+ FO: "FO",
143
+ FR: "FR",
144
+ GA: "GA",
145
+ GB: "GB",
146
+ GD: "GD",
147
+ GE: "GE",
148
+ GF: "GF",
149
+ GG: "GG",
150
+ GH: "GH",
151
+ GI: "GI",
152
+ GL: "GL",
153
+ GM: "GM",
154
+ GN: "GN",
155
+ GP: "GP",
156
+ GQ: "GQ",
157
+ GR: "GR",
158
+ GS: "GS",
159
+ GT: "GT",
160
+ GU: "GU",
161
+ GW: "GW",
162
+ GY: "GY",
163
+ HK: "HK",
164
+ HM: "HM",
165
+ HN: "HN",
166
+ HR: "HR",
167
+ HT: "HT",
168
+ HU: "HU",
169
+ ID: "ID",
170
+ IE: "IE",
171
+ IL: "IL",
172
+ IM: "IM",
173
+ IN: "IN",
174
+ IO: "IO",
175
+ IQ: "IQ",
176
+ IR: "IR",
177
+ IS: "IS",
178
+ IT: "IT",
179
+ JE: "JE",
180
+ JM: "JM",
181
+ JO: "JO",
182
+ JP: "JP",
183
+ KE: "KE",
184
+ KG: "KG",
185
+ KH: "KH",
186
+ KI: "KI",
187
+ KM: "KM",
188
+ KN: "KN",
189
+ KP: "KP",
190
+ KR: "KR",
191
+ KW: "KW",
192
+ KY: "KY",
193
+ KZ: "KZ",
194
+ LA: "LA",
195
+ LB: "LB",
196
+ LC: "LC",
197
+ LI: "LI",
198
+ LK: "LK",
199
+ LR: "LR",
200
+ LS: "LS",
201
+ LT: "LT",
202
+ LU: "LU",
203
+ LV: "LV",
204
+ LY: "LY",
205
+ MA: "MA",
206
+ MC: "MC",
207
+ MD: "MD",
208
+ ME: "ME",
209
+ MF: "MF",
210
+ MG: "MG",
211
+ MH: "MH",
212
+ MK: "MK",
213
+ ML: "ML",
214
+ MM: "MM",
215
+ MN: "MN",
216
+ MO: "MO",
217
+ MP: "MP",
218
+ MQ: "MQ",
219
+ MR: "MR",
220
+ MS: "MS",
221
+ MT: "MT",
222
+ MU: "MU",
223
+ MV: "MV",
224
+ MW: "MW",
225
+ MX: "MX",
226
+ MY: "MY",
227
+ MZ: "MZ",
228
+ NA: "NA",
229
+ NC: "NC",
230
+ NE: "NE",
231
+ NF: "NF",
232
+ NG: "NG",
233
+ NI: "NI",
234
+ NL: "NL",
235
+ NO: "NO",
236
+ NP: "NP",
237
+ NR: "NR",
238
+ NU: "NU",
239
+ NZ: "NZ",
240
+ OM: "OM",
241
+ PA: "PA",
242
+ PE: "PE",
243
+ PF: "PF",
244
+ PG: "PG",
245
+ PH: "PH",
246
+ PK: "PK",
247
+ PL: "PL",
248
+ PM: "PM",
249
+ PN: "PN",
250
+ PR: "PR",
251
+ PS: "PS",
252
+ PT: "PT",
253
+ PW: "PW",
254
+ PY: "PY",
255
+ QA: "QA",
256
+ RE: "RE",
257
+ RO: "RO",
258
+ RS: "RS",
259
+ RU: "RU",
260
+ RW: "RW",
261
+ SA: "SA",
262
+ SB: "SB",
263
+ SC: "SC",
264
+ SD: "SD",
265
+ SE: "SE",
266
+ SG: "SG",
267
+ SH: "SH",
268
+ SI: "SI",
269
+ SJ: "SJ",
270
+ SK: "SK",
271
+ SL: "SL",
272
+ SM: "SM",
273
+ SN: "SN",
274
+ SO: "SO",
275
+ SR: "SR",
276
+ SS: "SS",
277
+ ST: "ST",
278
+ SV: "SV",
279
+ SX: "SX",
280
+ SY: "SY",
281
+ SZ: "SZ",
282
+ TC: "TC",
283
+ TD: "TD",
284
+ TF: "TF",
285
+ TG: "TG",
286
+ TH: "TH",
287
+ TJ: "TJ",
288
+ TK: "TK",
289
+ TL: "TL",
290
+ TM: "TM",
291
+ TN: "TN",
292
+ TO: "TO",
293
+ TR: "TR",
294
+ TT: "TT",
295
+ TV: "TV",
296
+ TW: "TW",
297
+ TZ: "TZ",
298
+ UA: "UA",
299
+ UG: "UG",
300
+ UM: "UM",
301
+ US: "US",
302
+ UY: "UY",
303
+ UZ: "UZ",
304
+ VA: "VA",
305
+ VC: "VC",
306
+ VE: "VE",
307
+ VG: "VG",
308
+ VI: "VI",
309
+ VN: "VN",
310
+ VU: "VU",
311
+ WF: "WF",
312
+ WS: "WS",
313
+ YE: "YE",
314
+ YT: "YT",
315
+ ZA: "ZA",
316
+ ZM: "ZM",
317
+ ZW: "ZW",
318
+ };
319
+ export const IPSetDescriptorType = {
320
+ IPV4: "IPV4",
321
+ IPV6: "IPV6",
322
+ };
323
+ export const RateKey = {
324
+ IP: "IP",
325
+ };
326
+ export const PredicateType = {
327
+ BYTE_MATCH: "ByteMatch",
328
+ GEO_MATCH: "GeoMatch",
329
+ IP_MATCH: "IPMatch",
330
+ REGEX_MATCH: "RegexMatch",
331
+ SIZE_CONSTRAINT: "SizeConstraint",
332
+ SQL_INJECTION_MATCH: "SqlInjectionMatch",
333
+ XSS_MATCH: "XssMatch",
334
+ };
335
+ export const ComparisonOperator = {
336
+ EQ: "EQ",
337
+ GE: "GE",
338
+ GT: "GT",
339
+ LE: "LE",
340
+ LT: "LT",
341
+ NE: "NE",
342
+ };
343
+ export const MigrationErrorType = {
344
+ ENTITY_NOT_FOUND: "ENTITY_NOT_FOUND",
345
+ ENTITY_NOT_SUPPORTED: "ENTITY_NOT_SUPPORTED",
346
+ S3_BUCKET_INVALID_REGION: "S3_BUCKET_INVALID_REGION",
347
+ S3_BUCKET_NOT_ACCESSIBLE: "S3_BUCKET_NOT_ACCESSIBLE",
348
+ S3_BUCKET_NOT_FOUND: "S3_BUCKET_NOT_FOUND",
349
+ S3_BUCKET_NO_PERMISSION: "S3_BUCKET_NO_PERMISSION",
350
+ S3_INTERNAL_ERROR: "S3_INTERNAL_ERROR",
351
+ };
352
+ export const ChangeTokenStatus = {
353
+ INSYNC: "INSYNC",
354
+ PENDING: "PENDING",
355
+ PROVISIONED: "PROVISIONED",
356
+ };
357
+ export const ResourceType = {
358
+ API_GATEWAY: "API_GATEWAY",
359
+ APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
360
+ };
361
+ export const ChangeAction = {
362
+ DELETE: "DELETE",
363
+ INSERT: "INSERT",
364
+ };
@@ -0,0 +1,251 @@
1
+ import { WAFRegionalServiceException as __BaseException } from "./WAFRegionalServiceException";
2
+ export class WAFInternalErrorException extends __BaseException {
3
+ name = "WAFInternalErrorException";
4
+ $fault = "server";
5
+ constructor(opts) {
6
+ super({
7
+ name: "WAFInternalErrorException",
8
+ $fault: "server",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, WAFInternalErrorException.prototype);
12
+ }
13
+ }
14
+ export class WAFInvalidAccountException extends __BaseException {
15
+ name = "WAFInvalidAccountException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "WAFInvalidAccountException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, WAFInvalidAccountException.prototype);
24
+ }
25
+ }
26
+ export class WAFInvalidParameterException extends __BaseException {
27
+ name = "WAFInvalidParameterException";
28
+ $fault = "client";
29
+ field;
30
+ parameter;
31
+ reason;
32
+ constructor(opts) {
33
+ super({
34
+ name: "WAFInvalidParameterException",
35
+ $fault: "client",
36
+ ...opts,
37
+ });
38
+ Object.setPrototypeOf(this, WAFInvalidParameterException.prototype);
39
+ this.field = opts.field;
40
+ this.parameter = opts.parameter;
41
+ this.reason = opts.reason;
42
+ }
43
+ }
44
+ export class WAFNonexistentItemException extends __BaseException {
45
+ name = "WAFNonexistentItemException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "WAFNonexistentItemException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, WAFNonexistentItemException.prototype);
54
+ }
55
+ }
56
+ export class WAFUnavailableEntityException extends __BaseException {
57
+ name = "WAFUnavailableEntityException";
58
+ $fault = "client";
59
+ constructor(opts) {
60
+ super({
61
+ name: "WAFUnavailableEntityException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, WAFUnavailableEntityException.prototype);
66
+ }
67
+ }
68
+ export class WAFDisallowedNameException extends __BaseException {
69
+ name = "WAFDisallowedNameException";
70
+ $fault = "client";
71
+ constructor(opts) {
72
+ super({
73
+ name: "WAFDisallowedNameException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, WAFDisallowedNameException.prototype);
78
+ }
79
+ }
80
+ export class WAFLimitsExceededException extends __BaseException {
81
+ name = "WAFLimitsExceededException";
82
+ $fault = "client";
83
+ constructor(opts) {
84
+ super({
85
+ name: "WAFLimitsExceededException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
90
+ }
91
+ }
92
+ export class WAFStaleDataException extends __BaseException {
93
+ name = "WAFStaleDataException";
94
+ $fault = "client";
95
+ constructor(opts) {
96
+ super({
97
+ name: "WAFStaleDataException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, WAFStaleDataException.prototype);
102
+ }
103
+ }
104
+ export class WAFBadRequestException extends __BaseException {
105
+ name = "WAFBadRequestException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "WAFBadRequestException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, WAFBadRequestException.prototype);
114
+ }
115
+ }
116
+ export class WAFTagOperationException extends __BaseException {
117
+ name = "WAFTagOperationException";
118
+ $fault = "client";
119
+ constructor(opts) {
120
+ super({
121
+ name: "WAFTagOperationException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ Object.setPrototypeOf(this, WAFTagOperationException.prototype);
126
+ }
127
+ }
128
+ export class WAFTagOperationInternalErrorException extends __BaseException {
129
+ name = "WAFTagOperationInternalErrorException";
130
+ $fault = "server";
131
+ constructor(opts) {
132
+ super({
133
+ name: "WAFTagOperationInternalErrorException",
134
+ $fault: "server",
135
+ ...opts,
136
+ });
137
+ Object.setPrototypeOf(this, WAFTagOperationInternalErrorException.prototype);
138
+ }
139
+ }
140
+ export class WAFEntityMigrationException extends __BaseException {
141
+ name = "WAFEntityMigrationException";
142
+ $fault = "client";
143
+ MigrationErrorType;
144
+ MigrationErrorReason;
145
+ constructor(opts) {
146
+ super({
147
+ name: "WAFEntityMigrationException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ Object.setPrototypeOf(this, WAFEntityMigrationException.prototype);
152
+ this.MigrationErrorType = opts.MigrationErrorType;
153
+ this.MigrationErrorReason = opts.MigrationErrorReason;
154
+ }
155
+ }
156
+ export class WAFInvalidOperationException extends __BaseException {
157
+ name = "WAFInvalidOperationException";
158
+ $fault = "client";
159
+ constructor(opts) {
160
+ super({
161
+ name: "WAFInvalidOperationException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, WAFInvalidOperationException.prototype);
166
+ }
167
+ }
168
+ export class WAFNonEmptyEntityException extends __BaseException {
169
+ name = "WAFNonEmptyEntityException";
170
+ $fault = "client";
171
+ constructor(opts) {
172
+ super({
173
+ name: "WAFNonEmptyEntityException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, WAFNonEmptyEntityException.prototype);
178
+ }
179
+ }
180
+ export class WAFReferencedItemException extends __BaseException {
181
+ name = "WAFReferencedItemException";
182
+ $fault = "client";
183
+ constructor(opts) {
184
+ super({
185
+ name: "WAFReferencedItemException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, WAFReferencedItemException.prototype);
190
+ }
191
+ }
192
+ export class WAFServiceLinkedRoleErrorException extends __BaseException {
193
+ name = "WAFServiceLinkedRoleErrorException";
194
+ $fault = "client";
195
+ constructor(opts) {
196
+ super({
197
+ name: "WAFServiceLinkedRoleErrorException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, WAFServiceLinkedRoleErrorException.prototype);
202
+ }
203
+ }
204
+ export class WAFInvalidPermissionPolicyException extends __BaseException {
205
+ name = "WAFInvalidPermissionPolicyException";
206
+ $fault = "client";
207
+ constructor(opts) {
208
+ super({
209
+ name: "WAFInvalidPermissionPolicyException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, WAFInvalidPermissionPolicyException.prototype);
214
+ }
215
+ }
216
+ export class WAFNonexistentContainerException extends __BaseException {
217
+ name = "WAFNonexistentContainerException";
218
+ $fault = "client";
219
+ constructor(opts) {
220
+ super({
221
+ name: "WAFNonexistentContainerException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, WAFNonexistentContainerException.prototype);
226
+ }
227
+ }
228
+ export class WAFInvalidRegexPatternException extends __BaseException {
229
+ name = "WAFInvalidRegexPatternException";
230
+ $fault = "client";
231
+ constructor(opts) {
232
+ super({
233
+ name: "WAFInvalidRegexPatternException",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, WAFInvalidRegexPatternException.prototype);
238
+ }
239
+ }
240
+ export class WAFSubscriptionNotFoundException extends __BaseException {
241
+ name = "WAFSubscriptionNotFoundException";
242
+ $fault = "client";
243
+ constructor(opts) {
244
+ super({
245
+ name: "WAFSubscriptionNotFoundException",
246
+ $fault: "client",
247
+ ...opts,
248
+ });
249
+ Object.setPrototypeOf(this, WAFSubscriptionNotFoundException.prototype);
250
+ }
251
+ }