@aws-sdk/client-wafv2 3.906.0 → 3.908.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.
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
6
  const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -602,6 +602,22 @@ class WAFInvalidParameterException extends WAFV2ServiceException {
602
602
  this.Reason = opts.Reason;
603
603
  }
604
604
  }
605
+ class WAFLimitsExceededException extends WAFV2ServiceException {
606
+ name = "WAFLimitsExceededException";
607
+ $fault = "client";
608
+ Message;
609
+ SourceType;
610
+ constructor(opts) {
611
+ super({
612
+ name: "WAFLimitsExceededException",
613
+ $fault: "client",
614
+ ...opts,
615
+ });
616
+ Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
617
+ this.Message = opts.Message;
618
+ this.SourceType = opts.SourceType;
619
+ }
620
+ }
605
621
  class WAFNonexistentItemException extends WAFV2ServiceException {
606
622
  name = "WAFNonexistentItemException";
607
623
  $fault = "client";
@@ -668,22 +684,6 @@ class WAFInvalidResourceException extends WAFV2ServiceException {
668
684
  this.Message = opts.Message;
669
685
  }
670
686
  }
671
- class WAFLimitsExceededException extends WAFV2ServiceException {
672
- name = "WAFLimitsExceededException";
673
- $fault = "client";
674
- Message;
675
- SourceType;
676
- constructor(opts) {
677
- super({
678
- name: "WAFLimitsExceededException",
679
- $fault: "client",
680
- ...opts,
681
- });
682
- Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
683
- this.Message = opts.Message;
684
- this.SourceType = opts.SourceType;
685
- }
686
- }
687
687
  class WAFSubscriptionNotFoundException extends WAFV2ServiceException {
688
688
  name = "WAFSubscriptionNotFoundException";
689
689
  $fault = "client";
@@ -1937,6 +1937,9 @@ const de_CommandError = async (output, context) => {
1937
1937
  case "WAFInvalidParameterException":
1938
1938
  case "com.amazonaws.wafv2#WAFInvalidParameterException":
1939
1939
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput);
1940
+ case "WAFLimitsExceededException":
1941
+ case "com.amazonaws.wafv2#WAFLimitsExceededException":
1942
+ throw await de_WAFLimitsExceededExceptionRes(parsedOutput);
1940
1943
  case "WAFNonexistentItemException":
1941
1944
  case "com.amazonaws.wafv2#WAFNonexistentItemException":
1942
1945
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput);
@@ -1949,9 +1952,6 @@ const de_CommandError = async (output, context) => {
1949
1952
  case "WAFInvalidResourceException":
1950
1953
  case "com.amazonaws.wafv2#WAFInvalidResourceException":
1951
1954
  throw await de_WAFInvalidResourceExceptionRes(parsedOutput);
1952
- case "WAFLimitsExceededException":
1953
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1954
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput);
1955
1955
  case "WAFSubscriptionNotFoundException":
1956
1956
  case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
1957
1957
  throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput);
@@ -1,4 +1,4 @@
1
1
  const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
3
  const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -484,6 +484,22 @@ export class WAFInvalidParameterException extends __BaseException {
484
484
  this.Reason = opts.Reason;
485
485
  }
486
486
  }
487
+ export class WAFLimitsExceededException extends __BaseException {
488
+ name = "WAFLimitsExceededException";
489
+ $fault = "client";
490
+ Message;
491
+ SourceType;
492
+ constructor(opts) {
493
+ super({
494
+ name: "WAFLimitsExceededException",
495
+ $fault: "client",
496
+ ...opts,
497
+ });
498
+ Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
499
+ this.Message = opts.Message;
500
+ this.SourceType = opts.SourceType;
501
+ }
502
+ }
487
503
  export class WAFNonexistentItemException extends __BaseException {
488
504
  name = "WAFNonexistentItemException";
489
505
  $fault = "client";
@@ -550,22 +566,6 @@ export class WAFInvalidResourceException extends __BaseException {
550
566
  this.Message = opts.Message;
551
567
  }
552
568
  }
