@aws-sdk/client-route53resolver 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 (58) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +98 -9
  3. package/dist-es/Route53Resolver.js +4 -0
  4. package/dist-es/commands/ListFirewallRuleDomainsCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +22 -0
  7. package/dist-es/pagination/ListFirewallRuleDomainsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/schemas/schemas_0.js +56 -8
  10. package/dist-types/Route53Resolver.d.ts +14 -0
  11. package/dist-types/Route53ResolverClient.d.ts +3 -2
  12. package/dist-types/commands/AssociateResolverEndpointIpAddressCommand.d.ts +5 -0
  13. package/dist-types/commands/AssociateResolverRuleCommand.d.ts +5 -0
  14. package/dist-types/commands/BatchCreateFirewallRuleCommand.d.ts +15 -0
  15. package/dist-types/commands/BatchDeleteFirewallRuleCommand.d.ts +5 -0
  16. package/dist-types/commands/BatchUpdateFirewallRuleCommand.d.ts +15 -0
  17. package/dist-types/commands/CreateFirewallDomainListCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateFirewallRuleCommand.d.ts +12 -2
  19. package/dist-types/commands/DeleteFirewallDomainListCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteFirewallRuleCommand.d.ts +5 -0
  21. package/dist-types/commands/DeleteResolverEndpointCommand.d.ts +5 -0
  22. package/dist-types/commands/DeleteResolverRuleCommand.d.ts +5 -0
  23. package/dist-types/commands/DisassociateResolverEndpointIpAddressCommand.d.ts +5 -0
  24. package/dist-types/commands/DisassociateResolverRuleCommand.d.ts +5 -0
  25. package/dist-types/commands/GetFirewallDomainListCommand.d.ts +3 -1
  26. package/dist-types/commands/GetResolverEndpointCommand.d.ts +5 -0
  27. package/dist-types/commands/GetResolverRuleAssociationCommand.d.ts +5 -0
  28. package/dist-types/commands/GetResolverRuleCommand.d.ts +5 -0
  29. package/dist-types/commands/ImportFirewallDomainsCommand.d.ts +1 -0
  30. package/dist-types/commands/ListFirewallDomainListsCommand.d.ts +4 -1
  31. package/dist-types/commands/ListFirewallRuleDomainsCommand.d.ts +110 -0
  32. package/dist-types/commands/ListFirewallRuleTypesCommand.d.ts +1 -0
  33. package/dist-types/commands/ListFirewallRulesCommand.d.ts +6 -1
  34. package/dist-types/commands/ListResolverEndpointIpAddressesCommand.d.ts +5 -0
  35. package/dist-types/commands/ListResolverEndpointsCommand.d.ts +5 -0
  36. package/dist-types/commands/ListResolverRuleAssociationsCommand.d.ts +5 -0
  37. package/dist-types/commands/ListResolverRulesCommand.d.ts +5 -0
  38. package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -0
  39. package/dist-types/commands/TagResourceCommand.d.ts +5 -0
  40. package/dist-types/commands/UntagResourceCommand.d.ts +5 -0
  41. package/dist-types/commands/UpdateFirewallDomainsCommand.d.ts +7 -1
  42. package/dist-types/commands/UpdateFirewallRuleCommand.d.ts +10 -0
  43. package/dist-types/commands/index.d.ts +1 -0
  44. package/dist-types/models/enums.d.ts +54 -0
  45. package/dist-types/models/models_0.d.ts +237 -11
  46. package/dist-types/pagination/ListFirewallRuleDomainsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +1 -0
  48. package/dist-types/schemas/schemas_0.d.ts +6 -0
  49. package/dist-types/ts3.4/Route53Resolver.d.ts +24 -0
  50. package/dist-types/ts3.4/Route53ResolverClient.d.ts +6 -0
  51. package/dist-types/ts3.4/commands/ListFirewallRuleDomainsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  53. package/dist-types/ts3.4/models/enums.d.ts +29 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +40 -0
  55. package/dist-types/ts3.4/pagination/ListFirewallRuleDomainsPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  57. package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  58. package/package.json +1 -1
@@ -62,6 +62,11 @@ declare const UpdateFirewallRuleCommand_base: {
62
62
  * Value: "STRING_VALUE", // required
63
63
  * ConfidenceThreshold: "LOW" || "MEDIUM" || "HIGH", // required
64
64
  * },
65
+ * AutoAllowlist: { // AutoAllowlistConfig
66
+ * InitialDataTimeframeHours: Number("int"), // required
67
+ * ImportFromFirewallDomainListId: "STRING_VALUE",
68
+ * AutoAllowlistFirewallDomainListId: "STRING_VALUE",
69
+ * },
65
70
  * },
66
71
  * };
67
72
  * const command = new UpdateFirewallRuleCommand(input);
