libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Read ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Show ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Generic ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type Rep ImportFirewallDomains :: Type -> Type #

NFData ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Methods

rnf :: ImportFirewallDomains -> () #

Hashable ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

ToJSON ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

AWSRequest ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type AWSResponse 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

type Rep ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

type Rep ImportFirewallDomains = D1 ('MetaData "ImportFirewallDomains" "Amazonka.Route53Resolver.ImportFirewallDomains" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" '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))))
type AWSResponse ImportFirewallDomains Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

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.

Constructors

ImportFirewallDomainsResponse' 

Fields

Instances

Instances details
Eq ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Read ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Show ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Generic ImportFirewallDomainsResponse Source # 
Instance details

Defined in Amazonka.Route53Resolver.ImportFirewallDomains

Associated Types

type Rep ImportFirewallDomainsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "ImportFirewallDomainsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FirewallDomainListStatus)) :*: S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "id") '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:

$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_statusMessage :: Lens' ImportFirewallDomainsResponse (Maybe Text) Source #

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

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

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