Skip to content

FirewallRuleDomain

Source code in docs_src/capo_route53resolver/types/firewall_rule_domain.py
class FirewallRuleDomain(TypedDict, closed=True):
    domain_name: NotRequired[
        "capo_route53resolver.types.firewall_domain_name.FirewallDomainName"
    ]
    """<p>The domain name.</p>"""
    domain_status: NotRequired[
        "capo_route53resolver.types.firewall_domain_status.FirewallDomainStatus"
    ]
    """<p>The review status of the domain:</p> <ul> <li> <p> <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> </li> <li> <p> <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> </li> <li> <p> <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> </li> </ul>"""
    last24_hour_requests: NotRequired[
        "capo_route53resolver.types.firewall_rule_domain_request_count.FirewallRuleDomainRequestCount"
    ]
    """<p>The number of DNS requests observed for this domain in the last 24 hours.</p>"""
    total_requests: NotRequired[
        "capo_route53resolver.types.firewall_rule_domain_request_count.FirewallRuleDomainRequestCount"
    ]
    """<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>"""
    added_time: NotRequired[
        "capo_route53resolver.types.rfc3339_time_string.Rfc3339TimeString"
    ]
    """<p>The date and time when the domain was first observed and added, in RFC 3339 format.</p>"""

added_time instance-attribute

added_time: NotRequired[Rfc3339TimeString]

The date and time when the domain was first observed and added, in RFC 3339 format.

domain_name instance-attribute

domain_name: NotRequired[FirewallDomainName]

The domain name.

domain_status instance-attribute

domain_status: NotRequired[FirewallDomainStatus]

The review status of the domain:

  • OBSERVED - 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 REMOVE. 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 ALLOWED within about a day after the rule is created. Observed domains aren't evaluated for safety, so review them before you allow them.

  • ALLOWED - 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 ListFirewallRuleDomains with FirewallDomainListId.

  • DENIED - The domain was denied with the DENY operation of UpdateFirewallDomains, 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 ALLOWED.

last24_hour_requests instance-attribute

last24_hour_requests: NotRequired[FirewallRuleDomainRequestCount]

The number of DNS requests observed for this domain in the last 24 hours.

total_requests instance-attribute

total_requests: NotRequired[FirewallRuleDomainRequestCount]

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.