amazonka-route53resolver-2.0: Amazon Route 53 Resolver SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Route53Resolver.ImportFirewallDomains

Description

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

Creating a Request

data ImportFirewallDomains Source #

See: newImportFirewallDomains smart constructor.

Constructors

ImportFirewallDomains' 

Fields

  • firewallDomainListId :: Text

    The ID of the domain list that you want to modify with the import operation.

  • operation :: FirewallDomainImportOperation

    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.

  • domainFileUrl :: Text

    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.

Instances

Instances details
ToJSON ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

ToHeaders ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

ToPath ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

ToQuery ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

AWSRequest ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type AWSResponse ImportFirewallDomains #

Generic ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type Rep ImportFirewallDomains :: Type -> Type #

Read ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Show ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

NFData ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Methods

rnf :: ImportFirewallDomains -> () #

Eq ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Hashable ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type AWSResponse ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type Rep ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type Rep ImportFirewallDomains = D1 ('MetaData "ImportFirewallDomains" "Amazonka.Route53Resolver.ImportFirewallDomains" "amazonka-route53resolver-2.0-GFukx1WIgCPEXMh1BiYlp6" 'False) (C1 ('MetaCons "ImportFirewallDomains'" 'PrefixI 'True) (S1 ('MetaSel ('Just "firewallDomainListId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FirewallDomainImportOperation) :*: S1 ('MetaSel ('Just "domainFileUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:

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.

Constructors

ImportFirewallDomainsResponse' 

Fields

Instances

Instances details
Generic ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type Rep ImportFirewallDomainsResponse :: Type -> Type #

Read ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Show ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

NFData ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Eq ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type Rep ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type Rep ImportFirewallDomainsResponse = D1 ('MetaData "ImportFirewallDomainsResponse" "Amazonka.Route53Resolver.ImportFirewallDomains" "amazonka-route53resolver-2.0-GFukx1WIgCPEXMh1BiYlp6" 'False) (C1 ('MetaCons "ImportFirewallDomainsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FirewallDomainListStatus)) :*: (S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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:

ImportFirewallDomainsResponse, importFirewallDomainsResponse_id - The Id of the firewall domain list that DNS Firewall just updated.

ImportFirewallDomainsResponse, importFirewallDomainsResponse_name - The name of the domain list.

ImportFirewallDomainsResponse, importFirewallDomainsResponse_status -

ImportFirewallDomainsResponse, importFirewallDomainsResponse_statusMessage - Additional information about the status of the list, if available.

$sel:httpStatus:ImportFirewallDomainsResponse', importFirewallDomainsResponse_httpStatus - The response's http status code.

Response Lenses

importFirewallDomainsResponse_id :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #

The Id of the firewall domain list that DNS Firewall just updated.

importFirewallDomainsResponse_statusMessage :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #

Additional information about the status of the list, if available.