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 |
Updates the firewall domain list from an array of domain specifications.
Synopsis
- data UpdateFirewallDomains = UpdateFirewallDomains' {}
- newUpdateFirewallDomains :: Text -> FirewallDomainUpdateOperation -> UpdateFirewallDomains
- updateFirewallDomains_firewallDomainListId :: Lens' UpdateFirewallDomains Text
- updateFirewallDomains_operation :: Lens' UpdateFirewallDomains FirewallDomainUpdateOperation
- updateFirewallDomains_domains :: Lens' UpdateFirewallDomains [Text]
- data UpdateFirewallDomainsResponse = UpdateFirewallDomainsResponse' {
- status :: Maybe FirewallDomainListStatus
- statusMessage :: Maybe Text
- name :: Maybe Text
- id :: Maybe Text
- httpStatus :: Int
- newUpdateFirewallDomainsResponse :: Int -> UpdateFirewallDomainsResponse
- updateFirewallDomainsResponse_status :: Lens' UpdateFirewallDomainsResponse (Maybe FirewallDomainListStatus)
- updateFirewallDomainsResponse_statusMessage :: Lens' UpdateFirewallDomainsResponse (Maybe Text)
- updateFirewallDomainsResponse_name :: Lens' UpdateFirewallDomainsResponse (Maybe Text)
- updateFirewallDomainsResponse_id :: Lens' UpdateFirewallDomainsResponse (Maybe Text)
- updateFirewallDomainsResponse_httpStatus :: Lens' UpdateFirewallDomainsResponse Int
Creating a Request
data UpdateFirewallDomains Source #
See: newUpdateFirewallDomains
smart constructor.
UpdateFirewallDomains' | |
|
Instances
newUpdateFirewallDomains Source #
Create a value of UpdateFirewallDomains
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:firewallDomainListId:UpdateFirewallDomains'
, updateFirewallDomains_firewallDomainListId
- The ID of the domain list whose domains you want to update.
$sel:operation:UpdateFirewallDomains'
, updateFirewallDomains_operation
- What you want DNS Firewall to do with the domains that you are
providing:
ADD
- Add the domains to the ones that are already in the domain list.REMOVE
- Search the domain list for the domains and remove them from the list.REPLACE
- Update the domain list to exactly match the list that you are providing.
$sel:domains:UpdateFirewallDomains'
, updateFirewallDomains_domains
- A list of domains to use in the update operation.
Each domain specification in your domain list must satisfy the following requirements:
- It can optionally start with
*
(asterisk). - With the exception of the optional starting asterisk, it must only
contain the following characters:
A-Z
,a-z
,0-9
,-
(hyphen). - It must be from 1-255 characters in length.
Request Lenses
updateFirewallDomains_firewallDomainListId :: Lens' UpdateFirewallDomains Text Source #
The ID of the domain list whose domains you want to update.
updateFirewallDomains_operation :: Lens' UpdateFirewallDomains FirewallDomainUpdateOperation Source #
What you want DNS Firewall to do with the domains that you are providing:
ADD
- Add the domains to the ones that are already in the domain list.REMOVE
- Search the domain list for the domains and remove them from the list.REPLACE
- Update the domain list to exactly match the list that you are providing.
updateFirewallDomains_domains :: Lens' UpdateFirewallDomains [Text] Source #
A list of domains to use in the update operation.
Each domain specification in your domain list must satisfy the following requirements:
- It can optionally start with
*
(asterisk). - With the exception of the optional starting asterisk, it must only
contain the following characters:
A-Z
,a-z
,0-9
,-
(hyphen). - It must be from 1-255 characters in length.
Destructuring the Response
data UpdateFirewallDomainsResponse Source #
See: newUpdateFirewallDomainsResponse
smart constructor.
UpdateFirewallDomainsResponse' | |
|
Instances
newUpdateFirewallDomainsResponse Source #
Create a value of UpdateFirewallDomainsResponse
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:status:UpdateFirewallDomainsResponse'
, updateFirewallDomainsResponse_status
-
$sel:statusMessage:UpdateFirewallDomainsResponse'
, updateFirewallDomainsResponse_statusMessage
- Additional information about the status of the list, if available.
$sel:name:UpdateFirewallDomainsResponse'
, updateFirewallDomainsResponse_name
- The name of the domain list.
$sel:id:UpdateFirewallDomainsResponse'
, updateFirewallDomainsResponse_id
- The ID of the firewall domain list that DNS Firewall just updated.
$sel:httpStatus:UpdateFirewallDomainsResponse'
, updateFirewallDomainsResponse_httpStatus
- The response's http status code.
Response Lenses
updateFirewallDomainsResponse_status :: Lens' UpdateFirewallDomainsResponse (Maybe FirewallDomainListStatus) Source #
updateFirewallDomainsResponse_statusMessage :: Lens' UpdateFirewallDomainsResponse (Maybe Text) Source #
Additional information about the status of the list, if available.
updateFirewallDomainsResponse_name :: Lens' UpdateFirewallDomainsResponse (Maybe Text) Source #
The name of the domain list.
updateFirewallDomainsResponse_id :: Lens' UpdateFirewallDomainsResponse (Maybe Text) Source #
The ID of the firewall domain list that DNS Firewall just updated.
updateFirewallDomainsResponse_httpStatus :: Lens' UpdateFirewallDomainsResponse Int Source #
The response's http status code.