@aws-sdk/client-wafv2 3.830.0 → 3.835.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 +2 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/commands/CreateWebACLCommand.d.ts +10 -0
- package/dist-types/commands/GetWebACLCommand.d.ts +10 -0
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +10 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +37 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
|
@@ -2517,6 +2517,7 @@ var se_CreateRuleGroupRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
2517
2517
|
}, "se_CreateRuleGroupRequest");
|
|
2518
2518
|
var se_CreateWebACLRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2519
2519
|
return (0, import_smithy_client.take)(input, {
|
|
2520
|
+
ApplicationConfig: import_smithy_client._json,
|
|
2520
2521
|
AssociationConfig: import_smithy_client._json,
|
|
2521
2522
|
CaptchaConfig: import_smithy_client._json,
|
|
2522
2523
|
ChallengeConfig: import_smithy_client._json,
|
|
@@ -2963,6 +2964,7 @@ var de_UpdateManagedRuleSetVersionExpiryDateResponse = /* @__PURE__ */ __name((o
|
|
|
2963
2964
|
var de_WebACL = /* @__PURE__ */ __name((output, context) => {
|
|
2964
2965
|
return (0, import_smithy_client.take)(output, {
|
|
2965
2966
|
ARN: import_smithy_client.expectString,
|
|
2967
|
+
ApplicationConfig: import_smithy_client._json,
|
|
2966
2968
|
AssociationConfig: import_smithy_client._json,
|
|
2967
2969
|
Capacity: import_smithy_client.expectLong,
|
|
2968
2970
|
CaptchaConfig: import_smithy_client._json,
|
|
@@ -1306,6 +1306,7 @@ const se_CreateRuleGroupRequest = (input, context) => {
|
|
|
1306
1306
|
};
|
|
1307
1307
|
const se_CreateWebACLRequest = (input, context) => {
|
|
1308
1308
|
return take(input, {
|
|
1309
|
+
ApplicationConfig: _json,
|
|
1309
1310
|
AssociationConfig: _json,
|
|
1310
1311
|
CaptchaConfig: _json,
|
|
1311
1312
|
ChallengeConfig: _json,
|
|
@@ -1770,6 +1771,7 @@ const de_UpdateManagedRuleSetVersionExpiryDateResponse = (output, context) => {
|
|
|
1770
1771
|
const de_WebACL = (output, context) => {
|
|
1771
1772
|
return take(output, {
|
|
1772
1773
|
ARN: __expectString,
|
|
1774
|
+
ApplicationConfig: _json,
|
|
1773
1775
|
AssociationConfig: _json,
|
|
1774
1776
|
Capacity: __expectLong,
|
|
1775
1777
|
CaptchaConfig: _json,
|
|
@@ -1120,6 +1120,16 @@ declare const CreateWebACLCommand_base: {
|
|
|
1120
1120
|
* OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
|
|
1121
1121
|
* ALBLowReputationMode: "ACTIVE_UNDER_DDOS" || "ALWAYS_ON", // required
|
|
1122
1122
|
* },
|
|
1123
|
+
* ApplicationConfig: { // ApplicationConfig
|
|
1124
|
+
* Attributes: [ // ApplicationAttributes
|
|
1125
|
+
* { // ApplicationAttribute
|
|
1126
|
+
* Name: "STRING_VALUE",
|
|
1127
|
+
* Values: [ // AttributeValues
|
|
1128
|
+
* "STRING_VALUE",
|
|
1129
|
+
* ],
|
|
1130
|
+
* },
|
|
1131
|
+
* ],
|
|
1132
|
+
* },
|
|
1123
1133
|
* };
|
|
1124
1134
|
* const command = new CreateWebACLCommand(input);
|
|
1125
1135
|
* const response = await client.send(command);
|
|
@@ -1351,6 +1351,16 @@ declare const GetWebACLCommand_base: {
|
|
|
1351
1351
|
* // OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
|
|
1352
1352
|
* // ALBLowReputationMode: "ACTIVE_UNDER_DDOS" || "ALWAYS_ON", // required
|
|
1353
1353
|
* // },
|
|
1354
|
+
* // ApplicationConfig: { // ApplicationConfig
|
|
1355
|
+
* // Attributes: [ // ApplicationAttributes
|
|
1356
|
+
* // { // ApplicationAttribute
|
|
1357
|
+
* // Name: "STRING_VALUE",
|
|
1358
|
+
* // Values: [ // AttributeValues
|
|
1359
|
+
* // "STRING_VALUE",
|
|
1360
|
+
* // ],
|
|
1361
|
+
* // },
|
|
1362
|
+
* // ],
|
|
1363
|
+
* // },
|
|
1354
1364
|
* // },
|
|
1355
1365
|
* // LockToken: "STRING_VALUE",
|
|
1356
1366
|
* // ApplicationIntegrationURL: "STRING_VALUE",
|
|
@@ -1358,6 +1358,16 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
1358
1358
|
* // OnSourceDDoSProtectionConfig: { // OnSourceDDoSProtectionConfig
|
|
1359
1359
|
* // ALBLowReputationMode: "ACTIVE_UNDER_DDOS" || "ALWAYS_ON", // required
|
|
1360
1360
|
* // },
|
|
1361
|
+
* // ApplicationConfig: { // ApplicationConfig
|
|
1362
|
+
* // Attributes: [ // ApplicationAttributes
|
|
1363
|
+
* // { // ApplicationAttribute
|
|
1364
|
+
* // Name: "STRING_VALUE",
|
|
1365
|
+
* // Values: [ // AttributeValues
|
|
1366
|
+
* // "STRING_VALUE",
|
|
1367
|
+
* // ],
|
|
1368
|
+
* // },
|
|
1369
|
+
* // ],
|
|
1370
|
+
* // },
|
|
1361
1371
|
* // },
|
|
1362
1372
|
* // };
|
|
1363
1373
|
*
|
|
@@ -8,7 +8,7 @@ export interface ClientInputEndpointParameters {
|
|
|
8
8
|
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
9
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
10
|
}
|
|
11
|
-
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
11
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
@@ -3244,6 +3244,33 @@ export interface APIKeySummary {
|
|
|
3244
3244
|
*/
|
|
3245
3245
|
Version?: number | undefined;
|
|
3246
3246
|
}
|
|
3247
|
+
/**
|
|
3248
|
+
* <p>Application details defined during the web ACL creation process. Application attributes help WAF give recommendations for protection packs.</p>
|
|
3249
|
+
* @public
|
|
3250
|
+
*/
|
|
3251
|
+
export interface ApplicationAttribute {
|
|
3252
|
+
/**
|
|
3253
|
+
* <p>Specifies the attribute name.</p>
|
|
3254
|
+
* @public
|
|
3255
|
+
*/
|
|
3256
|
+
Name?: string | undefined;
|
|
3257
|
+
/**
|
|
3258
|
+
* <p>Specifies the attribute value.</p>
|
|
3259
|
+
* @public
|
|
3260
|
+
*/
|
|
3261
|
+
Values?: string[] | undefined;
|
|
3262
|
+
}
|
|
3263
|
+
/**
|
|
3264
|
+
* <p>A list of <code>ApplicationAttribute</code>s that contains information about the application.</p>
|
|
3265
|
+
* @public
|
|
3266
|
+
*/
|
|
3267
|
+
export interface ApplicationConfig {
|
|
3268
|
+
/**
|
|
3269
|
+
* <p>Contains the attribute name and a list of values for that attribute.</p>
|
|
3270
|
+
* @public
|
|
3271
|
+
*/
|
|
3272
|
+
Attributes?: ApplicationAttribute[] | undefined;
|
|
3273
|
+
}
|
|
3247
3274
|
/**
|
|
3248
3275
|
* @public
|
|
3249
3276
|
* @enum
|
|
@@ -8341,6 +8368,11 @@ export interface CreateWebACLRequest {
|
|
|
8341
8368
|
* @public
|
|
8342
8369
|
*/
|
|
8343
8370
|
OnSourceDDoSProtectionConfig?: OnSourceDDoSProtectionConfig | undefined;
|
|
8371
|
+
/**
|
|
8372
|
+
* <p>Configures the ability for the WAF console to store and retrieve application attributes during the web ACL creation process. Application attributes help WAF give recommendations for protection packs.</p>
|
|
8373
|
+
* @public
|
|
8374
|
+
*/
|
|
8375
|
+
ApplicationConfig?: ApplicationConfig | undefined;
|
|
8344
8376
|
}
|
|
8345
8377
|
/**
|
|
8346
8378
|
* <p> A rule group defines a collection of rules to inspect and control web requests that you can use in a <a>WebACL</a>. When you create a rule group, you define an immutable capacity limit. If you update a rule group, you must stay within the capacity. This allows others to reuse the rule group with confidence in its capacity requirements. </p>
|
|
@@ -8786,6 +8818,11 @@ export interface WebACL {
|
|
|
8786
8818
|
* @public
|
|
8787
8819
|
*/
|
|
8788
8820
|
OnSourceDDoSProtectionConfig?: OnSourceDDoSProtectionConfig | undefined;
|
|
8821
|
+
/**
|
|
8822
|
+
* <p>Returns a list of <code>ApplicationAttribute</code>s.</p>
|
|
8823
|
+
* @public
|
|
8824
|
+
*/
|
|
8825
|
+
ApplicationConfig?: ApplicationConfig | undefined;
|
|
8789
8826
|
}
|
|
8790
8827
|
/**
|
|
8791
8828
|
* @public
|
|
@@ -16,7 +16,10 @@ export interface ClientInputEndpointParameters {
|
|
|
16
16
|
| EndpointV2
|
|
17
17
|
| Provider<EndpointV2>;
|
|
18
18
|
}
|
|
19
|
-
export type ClientResolvedEndpointParameters =
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
20
23
|
defaultSigningName: string;
|
|
21
24
|
};
|
|
22
25
|
export declare const resolveClientEndpointParameters: <T>(
|
|
@@ -717,6 +717,13 @@ export interface APIKeySummary {
|
|
|
717
717
|
CreationTimestamp?: Date | undefined;
|
|
718
718
|
Version?: number | undefined;
|
|
719
719
|
}
|
|
720
|
+
export interface ApplicationAttribute {
|
|
721
|
+
Name?: string | undefined;
|
|
722
|
+
Values?: string[] | undefined;
|
|
723
|
+
}
|
|
724
|
+
export interface ApplicationConfig {
|
|
725
|
+
Attributes?: ApplicationAttribute[] | undefined;
|
|
726
|
+
}
|
|
720
727
|
export declare const AssociatedResourceType: {
|
|
721
728
|
readonly API_GATEWAY: "API_GATEWAY";
|
|
722
729
|
readonly APP_RUNNER_SERVICE: "APP_RUNNER_SERVICE";
|
|
@@ -1818,6 +1825,7 @@ export interface CreateWebACLRequest {
|
|
|
1818
1825
|
TokenDomains?: string[] | undefined;
|
|
1819
1826
|
AssociationConfig?: AssociationConfig | undefined;
|
|
1820
1827
|
OnSourceDDoSProtectionConfig?: OnSourceDDoSProtectionConfig | undefined;
|
|
1828
|
+
ApplicationConfig?: ApplicationConfig | undefined;
|
|
1821
1829
|
}
|
|
1822
1830
|
export interface RuleGroup {
|
|
1823
1831
|
Name: string | undefined;
|
|
@@ -1884,6 +1892,7 @@ export interface WebACL {
|
|
|
1884
1892
|
AssociationConfig?: AssociationConfig | undefined;
|
|
1885
1893
|
RetrofittedByFirewallManager?: boolean | undefined;
|
|
1886
1894
|
OnSourceDDoSProtectionConfig?: OnSourceDDoSProtectionConfig | undefined;
|
|
1895
|
+
ApplicationConfig?: ApplicationConfig | undefined;
|
|
1887
1896
|
}
|
|
1888
1897
|
export interface GetWebACLForResourceResponse {
|
|
1889
1898
|
WebACL?: WebACL | undefined;
|
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.835.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,41 +20,41 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.835.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.835.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.821.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.821.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.821.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.835.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.821.0",
|
|
30
30
|
"@aws-sdk/types": "3.821.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.828.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.821.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.835.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.4",
|
|
35
35
|
"@smithy/core": "^3.5.3",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.4",
|
|
37
37
|
"@smithy/hash-node": "^4.0.4",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.0.4",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.0.4",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
41
|
-
"@smithy/middleware-retry": "^4.1.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.1.12",
|
|
41
|
+
"@smithy/middleware-retry": "^4.1.13",
|
|
42
42
|
"@smithy/middleware-serde": "^4.0.8",
|
|
43
43
|
"@smithy/middleware-stack": "^4.0.4",
|
|
44
44
|
"@smithy/node-config-provider": "^4.1.3",
|
|
45
45
|
"@smithy/node-http-handler": "^4.0.6",
|
|
46
46
|
"@smithy/protocol-http": "^5.1.2",
|
|
47
|
-
"@smithy/smithy-client": "^4.4.
|
|
47
|
+
"@smithy/smithy-client": "^4.4.4",
|
|
48
48
|
"@smithy/types": "^4.3.1",
|
|
49
49
|
"@smithy/url-parser": "^4.0.4",
|
|
50
50
|
"@smithy/util-base64": "^4.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.0.20",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.0.20",
|
|
55
55
|
"@smithy/util-endpoints": "^3.0.6",
|
|
56
56
|
"@smithy/util-middleware": "^4.0.4",
|
|
57
|
-
"@smithy/util-retry": "^4.0.
|
|
57
|
+
"@smithy/util-retry": "^4.0.6",
|
|
58
58
|
"@smithy/util-utf8": "^4.0.0",
|
|
59
59
|
"tslib": "^2.6.2"
|
|
60
60
|
},
|