@aws-sdk/client-wafv2 3.1172.0 → 3.1174.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.
Files changed (51) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +418 -72
  3. package/dist-es/WAFV2.js +10 -0
  4. package/dist-es/commands/GetEventActorCommand.js +4 -0
  5. package/dist-es/commands/GetEventCommand.js +4 -0
  6. package/dist-es/commands/ListEventActorsCommand.js +4 -0
  7. package/dist-es/commands/ListEventsByWebACLCommand.js +4 -0
  8. package/dist-es/commands/ListEventsCommand.js +4 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/index.js +1 -0
  11. package/dist-es/models/enums.js +33 -0
  12. package/dist-es/models/models_1.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +324 -71
  14. package/dist-types/WAFV2.d.ts +35 -0
  15. package/dist-types/WAFV2Client.d.ts +7 -2
  16. package/dist-types/commands/CheckCapacityCommand.d.ts +22 -0
  17. package/dist-types/commands/CreateRuleGroupCommand.d.ts +22 -0
  18. package/dist-types/commands/CreateWebACLCommand.d.ts +23 -1
  19. package/dist-types/commands/GetEventActorCommand.d.ts +146 -0
  20. package/dist-types/commands/GetEventCommand.d.ts +154 -0
  21. package/dist-types/commands/GetRuleGroupCommand.d.ts +24 -1
  22. package/dist-types/commands/GetWebACLCommand.d.ts +47 -2
  23. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +47 -2
  24. package/dist-types/commands/ListEventActorsCommand.d.ts +119 -0
  25. package/dist-types/commands/ListEventsByWebACLCommand.d.ts +187 -0
  26. package/dist-types/commands/ListEventsCommand.d.ts +180 -0
  27. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +22 -0
  28. package/dist-types/commands/UpdateWebACLCommand.d.ts +23 -1
  29. package/dist-types/commands/index.d.ts +5 -0
  30. package/dist-types/index.d.ts +1 -0
  31. package/dist-types/models/enums.d.ts +89 -0
  32. package/dist-types/models/models_0.d.ts +962 -344
  33. package/dist-types/models/models_1.d.ts +229 -0
  34. package/dist-types/schemas/schemas_0.d.ts +32 -0
  35. package/dist-types/ts3.4/WAFV2.d.ts +76 -0
  36. package/dist-types/ts3.4/WAFV2Client.d.ts +24 -0
  37. package/dist-types/ts3.4/commands/GetEventActorCommand.d.ts +38 -0
  38. package/dist-types/ts3.4/commands/GetEventCommand.d.ts +38 -0
  39. package/dist-types/ts3.4/commands/GetRuleGroupCommand.d.ts +2 -1
  40. package/dist-types/ts3.4/commands/GetWebACLCommand.d.ts +2 -1
  41. package/dist-types/ts3.4/commands/GetWebACLForResourceCommand.d.ts +2 -1
  42. package/dist-types/ts3.4/commands/ListEventActorsCommand.d.ts +38 -0
  43. package/dist-types/ts3.4/commands/ListEventsByWebACLCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  46. package/dist-types/ts3.4/index.d.ts +1 -0
  47. package/dist-types/ts3.4/models/enums.d.ts +40 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +167 -37
  49. package/dist-types/ts3.4/models/models_1.d.ts +53 -0
  50. package/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
  51. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetWebACLRequest, GetWebACLResponse } from "../models/models_0";
