@aws-sdk/client-waf 3.51.0 → 3.54.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.
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { WAFServiceException as __BaseException } from "./WAFServiceException";
2
3
  export declare enum WafActionType {
3
4
  ALLOW = "ALLOW",
4
5
  BLOCK = "BLOCK",
@@ -143,21 +144,25 @@ export declare namespace CreateByteMatchSetResponse {
143
144
  const filterSensitiveLog: (obj: CreateByteMatchSetResponse) => any;
144
145
  }
145
146
 
146
- export interface WAFDisallowedNameException extends __SmithyException, $MetadataBearer {
147
- name: "WAFDisallowedNameException";
148
- $fault: "client";
149
- message?: string;
147
+ export declare class WAFDisallowedNameException extends __BaseException {
148
+ readonly name: "WAFDisallowedNameException";
149
+ readonly $fault: "client";
150
+
151
+ constructor(opts: __ExceptionOptionType<WAFDisallowedNameException, __BaseException>);
150
152
  }
151
153
 
152
- export interface WAFInternalErrorException extends __SmithyException, $MetadataBearer {
153
- name: "WAFInternalErrorException";
154
- $fault: "server";
155
- message?: string;
154
+ export declare class WAFInternalErrorException extends __BaseException {
155
+ readonly name: "WAFInternalErrorException";
156
+ readonly $fault: "server";
157
+
158
+ constructor(opts: __ExceptionOptionType<WAFInternalErrorException, __BaseException>);
156
159
  }
157
160
 
158
- export interface WAFInvalidAccountException extends __SmithyException, $MetadataBearer {
159
- name: "WAFInvalidAccountException";
160
- $fault: "client";
161
+ export declare class WAFInvalidAccountException extends __BaseException {
162
+ readonly name: "WAFInvalidAccountException";
163
+ readonly $fault: "client";
164
+
165
+ constructor(opts: __ExceptionOptionType<WAFInvalidAccountException, __BaseException>);
161
166
  }
162
167
  export declare enum ParameterExceptionField {
163
168
  BYTE_MATCH_FIELD_TYPE = "BYTE_MATCH_FIELD_TYPE",
@@ -186,24 +191,28 @@ export declare enum ParameterExceptionReason {
186
191
  INVALID_TAG_KEY = "INVALID_TAG_KEY"
187
192
  }
188
193
 
189
- export interface WAFInvalidParameterException extends __SmithyException, $MetadataBearer {
190
- name: "WAFInvalidParameterException";
191
- $fault: "client";
194
+ export declare class WAFInvalidParameterException extends __BaseException {
195
+ readonly name: "WAFInvalidParameterException";
196
+ readonly $fault: "client";
192
197
  field?: ParameterExceptionField | string;
193
198
  parameter?: string;
194
199
  reason?: ParameterExceptionReason | string;
200
+
201
+ constructor(opts: __ExceptionOptionType<WAFInvalidParameterException, __BaseException>);
195
202
  }
196
203
 
197
- export interface WAFLimitsExceededException extends __SmithyException, $MetadataBearer {
198
- name: "WAFLimitsExceededException";
199
- $fault: "client";
200
- message?: string;
204
+ export declare class WAFLimitsExceededException extends __BaseException {
205
+ readonly name: "WAFLimitsExceededException";
206
+ readonly $fault: "client";
207
+
208
+ constructor(opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>);
201
209
  }
202
210
 
203
- export interface WAFStaleDataException extends __SmithyException, $MetadataBearer {
204
- name: "WAFStaleDataException";
205
- $fault: "client";
206
- message?: string;
211
+ export declare class WAFStaleDataException extends __BaseException {
212
+ readonly name: "WAFStaleDataException";
213
+ readonly $fault: "client";
214
+
215
+ constructor(opts: __ExceptionOptionType<WAFStaleDataException, __BaseException>);
207
216
  }
208
217
  export interface CreateGeoMatchSetRequest {
209
218
 
@@ -635,22 +644,25 @@ export declare namespace CreateRateBasedRuleResponse {
635
644
  const filterSensitiveLog: (obj: CreateRateBasedRuleResponse) => any;
636
645
  }
637
646
 
638
- export interface WAFBadRequestException extends __SmithyException, $MetadataBearer {
639
- name: "WAFBadRequestException";
640
- $fault: "client";
641
- message?: string;
647
+ export declare class WAFBadRequestException extends __BaseException {
648
+ readonly name: "WAFBadRequestException";
649
+ readonly $fault: "client";
650
+
651
+ constructor(opts: __ExceptionOptionType<WAFBadRequestException, __BaseException>);
642
652
  }
643
653
 
644
- export interface WAFTagOperationException extends __SmithyException, $MetadataBearer {
645
- name: "WAFTagOperationException";
646
- $fault: "client";
647
- message?: string;
654
+ export declare class WAFTagOperationException extends __BaseException {
655
+ readonly name: "WAFTagOperationException";
656
+ readonly $fault: "client";
657
+
658
+ constructor(opts: __ExceptionOptionType<WAFTagOperationException, __BaseException>);
648
659
  }
649
660
 
650
- export interface WAFTagOperationInternalErrorException extends __SmithyException, $MetadataBearer {
651
- name: "WAFTagOperationInternalErrorException";
652
- $fault: "server";
653
- message?: string;
661
+ export declare class WAFTagOperationInternalErrorException extends __BaseException {
662
+ readonly name: "WAFTagOperationInternalErrorException";
663
+ readonly $fault: "server";
664
+
665
+ constructor(opts: __ExceptionOptionType<WAFTagOperationInternalErrorException, __BaseException>);
654
666
  }
655
667
  export interface CreateRegexMatchSetRequest {
656
668
 
@@ -984,24 +996,27 @@ export declare enum MigrationErrorType {
984
996
  S3_INTERNAL_ERROR = "S3_INTERNAL_ERROR"
985
997
  }
986
998
 
987
- export interface WAFEntityMigrationException extends __SmithyException, $MetadataBearer {
988
- name: "WAFEntityMigrationException";
989
- $fault: "client";
990
- message?: string;
999
+ export declare class WAFEntityMigrationException extends __BaseException {
1000
+ readonly name: "WAFEntityMigrationException";
1001
+ readonly $fault: "client";
991
1002
  MigrationErrorType?: MigrationErrorType | string;
992
1003
  MigrationErrorReason?: string;
1004
+
1005
+ constructor(opts: __ExceptionOptionType<WAFEntityMigrationException, __BaseException>);
993
1006
  }
994
1007
 
995
- export interface WAFInvalidOperationException extends __SmithyException, $MetadataBearer {
996
- name: "WAFInvalidOperationException";
997
- $fault: "client";
998
- message?: string;
1008
+ export declare class WAFInvalidOperationException extends __BaseException {
1009
+ readonly name: "WAFInvalidOperationException";
1010
+ readonly $fault: "client";
1011
+
1012
+ constructor(opts: __ExceptionOptionType<WAFInvalidOperationException, __BaseException>);
999
1013
  }
1000
1014
 
1001
- export interface WAFNonexistentItemException extends __SmithyException, $MetadataBearer {
1002
- name: "WAFNonexistentItemException";
1003
- $fault: "client";
1004
- message?: string;
1015
+ export declare class WAFNonexistentItemException extends __BaseException {
1016
+ readonly name: "WAFNonexistentItemException";
1017
+ readonly $fault: "client";
1018
+
1019
+ constructor(opts: __ExceptionOptionType<WAFNonexistentItemException, __BaseException>);
1005
1020
  }
1006
1021
 
1007
1022
  export interface CreateXssMatchSetRequest {
@@ -1068,16 +1083,18 @@ export declare namespace DeleteByteMatchSetResponse {
1068
1083
  const filterSensitiveLog: (obj: DeleteByteMatchSetResponse) => any;
1069
1084
  }
1070
1085
 
1071
- export interface WAFNonEmptyEntityException extends __SmithyException, $MetadataBearer {
1072
- name: "WAFNonEmptyEntityException";
1073
- $fault: "client";
1074
- message?: string;
1086
+ export declare class WAFNonEmptyEntityException extends __BaseException {
1087
+ readonly name: "WAFNonEmptyEntityException";
1088
+ readonly $fault: "client";
1089
+
1090
+ constructor(opts: __ExceptionOptionType<WAFNonEmptyEntityException, __BaseException>);
1075
1091
  }
1076
1092
 
1077
- export interface WAFReferencedItemException extends __SmithyException, $MetadataBearer {
1078
- name: "WAFReferencedItemException";
1079
- $fault: "client";
1080
- message?: string;
1093
+ export declare class WAFReferencedItemException extends __BaseException {
1094
+ readonly name: "WAFReferencedItemException";
1095
+ readonly $fault: "client";
1096
+
1097
+ constructor(opts: __ExceptionOptionType<WAFReferencedItemException, __BaseException>);
1081
1098
  }
1082
1099
  export interface DeleteGeoMatchSetRequest {
1083
1100
 
@@ -2179,10 +2196,11 @@ export declare namespace PutLoggingConfigurationResponse {
2179
2196
  const filterSensitiveLog: (obj: PutLoggingConfigurationResponse) => any;
2180
2197
  }
2181
2198
 
2182
- export interface WAFServiceLinkedRoleErrorException extends __SmithyException, $MetadataBearer {
2183
- name: "WAFServiceLinkedRoleErrorException";
2184
- $fault: "client";
2185
- message?: string;
2199
+ export declare class WAFServiceLinkedRoleErrorException extends __BaseException {
2200
+ readonly name: "WAFServiceLinkedRoleErrorException";
2201
+ readonly $fault: "client";
2202
+
2203
+ constructor(opts: __ExceptionOptionType<WAFServiceLinkedRoleErrorException, __BaseException>);
2186
2204
  }
2187
2205
  export interface PutPermissionPolicyRequest {
2188
2206
 
@@ -2201,10 +2219,11 @@ export declare namespace PutPermissionPolicyResponse {
2201
2219
  const filterSensitiveLog: (obj: PutPermissionPolicyResponse) => any;
2202
2220
  }
2203
2221
 
2204
- export interface WAFInvalidPermissionPolicyException extends __SmithyException, $MetadataBearer {
2205
- name: "WAFInvalidPermissionPolicyException";
2206
- $fault: "client";
2207
- message?: string;
2222
+ export declare class WAFInvalidPermissionPolicyException extends __BaseException {
2223
+ readonly name: "WAFInvalidPermissionPolicyException";
2224
+ readonly $fault: "client";
2225
+
2226
+ constructor(opts: __ExceptionOptionType<WAFInvalidPermissionPolicyException, __BaseException>);
2208
2227
  }
2209
2228
  export interface TagResourceRequest {
2210
2229
 
@@ -2274,10 +2293,11 @@ export declare namespace UpdateByteMatchSetResponse {
2274
2293
  const filterSensitiveLog: (obj: UpdateByteMatchSetResponse) => any;
2275
2294
  }
2276
2295
 
2277
- export interface WAFNonexistentContainerException extends __SmithyException, $MetadataBearer {
2278
- name: "WAFNonexistentContainerException";
2279
- $fault: "client";
2280
- message?: string;
2296
+ export declare class WAFNonexistentContainerException extends __BaseException {
2297
+ readonly name: "WAFNonexistentContainerException";
2298
+ readonly $fault: "client";
2299
+
2300
+ constructor(opts: __ExceptionOptionType<WAFNonexistentContainerException, __BaseException>);
2281
2301
  }
2282
2302
 
2283
2303
  export interface GeoMatchSetUpdate {
@@ -2437,10 +2457,11 @@ export declare namespace UpdateRegexPatternSetResponse {
2437
2457
  const filterSensitiveLog: (obj: UpdateRegexPatternSetResponse) => any;
2438
2458
  }
2439
2459
 
2440
- export interface WAFInvalidRegexPatternException extends __SmithyException, $MetadataBearer {
2441
- name: "WAFInvalidRegexPatternException";
2442
- $fault: "client";
2443
- message?: string;
2460
+ export declare class WAFInvalidRegexPatternException extends __BaseException {
2461
+ readonly name: "WAFInvalidRegexPatternException";
2462
+ readonly $fault: "client";
2463
+
2464
+ constructor(opts: __ExceptionOptionType<WAFInvalidRegexPatternException, __BaseException>);
2444
2465
  }
2445
2466
  export interface UpdateRuleRequest {
2446
2467
 
@@ -2591,10 +2612,11 @@ export declare namespace UpdateWebACLResponse {
2591
2612
  const filterSensitiveLog: (obj: UpdateWebACLResponse) => any;
2592
2613
  }
2593
2614
 
2594
- export interface WAFSubscriptionNotFoundException extends __SmithyException, $MetadataBearer {
2595
- name: "WAFSubscriptionNotFoundException";
2596
- $fault: "client";
2597
- message?: string;
2615
+ export declare class WAFSubscriptionNotFoundException extends __BaseException {
2616
+ readonly name: "WAFSubscriptionNotFoundException";
2617
+ readonly $fault: "client";
2618
+
2619
+ constructor(opts: __ExceptionOptionType<WAFSubscriptionNotFoundException, __BaseException>);
2598
2620
  }
2599
2621
 
2600
2622
  export interface XssMatchSetUpdate {
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: WAFClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: WAFClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: WAFClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf",
3
3
  "description": "AWS SDK for JavaScript Waf Client for Node.js, Browser and React Native",
4
- "version": "3.51.0",
4
+ "version": "3.54.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,40 +18,40 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.51.0",
22
- "@aws-sdk/config-resolver": "3.51.0",
23
- "@aws-sdk/credential-provider-node": "3.51.0",
24
- "@aws-sdk/fetch-http-handler": "3.50.0",
25
- "@aws-sdk/hash-node": "3.50.0",
26
- "@aws-sdk/invalid-dependency": "3.50.0",
27
- "@aws-sdk/middleware-content-length": "3.50.0",
28
- "@aws-sdk/middleware-host-header": "3.50.0",
29
- "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.51.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.51.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.51.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",