553
- export class WAFLimitsExceededException extends __BaseException {
554
- name = "WAFLimitsExceededException";
555
- $fault = "client";
556
- Message;
557
- SourceType;
558
- constructor(opts) {
559
- super({
560
- name: "WAFLimitsExceededException",
561
- $fault: "client",
562
- ...opts,
563
- });
564
- Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
565
- this.Message = opts.Message;
566
- this.SourceType = opts.SourceType;
567
- }
568
- }
569
569
  export class WAFSubscriptionNotFoundException extends __BaseException {
570
570
  name = "WAFSubscriptionNotFoundException";
571
571
  $fault = "client";
@@ -1045,6 +1045,9 @@ const de_CommandError = async (output, context) => {
1045
1045
  case "WAFInvalidParameterException":
1046
1046
  case "com.amazonaws.wafv2#WAFInvalidParameterException":
1047
1047
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1048
+ case "WAFLimitsExceededException":
1049
+ case "com.amazonaws.wafv2#WAFLimitsExceededException":
1050
+ throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1048
1051
  case "WAFNonexistentItemException":
1049
1052
  case "com.amazonaws.wafv2#WAFNonexistentItemException":
1050
1053
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
@@ -1057,9 +1060,6 @@ const de_CommandError = async (output, context) => {
1057
1060
  case "WAFInvalidResourceException":
1058
1061
  case "com.amazonaws.wafv2#WAFInvalidResourceException":
1059
1062
  throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1060
- case "WAFLimitsExceededException":
1061
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1062
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1063
1063
  case "WAFSubscriptionNotFoundException":
1064
1064
  case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
1065
1065
  throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
@@ -105,6 +105,12 @@ declare const AssociateWebACLCommand_base: {
105
105
  * </li>
106
106
  * </ul>
107
107
  *
108
+ * @throws {@link WAFLimitsExceededException} (client fault)
109
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
110
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
111
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
112
+ * <i>WAF Developer Guide</i>.</p>
113
+ *
108
114
  * @throws {@link WAFNonexistentItemException} (client fault)
109
115
  * <p>WAF couldn’t perform the operation because your resource doesn't exist.
110
116
  * If you've just created a resource that you're using in this operation, you might
@@ -3499,6 +3499,27 @@ export declare class WAFInvalidParameterException extends __BaseException {
3499
3499
  */
3500
3500
  constructor(opts: __ExceptionOptionType<WAFInvalidParameterException, __BaseException>);
3501
3501
  }
3502
+ /**
3503
+ * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
3504
+ * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
3505
+ * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
3506
+ * <i>WAF Developer Guide</i>.</p>
3507
+ * @public
3508
+ */
3509
+ export declare class WAFLimitsExceededException extends __BaseException {
3510
+ readonly name: "WAFLimitsExceededException";
3511
+ readonly $fault: "client";
3512
+ Message?: string | undefined;
3513
+ /**
3514
+ * <p>Source type for the exception. </p>
3515
+ * @public
3516
+ */
3517
+ SourceType?: string | undefined;
3518
+ /**
3519
+ * @internal
3520
+ */
3521
+ constructor(opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>);
3522
+ }
3502
3523
  /**
3503
3524
  * <p>WAF couldn’t perform the operation because your resource doesn't exist.
3504
3525
  * If you've just created a resource that you're using in this operation, you might
@@ -3772,27 +3793,6 @@ export declare class WAFInvalidResourceException extends __BaseException {
3772
3793
  */
3773
3794
  constructor(opts: __ExceptionOptionType<WAFInvalidResourceException, __BaseException>);
3774
3795
  }
3775
- /**
3776
- * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
3777
- * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
3778
- * account. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">WAF quotas</a> in the
3779
- * <i>WAF Developer Guide</i>.</p>
3780
- * @public
3781
- */
3782
- export declare class WAFLimitsExceededException extends __BaseException {
3783
- readonly name: "WAFLimitsExceededException";
3784
- readonly $fault: "client";
3785
- Message?: string | undefined;
3786
- /**
3787
- * <p>Source type for the exception. </p>
3788
- * @public
3789
- */
3790
- SourceType?: string | undefined;
3791
- /**
3792
- * @internal
3793
- */
3794
- constructor(opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>);
3795
- }
3796
3796
  /**
3797
3797
  * <p>You tried to use a managed rule group that's available by subscription, but you aren't
3798
3798
  * subscribed to it yet. </p>
@@ -840,6 +840,15 @@ export declare class WAFInvalidParameterException extends __BaseException {
840
840
  opts: __ExceptionOptionType<WAFInvalidParameterException, __BaseException>
841
841
  );
842
842
  }
843
+ export declare class WAFLimitsExceededException extends __BaseException {
844
+ readonly name: "WAFLimitsExceededException";
845
+ readonly $fault: "client";
846
+ Message?: string | undefined;
847
+ SourceType?: string | undefined;
848
+ constructor(
849
+ opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>
850
+ );
851
+ }
843
852
  export declare class WAFNonexistentItemException extends __BaseException {
844
853
  readonly name: "WAFNonexistentItemException";
845
854
  readonly $fault: "client";
@@ -923,15 +932,6 @@ export declare class WAFInvalidResourceException extends __BaseException {
923
932
  opts: __ExceptionOptionType<WAFInvalidResourceException, __BaseException>
924
933
  );
925
934
  }
926
- export declare class WAFLimitsExceededException extends __BaseException {
927
- readonly name: "WAFLimitsExceededException";
928
- readonly $fault: "client";
929
- Message?: string | undefined;
930
- SourceType?: string | undefined;
931
- constructor(
932
- opts: __ExceptionOptionType<WAFLimitsExceededException, __BaseException>
933
- );
934
- }
935
935
  export declare class WAFSubscriptionNotFoundException extends __BaseException {
936
936
  readonly name: "WAFSubscriptionNotFoundException";
937
937
  readonly $fault: "client";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wafv2",
3
3
  "description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
4
- "version": "3.906.0",
4
+ "version": "3.908.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-wafv2",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.906.0",
24
- "@aws-sdk/credential-provider-node": "3.906.0",
23
+ "@aws-sdk/core": "3.908.0",
24
+ "@aws-sdk/credential-provider-node": "3.908.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.906.0",
28
+ "@aws-sdk/middleware-user-agent": "3.908.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
- "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.906.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.907.0",
33
+ "@aws-sdk/util-user-agent-node": "3.908.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
- "@smithy/core": "^3.14.0",
36
- "@smithy/fetch-http-handler": "^5.3.0",
35
+ "@smithy/core": "^3.15.0",
36
+ "@smithy/fetch-http-handler": "^5.3.1",
37
37
  "@smithy/hash-node": "^4.2.0",
38
38
  "@smithy/invalid-dependency": "^4.2.0",
39
39
  "@smithy/middleware-content-length": "^4.2.0",
40
- "@smithy/middleware-endpoint": "^4.3.0",
41
- "@smithy/middleware-retry": "^4.4.0",
40
+ "@smithy/middleware-endpoint": "^4.3.1",
41
+ "@smithy/middleware-retry": "^4.4.1",
42
42
  "@smithy/middleware-serde": "^4.2.0",
43
43
  "@smithy/middleware-stack": "^4.2.0",
44
44
  "@smithy/node-config-provider": "^4.3.0",
45
45
  "@smithy/node-http-handler": "^4.3.0",
46
46
  "@smithy/protocol-http": "^5.3.0",
47
- "@smithy/smithy-client": "^4.7.0",
47
+ "@smithy/smithy-client": "^4.7.1",
48
48
  "@smithy/types": "^4.6.0",
49
49
  "@smithy/url-parser": "^4.2.0",
50
- "@smithy/util-base64": "^4.2.0",
50
+ "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
- "@smithy/util-body-length-node": "^4.2.0",
53
- "@smithy/util-defaults-mode-browser": "^4.2.0",
54
- "@smithy/util-defaults-mode-node": "^4.2.0",
52
+ "@smithy/util-body-length-node": "^4.2.1",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.0",
54
+ "@smithy/util-defaults-mode-node": "^4.2.1",
55
55
  "@smithy/util-endpoints": "^3.2.0",
56
56
  "@smithy/util-middleware": "^4.2.0",
57
57
  "@smithy/util-retry": "^4.2.0",