Class AutoAllowlistConfig
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe ID of the managed domain list that DNS Firewall creates and maintains for this AutoAllowlist rule.static AutoAllowlistConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe ID of a domain list whose domains DNS Firewall copies into the AutoAllowlist rule's managed domain list after you create the rule.final IntegerThe 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.static Class<? extends AutoAllowlistConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
1to168(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
1to168(7 days). You can't change this value after you create the rule.
-
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
COMPLETEstatus, 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 longerIMPORTING. 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 statusCOMPLETE, orCOMPLETE_IMPORT_FAILEDif 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
COMPLETEstatus, 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 longerIMPORTING. 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 statusCOMPLETE, orCOMPLETE_IMPORT_FAILEDif the copy failed. DNS Firewall uses this value only when you create the rule.
-
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AutoAllowlistConfig.Builder,AutoAllowlistConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-