Class AutoAllowlistConfig

java.lang.Object
software.amazon.awssdk.services.route53resolver.model.AutoAllowlistConfig
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AutoAllowlistConfig.Builder,AutoAllowlistConfig>

@Generated("software.amazon.awssdk:codegen") public final class AutoAllowlistConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoAllowlistConfig.Builder,AutoAllowlistConfig>

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 ListFirewallRuleDomains. To approve or deny them, call UpdateFirewallDomains on the rule's managed domain list.

An AutoAllowlist rule uses the ALLOW action, applies to all query types, and always inspects redirection domains. You can't set Qtype, FirewallDomainRedirectionAction, BlockResponse, or the DNS Firewall Advanced settings on it. A rule group can contain one AutoAllowlist rule.

A new AutoAllowlist rule has status CREATING 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 COMPLETE, the observed domains and request counts are partial and UpdateFirewallRule rejects the rule. You can approve, remove, and deny domains while the rule is CREATING.

See Also:
  • Method Details

    • initialDataTimeframeHours

      public final Integer initialDataTimeframeHours()

      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 1 to 168 (7 days). You can't change this value after you create the rule.

      Returns:
      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 1 to 168 (7 days). You can't change this value after you create the rule.
    • importFromFirewallDomainListId

      public final String importFromFirewallDomainListId()

      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 COMPLETE 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 IMPORTING. 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 COMPLETE, or COMPLETE_IMPORT_FAILED if the copy failed. DNS Firewall uses this value only when you create the rule.

      Returns:
      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 COMPLETE 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 IMPORTING. 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 COMPLETE , or COMPLETE_IMPORT_FAILED if the copy failed. DNS Firewall uses this value only when you create the rule.
    • autoAllowlistFirewallDomainListId

      public final String autoAllowlistFirewallDomainListId()

      The ID of the managed domain list that DNS Firewall creates and maintains for this AutoAllowlist rule. The list is named AutoAllowlist - 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.

      Returns:
      The ID of the managed domain list that DNS Firewall creates and maintains for this AutoAllowlist rule. The list is named AutoAllowlist - 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.
    • toBuilder

      public AutoAllowlistConfig.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<AutoAllowlistConfig.Builder,AutoAllowlistConfig>
      Returns:
      a builder for type T
    • builder

      public static AutoAllowlistConfig.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AutoAllowlistConfig.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.