@aws-sdk/client-wafv2 3.58.0 → 3.74.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
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-wafv2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-wafv2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **client-wafv2:** Add a new CurrentDefaultVersion field to ListAvailableManagedRuleGroupVersions API response; add a new VersioningSupported boolean to each ManagedRuleGroup returned from ListAvailableManagedRuleGroups API response. ([07f9765](https://github.com/aws/aws-sdk-js-v3/commit/07f9765e25fb60aea6a42c0ed9fdbf79d028b118))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-wafv2
|
package/README.md
CHANGED
|
@@ -174,7 +174,7 @@ but they are supported by the send operation.
|
|
|
174
174
|
```js
|
|
175
175
|
// callbacks.
|
|
176
176
|
client.send(command, (err, data) => {
|
|
177
|
-
//
|
|
177
|
+
// process err and data.
|
|
178
178
|
});
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -208,7 +208,7 @@ client
|
|
|
208
208
|
|
|
209
209
|
// callbacks.
|
|
210
210
|
client.associateWebACL(params, (err, data) => {
|
|
211
|
-
//
|
|
211
|
+
// process err and data.
|
|
212
212
|
});
|
|
213
213
|
```
|
|
214
214
|
|
|
@@ -1913,6 +1913,9 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
|
|
|
1913
1913
|
case "WAFInvalidParameterException":
|
|
1914
1914
|
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1915
1915
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1916
|
+
case "WAFNonexistentItemException":
|
|
1917
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1918
|
+
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1916
1919
|
default:
|
|
1917
1920
|
const parsedBody = parsedOutput.body;
|
|
1918
1921
|
response = new WAFV2ServiceException_1.WAFV2ServiceException({
|
|
@@ -4817,6 +4820,7 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupsResponse = (output, co
|
|
|
4817
4820
|
};
|
|
4818
4821
|
const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = (output, context) => {
|
|
4819
4822
|
return {
|
|
4823
|
+
CurrentDefaultVersion: (0, smithy_client_1.expectString)(output.CurrentDefaultVersion),
|
|
4820
4824
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4821
4825
|
Versions: output.Versions !== undefined && output.Versions !== null
|
|
4822
4826
|
? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context)
|
|
@@ -4994,6 +4998,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummary = (output, context) => {
|
|
|
4994
4998
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4995
4999
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4996
5000
|
VendorName: (0, smithy_client_1.expectString)(output.VendorName),
|
|
5001
|
+
VersioningSupported: (0, smithy_client_1.expectBoolean)(output.VersioningSupported),
|
|
4997
5002
|
};
|
|
4998
5003
|
};
|
|
4999
5004
|
const deserializeAws_json1_1ManagedRuleGroupVersion = (output, context) => {
|
|
@@ -2486,15 +2486,19 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError = fu
|
|
|
2486
2486
|
case "com.amazonaws.wafv2#WAFInvalidOperationException": return [3, 4];
|
|
2487
2487
|
case "WAFInvalidParameterException": return [3, 6];
|
|
2488
2488
|
case "com.amazonaws.wafv2#WAFInvalidParameterException": return [3, 6];
|
|
2489
|
+
case "WAFNonexistentItemException": return [3, 8];
|
|
2490
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException": return [3, 8];
|
|
2489
2491
|
}
|
|
2490
|
-
return [3,
|
|
2492
|
+
return [3, 10];
|
|
2491
2493
|
case 2: return [4, deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2492
2494
|
case 3: throw _d.sent();
|
|
2493
2495
|
case 4: return [4, deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)];
|
|
2494
2496
|
case 5: throw _d.sent();
|
|
2495
2497
|
case 6: return [4, deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2496
2498
|
case 7: throw _d.sent();
|
|
2497
|
-
case 8:
|
|
2499
|
+
case 8: return [4, deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)];
|
|
2500
|
+
case 9: throw _d.sent();
|
|
2501
|
+
case 10:
|
|
2498
2502
|
parsedBody = parsedOutput.body;
|
|
2499
2503
|
response = new __BaseException({
|
|
2500
2504
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -5330,6 +5334,7 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupsResponse = function (out
|
|
|
5330
5334
|
};
|
|
5331
5335
|
var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = function (output, context) {
|
|
5332
5336
|
return {
|
|
5337
|
+
CurrentDefaultVersion: __expectString(output.CurrentDefaultVersion),
|
|
5333
5338
|
NextMarker: __expectString(output.NextMarker),
|
|
5334
5339
|
Versions: output.Versions !== undefined && output.Versions !== null
|
|
5335
5340
|
? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context)
|
|
@@ -5507,6 +5512,7 @@ var deserializeAws_json1_1ManagedRuleGroupSummary = function (output, context) {
|
|
|
5507
5512
|
Description: __expectString(output.Description),
|
|
5508
5513
|
Name: __expectString(output.Name),
|
|
5509
5514
|
VendorName: __expectString(output.VendorName),
|
|
5515
|
+
VersioningSupported: __expectBoolean(output.VersioningSupported),
|
|
5510
5516
|
};
|
|
5511
5517
|
};
|
|
5512
5518
|
var deserializeAws_json1_1ManagedRuleGroupVersion = function (output, context) {
|
|
@@ -1239,6 +1239,7 @@ export declare namespace UsernameField {
|
|
|
1239
1239
|
* <p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>
|
|
1240
1240
|
* <p>Use this for the account takeover prevention managed rule group
|
|
1241
1241
|
* <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>
|
|
1242
|
+
* <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>
|
|
1242
1243
|
*/
|
|
1243
1244
|
export interface ManagedRuleGroupConfig {
|
|
1244
1245
|
/**
|
|
@@ -3960,6 +3961,10 @@ export interface ManagedRuleGroupSummary {
|
|
|
3960
3961
|
* <p>The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.</p>
|
|
3961
3962
|
*/
|
|
3962
3963
|
Name?: string;
|
|
3964
|
+
/**
|
|
3965
|
+
* <p>Indicates whether the managed rule group is versioned. If it is, you can retrieve the versions list by calling <a>ListAvailableManagedRuleGroupVersions</a>. </p>
|
|
3966
|
+
*/
|
|
3967
|
+
VersioningSupported?: boolean;
|
|
3963
3968
|
/**
|
|
3964
3969
|
* <p>The description of the managed rule group, provided by Amazon Web Services Managed Rules or the Amazon Web Services Marketplace seller who manages it.</p>
|
|
3965
3970
|
*/
|
|
@@ -4061,6 +4066,10 @@ export interface ListAvailableManagedRuleGroupVersionsResponse {
|
|
|
4061
4066
|
* <p>The versions that are currently available for the specified managed rule group. </p>
|
|
4062
4067
|
*/
|
|
4063
4068
|
Versions?: ManagedRuleGroupVersion[];
|
|
4069
|
+
/**
|
|
4070
|
+
* <p>The name of the version that's currently set as the default. </p>
|
|
4071
|
+
*/
|
|
4072
|
+
CurrentDefaultVersion?: string;
|
|
4064
4073
|
}
|
|
4065
4074
|
export declare namespace ListAvailableManagedRuleGroupVersionsResponse {
|
|
4066
4075
|
/**
|
|
@@ -4757,7 +4766,9 @@ export interface PutPermissionPolicyRequest {
|
|
|
4757
4766
|
* </li>
|
|
4758
4767
|
* <li>
|
|
4759
4768
|
* <p>
|
|
4760
|
-
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
|
|
4769
|
+
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
|
|
4770
|
+
* <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>.
|
|
4771
|
+
* WAF rejects any extra actions or wildcard actions in the policy.</p>
|
|
4761
4772
|
* </li>
|
|
4762
4773
|
* <li>
|
|
4763
4774
|
* <p>The policy must not include a <code>Resource</code> parameter.</p>
|
|
@@ -4798,7 +4809,9 @@ export declare namespace PutPermissionPolicyResponse {
|
|
|
4798
4809
|
* </li>
|
|
4799
4810
|
* <li>
|
|
4800
4811
|
* <p>
|
|
4801
|
-
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
|
|
4812
|
+
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
|
|
4813
|
+
* <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>.
|
|
4814
|
+
* WAF rejects any extra actions or wildcard actions in the policy.</p>
|
|
4802
4815
|
* </li>
|
|
4803
4816
|
* <li>
|
|
4804
4817
|
* <p>The policy must not include a <code>Resource</code> parameter.</p>
|
|
@@ -5227,6 +5240,7 @@ export interface ManagedRuleGroupStatement {
|
|
|
5227
5240
|
* <p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>
|
|
5228
5241
|
* <p>Use this for the account takeover prevention managed rule group
|
|
5229
5242
|
* <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>
|
|
5243
|
+
* <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>
|
|
5230
5244
|
*/
|
|
5231
5245
|
ManagedRuleGroupConfigs?: ManagedRuleGroupConfig[];
|
|
5232
5246
|
}
|
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.74.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
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.
|
|
21
|
+
"@aws-sdk/client-sts": "3.74.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.58.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.74.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.55.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
34
|
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
35
35
|
"@aws-sdk/node-config-provider": "3.58.0",
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.74.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.58.0",
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
38
|
+
"@aws-sdk/smithy-client": "3.72.0",
|
|
39
39
|
"@aws-sdk/types": "3.55.0",
|
|
40
40
|
"@aws-sdk/url-parser": "3.55.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.72.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.72.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|