2
+ import type { GetWebACLRequest } from "../models/models_0";
3
+ import type { GetWebACLResponse } from "../models/models_1";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -819,6 +820,17 @@ declare const GetWebACLCommand_base: {
819
820
  * // },
820
821
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
821
822
  * // },
823
+ * // AWSManagedRulesAISecurityRuleSet: { // AWSManagedRulesAISecurityRuleSet
824
+ * // BedrockGuardrails: { // BedrockGuardrails
825
+ * // Disable: {},
826
+ * // ProtectRequestOnly: { // BedrockGuardrailsRequestOnly
827
+ * // RoleArn: "STRING_VALUE", // required
828
+ * // },
829
+ * // ProtectRequestAndResponse: { // BedrockGuardrailsRequestAndResponse
830
+ * // RoleArn: "STRING_VALUE", // required
831
+ * // },
832
+ * // },
833
+ * // },
822
834
  * // },
823
835
  * // ],
824
836
  * // RuleActionOverrides: [
@@ -1054,6 +1066,17 @@ declare const GetWebACLCommand_base: {
1054
1066
  * // },
1055
1067
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1056
1068
  * // },
1069
+ * // AWSManagedRulesAISecurityRuleSet: {
1070
+ * // BedrockGuardrails: {
1071
+ * // Disable: {},
1072
+ * // ProtectRequestOnly: {
1073
+ * // RoleArn: "STRING_VALUE", // required
1074
+ * // },
1075
+ * // ProtectRequestAndResponse: {
1076
+ * // RoleArn: "STRING_VALUE", // required
1077
+ * // },
1078
+ * // },
1079
+ * // },
1057
1080
  * // },
1058
1081
  * // ],
1059
1082
  * // RuleActionOverrides: [
@@ -1251,6 +1274,17 @@ declare const GetWebACLCommand_base: {
1251
1274
  * // },
1252
1275
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1253
1276
  * // },
1277
+ * // AWSManagedRulesAISecurityRuleSet: {
1278
+ * // BedrockGuardrails: {
1279
+ * // Disable: {},
1280
+ * // ProtectRequestOnly: {
1281
+ * // RoleArn: "STRING_VALUE", // required
1282
+ * // },
1283
+ * // ProtectRequestAndResponse: {
1284
+ * // RoleArn: "STRING_VALUE", // required
1285
+ * // },
1286
+ * // },
1287
+ * // },
1254
1288
  * // },
1255
1289
  * // ],
1256
1290
  * // RuleActionOverrides: [
@@ -1346,6 +1380,17 @@ declare const GetWebACLCommand_base: {
1346
1380
  * // },
1347
1381
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1348
1382
  * // },
1383
+ * // AWSManagedRulesAISecurityRuleSet: {
1384
+ * // BedrockGuardrails: {
1385
+ * // Disable: {},
1386
+ * // ProtectRequestOnly: {
1387
+ * // RoleArn: "STRING_VALUE", // required
1388
+ * // },
1389
+ * // ProtectRequestAndResponse: {
1390
+ * // RoleArn: "STRING_VALUE", // required
1391
+ * // },
1392
+ * // },
1393
+ * // },
1349
1394
  * // },
1350
1395
  * // ],
1351
1396
  * // RuleActionOverrides: "<RuleActionOverrides>",
@@ -1391,7 +1436,7 @@ declare const GetWebACLCommand_base: {
1391
1436
  * // AssociationConfig: { // AssociationConfig
1392
1437
  * // RequestBody: { // RequestBody
1393
1438
  * // "<keys>": { // RequestBodyAssociatedResourceTypeConfig
1394
- * // DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1439
+ * // DefaultSizeInspectionLimit: "KB_8" || "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1395
1440
  * // },
1396
1441
  * // },
1397
1442
  * // ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
@@ -1,5 +1,6 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetWebACLForResourceRequest, GetWebACLForResourceResponse } from "../models/models_0";
2
+ import type { GetWebACLForResourceRequest } from "../models/models_0";
3
+ import type { GetWebACLForResourceResponse } from "../models/models_1";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -826,6 +827,17 @@ declare const GetWebACLForResourceCommand_base: {
826
827
  * // },
827
828
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
828
829
  * // },
830
+ * // AWSManagedRulesAISecurityRuleSet: { // AWSManagedRulesAISecurityRuleSet
831
+ * // BedrockGuardrails: { // BedrockGuardrails
832
+ * // Disable: {},
833
+ * // ProtectRequestOnly: { // BedrockGuardrailsRequestOnly
834
+ * // RoleArn: "STRING_VALUE", // required
835
+ * // },
836
+ * // ProtectRequestAndResponse: { // BedrockGuardrailsRequestAndResponse
837
+ * // RoleArn: "STRING_VALUE", // required
838
+ * // },
839
+ * // },
840
+ * // },
829
841
  * // },
830
842
  * // ],
831
843
  * // RuleActionOverrides: [
@@ -1061,6 +1073,17 @@ declare const GetWebACLForResourceCommand_base: {
1061
1073
  * // },
1062
1074
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1063
1075
  * // },
1076
+ * // AWSManagedRulesAISecurityRuleSet: {
1077
+ * // BedrockGuardrails: {
1078
+ * // Disable: {},
1079
+ * // ProtectRequestOnly: {
1080
+ * // RoleArn: "STRING_VALUE", // required
1081
+ * // },
1082
+ * // ProtectRequestAndResponse: {
1083
+ * // RoleArn: "STRING_VALUE", // required
1084
+ * // },
1085
+ * // },
1086
+ * // },
1064
1087
  * // },
1065
1088
  * // ],
1066
1089
  * // RuleActionOverrides: [
@@ -1258,6 +1281,17 @@ declare const GetWebACLForResourceCommand_base: {
1258
1281
  * // },
1259
1282
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1260
1283
  * // },
1284
+ * // AWSManagedRulesAISecurityRuleSet: {
1285
+ * // BedrockGuardrails: {
1286
+ * // Disable: {},
1287
+ * // ProtectRequestOnly: {
1288
+ * // RoleArn: "STRING_VALUE", // required
1289
+ * // },
1290
+ * // ProtectRequestAndResponse: {
1291
+ * // RoleArn: "STRING_VALUE", // required
1292
+ * // },
1293
+ * // },
1294
+ * // },
1261
1295
  * // },
1262
1296
  * // ],
1263
1297
  * // RuleActionOverrides: [
@@ -1353,6 +1387,17 @@ declare const GetWebACLForResourceCommand_base: {
1353
1387
  * // },
1354
1388
  * // SensitivityToBlock: "LOW" || "MEDIUM" || "HIGH",
1355
1389
  * // },
1390
+ * // AWSManagedRulesAISecurityRuleSet: {
1391
+ * // BedrockGuardrails: {
1392
+ * // Disable: {},
1393
+ * // ProtectRequestOnly: {
1394
+ * // RoleArn: "STRING_VALUE", // required
1395
+ * // },
1396
+ * // ProtectRequestAndResponse: {
1397
+ * // RoleArn: "STRING_VALUE", // required
1398
+ * // },
1399
+ * // },
1400
+ * // },
1356
1401
  * // },
1357
1402
  * // ],
1358
1403
  * // RuleActionOverrides: "<RuleActionOverrides>",
@@ -1398,7 +1443,7 @@ declare const GetWebACLForResourceCommand_base: {
1398
1443
  * // AssociationConfig: { // AssociationConfig
1399
1444
  * // RequestBody: { // RequestBody
1400
1445
  * // "<keys>": { // RequestBodyAssociatedResourceTypeConfig
1401
- * // DefaultSizeInspectionLimit: "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1446
+ * // DefaultSizeInspectionLimit: "KB_8" || "KB_16" || "KB_32" || "KB_48" || "KB_64", // required
1402
1447
  * // },
1403
1448
  * // },
1404
1449
  * // ChallengeJavascriptSdkInjection: { // ChallengeJavascriptSdkInjection
@@ -0,0 +1,119 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListEventActorsRequest, ListEventActorsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListEventActorsCommand}.
11
+ */
12
+ export interface ListEventActorsCommandInput extends ListEventActorsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListEventActorsCommand}.
18
+ */
19
+ export interface ListEventActorsCommandOutput extends ListEventActorsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListEventActorsCommand_base: {
22
+ new (input: ListEventActorsCommandInput): import("@smithy/core/client").CommandImpl<ListEventActorsCommandInput, ListEventActorsCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListEventActorsCommandInput): import("@smithy/core/client").CommandImpl<ListEventActorsCommandInput, ListEventActorsCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves a paginated list of the event actors in your account that are associated with events in the specified time window. An event actor is a client that is associated with one or more events. The operation returns up to the top 100 event actors by event count. Results are paginated. Use the <code>NextMarker</code> value from the response to retrieve the next batch of results. Currently, this operation supports API Security Amazon Web Services Managed Rules.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { WAFV2Client, ListEventActorsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
32
+ * // const { WAFV2Client, ListEventActorsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
33
+ * // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2";
34
+ * const config = {}; // type is WAFV2ClientConfig
35
+ * const client = new WAFV2Client(config);
36
+ * const input = { // ListEventActorsRequest
37
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
38
+ * TimeWindow: { // TimeWindow
39
+ * StartTime: new Date("TIMESTAMP"), // required
40
+ * EndTime: new Date("TIMESTAMP"), // required
41
+ * },
42
+ * SortBy: "EVENT_COUNT",
43
+ * Limit: Number("int"),
44
+ * NextMarker: "STRING_VALUE",
45
+ * };
46
+ * const command = new ListEventActorsCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListEventActorsResponse
49
+ * // EventActors: [ // EventActorSummaryList // required
50
+ * // { // EventActorSummary
51
+ * // EventActorId: "STRING_VALUE", // required
52
+ * // ClientIp: "STRING_VALUE",
53
+ * // TlsFingerprint: "STRING_VALUE",
54
+ * // Asn: "STRING_VALUE",
55
+ * // AsnOrganization: "STRING_VALUE",
56
+ * // Country: "STRING_VALUE",
57
+ * // AuthFingerprint: "STRING_VALUE",
58
+ * // CreatedAt: new Date("TIMESTAMP"),
59
+ * // EventCount: Number("int"),
60
+ * // },
61
+ * // ],
62
+ * // NextMarker: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListEventActorsCommandInput - {@link ListEventActorsCommandInput}
68
+ * @returns {@link ListEventActorsCommandOutput}
69
+ * @see {@link ListEventActorsCommandInput} for command's `input` shape.
70
+ * @see {@link ListEventActorsCommandOutput} for command's `response` shape.
71
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
72
+ *
73
+ * @throws {@link WAFInternalErrorException} (server fault)
74
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
75
+ * problem. Retry your request. </p>
76
+ *
77
+ * @throws {@link WAFInvalidOperationException} (client fault)
78
+ * <p>The operation isn't valid. </p>
79
+ *
80
+ * @throws {@link WAFInvalidParameterException} (client fault)
81
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
82
+ * example: </p>
83
+ * <ul>
84
+ * <li>
85
+ * <p>You specified a parameter name or value that isn't valid.</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
89
+ * can’t be nested. </p>
90
+ * </li>
91
+ * <li>
92
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
93
+ * isn't among the types available at <a>DefaultAction</a>.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
97
+ * with which a web ACL can't be associated.</p>
98
+ * </li>
99
+ * </ul>
100
+ *
101
+ * @throws {@link WAFV2ServiceException}
102
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
103
+ *
104
+ *
105
+ * @public
106
+ */
107
+ export declare class ListEventActorsCommand extends ListEventActorsCommand_base {
108
+ /** @internal type navigation helper, not in runtime. */
109
+ protected static __types: {
110
+ api: {
111
+ input: ListEventActorsRequest;
112
+ output: ListEventActorsResponse;
113
+ };
114
+ sdk: {
115
+ input: ListEventActorsCommandInput;
116
+ output: ListEventActorsCommandOutput;
117
+ };
118
+ };
119
+ }
@@ -0,0 +1,187 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListEventsByWebACLRequest, ListEventsByWebACLResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListEventsByWebACLCommand}.
11
+ */
12
+ export interface ListEventsByWebACLCommandInput extends ListEventsByWebACLRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListEventsByWebACLCommand}.
18
+ */
19
+ export interface ListEventsByWebACLCommandOutput extends ListEventsByWebACLResponse, __MetadataBearer {
20
+ }
21
+ declare const ListEventsByWebACLCommand_base: {
22
+ new (input: ListEventsByWebACLCommandInput): import("@smithy/core/client").CommandImpl<ListEventsByWebACLCommandInput, ListEventsByWebACLCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListEventsByWebACLCommandInput): import("@smithy/core/client").CommandImpl<ListEventsByWebACLCommandInput, ListEventsByWebACLCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves a paginated list of event summaries for the specified web ACL. Use this operation to monitor and investigate potential threats to the resources that the web ACL protects. Results are paginated. Use the <code>NextMarker</code> value from the response to retrieve the next batch of results. Currently, this operation supports API Security Amazon Web Services Managed Rules.</p>
28
+ * <p>You can filter the results by time window, event category, resource, and API pattern, and sort them by start time, end time, or confidence.</p>
29
+ * <p>To retrieve the events for all of the web ACLs in your account, use <a>ListEvents</a>. To retrieve the full details of a single event, use <a>GetEvent</a>.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { WAFV2Client, ListEventsByWebACLCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
34
+ * // const { WAFV2Client, ListEventsByWebACLCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
35
+ * // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2";
36
+ * const config = {}; // type is WAFV2ClientConfig
37
+ * const client = new WAFV2Client(config);
38
+ * const input = { // ListEventsByWebACLRequest
39
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
40
+ * WebAclArn: "STRING_VALUE", // required
41
+ * TimeWindow: { // TimeWindow
42
+ * StartTime: new Date("TIMESTAMP"), // required
43
+ * EndTime: new Date("TIMESTAMP"), // required
44
+ * },
45
+ * Filters: [ // EventFilterList
46
+ * { // EventFilter
47
+ * Name: "EVENT_CATEGORY" || "RESOURCE_ARN", // required
48
+ * Values: [ // FilterValueList // required
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * },
52
+ * ],
53
+ * ApiPatternFilters: [ // ApiPatternFilterList
54
+ * { // ApiPatternFilter
55
+ * Method: "STRING_VALUE",
56
+ * PathPattern: "STRING_VALUE",
57
+ * Port: Number("int"),
58
+ * Domains: [ // ApiPatternDomainList
59
+ * "STRING_VALUE",
60
+ * ],
61
+ * },
62
+ * ],
63
+ * Limit: Number("int"),
64
+ * NextMarker: "STRING_VALUE",
65
+ * SortOrder: "ASC" || "DESC",
66
+ * SortBy: "START_TIME" || "END_TIME" || "CONFIDENCE",
67
+ * Include: [ // EventIncludeFieldList
68
+ * "TIMELINE",
69
+ * ],
70
+ * };
71
+ * const command = new ListEventsByWebACLCommand(input);
72
+ * const response = await client.send(command);
73
+ * // { // ListEventsByWebACLResponse
74
+ * // Events: [ // EventDetailSummaryList // required
75
+ * // { // EventDetailSummary
76
+ * // EventId: "STRING_VALUE", // required
77
+ * // EventStatus: "EVENT_STARTED" || "EVENT_IN_PROGRESS" || "EVENT_COMPLETED" || "EVENT_ENDED",
78
+ * // EventCategory: "API_SECURITY",
79
+ * // StartTime: new Date("TIMESTAMP"),
80
+ * // LastUpdatedTime: new Date("TIMESTAMP"),
81
+ * // EndTime: new Date("TIMESTAMP"),
82
+ * // ResourceArn: "STRING_VALUE",
83
+ * // WebAclArn: "STRING_VALUE",
84
+ * // ApiSecurityEventDetail: { // ApiSecurityEventDetail
85
+ * // Label: "STRING_VALUE",
86
+ * // Category: "STRING_VALUE",
87
+ * // Confidence: "LOW" || "MEDIUM" || "HIGH",
88
+ * // ApiPatterns: [ // ApiPatternList
89
+ * // { // ApiPattern
90
+ * // Method: "STRING_VALUE",
91
+ * // PathPattern: "STRING_VALUE",
92
+ * // Port: Number("int"),
93
+ * // Domains: [ // DomainList
94
+ * // "STRING_VALUE",
95
+ * // ],
96
+ * // },
97
+ * // ],
98
+ * // EventActors: [ // EventActorReferenceList
99
+ * // { // EventActorReference
100
+ * // EventActorId: "STRING_VALUE",
101
+ * // EventActorValue: "STRING_VALUE",
102
+ * // },
103
+ * // ],
104
+ * // Timeline: [ // EventTimelineEntryList
105
+ * // { // EventTimelineEntry
106
+ * // ChangeTime: new Date("TIMESTAMP"),
107
+ * // Label: "STRING_VALUE",
108
+ * // Confidence: "LOW" || "MEDIUM" || "HIGH",
109
+ * // ApiPatterns: [
110
+ * // {
111
+ * // Method: "STRING_VALUE",
112
+ * // PathPattern: "STRING_VALUE",
113
+ * // Port: Number("int"),
114
+ * // Domains: [
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // },
118
+ * // ],
119
+ * // },
120
+ * // ],
121
+ * // },
122
+ * // },
123
+ * // ],
124
+ * // NextMarker: "STRING_VALUE",
125
+ * // };
126
+ *
127
+ * ```
128
+ *
129
+ * @param ListEventsByWebACLCommandInput - {@link ListEventsByWebACLCommandInput}
130
+ * @returns {@link ListEventsByWebACLCommandOutput}
131
+ * @see {@link ListEventsByWebACLCommandInput} for command's `input` shape.
132
+ * @see {@link ListEventsByWebACLCommandOutput} for command's `response` shape.
133
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
134
+ *
135
+ * @throws {@link WAFInternalErrorException} (server fault)
136
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
137
+ * problem. Retry your request. </p>
138
+ *
139
+ * @throws {@link WAFInvalidOperationException} (client fault)
140
+ * <p>The operation isn't valid. </p>
141
+ *
142
+ * @throws {@link WAFInvalidParameterException} (client fault)
143
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
144
+ * example: </p>
145
+ * <ul>
146
+ * <li>
147
+ * <p>You specified a parameter name or value that isn't valid.</p>
148
+ * </li>
149
+ * <li>
150
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
151
+ * can’t be nested. </p>
152
+ * </li>
153
+ * <li>
154
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
155
+ * isn't among the types available at <a>DefaultAction</a>.</p>
156
+ * </li>
157
+ * <li>
158
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
159
+ * with which a web ACL can't be associated.</p>
160
+ * </li>
161
+ * </ul>
162
+ *
163
+ * @throws {@link WAFNonexistentItemException} (client fault)
164
+ * <p>WAF couldn’t perform the operation because your resource doesn't exist.
165
+ * If you've just created a resource that you're using in this operation, you might
166
+ * just need to wait a few minutes. It can take from a few seconds to a number of minutes
167
+ * for changes to propagate. </p>
168
+ *
169
+ * @throws {@link WAFV2ServiceException}
170
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
171
+ *
172
+ *
173
+ * @public
174
+ */
175
+ export declare class ListEventsByWebACLCommand extends ListEventsByWebACLCommand_base {
176
+ /** @internal type navigation helper, not in runtime. */
177
+ protected static __types: {
178
+ api: {
179
+ input: ListEventsByWebACLRequest;
180
+ output: ListEventsByWebACLResponse;
181
+ };
182
+ sdk: {
183
+ input: ListEventsByWebACLCommandInput;
184
+ output: ListEventsByWebACLCommandOutput;
185
+ };
186
+ };
187
+ }
@@ -0,0 +1,180 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListEventsRequest, ListEventsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListEventsCommand}.
11
+ */
12
+ export interface ListEventsCommandInput extends ListEventsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListEventsCommand}.
18
+ */
19
+ export interface ListEventsCommandOutput extends ListEventsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListEventsCommand_base: {
22
+ new (input: ListEventsCommandInput): import("@smithy/core/client").CommandImpl<ListEventsCommandInput, ListEventsCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListEventsCommandInput): import("@smithy/core/client").CommandImpl<ListEventsCommandInput, ListEventsCommandOutput, import("..").WAFV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves a paginated list of event summaries for your account. Use this operation to monitor and investigate potential threats to the resources that your web ACLs protect. Results are paginated. Use the <code>NextMarker</code> value from the response to retrieve the next batch of results. Currently, this operation supports API Security Amazon Web Services Managed Rules.</p>
28
+ * <p>You can filter the results by time window, event category, resource, and API pattern, and sort them by start time, end time, or confidence.</p>
29
+ * <p>To retrieve the events for a single web ACL, use <a>ListEventsByWebACL</a>. To retrieve the full details of a single event, use <a>GetEvent</a>.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { WAFV2Client, ListEventsCommand } from "@aws-sdk/client-wafv2"; // ES Modules import
34
+ * // const { WAFV2Client, ListEventsCommand } = require("@aws-sdk/client-wafv2"); // CommonJS import
35
+ * // import type { WAFV2ClientConfig } from "@aws-sdk/client-wafv2";
36
+ * const config = {}; // type is WAFV2ClientConfig
37
+ * const client = new WAFV2Client(config);
38
+ * const input = { // ListEventsRequest
39
+ * Scope: "CLOUDFRONT" || "REGIONAL", // required
40
+ * TimeWindow: { // TimeWindow
41
+ * StartTime: new Date("TIMESTAMP"), // required
42
+ * EndTime: new Date("TIMESTAMP"), // required
43
+ * },
44
+ * Filters: [ // EventFilterList
45
+ * { // EventFilter
46
+ * Name: "EVENT_CATEGORY" || "RESOURCE_ARN", // required
47
+ * Values: [ // FilterValueList // required
48
+ * "STRING_VALUE",
49
+ * ],
50
+ * },
51
+ * ],
52
+ * ApiPatternFilters: [ // ApiPatternFilterList
53
+ * { // ApiPatternFilter
54
+ * Method: "STRING_VALUE",
55
+ * PathPattern: "STRING_VALUE",
56
+ * Port: Number("int"),
57
+ * Domains: [ // ApiPatternDomainList
58
+ * "STRING_VALUE",
59
+ * ],
60
+ * },
61
+ * ],
62
+ * Limit: Number("int"),
63
+ * NextMarker: "STRING_VALUE",
64
+ * SortOrder: "ASC" || "DESC",
65
+ * SortBy: "START_TIME" || "END_TIME" || "CONFIDENCE",
66
+ * Include: [ // EventIncludeFieldList
67
+ * "TIMELINE",
68
+ * ],
69
+ * };
70
+ * const command = new ListEventsCommand(input);
71
+ * const response = await client.send(command);
72
+ * // { // ListEventsResponse
73
+ * // Events: [ // EventDetailSummaryList // required
74
+ * // { // EventDetailSummary
75
+ * // EventId: "STRING_VALUE", // required
76
+ * // EventStatus: "EVENT_STARTED" || "EVENT_IN_PROGRESS" || "EVENT_COMPLETED" || "EVENT_ENDED",
77
+ * // EventCategory: "API_SECURITY",
78
+ * // StartTime: new Date("TIMESTAMP"),
79
+ * // LastUpdatedTime: new Date("TIMESTAMP"),
80
+ * // EndTime: new Date("TIMESTAMP"),
81
+ * // ResourceArn: "STRING_VALUE",
82
+ * // WebAclArn: "STRING_VALUE",
83
+ * // ApiSecurityEventDetail: { // ApiSecurityEventDetail
84
+ * // Label: "STRING_VALUE",
85
+ * // Category: "STRING_VALUE",
86
+ * // Confidence: "LOW" || "MEDIUM" || "HIGH",
87
+ * // ApiPatterns: [ // ApiPatternList
88
+ * // { // ApiPattern
89
+ * // Method: "STRING_VALUE",
90
+ * // PathPattern: "STRING_VALUE",
91
+ * // Port: Number("int"),
92
+ * // Domains: [ // DomainList
93
+ * // "STRING_VALUE",
94
+ * // ],
95
+ * // },
96
+ * // ],
97
+ * // EventActors: [ // EventActorReferenceList
98
+ * // { // EventActorReference
99
+ * // EventActorId: "STRING_VALUE",
100
+ * // EventActorValue: "STRING_VALUE",
101
+ * // },
102
+ * // ],
103
+ * // Timeline: [ // EventTimelineEntryList
104
+ * // { // EventTimelineEntry
105
+ * // ChangeTime: new Date("TIMESTAMP"),
106
+ * // Label: "STRING_VALUE",
107
+ * // Confidence: "LOW" || "MEDIUM" || "HIGH",
108
+ * // ApiPatterns: [
109
+ * // {
110
+ * // Method: "STRING_VALUE",
111
+ * // PathPattern: "STRING_VALUE",
112
+ * // Port: Number("int"),
113
+ * // Domains: [
114
+ * // "STRING_VALUE",
115
+ * // ],
116
+ * // },
117
+ * // ],
118
+ * // },
119
+ * // ],
120
+ * // },
121
+ * // },
122
+ * // ],
123
+ * // NextMarker: "STRING_VALUE",
124
+ * // };
125
+ *
126
+ * ```
127
+ *
128
+ * @param ListEventsCommandInput - {@link ListEventsCommandInput}
129
+ * @returns {@link ListEventsCommandOutput}
130
+ * @see {@link ListEventsCommandInput} for command's `input` shape.
131
+ * @see {@link ListEventsCommandOutput} for command's `response` shape.
132
+ * @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
133
+ *
134
+ * @throws {@link WAFInternalErrorException} (server fault)
135
+ * <p>Your request is valid, but WAF couldn’t perform the operation because of a system
136
+ * problem. Retry your request. </p>
137
+ *
138
+ * @throws {@link WAFInvalidOperationException} (client fault)
139
+ * <p>The operation isn't valid. </p>
140
+ *
141
+ * @throws {@link WAFInvalidParameterException} (client fault)
142
+ * <p>The operation failed because WAF didn't recognize a parameter in the request. For
143
+ * example: </p>
144
+ * <ul>
145
+ * <li>
146
+ * <p>You specified a parameter name or value that isn't valid.</p>
147
+ * </li>
148
+ * <li>
149
+ * <p>Your nested statement isn't valid. You might have tried to nest a statement that
150
+ * can’t be nested. </p>
151
+ * </li>
152
+ * <li>
153
+ * <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
154
+ * isn't among the types available at <a>DefaultAction</a>.</p>
155
+ * </li>
156
+ * <li>
157
+ * <p>Your request references an ARN that is malformed, or corresponds to a resource
158
+ * with which a web ACL can't be associated.</p>
159
+ * </li>
160
+ * </ul>
161
+ *
162
+ * @throws {@link WAFV2ServiceException}
163
+ * <p>Base exception class for all service exceptions from WAFV2 service.</p>
164
+ *
165
+ *
166
+ * @public
167
+ */
168
+ export declare class ListEventsCommand extends ListEventsCommand_base {
169
+ /** @internal type navigation helper, not in runtime. */
170
+ protected static __types: {
171
+ api: {
172
+ input: ListEventsRequest;
173
+ output: ListEventsResponse;
174
+ };
175
+ sdk: {
176
+ input: ListEventsCommandInput;
177
+ output: ListEventsCommandOutput;
178
+ };
179
+ };
180
+ }