@aws-sdk/client-wafv2 3.1159.0 → 3.1160.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 CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1158.0";
72
+ var version = "3.1159.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -514,6 +514,8 @@ const _CIP = "ClientIP";
514
514
  const _CIPS = "CreateIPSet";
515
515
  const _CIPSR = "CreateIPSetRequest";
516
516
  const _CIPSRr = "CreateIPSetResponse";
517
+ const _CJSI = "ChallengeJavascriptSdkInjection";
518
+ const _CJSIC = "ChallengeJavascriptSdkInjectionConfig";
517
519
  const _CK = "CustomKeys";
518
520
  const _CL = "ConsumedLabels";
519
521
  const _CM = "CurrencyMode";
@@ -1281,8 +1283,8 @@ var AssociateWebACLResponse$ = [3, n0, _AWACLRs,
1281
1283
  ];
1282
1284
  var AssociationConfig$ = [3, n0, _ACs,
1283
1285
  0,
1284
- [_RB],
1285
- [() => RequestBody]
1286
+ [_RB, _CJSI],
1287
+ [() => RequestBody, () => ChallengeJavascriptSdkInjection]
1286
1288
  ];
1287
1289
  var AWSManagedRulesACFPRuleSet$ = [3, n0, _AWSMRACFPRS,
1288
1290
  0,
@@ -1349,6 +1351,11 @@ var ChallengeConfig$ = [3, n0, _CCh,
1349
1351
  [_ITP],
1350
1352
  [() => ImmunityTimeProperty$]
1351
1353
  ];
1354
+ var ChallengeJavascriptSdkInjectionConfig$ = [3, n0, _CJSIC,
1355
+ 0,
1356
+ [],
1357
+ []
1358
+ ];
1352
1359
  var ChallengeResponse$ = [3, n0, _CRh,
1353
1360
  0,
1354
1361
  [_RCe, _STo, _FR],
@@ -2714,6 +2721,9 @@ var TextTransformations = [1, n0, _TT,
2714
2721
  var WebACLSummaries = [1, n0, _WACLSe,
2715
2722
  0, () => WebACLSummary$
2716
2723
  ];
2724
+ var ChallengeJavascriptSdkInjection = [2, n0, _CJSI,
2725
+ 0, 0, () => ChallengeJavascriptSdkInjectionConfig$
2726
+ ];
2717
2727
  var CustomResponseBodies = [2, n0, _CRB,
2718
2728
  0, 0, () => CustomResponseBody$
2719
2729
  ];
@@ -3690,6 +3700,7 @@ const ParameterExceptionField = {
3690
3700
  BODY_PARSING_FALLBACK_BEHAVIOR: "BODY_PARSING_FALLBACK_BEHAVIOR",
3691
3701
  BYTE_MATCH_STATEMENT: "BYTE_MATCH_STATEMENT",
3692
3702
  CHALLENGE_CONFIG: "CHALLENGE_CONFIG",
3703
+ CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG: "CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG",
3693
3704
  CHANGE_PROPAGATION_STATUS: "CHANGE_PROPAGATION_STATUS",
3694
3705
  COOKIE_MATCH_PATTERN: "COOKIE_MATCH_PATTERN",
3695
3706
  CUSTOM_KEYS: "CUSTOM_KEYS",
@@ -3923,6 +3934,7 @@ exports.CaptchaConfig$ = CaptchaConfig$;
3923
3934
  exports.CaptchaResponse$ = CaptchaResponse$;
3924
3935
  exports.ChallengeAction$ = ChallengeAction$;
3925
3936
  exports.ChallengeConfig$ = ChallengeConfig$;
3937
+ exports.ChallengeJavascriptSdkInjectionConfig$ = ChallengeJavascriptSdkInjectionConfig$;
3926
3938
  exports.ChallengeResponse$ = ChallengeResponse$;
3927
3939
  exports.CheckCapacity$ = CheckCapacity$;
3928
3940
  exports.CheckCapacityCommand = CheckCapacityCommand;
@@ -391,6 +391,7 @@ export const ParameterExceptionField = {
391
391
  BODY_PARSING_FALLBACK_BEHAVIOR: "BODY_PARSING_FALLBACK_BEHAVIOR",
392
392
  BYTE_MATCH_STATEMENT: "BYTE_MATCH_STATEMENT",
393
393
  CHALLENGE_CONFIG: "CHALLENGE_CONFIG",
394
+ CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG: "CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG",
394
395
  CHANGE_PROPAGATION_STATUS: "CHANGE_PROPAGATION_STATUS",
395
396
  COOKIE_MATCH_PATTERN: "COOKIE_MATCH_PATTERN",
396
397
  CUSTOM_KEYS: "CUSTOM_KEYS",
@@ -66,6 +66,8 @@ const _CIP = "ClientIP";
66
66
  const _CIPS = "CreateIPSet";
67
67
  const _CIPSR = "CreateIPSetRequest";
68
68
  const _CIPSRr = "CreateIPSetResponse";
69
+ const _CJSI = "ChallengeJavascriptSdkInjection";
70
+ const _CJSIC = "ChallengeJavascriptSdkInjectionConfig";
69
71
  const _CK = "CustomKeys";
70
72
  const _CL = "ConsumedLabels";
71
73
  const _CM = "CurrencyMode";
@@ -836,8 +838,8 @@ export var AssociateWebACLResponse$ = [3, n0, _AWACLRs,
836
838
  ];
837
839
  export var AssociationConfig$ = [3, n0, _ACs,
838
840
  0,
839
- [_RB],
840
- [() => RequestBody]
841
+ [_RB, _CJSI],
842
+ [() => RequestBody, () => ChallengeJavascriptSdkInjection]
841
843
  ];
842
844
  export var AWSManagedRulesACFPRuleSet$ = [3, n0, _AWSMRACFPRS,
843
845
  0,
@@ -904,6 +906,11 @@ export var ChallengeConfig$ = [3, n0, _CCh,
904
906
  [_ITP],
905
907
  [() => ImmunityTimeProperty$]
906
908
  ];
909
+ export var ChallengeJavascriptSdkInjectionConfig$ = [3, n0, _CJSIC,
910
+ 0,
911
+ [],
912
+ []
913
+ ];
907
914
  export var ChallengeResponse$ = [3, n0, _CRh,
908
915
  0,
909
916
  [_RCe, _STo, _FR],
@@ -2291,6 +2298,9 @@ var TokenDomains = 64 | 0;
2291
2298
  var WebACLSummaries = [1, n0, _WACLSe,
2292
2299
  0, () => WebACLSummary$
2293
2300
  ];
2301
+ var ChallengeJavascriptSdkInjection = [2, n0, _CJSI,
2302
+ 0, 0, () => ChallengeJavascriptSdkInjectionConfig$
2303
+ ];
2294
2304
  var CustomResponseBodies = [2, n0, _CRB,
2295
2305
  0, 0, () => CustomResponseBody$
2296
2306
  ];
@@ -1164,6 +1164,9 @@ declare const CreateWebACLCommand_base: {
1164
1164
  * DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1165
1165
  * },
1166
1166
  * },
1167
+ * ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
1168
+ * "<keys>": {},
1169
+ * },
1167
1170
  * },
1168
1171
  * OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
1169
1172
  * ALBLowReputationMode: "ACTIVE_UNDER_DDOS" || "ALWAYS_ON", // required
@@ -1394,6 +1394,9 @@ declare const GetWebACLCommand_base: {
1394
1394
  * // DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1395
1395
  * // },
1396
1396
  * // },
1397
+ * // ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
1398
+ * // "<keys>": {},
1399
+ * // },
1397
1400
  * // },
1398
1401
  * // RetrofittedByFirewallManager: true || false,
1399
1402
  * // OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
@@ -1401,6 +1401,9 @@ declare const GetWebACLForResourceCommand_base: {
1401
1401
  * // DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1402
1402
  * // },
1403
1403
  * // },
1404
+ * // ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
1405
+ * // "<keys>": {},
1406
+ * // },
1404
1407
  * // },
1405
1408
  * // RetrofittedByFirewallManager: true || false,
1406
1409
  * // OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
@@ -1196,6 +1196,9 @@ declare const UpdateWebACLCommand_base: {
1196
1196
  * DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1197
1197
  * },
1198
1198
  * },
1199
+ * ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
1200
+ * "<keys>": {},
1201
+ * },
1199
1202
  * },
1200
1203
  * OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
1201
1204
  * ALBLowReputationMode: "ACTIVE_UNDER_DDOS" || "ALWAYS_ON", // required
@@ -555,6 +555,7 @@ export declare const ParameterExceptionField: {
555
555
  readonly BODY_PARSING_FALLBACK_BEHAVIOR: "BODY_PARSING_FALLBACK_BEHAVIOR";
556
556
  readonly BYTE_MATCH_STATEMENT: "BYTE_MATCH_STATEMENT";
557
557
  readonly CHALLENGE_CONFIG: "CHALLENGE_CONFIG";
558
+ readonly CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG: "CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG";
558
559
  readonly CHANGE_PROPAGATION_STATUS: "CHANGE_PROPAGATION_STATUS";
559
560
  readonly COOKIE_MATCH_PATTERN: "COOKIE_MATCH_PATTERN";
560
561
  readonly CUSTOM_KEYS: "CUSTOM_KEYS";
@@ -2932,6 +2932,15 @@ export interface DisallowedFeature {
2932
2932
  */
2933
2933
  RequiredPricingPlan?: string | undefined;
2934
2934
  }
2935
+ /**
2936
+ * <p>Specifies whether the associated CloudFront distribution inserts the WAF challenge JavaScript SDK into the HTML responses that it returns. The structure is empty: including it turns insertion on, and removing it turns insertion off. </p>
2937
+ * <p>This is used in the <code>ChallengeJavascriptSdkInjection</code> map of the <code>AssociationConfig</code> of the web ACL. The map key identifies the resource type and must be <code>CLOUDFRONT</code>. </p>
2938
+ * <p>JSON specification: <code>"CLOUDFRONT": \{\}</code>
2939
+ * </p>
2940
+ * @public
2941
+ */
2942
+ export interface ChallengeJavascriptSdkInjectionConfig {
2943
+ }
2935
2944
  /**
2936
2945
  * <p>Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to WAF for inspection. The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types. </p>
2937
2946
  * <note>
@@ -2963,6 +2972,7 @@ export interface RequestBodyAssociatedResourceTypeConfig {
2963
2972
  * <p>You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see <a href="http://aws.amazon.com/waf/pricing/">WAF Pricing</a>.</p>
2964
2973
  * </note>
2965
2974
  * <p>For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).</p>
2975
+ * <p>You can also use this to have your CloudFront distributions insert the WAF challenge JavaScript SDK into the HTML responses that they return. For more information, see the <code>ChallengeJavascriptSdkInjection</code> setting. </p>
2966
2976
  * @public
2967
2977
  */
2968
2978
  export interface AssociationConfig {
@@ -2980,6 +2990,28 @@ export interface AssociationConfig {
2980
2990
  * @public
2981
2991
  */
2982
2992
  RequestBody?: Partial<Record<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>> | undefined;
2993
+ /**
2994
+ * <p>Specifies the CloudFront distributions that insert the WAF challenge JavaScript SDK into the HTML responses that they return. When you enable this setting for a distribution, you do not add the SDK to your web pages yourself. </p>
2995
+ * <p>You can configure this setting only for CloudFront distributions, using the <code>CLOUDFRONT</code> map key. WAF rejects any other resource type, and the setting is not available for regional resources. To configure it, use the CloudFront scope. </p>
2996
+ * <p>Your web ACL must also contain at least one of the following qualifying managed rule groups. WAF Bot Control qualifies only at the <code>TARGETED</code> inspection level, not at <code>COMMON</code>: </p>
2997
+ * <ul>
2998
+ * <li>
2999
+ * <p>The WAF Bot Control managed rule group <code>AWSManagedRulesBotControlRuleSet</code>, with the inspection level set to <code>TARGETED</code>. </p>
3000
+ * </li>
3001
+ * <li>
3002
+ * <p>The WAF Fraud Control account takeover prevention (ATP) managed rule group <code>AWSManagedRulesATPRuleSet</code>. </p>
3003
+ * </li>
3004
+ * <li>
3005
+ * <p>The WAF Fraud Control account creation fraud prevention (ACFP) managed rule group <code>AWSManagedRulesACFPRuleSet</code>. </p>
3006
+ * </li>
3007
+ * </ul>
3008
+ * <p>If you remove the last qualifying managed rule group from the web ACL, or lower the WAF Bot Control inspection level from <code>TARGETED</code> to <code>COMMON</code>, you must remove this setting in the same update. Otherwise, WAF rejects the update. </p>
3009
+ * <p>Example JSON: <code> \{ "CLOUDFRONT": \{\} \}</code>
3010
+ * </p>
3011
+ * <p>If you omit this setting, CloudFront does not insert the SDK. When you omit it from a web ACL that previously used it, cached HTML that already contains the SDK is still served until it expires, or until you invalidate the cache for that distribution. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-challenge-javascript-sdk-injection.html">Automatic SDK integration for CloudFront distributions</a> in the <i>WAF Developer Guide</i>. </p>
3012
+ * @public
3013
+ */
3014
+ ChallengeJavascriptSdkInjection?: Partial<Record<AssociatedResourceType, ChallengeJavascriptSdkInjectionConfig>> | undefined;
2983
3015
  }
2984
3016
  /**
2985
3017
  * <p>Used for CAPTCHA and challenge token settings. Determines
@@ -8223,6 +8255,7 @@ export interface CreateWebACLRequest {
8223
8255
  * <p>You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see <a href="http://aws.amazon.com/waf/pricing/">WAF Pricing</a>.</p>
8224
8256
  * </note>
8225
8257
  * <p>For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).</p>
8258
+ * <p>You can also use this to have your CloudFront distributions insert the WAF challenge JavaScript SDK into the HTML responses that they return. For more information, see the <code>ChallengeJavascriptSdkInjection</code> setting. </p>
8226
8259
  * @public
8227
8260
  */
8228
8261
  AssociationConfig?: AssociationConfig | undefined;
@@ -8509,6 +8542,7 @@ export interface UpdateWebACLRequest {
8509
8542
  * <p>You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see <a href="http://aws.amazon.com/waf/pricing/">WAF Pricing</a>.</p>
8510
8543
  * </note>
8511
8544
  * <p>For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).</p>
8545
+ * <p>You can also use this to have your CloudFront distributions insert the WAF challenge JavaScript SDK into the HTML responses that they return. For more information, see the <code>ChallengeJavascriptSdkInjection</code> setting. </p>
8512
8546
  * @public
8513
8547
  */
8514
8548
  AssociationConfig?: AssociationConfig | undefined;
@@ -8702,6 +8736,7 @@ export interface WebACL {
8702
8736
  * <p>You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see <a href="http://aws.amazon.com/waf/pricing/">WAF Pricing</a>.</p>
8703
8737
  * </note>
8704
8738
  * <p>For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).</p>
8739
+ * <p>You can also use this to have your CloudFront distributions insert the WAF challenge JavaScript SDK into the HTML responses that they return. For more information, see the <code>ChallengeJavascriptSdkInjection</code> setting. </p>
8705
8740
  * @public
8706
8741
  */
8707
8742
  AssociationConfig?: AssociationConfig | undefined;
@@ -53,6 +53,7 @@ export declare var CaptchaConfig$: StaticStructureSchema;
53
53
  export declare var CaptchaResponse$: StaticStructureSchema;
54
54
  export declare var ChallengeAction$: StaticStructureSchema;
55
55
  export declare var ChallengeConfig$: StaticStructureSchema;
56
+ export declare var ChallengeJavascriptSdkInjectionConfig$: StaticStructureSchema;
56
57
  export declare var ChallengeResponse$: StaticStructureSchema;
57
58
  export declare var CheckCapacityRequest$: StaticStructureSchema;
58
59
  export declare var CheckCapacityResponse$: StaticStructureSchema;
@@ -416,6 +416,7 @@ export declare const ParameterExceptionField: {
416
416
  readonly BODY_PARSING_FALLBACK_BEHAVIOR: "BODY_PARSING_FALLBACK_BEHAVIOR";
417
417
  readonly BYTE_MATCH_STATEMENT: "BYTE_MATCH_STATEMENT";
418
418
  readonly CHALLENGE_CONFIG: "CHALLENGE_CONFIG";
419
+ readonly CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG: "CHALLENGE_JAVASCRIPT_SDK_INJECTION_CONFIG";
419
420
  readonly CHANGE_PROPAGATION_STATUS: "CHANGE_PROPAGATION_STATUS";
420
421
  readonly COOKIE_MATCH_PATTERN: "COOKIE_MATCH_PATTERN";
421
422
  readonly CUSTOM_KEYS: "CUSTOM_KEYS";
@@ -402,6 +402,7 @@ export interface DisallowedFeature {
402
402
  Feature?: string | undefined;
403
403
  RequiredPricingPlan?: string | undefined;
404
404
  }
405
+ export interface ChallengeJavascriptSdkInjectionConfig {}
405
406
  export interface RequestBodyAssociatedResourceTypeConfig {
406
407
  DefaultSizeInspectionLimit: SizeInspectionLimit | undefined;
407
408
  }
@@ -409,6 +410,9 @@ export interface AssociationConfig {
409
410
  RequestBody?:
410
411
  | Partial<Record<AssociatedResourceType, RequestBodyAssociatedResourceTypeConfig>>
411
412
  | undefined;
413
+ ChallengeJavascriptSdkInjection?:
414
+ | Partial<Record<AssociatedResourceType, ChallengeJavascriptSdkInjectionConfig>>
415
+ | undefined;
412
416
  }
413
417
  export interface ImmunityTimeProperty {
414
418
  ImmunityTime: number | undefined;
@@ -48,6 +48,7 @@ export declare var CaptchaConfig$: StaticStructureSchema;
48
48
  export declare var CaptchaResponse$: StaticStructureSchema;
49
49
  export declare var ChallengeAction$: StaticStructureSchema;
50
50
  export declare var ChallengeConfig$: StaticStructureSchema;
51
+ export declare var ChallengeJavascriptSdkInjectionConfig$: StaticStructureSchema;
51
52
  export declare var ChallengeResponse$: StaticStructureSchema;
52
53
  export declare var CheckCapacityRequest$: StaticStructureSchema;
53
54
  export declare var CheckCapacityResponse$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wafv2",
3
- "version": "3.1159.0",
3
+ "version": "3.1160.0",
4
4
  "description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-wafv2",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.7",
50
- "@aws-sdk/credential-provider-node": "^3.972.90",
49
+ "@aws-sdk/core": "^3.979.0",
50
+ "@aws-sdk/credential-provider-node": "^3.972.91",
51
51
  "@aws-sdk/types": "^3.975.0",
52
52
  "@smithy/core": "^3.37.0",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",