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 |
Imports domain names from a file into a domain list, for use in a DNS firewall rule group.
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.
Synopsis
- data ImportFirewallDomains = ImportFirewallDomains' {}
- newImportFirewallDomains :: Text -> FirewallDomainImportOperation -> Text -> ImportFirewallDomains
- importFirewallDomains_firewallDomainListId :: Lens' ImportFirewallDomains Text
- importFirewallDomains_operation :: Lens' ImportFirewallDomains FirewallDomainImportOperation
- importFirewallDomains_domainFileUrl :: Lens' ImportFirewallDomains Text
- data ImportFirewallDomainsResponse = ImportFirewallDomainsResponse' {
- status :: Maybe FirewallDomainListStatus
- statusMessage :: Maybe Text
- name :: Maybe Text
- id :: Maybe Text
- httpStatus :: Int
- newImportFirewallDomainsResponse :: Int -> ImportFirewallDomainsResponse
- importFirewallDomainsResponse_status :: Lens' ImportFirewallDomainsResponse (Maybe FirewallDomainListStatus)
- importFirewallDomainsResponse_statusMessage :: Lens' ImportFirewallDomainsResponse (Maybe Text)
- importFirewallDomainsResponse_name :: Lens' ImportFirewallDomainsResponse (Maybe Text)
- importFirewallDomainsResponse_id :: Lens' ImportFirewallDomainsResponse (Maybe Text)
- importFirewallDomainsResponse_httpStatus :: Lens' ImportFirewallDomainsResponse Int
Creating a Request
data ImportFirewallDomains Source #
See: newImportFirewallDomains
smart constructor.
ImportFirewallDomains' | |
|
Instances
newImportFirewallDomains Source #
Create a value of ImportFirewallDomains
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:ImportFirewallDomains'
, importFirewallDomains_firewallDomainListId
- The ID of the domain list that you want to modify with the import
operation.
$sel:operation:ImportFirewallDomains'
, importFirewallDomains_operation
- What you want DNS Firewall to do with the domains that are listed in the
file. This must be set to REPLACE
, which updates the domain list to
exactly match the list in the file.
$sel:domainFileUrl:ImportFirewallDomains'
, importFirewallDomains_domainFileUrl
- The fully qualified URL or URI of the file stored in Amazon Simple
Storage Service (Amazon S3) that contains the list of domains to import.
The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
Request Lenses
importFirewallDomains_firewallDomainListId :: Lens' ImportFirewallDomains Text Source #
The ID of the domain list that you want to modify with the import operation.
importFirewallDomains_operation :: Lens' ImportFirewallDomains FirewallDomainImportOperation Source #
What you want DNS Firewall to do with the domains that are listed in the
file. This must be set to REPLACE
, which updates the domain list to
exactly match the list in the file.
importFirewallDomains_domainFileUrl :: Lens' ImportFirewallDomains Text Source #
The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
Destructuring the Response
data ImportFirewallDomainsResponse Source #
See: newImportFirewallDomainsResponse
smart constructor.
ImportFirewallDomainsResponse' | |
|
Instances
newImportFirewallDomainsResponse Source #
Create a value of ImportFirewallDomainsResponse
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:ImportFirewallDomainsResponse'
, importFirewallDomainsResponse_status
-
$sel:statusMessage:ImportFirewallDomainsResponse'
, importFirewallDomainsResponse_statusMessage
- Additional information about the status of the list, if available.
$sel:name:ImportFirewallDomainsResponse'
, importFirewallDomainsResponse_name
- The name of the domain list.
$sel:id:ImportFirewallDomainsResponse'
, importFirewallDomainsResponse_id
- The Id of the firewall domain list that DNS Firewall just updated.
$sel:httpStatus:ImportFirewallDomainsResponse'
, importFirewallDomainsResponse_httpStatus
- The response's http status code.
Response Lenses
importFirewallDomainsResponse_status :: Lens' ImportFirewallDomainsResponse (Maybe FirewallDomainListStatus) Source #
importFirewallDomainsResponse_statusMessage :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #
Additional information about the status of the list, if available.
importFirewallDomainsResponse_name :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #
The name of the domain list.
importFirewallDomainsResponse_id :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #
The Id of the firewall domain list that DNS Firewall just updated.
importFirewallDomainsResponse_httpStatus :: Lens' ImportFirewallDomainsResponse Int Source #
The response's http status code.