@aws-sdk/client-wafv2 3.197.0 → 3.198.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/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +55 -25
- package/dist-cjs/protocols/Aws_json1_1.js +138 -0
- package/dist-es/models/models_0.js +38 -13
- package/dist-es/protocols/Aws_json1_1.js +138 -0
- package/dist-types/WAFV2.d.ts +3 -3
- package/dist-types/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +1 -1
- package/dist-types/commands/GetMobileSdkReleaseCommand.d.ts +1 -1
- package/dist-types/commands/ListMobileSdkReleasesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +356 -166
- package/dist-types/ts3.4/models/models_0.d.ts +84 -29
- package/package.json +28 -28
|
@@ -4,6 +4,7 @@ export declare enum ActionValue {
|
|
|
4
4
|
ALLOW = "ALLOW",
|
|
5
5
|
BLOCK = "BLOCK",
|
|
6
6
|
CAPTCHA = "CAPTCHA",
|
|
7
|
+
CHALLENGE = "CHALLENGE",
|
|
7
8
|
COUNT = "COUNT",
|
|
8
9
|
EXCLUDED_AS_COUNT = "EXCLUDED_AS_COUNT",
|
|
9
10
|
}
|
|
@@ -425,6 +426,13 @@ export interface LabelMatchStatement {
|
|
|
425
426
|
export interface ExcludedRule {
|
|
426
427
|
Name: string | undefined;
|
|
427
428
|
}
|
|
429
|
+
export declare enum InspectionLevel {
|
|
430
|
+
COMMON = "COMMON",
|
|
431
|
+
TARGETED = "TARGETED",
|
|
432
|
+
}
|
|
433
|
+
export interface AWSManagedRulesBotControlRuleSet {
|
|
434
|
+
InspectionLevel: InspectionLevel | string | undefined;
|
|
435
|
+
}
|
|
428
436
|
export interface PasswordField {
|
|
429
437
|
Identifier: string | undefined;
|
|
430
438
|
}
|
|
@@ -440,6 +448,35 @@ export interface ManagedRuleGroupConfig {
|
|
|
440
448
|
PayloadType?: PayloadType | string;
|
|
441
449
|
UsernameField?: UsernameField;
|
|
442
450
|
PasswordField?: PasswordField;
|
|
451
|
+
AWSManagedRulesBotControlRuleSet?: AWSManagedRulesBotControlRuleSet;
|
|
452
|
+
}
|
|
453
|
+
export interface CustomResponse {
|
|
454
|
+
ResponseCode: number | undefined;
|
|
455
|
+
CustomResponseBodyKey?: string;
|
|
456
|
+
ResponseHeaders?: CustomHTTPHeader[];
|
|
457
|
+
}
|
|
458
|
+
export interface BlockAction {
|
|
459
|
+
CustomResponse?: CustomResponse;
|
|
460
|
+
}
|
|
461
|
+
export interface CaptchaAction {
|
|
462
|
+
CustomRequestHandling?: CustomRequestHandling;
|
|
463
|
+
}
|
|
464
|
+
export interface ChallengeAction {
|
|
465
|
+
CustomRequestHandling?: CustomRequestHandling;
|
|
466
|
+
}
|
|
467
|
+
export interface CountAction {
|
|
468
|
+
CustomRequestHandling?: CustomRequestHandling;
|
|
469
|
+
}
|
|
470
|
+
export interface RuleAction {
|
|
471
|
+
Block?: BlockAction;
|
|
472
|
+
Allow?: AllowAction;
|
|
473
|
+
Count?: CountAction;
|
|
474
|
+
Captcha?: CaptchaAction;
|
|
475
|
+
Challenge?: ChallengeAction;
|
|
476
|
+
}
|
|
477
|
+
export interface RuleActionOverride {
|
|
478
|
+
Name: string | undefined;
|
|
479
|
+
ActionToUse: RuleAction | undefined;
|
|
443
480
|
}
|
|
444
481
|
export declare enum RateBasedStatementAggregateKeyType {
|
|
445
482
|
FORWARDED_IP = "FORWARDED_IP",
|
|
@@ -458,6 +495,7 @@ export interface RegexPatternSetReferenceStatement {
|
|
|
458
495
|
export interface RuleGroupReferenceStatement {
|
|
459
496
|
ARN: string | undefined;
|
|
460
497
|
ExcludedRules?: ExcludedRule[];
|
|
498
|
+
RuleActionOverrides?: RuleActionOverride[];
|
|
461
499
|
}
|
|
462
500
|
export declare enum ComparisonOperator {
|
|
463
501
|
EQ = "EQ",
|
|
@@ -512,6 +550,7 @@ export declare enum ParameterExceptionField {
|
|
|
512
550
|
ASSOCIABLE_RESOURCE = "ASSOCIABLE_RESOURCE",
|
|
513
551
|
BODY_PARSING_FALLBACK_BEHAVIOR = "BODY_PARSING_FALLBACK_BEHAVIOR",
|
|
514
552
|
BYTE_MATCH_STATEMENT = "BYTE_MATCH_STATEMENT",
|
|
553
|
+
CHALLENGE_CONFIG = "CHALLENGE_CONFIG",
|
|
515
554
|
CHANGE_PROPAGATION_STATUS = "CHANGE_PROPAGATION_STATUS",
|
|
516
555
|
COOKIE_MATCH_PATTERN = "COOKIE_MATCH_PATTERN",
|
|
517
556
|
CUSTOM_REQUEST_HANDLING = "CUSTOM_REQUEST_HANDLING",
|
|
@@ -569,6 +608,7 @@ export declare enum ParameterExceptionField {
|
|
|
569
608
|
TAGS = "TAGS",
|
|
570
609
|
TAG_KEYS = "TAG_KEYS",
|
|
571
610
|
TEXT_TRANSFORMATION = "TEXT_TRANSFORMATION",
|
|
611
|
+
TOKEN_DOMAIN = "TOKEN_DOMAIN",
|
|
572
612
|
WEB_ACL = "WEB_ACL",
|
|
573
613
|
XSS_MATCH_STATEMENT = "XSS_MATCH_STATEMENT",
|
|
574
614
|
}
|
|
@@ -598,32 +638,15 @@ export declare class WAFUnavailableEntityException extends __BaseException {
|
|
|
598
638
|
opts: __ExceptionOptionType<WAFUnavailableEntityException, __BaseException>
|
|
599
639
|
);
|
|
600
640
|
}
|
|
601
|
-
export interface CustomResponse {
|
|
602
|
-
ResponseCode: number | undefined;
|
|
603
|
-
CustomResponseBodyKey?: string;
|
|
604
|
-
ResponseHeaders?: CustomHTTPHeader[];
|
|
605
|
-
}
|
|
606
|
-
export interface BlockAction {
|
|
607
|
-
CustomResponse?: CustomResponse;
|
|
608
|
-
}
|
|
609
|
-
export interface CaptchaAction {
|
|
610
|
-
CustomRequestHandling?: CustomRequestHandling;
|
|
611
|
-
}
|
|
612
|
-
export interface CountAction {
|
|
613
|
-
CustomRequestHandling?: CustomRequestHandling;
|
|
614
|
-
}
|
|
615
|
-
export interface RuleAction {
|
|
616
|
-
Block?: BlockAction;
|
|
617
|
-
Allow?: AllowAction;
|
|
618
|
-
Count?: CountAction;
|
|
619
|
-
Captcha?: CaptchaAction;
|
|
620
|
-
}
|
|
621
641
|
export interface ImmunityTimeProperty {
|
|
622
642
|
ImmunityTime: number | undefined;
|
|
623
643
|
}
|
|
624
644
|
export interface CaptchaConfig {
|
|
625
645
|
ImmunityTimeProperty?: ImmunityTimeProperty;
|
|
626
646
|
}
|
|
647
|
+
export interface ChallengeConfig {
|
|
648
|
+
ImmunityTimeProperty?: ImmunityTimeProperty;
|
|
649
|
+
}
|
|
627
650
|
export interface NoneAction {}
|
|
628
651
|
export interface OverrideAction {
|
|
629
652
|
Count?: CountAction;
|
|
@@ -1043,7 +1066,9 @@ export interface GetSampledRequestsRequest {
|
|
|
1043
1066
|
MaxItems: number | undefined;
|
|
1044
1067
|
}
|
|
1045
1068
|
export declare enum FailureReason {
|
|
1069
|
+
TOKEN_DOMAIN_MISMATCH = "TOKEN_DOMAIN_MISMATCH",
|
|
1046
1070
|
TOKEN_EXPIRED = "TOKEN_EXPIRED",
|
|
1071
|
+
TOKEN_INVALID = "TOKEN_INVALID",
|
|
1047
1072
|
TOKEN_MISSING = "TOKEN_MISSING",
|
|
1048
1073
|
}
|
|
1049
1074
|
export interface CaptchaResponse {
|
|
@@ -1051,6 +1076,11 @@ export interface CaptchaResponse {
|
|
|
1051
1076
|
SolveTimestamp?: number;
|
|
1052
1077
|
FailureReason?: FailureReason | string;
|
|
1053
1078
|
}
|
|
1079
|
+
export interface ChallengeResponse {
|
|
1080
|
+
ResponseCode?: number;
|
|
1081
|
+
SolveTimestamp?: number;
|
|
1082
|
+
FailureReason?: FailureReason | string;
|
|
1083
|
+
}
|
|
1054
1084
|
export interface HTTPHeader {
|
|
1055
1085
|
Name?: string;
|
|
1056
1086
|
Value?: string;
|
|
@@ -1073,6 +1103,8 @@ export interface SampledHTTPRequest {
|
|
|
1073
1103
|
ResponseCodeSent?: number;
|
|
1074
1104
|
Labels?: Label[];
|
|
1075
1105
|
CaptchaResponse?: CaptchaResponse;
|
|
1106
|
+
ChallengeResponse?: ChallengeResponse;
|
|
1107
|
+
OverriddenAction?: string;
|
|
1076
1108
|
}
|
|
1077
1109
|
export interface GetSampledRequestsResponse {
|
|
1078
1110
|
SampledRequests?: SampledHTTPRequest[];
|
|
@@ -1352,6 +1384,7 @@ export interface ManagedRuleGroupStatement {
|
|
|
1352
1384
|
ExcludedRules?: ExcludedRule[];
|
|
1353
1385
|
ScopeDownStatement?: Statement;
|
|
1354
1386
|
ManagedRuleGroupConfigs?: ManagedRuleGroupConfig[];
|
|
1387
|
+
RuleActionOverrides?: RuleActionOverride[];
|
|
1355
1388
|
}
|
|
1356
1389
|
export interface NotStatement {
|
|
1357
1390
|
Statement: Statement | undefined;
|
|
@@ -1371,6 +1404,7 @@ export interface Rule {
|
|
|
1371
1404
|
RuleLabels?: Label[];
|
|
1372
1405
|
VisibilityConfig: VisibilityConfig | undefined;
|
|
1373
1406
|
CaptchaConfig?: CaptchaConfig;
|
|
1407
|
+
ChallengeConfig?: ChallengeConfig;
|
|
1374
1408
|
}
|
|
1375
1409
|
export interface AndStatement {
|
|
1376
1410
|
Statements: Statement[] | undefined;
|
|
@@ -1413,6 +1447,8 @@ export interface CreateWebACLRequest {
|
|
|
1413
1447
|
Tags?: Tag[];
|
|
1414
1448
|
CustomResponseBodies?: Record<string, CustomResponseBody>;
|
|
1415
1449
|
CaptchaConfig?: CaptchaConfig;
|
|
1450
|
+
ChallengeConfig?: ChallengeConfig;
|
|
1451
|
+
TokenDomains?: string[];
|
|
1416
1452
|
}
|
|
1417
1453
|
export interface RuleGroup {
|
|
1418
1454
|
Name: string | undefined;
|
|
@@ -1448,6 +1484,8 @@ export interface UpdateWebACLRequest {
|
|
|
1448
1484
|
LockToken: string | undefined;
|
|
1449
1485
|
CustomResponseBodies?: Record<string, CustomResponseBody>;
|
|
1450
1486
|
CaptchaConfig?: CaptchaConfig;
|
|
1487
|
+
ChallengeConfig?: ChallengeConfig;
|
|
1488
|
+
TokenDomains?: string[];
|
|
1451
1489
|
}
|
|
1452
1490
|
export interface GetRuleGroupResponse {
|
|
1453
1491
|
RuleGroup?: RuleGroup;
|
|
@@ -1468,6 +1506,8 @@ export interface WebACL {
|
|
|
1468
1506
|
LabelNamespace?: string;
|
|
1469
1507
|
CustomResponseBodies?: Record<string, CustomResponseBody>;
|
|
1470
1508
|
CaptchaConfig?: CaptchaConfig;
|
|
1509
|
+
ChallengeConfig?: ChallengeConfig;
|
|
1510
|
+
TokenDomains?: string[];
|
|
1471
1511
|
}
|
|
1472
1512
|
export interface GetWebACLForResourceResponse {
|
|
1473
1513
|
WebACL?: WebACL;
|
|
@@ -1534,6 +1574,9 @@ export declare const LabelMatchStatementFilterSensitiveLog: (
|
|
|
1534
1574
|
obj: LabelMatchStatement
|
|
1535
1575
|
) => any;
|
|
1536
1576
|
export declare const ExcludedRuleFilterSensitiveLog: (obj: ExcludedRule) => any;
|
|
1577
|
+
export declare const AWSManagedRulesBotControlRuleSetFilterSensitiveLog: (
|
|
1578
|
+
obj: AWSManagedRulesBotControlRuleSet
|
|
1579
|
+
) => any;
|
|
1537
1580
|
export declare const PasswordFieldFilterSensitiveLog: (
|
|
1538
1581
|
obj: PasswordField
|
|
1539
1582
|
) => any;
|
|
@@ -1543,6 +1586,21 @@ export declare const UsernameFieldFilterSensitiveLog: (
|
|
|
1543
1586
|
export declare const ManagedRuleGroupConfigFilterSensitiveLog: (
|
|
1544
1587
|
obj: ManagedRuleGroupConfig
|
|
1545
1588
|
) => any;
|
|
1589
|
+
export declare const CustomResponseFilterSensitiveLog: (
|
|
1590
|
+
obj: CustomResponse
|
|
1591
|
+
) => any;
|
|
1592
|
+
export declare const BlockActionFilterSensitiveLog: (obj: BlockAction) => any;
|
|
1593
|
+
export declare const CaptchaActionFilterSensitiveLog: (
|
|
1594
|
+
obj: CaptchaAction
|
|
1595
|
+
) => any;
|
|
1596
|
+
export declare const ChallengeActionFilterSensitiveLog: (
|
|
1597
|
+
obj: ChallengeAction
|
|
1598
|
+
) => any;
|
|
1599
|
+
export declare const CountActionFilterSensitiveLog: (obj: CountAction) => any;
|
|
1600
|
+
export declare const RuleActionFilterSensitiveLog: (obj: RuleAction) => any;
|
|
1601
|
+
export declare const RuleActionOverrideFilterSensitiveLog: (
|
|
1602
|
+
obj: RuleActionOverride
|
|
1603
|
+
) => any;
|
|
1546
1604
|
export declare const RegexMatchStatementFilterSensitiveLog: (
|
|
1547
1605
|
obj: RegexMatchStatement
|
|
1548
1606
|
) => any;
|
|
@@ -1567,21 +1625,15 @@ export declare const AssociateWebACLRequestFilterSensitiveLog: (
|
|
|
1567
1625
|
export declare const AssociateWebACLResponseFilterSensitiveLog: (
|
|
1568
1626
|
obj: AssociateWebACLResponse
|
|
1569
1627
|
) => any;
|
|
1570
|
-
export declare const CustomResponseFilterSensitiveLog: (
|
|
1571
|
-
obj: CustomResponse
|
|
1572
|
-
) => any;
|
|
1573
|
-
export declare const BlockActionFilterSensitiveLog: (obj: BlockAction) => any;
|
|
1574
|
-
export declare const CaptchaActionFilterSensitiveLog: (
|
|
1575
|
-
obj: CaptchaAction
|
|
1576
|
-
) => any;
|
|
1577
|
-
export declare const CountActionFilterSensitiveLog: (obj: CountAction) => any;
|
|
1578
|
-
export declare const RuleActionFilterSensitiveLog: (obj: RuleAction) => any;
|
|
1579
1628
|
export declare const ImmunityTimePropertyFilterSensitiveLog: (
|
|
1580
1629
|
obj: ImmunityTimeProperty
|
|
1581
1630
|
) => any;
|
|
1582
1631
|
export declare const CaptchaConfigFilterSensitiveLog: (
|
|
1583
1632
|
obj: CaptchaConfig
|
|
1584
1633
|
) => any;
|
|
1634
|
+
export declare const ChallengeConfigFilterSensitiveLog: (
|
|
1635
|
+
obj: ChallengeConfig
|
|
1636
|
+
) => any;
|
|
1585
1637
|
export declare const NoneActionFilterSensitiveLog: (obj: NoneAction) => any;
|
|
1586
1638
|
export declare const OverrideActionFilterSensitiveLog: (
|
|
1587
1639
|
obj: OverrideAction
|
|
@@ -1770,6 +1822,9 @@ export declare const GetSampledRequestsRequestFilterSensitiveLog: (
|
|
|
1770
1822
|
export declare const CaptchaResponseFilterSensitiveLog: (
|
|
1771
1823
|
obj: CaptchaResponse
|
|
1772
1824
|
) => any;
|
|
1825
|
+
export declare const ChallengeResponseFilterSensitiveLog: (
|
|
1826
|
+
obj: ChallengeResponse
|
|
1827
|
+
) => any;
|
|
1773
1828
|
export declare const HTTPHeaderFilterSensitiveLog: (obj: HTTPHeader) => any;
|
|
1774
1829
|
export declare const HTTPRequestFilterSensitiveLog: (obj: HTTPRequest) => any;
|
|
1775
1830
|
export declare const SampledHTTPRequestFilterSensitiveLog: (
|
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.
|
|
4
|
+
"version": "3.198.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",
|
|
@@ -19,37 +19,37 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.198.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.198.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.198.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.198.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.198.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.198.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.198.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.198.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.198.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.198.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.198.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.198.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.198.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.198.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.198.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.198.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.198.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.198.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.198.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.198.0",
|
|
42
|
+
"@aws-sdk/types": "3.198.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.198.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.198.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.198.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.198.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.198.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.198.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
54
|
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
55
55
|
"tslib": "^2.3.1"
|