@aws-sdk/client-wafv2 3.1068.0 → 3.1070.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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetRevenueStatisticsTimeSeriesRequest, GetRevenueStatisticsTimeSeriesResponse } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetRevenueStatisticsTimeSeriesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetRevenueStatisticsTimeSeriesCommandInput extends GetRevenueStatisticsTimeSeriesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetRevenueStatisticsTimeSeriesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetRevenueStatisticsTimeSeriesCommandOutput extends GetRevenueStatisticsTimeSeriesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetRevenueStatisticsTimeSeriesCommand_base: {
|
|
25
|
+
new (input: GetRevenueStatisticsTimeSeriesCommandInput): import("@smithy/core/client").CommandImpl<GetRevenueStatisticsTimeSeriesCommandInput, GetRevenueStatisticsTimeSeriesCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetRevenueStatisticsTimeSeriesCommandInput): import("@smithy/core/client").CommandImpl<GetRevenueStatisticsTimeSeriesCommandInput, GetRevenueStatisticsTimeSeriesCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves time series data for monetization revenue. Returns data points aggregated at the specified interval for the given time window. This operation is only available for <code>CLOUDFRONT</code> scope. The maximum supported time window is 90 days. When no <code>CurrencyMode</code> filter is provided, results default to <code>REAL</code>. To retrieve test data, include a <code>CurrencyMode</code> filter with the value <code>TEST</code>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { WAFV2Client, GetRevenueStatisticsTimeSeriesCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
37
|
+
* // const { WAFV2Client, GetRevenueStatisticsTimeSeriesCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
38
|
+
* // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2";
|
|
39
|
+
* const config = {}; // type is WAFV2ClientConfig
|
|
40
|
+
* const client = new WAFV2Client(config);
|
|
41
|
+
* const input = { // GetRevenueStatisticsTimeSeriesRequest
|
|
42
|
+
* StatisticType: "DATE_HISTOGRAM" || "PAYMENT_TRAFFIC", // required
|
|
43
|
+
* TimeWindow: { // TimeWindow
|
|
44
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
45
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
46
|
+
* },
|
|
47
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
48
|
+
* Interval: "MINUTELY" || "FIVE_MINUTELY" || "HOURLY" || "DAILY", // required
|
|
49
|
+
* Currency: "USDC", // required
|
|
50
|
+
* GroupBy: "NAME" || "CATEGORY" || "INTENT" || "ORGANIZATION" || "WEBACL",
|
|
51
|
+
* Filters: [ // MonetizationFilterList
|
|
52
|
+
* { // MonetizationFilter
|
|
53
|
+
* Name: "STRING_VALUE", // required
|
|
54
|
+
* Values: [ // MonetizationFilterValueList // required
|
|
55
|
+
* "STRING_VALUE",
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* Limit: Number("int"),
|
|
60
|
+
* NextMarker: "STRING_VALUE",
|
|
61
|
+
* };
|
|
62
|
+
* const command = new GetRevenueStatisticsTimeSeriesCommand(input);
|
|
63
|
+
* const response = await client.send(command);
|
|
64
|
+
* // { // GetRevenueStatisticsTimeSeriesResponse
|
|
65
|
+
* // DataPoints: [ // DataPointsList
|
|
66
|
+
* // { // DataPointEntry
|
|
67
|
+
* // Date: new Date("TIMESTAMP"),
|
|
68
|
+
* // MonetizeServedCount: Number("long"),
|
|
69
|
+
* // SettledCount: Number("long"),
|
|
70
|
+
* // TotalAmount: "STRING_VALUE",
|
|
71
|
+
* // Category: "STRING_VALUE",
|
|
72
|
+
* // Intent: "STRING_VALUE",
|
|
73
|
+
* // GroupByValue: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // NextMarker: "STRING_VALUE",
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param GetRevenueStatisticsTimeSeriesCommandInput - {@link GetRevenueStatisticsTimeSeriesCommandInput}
|
|
82
|
+
* @returns {@link GetRevenueStatisticsTimeSeriesCommandOutput}
|
|
83
|
+
* @see {@link GetRevenueStatisticsTimeSeriesCommandInput} for command's `input` shape.
|
|
84
|
+
* @see {@link GetRevenueStatisticsTimeSeriesCommandOutput} for command's `response` shape.
|
|
85
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
88
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
89
|
+
* problem. Retry your request. </p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
92
|
+
* <p>The operation isn't valid. </p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
95
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
96
|
+
* example: </p>
|
|
97
|
+
* <ul>
|
|
98
|
+
* <li>
|
|
99
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
100
|
+
* </li>
|
|
101
|
+
* <li>
|
|
102
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
103
|
+
* can’t be nested. </p>
|
|
104
|
+
* </li>
|
|
105
|
+
* <li>
|
|
106
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
107
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
108
|
+
* </li>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
111
|
+
* with which a web ACL can't be associated.</p>
|
|
112
|
+
* </li>
|
|
113
|
+
* </ul>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
116
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
117
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
118
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
119
|
+
* for changes to propagate. </p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link WAFV2ServiceException}
|
|
122
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
123
|
+
*
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class GetRevenueStatisticsTimeSeriesCommand extends GetRevenueStatisticsTimeSeriesCommand_base {
|
|
128
|
+
/** @internal type navigation helper, not in runtime. */
|
|
129
|
+
protected static __types: {
|
|
130
|
+
api: {
|
|
131
|
+
input: GetRevenueStatisticsTimeSeriesRequest;
|
|
132
|
+
output: GetRevenueStatisticsTimeSeriesResponse;
|
|
133
|
+
};
|
|
134
|
+
sdk: {
|
|
135
|
+
input: GetRevenueStatisticsTimeSeriesCommandInput;
|
|
136
|
+
output: GetRevenueStatisticsTimeSeriesCommandOutput;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -411,6 +411,9 @@ declare const GetRuleGroupCommand_base: {
|
|
|
411
411
|
* // ],
|
|
412
412
|
* // },
|
|
413
413
|
* // },
|
|
414
|
+
* // Monetize: { // MonetizeAction
|
|
415
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
416
|
+
* // },
|
|
414
417
|
* // },
|
|
415
418
|
* // },
|
|
416
419
|
* // ],
|
|
@@ -555,6 +558,9 @@ declare const GetRuleGroupCommand_base: {
|
|
|
555
558
|
* // Challenge: {
|
|
556
559
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
557
560
|
* // },
|
|
561
|
+
* // Monetize: {
|
|
562
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
563
|
+
* // },
|
|
558
564
|
* // },
|
|
559
565
|
* // },
|
|
560
566
|
* // ],
|
|
@@ -805,6 +811,9 @@ declare const GetRuleGroupCommand_base: {
|
|
|
805
811
|
* // Challenge: {
|
|
806
812
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
807
813
|
* // },
|
|
814
|
+
* // Monetize: {
|
|
815
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
816
|
+
* // },
|
|
808
817
|
* // },
|
|
809
818
|
* // },
|
|
810
819
|
* // ],
|
|
@@ -1044,6 +1053,9 @@ declare const GetRuleGroupCommand_base: {
|
|
|
1044
1053
|
* // Challenge: {
|
|
1045
1054
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
1046
1055
|
* // },
|
|
1056
|
+
* // Monetize: {
|
|
1057
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
1058
|
+
* // },
|
|
1047
1059
|
* // },
|
|
1048
1060
|
* // },
|
|
1049
1061
|
* // ],
|
|
@@ -1113,6 +1125,23 @@ declare const GetRuleGroupCommand_base: {
|
|
|
1113
1125
|
* // Name: "STRING_VALUE",
|
|
1114
1126
|
* // },
|
|
1115
1127
|
* // ],
|
|
1128
|
+
* // MonetizationConfig: { // MonetizationConfig
|
|
1129
|
+
* // CryptoConfig: { // CryptoConfig
|
|
1130
|
+
* // PaymentNetworks: [ // PaymentNetworks // required
|
|
1131
|
+
* // { // PaymentNetwork
|
|
1132
|
+
* // Chain: "BASE" || "SOLANA" || "BASE_SEPOLIA" || "SOLANA_DEVNET", // required
|
|
1133
|
+
* // WalletAddress: "STRING_VALUE", // required
|
|
1134
|
+
* // Prices: [ // Prices // required
|
|
1135
|
+
* // { // Price
|
|
1136
|
+
* // Amount: "STRING_VALUE", // required
|
|
1137
|
+
* // Currency: "USDC", // required
|
|
1138
|
+
* // },
|
|
1139
|
+
* // ],
|
|
1140
|
+
* // },
|
|
1141
|
+
* // ],
|
|
1142
|
+
* // },
|
|
1143
|
+
* // CurrencyMode: "REAL" || "TEST",
|
|
1144
|
+
* // },
|
|
1116
1145
|
* // },
|
|
1117
1146
|
* // LockToken: "STRING_VALUE",
|
|
1118
1147
|
* // };
|
|
@@ -424,6 +424,9 @@ declare const GetWebACLCommand_base: {
|
|
|
424
424
|
* // InsertHeaders: "<CustomHTTPHeaders>", // required
|
|
425
425
|
* // },
|
|
426
426
|
* // },
|
|
427
|
+
* // Monetize: { // MonetizeAction
|
|
428
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
429
|
+
* // },
|
|
427
430
|
* // },
|
|
428
431
|
* // },
|
|
429
432
|
* // ],
|
|
@@ -558,6 +561,9 @@ declare const GetWebACLCommand_base: {
|
|
|
558
561
|
* // Challenge: {
|
|
559
562
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
560
563
|
* // },
|
|
564
|
+
* // Monetize: {
|
|
565
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
566
|
+
* // },
|
|
561
567
|
* // },
|
|
562
568
|
* // },
|
|
563
569
|
* // ],
|
|
@@ -800,6 +806,9 @@ declare const GetWebACLCommand_base: {
|
|
|
800
806
|
* // Challenge: {
|
|
801
807
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
802
808
|
* // },
|
|
809
|
+
* // Monetize: {
|
|
810
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
811
|
+
* // },
|
|
803
812
|
* // },
|
|
804
813
|
* // },
|
|
805
814
|
* // ],
|
|
@@ -1031,6 +1040,9 @@ declare const GetWebACLCommand_base: {
|
|
|
1031
1040
|
* // Challenge: {
|
|
1032
1041
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
1033
1042
|
* // },
|
|
1043
|
+
* // Monetize: {
|
|
1044
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
1045
|
+
* // },
|
|
1034
1046
|
* // },
|
|
1035
1047
|
* // },
|
|
1036
1048
|
* // ],
|
|
@@ -1365,6 +1377,23 @@ declare const GetWebACLCommand_base: {
|
|
|
1365
1377
|
* // },
|
|
1366
1378
|
* // ],
|
|
1367
1379
|
* // },
|
|
1380
|
+
* // MonetizationConfig: { // MonetizationConfig
|
|
1381
|
+
* // CryptoConfig: { // CryptoConfig
|
|
1382
|
+
* // PaymentNetworks: [ // PaymentNetworks // required
|
|
1383
|
+
* // { // PaymentNetwork
|
|
1384
|
+
* // Chain: "BASE" || "SOLANA" || "BASE_SEPOLIA" || "SOLANA_DEVNET", // required
|
|
1385
|
+
* // WalletAddress: "STRING_VALUE", // required
|
|
1386
|
+
* // Prices: [ // Prices // required
|
|
1387
|
+
* // { // Price
|
|
1388
|
+
* // Amount: "STRING_VALUE", // required
|
|
1389
|
+
* // Currency: "USDC", // required
|
|
1390
|
+
* // },
|
|
1391
|
+
* // ],
|
|
1392
|
+
* // },
|
|
1393
|
+
* // ],
|
|
1394
|
+
* // },
|
|
1395
|
+
* // CurrencyMode: "REAL" || "TEST",
|
|
1396
|
+
* // },
|
|
1368
1397
|
* // },
|
|
1369
1398
|
* // LockToken: "STRING_VALUE",
|
|
1370
1399
|
* // ApplicationIntegrationURL: "STRING_VALUE",
|
|
@@ -431,6 +431,9 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
431
431
|
* // InsertHeaders: "<CustomHTTPHeaders>", // required
|
|
432
432
|
* // },
|
|
433
433
|
* // },
|
|
434
|
+
* // Monetize: { // MonetizeAction
|
|
435
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
436
|
+
* // },
|
|
434
437
|
* // },
|
|
435
438
|
* // },
|
|
436
439
|
* // ],
|
|
@@ -565,6 +568,9 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
565
568
|
* // Challenge: {
|
|
566
569
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
567
570
|
* // },
|
|
571
|
+
* // Monetize: {
|
|
572
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
573
|
+
* // },
|
|
568
574
|
* // },
|
|
569
575
|
* // },
|
|
570
576
|
* // ],
|
|
@@ -807,6 +813,9 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
807
813
|
* // Challenge: {
|
|
808
814
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
809
815
|
* // },
|
|
816
|
+
* // Monetize: {
|
|
817
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
818
|
+
* // },
|
|
810
819
|
* // },
|
|
811
820
|
* // },
|
|
812
821
|
* // ],
|
|
@@ -1038,6 +1047,9 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
1038
1047
|
* // Challenge: {
|
|
1039
1048
|
* // CustomRequestHandling: "<CustomRequestHandling>",
|
|
1040
1049
|
* // },
|
|
1050
|
+
* // Monetize: {
|
|
1051
|
+
* // PriceMultiplier: "STRING_VALUE",
|
|
1052
|
+
* // },
|
|
1041
1053
|
* // },
|
|
1042
1054
|
* // },
|
|
1043
1055
|
* // ],
|
|
@@ -1372,6 +1384,23 @@ declare const GetWebACLForResourceCommand_base: {
|
|
|
1372
1384
|
* // },
|
|
1373
1385
|
* // ],
|
|
1374
1386
|
* // },
|
|
1387
|
+
* // MonetizationConfig: { // MonetizationConfig
|
|
1388
|
+
* // CryptoConfig: { // CryptoConfig
|
|
1389
|
+
* // PaymentNetworks: [ // PaymentNetworks // required
|
|
1390
|
+
* // { // PaymentNetwork
|
|
1391
|
+
* // Chain: "BASE" || "SOLANA" || "BASE_SEPOLIA" || "SOLANA_DEVNET", // required
|
|
1392
|
+
* // WalletAddress: "STRING_VALUE", // required
|
|
1393
|
+
* // Prices: [ // Prices // required
|
|
1394
|
+
* // { // Price
|
|
1395
|
+
* // Amount: "STRING_VALUE", // required
|
|
1396
|
+
* // Currency: "USDC", // required
|
|
1397
|
+
* // },
|
|
1398
|
+
* // ],
|
|
1399
|
+
* // },
|
|
1400
|
+
* // ],
|
|
1401
|
+
* // },
|
|
1402
|
+
* // CurrencyMode: "REAL" || "TEST",
|
|
1403
|
+
* // },
|
|
1375
1404
|
* // },
|
|
1376
1405
|
* // };
|
|
1377
1406
|
*
|
|
@@ -128,7 +128,7 @@ declare const ListLoggingConfigurationsCommand_base: {
|
|
|
128
128
|
* // Conditions: [ // Conditions // required
|
|
129
129
|
* // { // Condition
|
|
130
130
|
* // ActionCondition: { // ActionCondition
|
|
131
|
-
* // Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
131
|
+
* // Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "MONETIZE" || "EXCLUDED_AS_COUNT", // required
|
|
132
132
|
* // },
|
|
133
133
|
* // LabelNameCondition: { // LabelNameCondition
|
|
134
134
|
* // LabelName: "STRING_VALUE", // required
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListSettlementRecordsRequest, ListSettlementRecordsResponse } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WAFV2ClientResolvedConfig } from "../WAFV2Client";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListSettlementRecordsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSettlementRecordsCommandInput extends ListSettlementRecordsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSettlementRecordsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSettlementRecordsCommandOutput extends ListSettlementRecordsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListSettlementRecordsCommand_base: {
|
|
25
|
+
new (input: ListSettlementRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListSettlementRecordsCommandInput, ListSettlementRecordsCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListSettlementRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListSettlementRecordsCommandInput, ListSettlementRecordsCommandOutput, WAFV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves individual settlement transaction records for monetization. Each record represents a single payment transaction between a client and your protected resource. This operation is only available for <code>CLOUDFRONT</code> scope. The maximum supported time window is 90 days. When no <code>CurrencyMode</code> filter is provided, results default to <code>REAL</code>. To retrieve test data, include a <code>CurrencyMode</code> filter with the value <code>TEST</code>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { WAFV2Client, ListSettlementRecordsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
|
|
37
|
+
* // const { WAFV2Client, ListSettlementRecordsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
|
|
38
|
+
* // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2";
|
|
39
|
+
* const config = {}; // type is WAFV2ClientConfig
|
|
40
|
+
* const client = new WAFV2Client(config);
|
|
41
|
+
* const input = { // ListSettlementRecordsRequest
|
|
42
|
+
* TimeWindow: { // TimeWindow
|
|
43
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
44
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
45
|
+
* },
|
|
46
|
+
* Scope: "CLOUDFRONT" || "REGIONAL", // required
|
|
47
|
+
* Currency: "USDC", // required
|
|
48
|
+
* Filters: [ // MonetizationFilterList
|
|
49
|
+
* { // MonetizationFilter
|
|
50
|
+
* Name: "STRING_VALUE", // required
|
|
51
|
+
* Values: [ // MonetizationFilterValueList // required
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* SortBy: "TIMESTAMP" || "AMOUNT" || "NAME" || "STATUS",
|
|
57
|
+
* SortOrder: "ASC" || "DESC",
|
|
58
|
+
* Limit: Number("int"),
|
|
59
|
+
* NextMarker: "STRING_VALUE",
|
|
60
|
+
* };
|
|
61
|
+
* const command = new ListSettlementRecordsCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* // { // ListSettlementRecordsResponse
|
|
64
|
+
* // Settlements: [ // SettlementRecordList
|
|
65
|
+
* // { // SettlementRecord
|
|
66
|
+
* // Timestamp: new Date("TIMESTAMP"), // required
|
|
67
|
+
* // PayerAddress: "STRING_VALUE",
|
|
68
|
+
* // WalletAddress: "STRING_VALUE",
|
|
69
|
+
* // Status: "SETTLED" || "PENDING" || "FAILED" || "SERVICE_ERROR" || "SKIPPED_ORIGIN_ERROR" || "DUPLICATE", // required
|
|
70
|
+
* // Amount: "STRING_VALUE", // required
|
|
71
|
+
* // Currency: "USDC",
|
|
72
|
+
* // Network: "STRING_VALUE",
|
|
73
|
+
* // TransactionId: "STRING_VALUE",
|
|
74
|
+
* // RequestId: "STRING_VALUE",
|
|
75
|
+
* // SourceName: "STRING_VALUE",
|
|
76
|
+
* // Organization: "STRING_VALUE",
|
|
77
|
+
* // SourceCategory: "STRING_VALUE",
|
|
78
|
+
* // Intent: "STRING_VALUE",
|
|
79
|
+
* // Verified: true || false,
|
|
80
|
+
* // ContentPath: "STRING_VALUE",
|
|
81
|
+
* // WebAclArn: "STRING_VALUE",
|
|
82
|
+
* // RequestTimestamp: new Date("TIMESTAMP"),
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // NextMarker: "STRING_VALUE",
|
|
86
|
+
* // };
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param ListSettlementRecordsCommandInput - {@link ListSettlementRecordsCommandInput}
|
|
91
|
+
* @returns {@link ListSettlementRecordsCommandOutput}
|
|
92
|
+
* @see {@link ListSettlementRecordsCommandInput} for command's `input` shape.
|
|
93
|
+
* @see {@link ListSettlementRecordsCommandOutput} for command's `response` shape.
|
|
94
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link WAFInternalErrorException} (server fault)
|
|
97
|
+
* <p>Your request is valid, but WAF couldn’t perform the operation because of a system
|
|
98
|
+
* problem. Retry your request. </p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
101
|
+
* <p>The operation isn't valid. </p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
104
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
105
|
+
* example: </p>
|
|
106
|
+
* <ul>
|
|
107
|
+
* <li>
|
|
108
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
109
|
+
* </li>
|
|
110
|
+
* <li>
|
|
111
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
112
|
+
* can’t be nested. </p>
|
|
113
|
+
* </li>
|
|
114
|
+
* <li>
|
|
115
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
116
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
120
|
+
* with which a web ACL can't be associated.</p>
|
|
121
|
+
* </li>
|
|
122
|
+
* </ul>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
125
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
126
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
127
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
128
|
+
* for changes to propagate. </p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link WAFV2ServiceException}
|
|
131
|
+
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export declare class ListSettlementRecordsCommand extends ListSettlementRecordsCommand_base {
|
|
137
|
+
/** @internal type navigation helper, not in runtime. */
|
|
138
|
+
protected static __types: {
|
|
139
|
+
api: {
|
|
140
|
+
input: ListSettlementRecordsRequest;
|
|
141
|
+
output: ListSettlementRecordsResponse;
|
|
142
|
+
};
|
|
143
|
+
sdk: {
|
|
144
|
+
input: ListSettlementRecordsCommandInput;
|
|
145
|
+
output: ListSettlementRecordsCommandOutput;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -162,7 +162,7 @@ declare const PutLoggingConfigurationCommand_base: {
|
|
|
162
162
|
* Conditions: [ // Conditions // required
|
|
163
163
|
* { // Condition
|
|
164
164
|
* ActionCondition: { // ActionCondition
|
|
165
|
-
* Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
165
|
+
* Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "MONETIZE" || "EXCLUDED_AS_COUNT", // required
|
|
166
166
|
* },
|
|
167
167
|
* LabelNameCondition: { // LabelNameCondition
|
|
168
168
|
* LabelName: "STRING_VALUE", // required
|
|
@@ -260,7 +260,7 @@ declare const PutLoggingConfigurationCommand_base: {
|
|
|
260
260
|
* // Conditions: [ // Conditions // required
|
|
261
261
|
* // { // Condition
|
|
262
262
|
* // ActionCondition: { // ActionCondition
|
|
263
|
-
* // Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "EXCLUDED_AS_COUNT", // required
|
|
263
|
+
* // Action: "ALLOW" || "BLOCK" || "COUNT" || "CAPTCHA" || "CHALLENGE" || "MONETIZE" || "EXCLUDED_AS_COUNT", // required
|
|
264
264
|
* // },
|
|
265
265
|
* // LabelNameCondition: { // LabelNameCondition
|
|
266
266
|
* // LabelName: "STRING_VALUE", // required
|
|
@@ -437,6 +437,9 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
437
437
|
* ],
|
|
438
438
|
* },
|
|
439
439
|
* },
|
|
440
|
+
* Monetize: { // MonetizeAction
|
|
441
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
442
|
+
* },
|
|
440
443
|
* },
|
|
441
444
|
* },
|
|
442
445
|
* ],
|
|
@@ -581,6 +584,9 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
581
584
|
* Challenge: {
|
|
582
585
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
583
586
|
* },
|
|
587
|
+
* Monetize: {
|
|
588
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
589
|
+
* },
|
|
584
590
|
* },
|
|
585
591
|
* },
|
|
586
592
|
* ],
|
|
@@ -831,6 +837,9 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
831
837
|
* Challenge: {
|
|
832
838
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
833
839
|
* },
|
|
840
|
+
* Monetize: {
|
|
841
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
842
|
+
* },
|
|
834
843
|
* },
|
|
835
844
|
* },
|
|
836
845
|
* ],
|
|
@@ -1070,6 +1079,9 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
1070
1079
|
* Challenge: {
|
|
1071
1080
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
1072
1081
|
* },
|
|
1082
|
+
* Monetize: {
|
|
1083
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
1084
|
+
* },
|
|
1073
1085
|
* },
|
|
1074
1086
|
* },
|
|
1075
1087
|
* ],
|
|
@@ -1129,6 +1141,23 @@ declare const UpdateRuleGroupCommand_base: {
|
|
|
1129
1141
|
* Content: "STRING_VALUE", // required
|
|
1130
1142
|
* },
|
|
1131
1143
|
* },
|
|
1144
|
+
* MonetizationConfig: { // MonetizationConfig
|
|
1145
|
+
* CryptoConfig: { // CryptoConfig
|
|
1146
|
+
* PaymentNetworks: [ // PaymentNetworks // required
|
|
1147
|
+
* { // PaymentNetwork
|
|
1148
|
+
* Chain: "BASE" || "SOLANA" || "BASE_SEPOLIA" || "SOLANA_DEVNET", // required
|
|
1149
|
+
* WalletAddress: "STRING_VALUE", // required
|
|
1150
|
+
* Prices: [ // Prices // required
|
|
1151
|
+
* { // Price
|
|
1152
|
+
* Amount: "STRING_VALUE", // required
|
|
1153
|
+
* Currency: "USDC", // required
|
|
1154
|
+
* },
|
|
1155
|
+
* ],
|
|
1156
|
+
* },
|
|
1157
|
+
* ],
|
|
1158
|
+
* },
|
|
1159
|
+
* CurrencyMode: "REAL" || "TEST",
|
|
1160
|
+
* },
|
|
1132
1161
|
* };
|
|
1133
1162
|
* const command = new UpdateRuleGroupCommand(input);
|
|
1134
1163
|
* const response = await client.send(command);
|
|
@@ -452,6 +452,9 @@ declare const UpdateWebACLCommand_base: {
|
|
|
452
452
|
* InsertHeaders: "<CustomHTTPHeaders>", // required
|
|
453
453
|
* },
|
|
454
454
|
* },
|
|
455
|
+
* Monetize: { // MonetizeAction
|
|
456
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
457
|
+
* },
|
|
455
458
|
* },
|
|
456
459
|
* },
|
|
457
460
|
* ],
|
|
@@ -586,6 +589,9 @@ declare const UpdateWebACLCommand_base: {
|
|
|
586
589
|
* Challenge: {
|
|
587
590
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
588
591
|
* },
|
|
592
|
+
* Monetize: {
|
|
593
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
594
|
+
* },
|
|
589
595
|
* },
|
|
590
596
|
* },
|
|
591
597
|
* ],
|
|
@@ -828,6 +834,9 @@ declare const UpdateWebACLCommand_base: {
|
|
|
828
834
|
* Challenge: {
|
|
829
835
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
830
836
|
* },
|
|
837
|
+
* Monetize: {
|
|
838
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
839
|
+
* },
|
|
831
840
|
* },
|
|
832
841
|
* },
|
|
833
842
|
* ],
|
|
@@ -1059,6 +1068,9 @@ declare const UpdateWebACLCommand_base: {
|
|
|
1059
1068
|
* Challenge: {
|
|
1060
1069
|
* CustomRequestHandling: "<CustomRequestHandling>",
|
|
1061
1070
|
* },
|
|
1071
|
+
* Monetize: {
|
|
1072
|
+
* PriceMultiplier: "STRING_VALUE",
|
|
1073
|
+
* },
|
|
1062
1074
|
* },
|
|
1063
1075
|
* },
|
|
1064
1076
|
* ],
|
|
@@ -1166,6 +1178,23 @@ declare const UpdateWebACLCommand_base: {
|
|
|
1166
1178
|
* },
|
|
1167
1179
|
* ],
|
|
1168
1180
|
* },
|
|
1181
|
+
* MonetizationConfig: { // MonetizationConfig
|
|
1182
|
+
* CryptoConfig: { // CryptoConfig
|
|
1183
|
+
* PaymentNetworks: [ // PaymentNetworks // required
|
|
1184
|
+
* { // PaymentNetwork
|
|
1185
|
+
* Chain: "BASE" || "SOLANA" || "BASE_SEPOLIA" || "SOLANA_DEVNET", // required
|
|
1186
|
+
* WalletAddress: "STRING_VALUE", // required
|
|
1187
|
+
* Prices: [ // Prices // required
|
|
1188
|
+
* { // Price
|
|
1189
|
+
* Amount: "STRING_VALUE", // required
|
|
1190
|
+
* Currency: "USDC", // required
|
|
1191
|
+
* },
|
|
1192
|
+
* ],
|
|
1193
|
+
* },
|
|
1194
|
+
* ],
|
|
1195
|
+
* },
|
|
1196
|
+
* CurrencyMode: "REAL" || "TEST",
|
|
1197
|
+
* },
|
|
1169
1198
|
* };
|
|
1170
1199
|
* const command = new UpdateWebACLCommand(input);
|
|
1171
1200
|
* const response = await client.send(command);
|
|
@@ -26,6 +26,9 @@ export * from "./GetMobileSdkReleaseCommand";
|
|
|
26
26
|
export * from "./GetPermissionPolicyCommand";
|
|
27
27
|
export * from "./GetRateBasedStatementManagedKeysCommand";
|
|
28
28
|
export * from "./GetRegexPatternSetCommand";
|
|
29
|
+
export * from "./GetRevenueStatisticsCommand";
|
|
30
|
+
export * from "./GetRevenueStatisticsSummaryCommand";
|
|
31
|
+
export * from "./GetRevenueStatisticsTimeSeriesCommand";
|
|
29
32
|
export * from "./GetRuleGroupCommand";
|
|
30
33
|
export * from "./GetSampledRequestsCommand";
|
|
31
34
|
export * from "./GetTopPathStatisticsByTrafficCommand";
|
|
@@ -41,6 +44,7 @@ export * from "./ListMobileSdkReleasesCommand";
|
|
|
41
44
|
export * from "./ListRegexPatternSetsCommand";
|
|
42
45
|
export * from "./ListResourcesForWebACLCommand";
|
|
43
46
|
export * from "./ListRuleGroupsCommand";
|
|
47
|
+
export * from "./ListSettlementRecordsCommand";
|
|
44
48
|
export * from "./ListTagsForResourceCommand";
|
|
45
49
|
export * from "./ListWebACLsCommand";
|
|
46
50
|
export * from "./PutLoggingConfigurationCommand";
|