Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data FirewallRule = FirewallRule' {
- creationTime :: Maybe Text
- blockOverrideDnsType :: Maybe BlockOverrideDnsType
- firewallRuleGroupId :: Maybe Text
- priority :: Maybe Int
- blockResponse :: Maybe BlockResponse
- creatorRequestId :: Maybe Text
- modificationTime :: Maybe Text
- action :: Maybe Action
- blockOverrideTtl :: Maybe Int
- name :: Maybe Text
- blockOverrideDomain :: Maybe Text
- firewallDomainListId :: Maybe Text
- newFirewallRule :: FirewallRule
- firewallRule_creationTime :: Lens' FirewallRule (Maybe Text)
- firewallRule_blockOverrideDnsType :: Lens' FirewallRule (Maybe BlockOverrideDnsType)
- firewallRule_firewallRuleGroupId :: Lens' FirewallRule (Maybe Text)
- firewallRule_priority :: Lens' FirewallRule (Maybe Int)
- firewallRule_blockResponse :: Lens' FirewallRule (Maybe BlockResponse)
- firewallRule_creatorRequestId :: Lens' FirewallRule (Maybe Text)
- firewallRule_modificationTime :: Lens' FirewallRule (Maybe Text)
- firewallRule_action :: Lens' FirewallRule (Maybe Action)
- firewallRule_blockOverrideTtl :: Lens' FirewallRule (Maybe Int)
- firewallRule_name :: Lens' FirewallRule (Maybe Text)
- firewallRule_blockOverrideDomain :: Lens' FirewallRule (Maybe Text)
- firewallRule_firewallDomainListId :: Lens' FirewallRule (Maybe Text)
Documentation
data FirewallRule Source #
A single firewall rule in a rule group.
See: newFirewallRule
smart constructor.
FirewallRule' | |
|
Instances
newFirewallRule :: FirewallRule Source #
Create a value of FirewallRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:creationTime:FirewallRule'
, firewallRule_creationTime
- The date and time that the rule was created, in Unix time format and
Coordinated Universal Time (UTC).
$sel:blockOverrideDnsType:FirewallRule'
, firewallRule_blockOverrideDnsType
- The DNS record's type. This determines the format of the record value
that you provided in BlockOverrideDomain
. Used for the rule action
BLOCK
with a BlockResponse
setting of OVERRIDE
.
$sel:firewallRuleGroupId:FirewallRule'
, firewallRule_firewallRuleGroupId
- The unique identifier of the firewall rule group of the rule.
$sel:priority:FirewallRule'
, firewallRule_priority
- The priority of the rule in the rule group. This value must be unique
within the rule group. DNS Firewall processes the rules in a rule group
by order of priority, starting from the lowest setting.
$sel:blockResponse:FirewallRule'
, firewallRule_blockResponse
- The way that you want DNS Firewall to block the request. Used for the
rule action setting BLOCK
.
NODATA
- Respond indicating that the query was successful, but no response is available for it.NXDOMAIN
- Respond indicating that the domain name that's in the query doesn't exist.OVERRIDE
- Provide a custom override in the response. This option requires custom handling details in the rule'sBlockOverride*
settings.
$sel:creatorRequestId:FirewallRule'
, firewallRule_creatorRequestId
- A unique string defined by you to identify the request. This allows you
to retry failed requests without the risk of executing the operation
twice. This can be any unique string, for example, a timestamp.
$sel:modificationTime:FirewallRule'
, firewallRule_modificationTime
- The date and time that the rule was last modified, in Unix time format
and Coordinated Universal Time (UTC).
$sel:action:FirewallRule'
, firewallRule_action
- The action that DNS Firewall should take on a DNS query when it matches
one of the domains in the rule's domain list:
ALLOW
- Permit the request to go through.ALERT
- Permit the request to go through but send an alert to the logs.BLOCK
- Disallow the request. If this is specified, additional handling details are provided in the rule'sBlockResponse
setting.
$sel:blockOverrideTtl:FirewallRule'
, firewallRule_blockOverrideTtl
- The recommended amount of time, in seconds, for the DNS resolver or web
browser to cache the provided override record. Used for the rule action
BLOCK
with a BlockResponse
setting of OVERRIDE
.
$sel:name:FirewallRule'
, firewallRule_name
- The name of the rule.
$sel:blockOverrideDomain:FirewallRule'
, firewallRule_blockOverrideDomain
- The custom DNS record to send back in response to the query. Used for
the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
$sel:firewallDomainListId:FirewallRule'
, firewallRule_firewallDomainListId
- The ID of the domain list that's used in the rule.
firewallRule_creationTime :: Lens' FirewallRule (Maybe Text) Source #
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
firewallRule_blockOverrideDnsType :: Lens' FirewallRule (Maybe BlockOverrideDnsType) Source #
The DNS record's type. This determines the format of the record value
that you provided in BlockOverrideDomain
. Used for the rule action
BLOCK
with a BlockResponse
setting of OVERRIDE
.
firewallRule_firewallRuleGroupId :: Lens' FirewallRule (Maybe Text) Source #
The unique identifier of the firewall rule group of the rule.
firewallRule_priority :: Lens' FirewallRule (Maybe Int) Source #
The priority of the rule in the rule group. This value must be unique within the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
firewallRule_blockResponse :: Lens' FirewallRule (Maybe BlockResponse) Source #
The way that you want DNS Firewall to block the request. Used for the
rule action setting BLOCK
.
NODATA
- Respond indicating that the query was successful, but no response is available for it.NXDOMAIN
- Respond indicating that the domain name that's in the query doesn't exist.OVERRIDE
- Provide a custom override in the response. This option requires custom handling details in the rule'sBlockOverride*
settings.
firewallRule_creatorRequestId :: Lens' FirewallRule (Maybe Text) Source #
A unique string defined by you to identify the request. This allows you to retry failed requests without the risk of executing the operation twice. This can be any unique string, for example, a timestamp.
firewallRule_modificationTime :: Lens' FirewallRule (Maybe Text) Source #
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
firewallRule_action :: Lens' FirewallRule (Maybe Action) Source #
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
ALLOW
- Permit the request to go through.ALERT
- Permit the request to go through but send an alert to the logs.BLOCK
- Disallow the request. If this is specified, additional handling details are provided in the rule'sBlockResponse
setting.
firewallRule_blockOverrideTtl :: Lens' FirewallRule (Maybe Int) Source #
The recommended amount of time, in seconds, for the DNS resolver or web
browser to cache the provided override record. Used for the rule action
BLOCK
with a BlockResponse
setting of OVERRIDE
.
firewallRule_name :: Lens' FirewallRule (Maybe Text) Source #
The name of the rule.
firewallRule_blockOverrideDomain :: Lens' FirewallRule (Maybe Text) Source #
The custom DNS record to send back in response to the query. Used for
the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
firewallRule_firewallDomainListId :: Lens' FirewallRule (Maybe Text) Source #
The ID of the domain list that's used in the rule.