@aws-sdk/client-wafv2 3.1068.0 → 3.1069.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/README.md +28 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +338 -225
- package/dist-cjs/models/WAFV2ServiceException.js +4 -8
- package/dist-cjs/models/errors.js +41 -64
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +970 -492
- package/dist-es/WAFV2.js +8 -0
- package/dist-es/commands/GetRevenueStatisticsCommand.js +16 -0
- package/dist-es/commands/GetRevenueStatisticsSummaryCommand.js +16 -0
- package/dist-es/commands/GetRevenueStatisticsTimeSeriesCommand.js +16 -0
- package/dist-es/commands/ListSettlementRecordsCommand.js +16 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/enums.js +65 -0
- package/dist-es/schemas/schemas_0.js +216 -21
- package/dist-types/WAFV2.d.ts +28 -0
- package/dist-types/WAFV2Client.d.ts +6 -2
- package/dist-types/commands/CheckCapacityCommand.d.ts +12 -0
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +29 -0
- package/dist-types/commands/CreateWebACLCommand.d.ts +29 -0
- package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +3 -0
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetRevenueStatisticsCommand.d.ts +150 -0
- package/dist-types/commands/GetRevenueStatisticsSummaryCommand.d.ts +130 -0
- package/dist-types/commands/GetRevenueStatisticsTimeSeriesCommand.d.ts +139 -0
- package/dist-types/commands/GetRuleGroupCommand.d.ts +29 -0
- package/dist-types/commands/GetWebACLCommand.d.ts +29 -0
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +29 -0
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSettlementRecordsCommand.d.ts +148 -0
- package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +29 -0
- package/dist-types/commands/UpdateWebACLCommand.d.ts +29 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/enums.d.ts +161 -0
- package/dist-types/models/models_0.d.ts +843 -114
- package/dist-types/schemas/schemas_0.d.ts +23 -0
- package/dist-types/ts3.4/WAFV2.d.ts +68 -0
- package/dist-types/ts3.4/WAFV2Client.d.ts +24 -0
- package/dist-types/ts3.4/commands/GetRevenueStatisticsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetRevenueStatisticsSummaryCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetRevenueStatisticsTimeSeriesCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListSettlementRecordsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +83 -0
- package/dist-types/ts3.4/models/models_0.d.ts +154 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -412,6 +412,27 @@ GetRegexPatternSet
|
|
|
412
412
|
</details>
|
|
413
413
|
<details>
|
|
414
414
|
<summary>
|
|
415
|
+
GetRevenueStatistics
|
|
416
|
+
</summary>
|
|
417
|
+
|
|
418
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/wafv2/command/GetRevenueStatisticsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsCommandOutput/)
|
|
419
|
+
</details>
|
|
420
|
+
<details>
|
|
421
|
+
<summary>
|
|
422
|
+
GetRevenueStatisticsSummary
|
|
423
|
+
</summary>
|
|
424
|
+
|
|
425
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/wafv2/command/GetRevenueStatisticsSummaryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsSummaryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsSummaryCommandOutput/)
|
|
426
|
+
</details>
|
|
427
|
+
<details>
|
|
428
|
+
<summary>
|
|
429
|
+
GetRevenueStatisticsTimeSeries
|
|
430
|
+
</summary>
|
|
431
|
+
|
|
432
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/wafv2/command/GetRevenueStatisticsTimeSeriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsTimeSeriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/GetRevenueStatisticsTimeSeriesCommandOutput/)
|
|
433
|
+
</details>
|
|
434
|
+
<details>
|
|
435
|
+
<summary>
|
|
415
436
|
GetRuleGroup
|
|
416
437
|
</summary>
|
|
417
438
|
|
|
@@ -517,6 +538,13 @@ ListRuleGroups
|
|
|
517
538
|
</details>
|
|
518
539
|
<details>
|
|
519
540
|
<summary>
|
|
541
|
+
ListSettlementRecords
|
|
542
|
+
</summary>
|
|
543
|
+
|
|
544
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/wafv2/command/ListSettlementRecordsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/ListSettlementRecordsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-wafv2/Interface/ListSettlementRecordsCommandOutput/)
|
|
545
|
+
</details>
|
|
546
|
+
<details>
|
|
547
|
+
<summary>
|
|
520
548
|
ListTagsForResource
|
|
521
549
|
</summary>
|
|
522
550
|
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultWAFV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultWAFV2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultWAFV2HttpAuthSchemeParametersProvider = defaultWAFV2HttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultWAFV2HttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultWAFV2HttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|