@@ -99,6 +104,11 @@ declare const UpdateFirewallRuleCommand_base: {
99
104
  * // Value: "STRING_VALUE", // required
100
105
  * // ConfidenceThreshold: "LOW" || "MEDIUM" || "HIGH", // required
101
106
  * // },
107
+ * // AutoAllowlist: { // AutoAllowlistConfig
108
+ * // InitialDataTimeframeHours: Number("int"), // required
109
+ * // ImportFromFirewallDomainListId: "STRING_VALUE",
110
+ * // AutoAllowlistFirewallDomainListId: "STRING_VALUE",
111
+ * // },
102
112
  * // },
103
113
  * // Status: "STRING_VALUE",
104
114
  * // StatusMessage: "STRING_VALUE",
@@ -42,6 +42,7 @@ export * from "./ImportFirewallDomainsCommand";
42
42
  export * from "./ListFirewallConfigsCommand";
43
43
  export * from "./ListFirewallDomainListsCommand";
44
44
  export * from "./ListFirewallDomainsCommand";
45
+ export * from "./ListFirewallRuleDomainsCommand";
45
46
  export * from "./ListFirewallRuleGroupAssociationsCommand";
46
47
  export * from "./ListFirewallRuleGroupsCommand";
47
48
  export * from "./ListFirewallRuleTypesCommand";
@@ -215,6 +215,7 @@ export type FirewallDomainRedirectionAction = (typeof FirewallDomainRedirectionA
215
215
  * @enum
216
216
  */
217
217
  export declare const DomainListType: {
218
+ readonly AUTOALLOWLIST: "AUTOALLOWLIST";
218
219
  readonly CONTENT: "CONTENT";
219
220
  readonly THREAT: "THREAT";
220
221
  };
@@ -346,12 +347,40 @@ export declare const FirewallDomainImportOperation: {
346
347
  * @public
347
348
  */
348
349
  export type FirewallDomainImportOperation = (typeof FirewallDomainImportOperation)[keyof typeof FirewallDomainImportOperation];
350
+ /**
351
+ * @public
352
+ * @enum
353
+ */
354
+ export declare const FirewallDomainStatus: {
355
+ readonly ALLOWED: "ALLOWED";
356
+ readonly DENIED: "DENIED";
357
+ readonly OBSERVED: "OBSERVED";
358
+ readonly UNKNOWN: "UNKNOWN";
359
+ };
360
+ /**
361
+ * @public
362
+ */
363
+ export type FirewallDomainStatus = (typeof FirewallDomainStatus)[keyof typeof FirewallDomainStatus];
364
+ /**
365
+ * @public
366
+ * @enum
367
+ */
368
+ export declare const FirewallDomainStatusFilter: {
369
+ readonly ALLOWED: "ALLOWED";
370
+ readonly DENIED: "DENIED";
371
+ readonly OBSERVED: "OBSERVED";
372
+ };
373
+ /**
374
+ * @public
375
+ */
376
+ export type FirewallDomainStatusFilter = (typeof FirewallDomainStatusFilter)[keyof typeof FirewallDomainStatusFilter];
349
377
  /**
350
378
  * @public
351
379
  * @enum
352
380
  */
353
381
  export declare const FirewallDomainUpdateOperation: {
354
382
  readonly ADD: "ADD";
383
+ readonly DENY: "DENY";
355
384
  readonly REMOVE: "REMOVE";
356
385
  readonly REPLACE: "REPLACE";
357
386
  };
@@ -359,6 +388,31 @@ export declare const FirewallDomainUpdateOperation: {
359
388
  * @public
360
389
  */
361
390
  export type FirewallDomainUpdateOperation = (typeof FirewallDomainUpdateOperation)[keyof typeof FirewallDomainUpdateOperation];
391
+ /**
392
+ * @public
393
+ * @enum
394
+ */
395
+ export declare const FirewallRuleDomainSortBy: {
396
+ readonly DAILY_TOTAL: "DAILY_TOTAL";
397
+ readonly TIME_ADDED: "TIME_ADDED";
398
+ readonly TOTAL_REQUESTS: "TOTAL_REQUESTS";
399
+ };
400
+ /**
401
+ * @public
402
+ */
403
+ export type FirewallRuleDomainSortBy = (typeof FirewallRuleDomainSortBy)[keyof typeof FirewallRuleDomainSortBy];
404
+ /**
405
+ * @public
406
+ * @enum
407
+ */
408
+ export declare const FirewallRuleDomainSortOrder: {
409
+ readonly ASC: "ASC";
410
+ readonly DESC: "DESC";
411
+ };
412
+ /**
413
+ * @public
414
+ */
415
+ export type FirewallRuleDomainSortOrder = (typeof FirewallRuleDomainSortOrder)[keyof typeof FirewallRuleDomainSortOrder];
362
416
  /**
363
417
  * @public
364
418
  * @enum
@@ -1,4 +1,4 @@
1
- import type { Action, AutodefinedReverseFlag, BlockOverrideDnsType, BlockResponse, ConfidenceThreshold, DnsThreatProtection, DomainListType, FirewallDomainImportOperation, FirewallDomainListStatus, FirewallDomainRedirectionAction, FirewallDomainUpdateOperation, FirewallFailOpenStatus, FirewallRuleGroupAssociationStatus, FirewallRuleGroupStatus, IpAddressStatus, MutationProtectionStatus, OutpostResolverStatus, Protocol, ResolverAutodefinedReverseStatus, ResolverDNSSECValidationStatus, ResolverEndpointDirection, ResolverEndpointStatus, ResolverEndpointType, ResolverQueryLogConfigAssociationError, ResolverQueryLogConfigAssociationStatus, ResolverQueryLogConfigStatus, ResolverRuleAssociationStatus, ResolverRuleStatus, RuleTypeOption, ShareStatus, SortOrder, Validation } from "./enums";
1
+ import type { Action, AutodefinedReverseFlag, BlockOverrideDnsType, BlockResponse, ConfidenceThreshold, DnsThreatProtection, DomainListType, FirewallDomainImportOperation, FirewallDomainListStatus, FirewallDomainRedirectionAction, FirewallDomainStatus, FirewallDomainStatusFilter, FirewallDomainUpdateOperation, FirewallFailOpenStatus, FirewallRuleDomainSortBy, FirewallRuleDomainSortOrder, FirewallRuleGroupAssociationStatus, FirewallRuleGroupStatus, IpAddressStatus, MutationProtectionStatus, OutpostResolverStatus, Protocol, ResolverAutodefinedReverseStatus, ResolverDNSSECValidationStatus, ResolverEndpointDirection, ResolverEndpointStatus, ResolverEndpointType, ResolverQueryLogConfigAssociationError, ResolverQueryLogConfigAssociationStatus, ResolverQueryLogConfigStatus, ResolverRuleAssociationStatus, ResolverRuleStatus, RuleTypeOption, ShareStatus, SortOrder, Validation } from "./enums";
2
2
  /**
3
3
  * <p>One tag that you want to add to the specified resource. A tag consists of a <code>Key</code> (a name for the tag) and a <code>Value</code>.</p>
4
4
  * @public
@@ -624,6 +624,29 @@ export interface AssociateResolverRuleResponse {
624
624
  */
625
625
  ResolverRuleAssociation?: ResolverRuleAssociation | undefined;
626
626
  }
627
+ /**
628
+ * <p>The configuration for an AutoAllowlist firewall rule, which observes the DNS traffic of the VPCs that use the rule group, through a rule group association or a Route 53 Profile. The rule allows the domains on its managed domain list. When you create the rule, DNS Firewall seeds the observed domains from the look-back window of each VPC. After that, a domain is listed as observed when any DNS Firewall rule blocks a query for it from a VPC that uses the rule group, including rules in other rule groups, so place a rule that blocks the domains you haven't approved after the AutoAllowlist rule. To review the observed domains, call <a>ListFirewallRuleDomains</a>. To approve or deny them, call <a>UpdateFirewallDomains</a> on the rule's managed domain list.</p>
629
+ * <p>An AutoAllowlist rule uses the <code>ALLOW</code> action, applies to all query types, and always inspects redirection domains. You can't set <code>Qtype</code>, <code>FirewallDomainRedirectionAction</code>, <code>BlockResponse</code>, or the DNS Firewall Advanced settings on it. A rule group can contain one AutoAllowlist rule.</p>
630
+ * <p>A new AutoAllowlist rule has status <code>CREATING</code> while DNS Firewall reads the look-back window of each VPC that uses the rule group, which can take hours for a rule group that many VPCs use. Until the status is <code>COMPLETE</code>, the observed domains and request counts are partial and <a>UpdateFirewallRule</a> rejects the rule. You can approve, remove, and deny domains while the rule is <code>CREATING</code>.</p>
631
+ * @public
632
+ */
633
+ export interface AutoAllowlistConfig {
634
+ /**
635
+ * <p>The look-back window, in hours, of historical DNS traffic that DNS Firewall uses to seed the initial set of observed domains when you create the rule. Valid values are from <code>1</code> to <code>168</code> (7 days). You can't change this value after you create the rule.</p>
636
+ * @public
637
+ */
638
+ InitialDataTimeframeHours: number | undefined;
639
+ /**
640
+ * <p>The ID of a domain list whose domains DNS Firewall copies into the AutoAllowlist rule's managed domain list after you create the rule. You must own the source list, and it must be in <code>COMPLETE</code> status, in the same Region, and not a managed or AutoAllowlist list. DNS Firewall reads the source list while the copy runs, so don't change or delete it until the managed list's status is no longer <code>IMPORTING</code>. A change made to the source list during the copy can be reflected in the managed list, and deleting the source list fails the copy. The managed list then has status <code>COMPLETE</code>, or <code>COMPLETE_IMPORT_FAILED</code> if the copy failed. DNS Firewall uses this value only when you create the rule.</p>
641
+ * @public
642
+ */
643
+ ImportFromFirewallDomainListId?: string | undefined;
644
+ /**
645
+ * <p>The ID of the managed domain list that DNS Firewall creates and maintains for this AutoAllowlist rule. The list is named <code>AutoAllowlist - </code> followed by the rule name, cut to 64 characters, and is renamed when you rename the rule. DNS Firewall returns this value in responses. You can't set it.</p>
646
+ * @public
647
+ */
648
+ AutoAllowlistFirewallDomainListId?: string | undefined;
649
+ }
627
650
  /**
628
651
  * <p>The configuration for a DNS threat protection rule type within the rule type framework.</p>
629
652
  * @public
@@ -703,7 +726,7 @@ export interface PartnerThreatProtectionConfig {
703
726
  }
704
727
  /**
705
728
  * <p>The rule-type configuration for a DNS Firewall rule. <code>FirewallRuleType</code> is a tagged union — exactly one member must be set per rule, and the member determines what the rule matches against. This shape is mutually exclusive with the top-level <code>FirewallDomainListId</code> and <code>DnsThreatProtection</code> fields on <a>CreateFirewallRule</a> and <a>UpdateFirewallRule</a>.</p>
706
- * <p>Call <a>ListFirewallRuleTypes</a> to discover which rule-type variants and which values within each variant are available in your account and Region.</p>
729
+ * <p>Call <a>ListFirewallRuleTypes</a> to discover which rule-type variants and which values within each variant are available in your account and Region. It doesn't return the <code>AutoAllowlist</code> variant.</p>
707
730
  * @public
708
731
  */
709
732
  export interface FirewallRuleType {
@@ -728,6 +751,11 @@ export interface FirewallRuleType {
728
751
  * @public
729
752
  */
730
753
  DnsThreatProtection?: DnsThreatProtectionRuleTypeConfig | undefined;
754
+ /**
755
+ * <p>Configures the rule as an AutoAllowlist rule, which observes the DNS traffic of the VPCs that use the rule group, through a rule group association or a Route 53 Profile, so that you can review the domains and allow them. See <a>AutoAllowlistConfig</a>.</p>
756
+ * @public
757
+ */
758
+ AutoAllowlist?: AutoAllowlistConfig | undefined;
731
759
  }
732
760
  /**
733
761
  * <p>The details for creating a single firewall rule in a batch operation.</p>
@@ -928,8 +956,12 @@ export interface CreateFirewallRuleEntry {
928
956
  * <p>
929
957
  * <code>PartnerThreatProtection</code> — match a third-party threat feed delivered through Amazon Web Services Marketplace. The selected partner must be an active subscription on the calling account.</p>
930
958
  * </li>
959
+ * <li>
960
+ * <p>
961
+ * <code>AutoAllowlist</code> — automatically observe the domains that the VPCs associated with the rule group resolve, and allow the ones that you approve. See <a>AutoAllowlistConfig</a>.</p>
962
+ * </li>
931
963
  * </ul>
932
- * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>.</p>
964
+ * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>. It doesn't return <code>AutoAllowlist</code>.</p>
933
965
  * @public
934
966
  */
935
967
  FirewallRuleType?: FirewallRuleType | undefined;
@@ -1178,8 +1210,12 @@ export interface FirewallRule {
1178
1210
  * <p>
1179
1211
  * <code>PartnerThreatProtection</code> — a third-party threat feed delivered through Amazon Web Services Marketplace.</p>
1180
1212
  * </li>
1213
+ * <li>
1214
+ * <p>
1215
+ * <code>AutoAllowlist</code> — an AutoAllowlist rule, which allows the domains on its managed domain list. See <a>AutoAllowlistConfig</a>.</p>
1216
+ * </li>
1181
1217
  * </ul>
1182
- * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>.</p>
1218
+ * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>. It doesn't return <code>AutoAllowlist</code>.</p>
1183
1219
  * @public
1184
1220
  */
1185
1221
  FirewallRuleType?: FirewallRuleType | undefined;
@@ -1188,7 +1224,7 @@ export interface FirewallRule {
1188
1224
  * <ul>
1189
1225
  * <li>
1190
1226
  * <p>
1191
- * <code>CREATING</code> — DNS Firewall is provisioning the rule. Rules created with the <code>PartnerThreatProtection</code> rule type begin in this state while DNS Firewall verifies the calling account's Amazon Web Services Marketplace entitlement.</p>
1227
+ * <code>CREATING</code> — DNS Firewall is provisioning the rule. Rules created with the <code>PartnerThreatProtection</code> rule type begin in this state while DNS Firewall verifies the calling account's Amazon Web Services Marketplace entitlement. Rules created with the <code>AutoAllowlist</code> rule type begin in this state while DNS Firewall reads the look-back window of each VPC that uses the rule group.</p>
1192
1228
  * </li>
1193
1229
  * <li>
1194
1230
  * <p>
@@ -1517,7 +1553,8 @@ export interface UpdateFirewallRuleEntry {
1517
1553
  * <code>PartnerThreatProtection</code> — match a third-party threat feed delivered through Amazon Web Services Marketplace. The selected partner must be an active subscription on the calling account.</p>
1518
1554
  * </li>
1519
1555
  * </ul>
1520
- * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>.</p>
1556
+ * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>. It doesn't return <code>AutoAllowlist</code>.</p>
1557
+ * <p>You can't specify <code>FirewallRuleType</code> when you update an AutoAllowlist rule, even with its current values. <code>InitialDataTimeframeHours</code> and <code>ImportFromFirewallDomainListId</code> can't be changed. To change them, delete the rule and create a new one. Deleting an AutoAllowlist rule also deletes its managed domain list and the domains that you allowed.</p>
1521
1558
  * @public
1522
1559
  */
1523
1560
  FirewallRuleType?: FirewallRuleType | undefined;
@@ -1772,6 +1809,7 @@ export interface CreateFirewallRuleRequest {
1772
1809
  * <p>
1773
1810
  * <code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to
1774
1811
  * the domain list.</p>
1812
+ * <p>You can't set this value on an AutoAllowlist rule, which always inspects the redirection chain.</p>
1775
1813
  * @public
1776
1814
  */
1777
1815
  FirewallDomainRedirectionAction?: FirewallDomainRedirectionAction | undefined;
@@ -1828,6 +1866,7 @@ export interface CreateFirewallRuleRequest {
1828
1866
  * <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS record types</a>.</p>
1829
1867
  * </li>
1830
1868
  * </ul>
1869
+ * <p>You can't set <code>Qtype</code> on an AutoAllowlist rule, because the rule applies to all query types.</p>
1831
1870
  * @public
1832
1871
  */
1833
1872
  Qtype?: string | undefined;
@@ -1893,8 +1932,12 @@ export interface CreateFirewallRuleRequest {
1893
1932
  * <p>
1894
1933
  * <code>PartnerThreatProtection</code> — match a third-party threat feed delivered through Amazon Web Services Marketplace. The selected partner must be an active subscription on the calling account.</p>
1895
1934
  * </li>
1935
+ * <li>
1936
+ * <p>
1937
+ * <code>AutoAllowlist</code> — automatically observe the domains that the VPCs associated with the rule group resolve, and allow the ones that you approve. See <a>AutoAllowlistConfig</a>.</p>
1938
+ * </li>
1896
1939
  * </ul>
1897
- * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>.</p>
1940
+ * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>. It doesn't return <code>AutoAllowlist</code>.</p>
1898
1941
  * @public
1899
1942
  */
1900
1943
  FirewallRuleType?: FirewallRuleType | undefined;
@@ -3371,6 +3414,66 @@ export interface FirewallDomainListMetadata {
3371
3414
  * @public
3372
3415
  */
3373
3416
  Category?: string | undefined;
3417
+ /**
3418
+ * <p>For an AutoAllowlist domain list, the ID of the firewall rule group that contains the auto-allowlist rule that owns this domain list. Use it to navigate to the rule group and its VPC associations. Present only when <code>ManagedListType</code> is <code>AUTOALLOWLIST</code>.</p>
3419
+ * @public
3420
+ */
3421
+ FirewallRuleGroupId?: string | undefined;
3422
+ /**
3423
+ * <p>For an AutoAllowlist domain list, the threat protection ID of the auto-allowlist rule that owns this domain list. Provide it to <a>ListFirewallRuleDomains</a> to review the observed, allowed, and denied domains. Present only when <code>ManagedListType</code> is <code>AUTOALLOWLIST</code>.</p>
3424
+ * @public
3425
+ */
3426
+ FirewallThreatProtectionId?: string | undefined;
3427
+ /**
3428
+ * <p>For an AutoAllowlist domain list, the status of the list: <code>IMPORTING</code> while domains are being copied from the source domain list specified at rule creation, <code>COMPLETE_IMPORT_FAILED</code> if that copy failed, <code>UPDATING</code> while a change made with <a>UpdateFirewallDomains</a> is being applied, <code>COMPLETE</code> otherwise, and <code>DELETING</code> while the owning rule is being deleted. The first change that you make after a failed copy replaces <code>COMPLETE_IMPORT_FAILED</code> with <code>UPDATING</code> and then <code>COMPLETE</code>. Present only when <code>ManagedListType</code> is <code>AUTOALLOWLIST</code>. Use <a>GetFirewallDomainList</a> for the status of other domain lists.</p>
3429
+ * @public
3430
+ */
3431
+ Status?: FirewallDomainListStatus | undefined;
3432
+ }
3433
+ /**
3434
+ * <p>A domain that DNS Firewall observed for an AutoAllowlist rule, with its review status and request volume. Counts are aggregated across all VPCs that use the rule group, through a rule group association or through a Route 53 Profile that includes the rule group, including VPCs in other accounts. The domain isn't attributed to the VPC or account in which it was observed.</p>
3435
+ * @public
3436
+ */
3437
+ export interface FirewallRuleDomain {
3438
+ /**
3439
+ * <p>The domain name.</p>
3440
+ * @public
3441
+ */
3442
+ DomainName?: string | undefined;
3443
+ /**
3444
+ * <p>The review status of the domain:</p>
3445
+ * <ul>
3446
+ * <li>
3447
+ * <p>
3448
+ * <code>OBSERVED</code> - DNS Firewall saw the domain in the VPCs' DNS traffic and you haven't allowed or denied it. The look-back window seeds the initial observed domains. After that, a domain becomes observed when any DNS Firewall rule blocks a query for it from a VPC that uses the rule group, including rules in other rule groups, or when you remove it from the managed domain list with <code>REMOVE</code>. To keep observing new domains, place a rule that blocks the domains you haven't approved after the AutoAllowlist rule. Domains from the look-back period that keep being queried and aren't blocked move to <code>ALLOWED</code> within about a day after the rule is created. Observed domains aren't evaluated for safety, so review them before you allow them.</p>
3449
+ * </li>
3450
+ * <li>
3451
+ * <p>
3452
+ * <code>ALLOWED</code> - DNS Firewall allowed queries for the domain, whether or not the domain is in the rule's managed domain list. To get the domains in the managed domain list (the allowlist that the rule enforces), call <a>ListFirewallRuleDomains</a> with <code>FirewallDomainListId</code>.</p>
3453
+ * </li>
3454
+ * <li>
3455
+ * <p>
3456
+ * <code>DENIED</code> - The domain was denied with the <code>DENY</code> operation of <a>UpdateFirewallDomains</a>, which also removes it from the managed domain list if it was there. A denied domain that is still queried and not blocked can move to <code>ALLOWED</code>.</p>
3457
+ * </li>
3458
+ * </ul>
3459
+ * @public
3460
+ */
3461
+ DomainStatus?: FirewallDomainStatus | undefined;
3462
+ /**
3463
+ * <p>The number of DNS requests observed for this domain in the last 24 hours.</p>
3464
+ * @public
3465
+ */
3466
+ Last24HourRequests?: number | undefined;
3467
+ /**
3468
+ * <p>The total number of DNS requests observed for this domain since it was first added, including the requests in the look-back window that seeded the rule.</p>
3469
+ * @public
3470
+ */
3471
+ TotalRequests?: number | undefined;
3472
+ /**
3473
+ * <p>The date and time when the domain was first observed and added, in RFC 3339 format.</p>
3474
+ * @public
3475
+ */
3476
+ AddedTime?: string | undefined;
3374
3477
  }
3375
3478
  /**
3376
3479
  * <p>Minimal high-level information for a firewall rule group. The action <a>ListFirewallRuleGroups</a> returns an array of these objects. </p>
@@ -3500,6 +3603,16 @@ export interface GetFirewallDomainListResponse {
3500
3603
  * @public
3501
3604
  */
3502
3605
  FirewallDomainList?: FirewallDomainList | undefined;
3606
+ /**
3607
+ * <p>For an AutoAllowlist domain list, the ID of the firewall rule group that contains the AutoAllowlist rule that owns this domain list. Present only when <code>ManagedListType</code> is <code>AUTOALLOWLIST</code>.</p>
3608
+ * @public
3609
+ */
3610
+ FirewallRuleGroupId?: string | undefined;
3611
+ /**
3612
+ * <p>For an AutoAllowlist domain list, the threat protection ID of the auto-allowlist rule that owns this domain list. Provide it to <a>ListFirewallRuleDomains</a> to review the observed, allowed, and denied domains. Present only when <code>ManagedListType</code> is <code>AUTOALLOWLIST</code>.</p>
3613
+ * @public
3614
+ */
3615
+ FirewallThreatProtectionId?: string | undefined;
3503
3616
  }
3504
3617
  /**
3505
3618
  * @public
@@ -4081,6 +4194,112 @@ export interface ListFirewallDomainsResponse {
4081
4194
  */
4082
4195
  Domains?: string[] | undefined;
4083
4196
  }
4197
+ /**
4198
+ * <p>Optional filters and sort order for <a>ListFirewallRuleDomains</a>.</p>
4199
+ * @public
4200
+ */
4201
+ export interface ListFirewallRuleDomainsQueryOptions {
4202
+ /**
4203
+ * <p>Filters the returned domains by review status. Valid values:</p>
4204
+ * <ul>
4205
+ * <li>
4206
+ * <p>
4207
+ * <code>OBSERVED</code> - Domains that DNS Firewall saw in the VPCs' DNS traffic and that you haven't allowed or denied. After the look-back window, a domain is observed when any DNS Firewall rule blocks a query for it from a VPC that uses the rule group, including rules in other rule groups, or when you remove it from the managed domain list. Domains from the look-back period that keep being queried and aren't blocked move to <code>ALLOWED</code> within about a day after the rule is created.</p>
4208
+ * </li>
4209
+ * <li>
4210
+ * <p>
4211
+ * <code>ALLOWED</code> - Domains that DNS Firewall allowed queries for, whether or not they're in the rule's managed domain list.</p>
4212
+ * </li>
4213
+ * <li>
4214
+ * <p>
4215
+ * <code>DENIED</code> - Domains that were denied with the <code>DENY</code> operation. A denied domain that is still queried and not blocked can move to <code>ALLOWED</code>.</p>
4216
+ * </li>
4217
+ * </ul>
4218
+ * <p>If you don't specify a value, the operation returns <code>OBSERVED</code> domains.</p>
4219
+ * @public
4220
+ */
4221
+ DomainStatus?: FirewallDomainStatusFilter | undefined;
4222
+ /**
4223
+ * <p>The attribute to sort the returned domains by. Valid values:</p>
4224
+ * <ul>
4225
+ * <li>
4226
+ * <p>
4227
+ * <code>TIME_ADDED</code> - The <code>AddedTime</code> of the domain.</p>
4228
+ * </li>
4229
+ * <li>
4230
+ * <p>
4231
+ * <code>DAILY_TOTAL</code> - The <code>Last24HourRequests</code> count.</p>
4232
+ * </li>
4233
+ * <li>
4234
+ * <p>
4235
+ * <code>TOTAL_REQUESTS</code> - The <code>TotalRequests</code> count.</p>
4236
+ * </li>
4237
+ * </ul>
4238
+ * <p>If you don't specify a value, the operation sorts by <code>TIME_ADDED</code>.</p>
4239
+ * @public
4240
+ */
4241
+ SortBy?: FirewallRuleDomainSortBy | undefined;
4242
+ /**
4243
+ * <p>The sort direction: <code>ASC</code> for ascending or <code>DESC</code> for descending. If you don't specify a value, the operation sorts in descending order.</p>
4244
+ * @public
4245
+ */
4246
+ SortOrder?: FirewallRuleDomainSortOrder | undefined;
4247
+ /**
4248
+ * <p>Returns only the domains whose name contains this substring.</p>
4249
+ * @public
4250
+ */
4251
+ DomainNameFilter?: string | undefined;
4252
+ }
4253
+ /**
4254
+ * @public
4255
+ */
4256
+ export interface ListFirewallRuleDomainsRequest {
4257
+ /**
4258
+ * <p>The unique identifier of the firewall rule group that contains the rule.</p>
4259
+ * @public
4260
+ */
4261
+ FirewallRuleGroupId: string | undefined;
4262
+ /**
4263
+ * <p>The threat protection ID that identifies an AutoAllowlist rule. Provide this to list an AutoAllowlist rule's domains.</p>
4264
+ * @public
4265
+ */
4266
+ FirewallThreatProtectionId?: string | undefined;
4267
+ /**
4268
+ * <p>The ID of the AutoAllowlist rule's managed domain list. Provide this to list the domains that the rule currently allows.</p>
4269
+ * @public
4270
+ */
4271
+ FirewallDomainListId?: string | undefined;
4272
+ /**
4273
+ * <p>Optional filters and sort order for the returned domains. If you don't specify this, the operation returns the <code>OBSERVED</code> domains sorted by <code>TIME_ADDED</code> in descending order. See <a>ListFirewallRuleDomainsQueryOptions</a>.</p>
4274
+ * @public
4275
+ */
4276
+ QueryOptions?: ListFirewallRuleDomainsQueryOptions | undefined;
4277
+ /**
4278
+ * <p>The maximum number of domains that you want to return in a single call. If more domains remain than can be returned, the response includes a <code>NextToken</code> value that you can use in a subsequent call to get the next batch. The default is 100.</p>
4279
+ * @public
4280
+ */
4281
+ MaxResults?: number | undefined;
4282
+ /**
4283
+ * <p>For the first call to this operation, omit this value. If more domains remain than can be returned in a single call, the response includes a <code>NextToken</code> value. In your next call, specify that value to get the next batch of domains.</p>
4284
+ * @public
4285
+ */
4286
+ NextToken?: string | undefined;
4287
+ }
4288
+ /**
4289
+ * @public
4290
+ */
4291
+ export interface ListFirewallRuleDomainsResponse {
4292
+ /**
4293
+ * <p>The domains for the rule. See <a>FirewallRuleDomain</a>.</p>
4294
+ * @public
4295
+ */
4296
+ Domains?: FirewallRuleDomain[] | undefined;
4297
+ /**
4298
+ * <p>If more domains remain than were returned in this response, DNS Firewall provides a <code>NextToken</code> value that you can use in a subsequent call to get the next batch of domains.</p>
4299
+ * @public
4300
+ */
4301
+ NextToken?: string | undefined;
4302
+ }
4084
4303
  /**
4085
4304
  * @public
4086
4305
  */
@@ -5259,15 +5478,19 @@ export interface UpdateFirewallDomainsRequest {
5259
5478
  * <ul>
5260
5479
  * <li>
5261
5480
  * <p>
5262
- * <code>ADD</code> - Add the domains to the ones that are already in the domain list. </p>
5481
+ * <code>ADD</code> - Add the domains to the ones that are already in the domain list. For an AutoAllowlist rule's managed domain list, this also marks the observed domains as allowed.</p>
5482
+ * </li>
5483
+ * <li>
5484
+ * <p>
5485
+ * <code>REMOVE</code> - Search the domain list for the domains and remove them from the list. For an AutoAllowlist rule's managed domain list, the rule no longer allows the removed domains, unless a wildcard entry that's still on the list matches them.</p>
5263
5486
  * </li>
5264
5487
  * <li>
5265
5488
  * <p>
5266
- * <code>REMOVE</code> - Search the domain list for the domains and remove them from the list.</p>
5489
+ * <code>REPLACE</code> - Update the domain list to exactly match the list that you are providing. Not supported for an AutoAllowlist rule's managed domain list.</p>
5267
5490
  * </li>
5268
5491
  * <li>
5269
5492
  * <p>
5270
- * <code>REPLACE</code> - Update the domain list to exactly match the list that you are providing. </p>
5493
+ * <code>DENY</code> - For an AutoAllowlist rule's managed domain list only, mark the specified observed domains as denied so that they're no longer listed for review. If a domain is on the managed domain list, <code>DENY</code> also removes it from the list. Specify fully qualified domain names. Wildcards aren't accepted.</p>
5271
5494
  * </li>
5272
5495
  * </ul>
5273
5496
  * @public
@@ -5420,6 +5643,7 @@ export interface UpdateFirewallRuleRequest {
5420
5643
  * <p>
5421
5644
  * <code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to
5422
5645
  * the domain list.</p>
5646
+ * <p>You can't set this value on an AutoAllowlist rule, which always inspects the redirection chain.</p>
5423
5647
  * @public
5424
5648
  */
5425
5649
  FirewallDomainRedirectionAction?: FirewallDomainRedirectionAction | undefined;
@@ -5480,6 +5704,7 @@ export interface UpdateFirewallRuleRequest {
5480
5704
  * </note>
5481
5705
  * </li>
5482
5706
  * </ul>
5707
+ * <p>You can't set <code>Qtype</code> on an AutoAllowlist rule, because the rule applies to all query types.</p>
5483
5708
  * @public
5484
5709
  */
5485
5710
  Qtype?: string | undefined;
@@ -5548,7 +5773,8 @@ export interface UpdateFirewallRuleRequest {
5548
5773
  * <code>PartnerThreatProtection</code> — match a third-party threat feed delivered through Amazon Web Services Marketplace. The selected partner must be an active subscription on the calling account.</p>
5549
5774
  * </li>
5550
5775
  * </ul>
5551
- * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>.</p>
5776
+ * <p>To enumerate the values supported in your account, call <a>ListFirewallRuleTypes</a>. It doesn't return <code>AutoAllowlist</code>.</p>
5777
+ * <p>You can't specify <code>FirewallRuleType</code> when you update an AutoAllowlist rule, even with its current values. <code>InitialDataTimeframeHours</code> and <code>ImportFromFirewallDomainListId</code> can't be changed. To change them, delete the rule and create a new one. Deleting an AutoAllowlist rule also deletes its managed domain list and the domains that you allowed.</p>
5552
5778
  * @public
5553
5779
  */
5554
5780
  FirewallRuleType?: FirewallRuleType | undefined;
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListFirewallRuleDomainsCommandInput, ListFirewallRuleDomainsCommandOutput } from "../commands/ListFirewallRuleDomainsCommand";
3
+ import type { Route53ResolverPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListFirewallRuleDomains: (config: Route53ResolverPaginationConfiguration, input: ListFirewallRuleDomainsCommandInput, ...rest: any[]) => Paginator<ListFirewallRuleDomainsCommandOutput>;
@@ -2,6 +2,7 @@ export * from "./Interfaces";
2
2
  export * from "./ListFirewallConfigsPaginator";
3
3
  export * from "./ListFirewallDomainListsPaginator";
4
4
  export * from "./ListFirewallDomainsPaginator";
5
+ export * from "./ListFirewallRuleDomainsPaginator";
5
6
  export * from "./ListFirewallRuleGroupAssociationsPaginator";
6
7
  export * from "./ListFirewallRuleGroupsPaginator";
7
8
  export * from "./ListFirewallRulesPaginator";
@@ -32,6 +32,7 @@ export declare var AssociateResolverQueryLogConfigRequest$: StaticStructureSchem
32
32
  export declare var AssociateResolverQueryLogConfigResponse$: StaticStructureSchema;
33
33
  export declare var AssociateResolverRuleRequest$: StaticStructureSchema;
34
34
  export declare var AssociateResolverRuleResponse$: StaticStructureSchema;
35
+ export declare var AutoAllowlistConfig$: StaticStructureSchema;
35
36
  export declare var BatchCreateFirewallRuleError$: StaticStructureSchema;
36
37
  export declare var BatchCreateFirewallRuleRequest$: StaticStructureSchema;
37
38
  export declare var BatchCreateFirewallRuleResponse$: StaticStructureSchema;
@@ -87,6 +88,7 @@ export declare var FirewallConfig$: StaticStructureSchema;
87
88
  export declare var FirewallDomainList$: StaticStructureSchema;
88
89
  export declare var FirewallDomainListMetadata$: StaticStructureSchema;
89
90
  export declare var FirewallRule$: StaticStructureSchema;
91
+ export declare var FirewallRuleDomain$: StaticStructureSchema;
90
92
  export declare var FirewallRuleGroup$: StaticStructureSchema;
91
93
  export declare var FirewallRuleGroupAssociation$: StaticStructureSchema;
92
94
  export declare var FirewallRuleGroupMetadata$: StaticStructureSchema;
@@ -133,6 +135,9 @@ export declare var ListFirewallDomainListsRequest$: StaticStructureSchema;
133
135
  export declare var ListFirewallDomainListsResponse$: StaticStructureSchema;
134
136
  export declare var ListFirewallDomainsRequest$: StaticStructureSchema;
135
137
  export declare var ListFirewallDomainsResponse$: StaticStructureSchema;
138
+ export declare var ListFirewallRuleDomainsQueryOptions$: StaticStructureSchema;
139
+ export declare var ListFirewallRuleDomainsRequest$: StaticStructureSchema;
140
+ export declare var ListFirewallRuleDomainsResponse$: StaticStructureSchema;
136
141
  export declare var ListFirewallRuleGroupAssociationsRequest$: StaticStructureSchema;
137
142
  export declare var ListFirewallRuleGroupAssociationsResponse$: StaticStructureSchema;
138
143
  export declare var ListFirewallRuleGroupsRequest$: StaticStructureSchema;
@@ -248,6 +253,7 @@ export declare var ImportFirewallDomains$: StaticOperationSchema;
248
253
  export declare var ListFirewallConfigs$: StaticOperationSchema;
249
254
  export declare var ListFirewallDomainLists$: StaticOperationSchema;
250
255
  export declare var ListFirewallDomains$: StaticOperationSchema;
256
+ export declare var ListFirewallRuleDomains$: StaticOperationSchema;
251
257
  export declare var ListFirewallRuleGroupAssociations$: StaticOperationSchema;
252
258
  export declare var ListFirewallRuleGroups$: StaticOperationSchema;
253
259
  export declare var ListFirewallRules$: StaticOperationSchema;
@@ -180,6 +180,10 @@ import {
180
180
  ListFirewallDomainsCommandInput,
181
181
  ListFirewallDomainsCommandOutput,
182
182
  } from "./commands/ListFirewallDomainsCommand";
183
+ import {
184
+ ListFirewallRuleDomainsCommandInput,
185
+ ListFirewallRuleDomainsCommandOutput,
186
+ } from "./commands/ListFirewallRuleDomainsCommand";
183
187
  import {
184
188
  ListFirewallRuleGroupAssociationsCommandInput,
185
189
  ListFirewallRuleGroupAssociationsCommandOutput,
@@ -868,6 +872,19 @@ export interface Route53Resolver {
868
872
  options: Route53ResolverRequestOptions,
869
873
  cb: (err: any, data?: ListFirewallDomainsCommandOutput) => void,
870
874
  ): void;
875
+ listFirewallRuleDomains(
876
+ args: ListFirewallRuleDomainsCommandInput,
877
+ options?: Route53ResolverRequestOptions,
878
+ ): Promise<ListFirewallRuleDomainsCommandOutput>;
879
+ listFirewallRuleDomains(
880
+ args: ListFirewallRuleDomainsCommandInput,
881
+ cb: (err: any, data?: ListFirewallRuleDomainsCommandOutput) => void,
882
+ ): void;
883
+ listFirewallRuleDomains(
884
+ args: ListFirewallRuleDomainsCommandInput,
885
+ options: Route53ResolverRequestOptions,
886
+ cb: (err: any, data?: ListFirewallRuleDomainsCommandOutput) => void,
887
+ ): void;
871
888
  listFirewallRuleGroupAssociations(): Promise<ListFirewallRuleGroupAssociationsCommandOutput>;
872
889
  listFirewallRuleGroupAssociations(
873
890
  args: ListFirewallRuleGroupAssociationsCommandInput,
@@ -1264,6 +1281,13 @@ export interface Route53Resolver {
1264
1281
  Exclude<keyof PaginationConfiguration, "client">
1265
1282
  >,
1266
1283
  ): Paginator<ListFirewallDomainsCommandOutput>;
1284
+ paginateListFirewallRuleDomains(
1285
+ args: ListFirewallRuleDomainsCommandInput,
1286
+ paginationConfig?: Pick<
1287
+ PaginationConfiguration,
1288
+ Exclude<keyof PaginationConfiguration, "client">
1289
+ >,
1290
+ ): Paginator<ListFirewallRuleDomainsCommandOutput>;
1267
1291
  paginateListFirewallRuleGroupAssociations(
1268
1292
  args?: ListFirewallRuleGroupAssociationsCommandInput,
1269
1293
  paginationConfig?: Pick<
@@ -209,6 +209,10 @@ import {
209
209
  ListFirewallDomainsCommandInput,
210
210
  ListFirewallDomainsCommandOutput,
211
211
  } from "./commands/ListFirewallDomainsCommand";
212
+ import {
213
+ ListFirewallRuleDomainsCommandInput,
214
+ ListFirewallRuleDomainsCommandOutput,
215
+ } from "./commands/ListFirewallRuleDomainsCommand";
212
216
  import {
213
217
  ListFirewallRuleGroupAssociationsCommandInput,
214
218
  ListFirewallRuleGroupAssociationsCommandOutput,
@@ -370,6 +374,7 @@ export type ServiceInputTypes =
370
374
  | ListFirewallConfigsCommandInput
371
375
  | ListFirewallDomainListsCommandInput
372
376
  | ListFirewallDomainsCommandInput
377
+ | ListFirewallRuleDomainsCommandInput
373
378
  | ListFirewallRuleGroupAssociationsCommandInput
374
379
  | ListFirewallRuleGroupsCommandInput
375
380
  | ListFirewallRuleTypesCommandInput
@@ -443,6 +448,7 @@ export type ServiceOutputTypes =
443
448
  | ListFirewallConfigsCommandOutput
444
449
  | ListFirewallDomainListsCommandOutput
445
450
  | ListFirewallDomainsCommandOutput
451
+ | ListFirewallRuleDomainsCommandOutput
446
452
  | ListFirewallRuleGroupAssociationsCommandOutput
447
453
  | ListFirewallRuleGroupsCommandOutput
448
454
  | ListFirewallRuleTypesCommandOutput