amazonka-route53-1.6.1: Amazon Route 53 SDK.

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

Network.AWS.Route53.TestDNSAnswer

Contents

Description

Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.

Synopsis

Creating a Request

testDNSAnswer Source #

Creates a value of TestDNSAnswer with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tdaResolverIP - If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East (N. Virginia) Region (us-east-1 ).
  • tdaEDNS0ClientSubnetIP - If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334 .
  • tdaEDNS0ClientSubnetMask - If you specify an IP address for edns0clientsubnetip , you can optionally specify the number of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask , the checking tool will simulate a request from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
  • tdaHostedZoneId - The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.
  • tdaRecordName - The name of the resource record set that you want Amazon Route 53 to simulate a query for.
  • tdaRecordType - The type of the resource record set.

data TestDNSAnswer Source #

Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.

See: testDNSAnswer smart constructor.

Instances
Eq TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Data TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestDNSAnswer -> c TestDNSAnswer #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestDNSAnswer #

toConstr :: TestDNSAnswer -> Constr #

dataTypeOf :: TestDNSAnswer -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TestDNSAnswer) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestDNSAnswer) #

gmapT :: (forall b. Data b => b -> b) -> TestDNSAnswer -> TestDNSAnswer #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestDNSAnswer -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestDNSAnswer -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestDNSAnswer -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestDNSAnswer -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestDNSAnswer -> m TestDNSAnswer #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestDNSAnswer -> m TestDNSAnswer #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestDNSAnswer -> m TestDNSAnswer #

Read TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Show TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Generic TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Associated Types

type Rep TestDNSAnswer :: Type -> Type #

Hashable TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

AWSRequest TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Associated Types

type Rs TestDNSAnswer :: Type #

ToHeaders TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

ToPath TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

ToQuery TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

NFData TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Methods

rnf :: TestDNSAnswer -> () #

type Rep TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

type Rep TestDNSAnswer = D1 (MetaData "TestDNSAnswer" "Network.AWS.Route53.TestDNSAnswer" "amazonka-route53-1.6.1-FKj3w6bny4r4NCyL7bsSVl" False) (C1 (MetaCons "TestDNSAnswer'" PrefixI True) ((S1 (MetaSel (Just "_tdaResolverIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tdaEDNS0ClientSubnetIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tdaEDNS0ClientSubnetMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_tdaHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceId) :*: (S1 (MetaSel (Just "_tdaRecordName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tdaRecordType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RecordType)))))
type Rs TestDNSAnswer Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Request Lenses

tdaResolverIP :: Lens' TestDNSAnswer (Maybe Text) Source #

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East (N. Virginia) Region (us-east-1 ).

tdaEDNS0ClientSubnetIP :: Lens' TestDNSAnswer (Maybe Text) Source #

If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334 .

tdaEDNS0ClientSubnetMask :: Lens' TestDNSAnswer (Maybe Text) Source #

If you specify an IP address for edns0clientsubnetip , you can optionally specify the number of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask , the checking tool will simulate a request from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.

tdaHostedZoneId :: Lens' TestDNSAnswer ResourceId Source #

The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.

tdaRecordName :: Lens' TestDNSAnswer Text Source #

The name of the resource record set that you want Amazon Route 53 to simulate a query for.

tdaRecordType :: Lens' TestDNSAnswer RecordType Source #

The type of the resource record set.

Destructuring the Response

testDNSAnswerResponse Source #

Creates a value of TestDNSAnswerResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tdarsResponseStatus - -- | The response status code.
  • tdarsNameserver - The Amazon Route 53 name server used to respond to the request.
  • tdarsRecordName - The name of the resource record set that you submitted a request for.
  • tdarsRecordType - The type of the resource record set that you submitted a request for.
  • tdarsRecordData - A list that contains values that Amazon Route 53 returned for this resource record set.
  • tdarsResponseCode - A code that indicates whether the request is valid or not. The most common response code is NOERROR , meaning that the request is valid. If the response is not valid, Amazon Route 53 returns a response code that describes the error. For a list of possible response codes, see DNS RCODES on the IANA website.
  • tdarsProtocol - The protocol that Amazon Route 53 used to respond to the request, either UDP or TCP .

data TestDNSAnswerResponse Source #

A complex type that contains the response to a TestDNSAnswer request.

See: testDNSAnswerResponse smart constructor.

Instances
Eq TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Data TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestDNSAnswerResponse -> c TestDNSAnswerResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestDNSAnswerResponse #

toConstr :: TestDNSAnswerResponse -> Constr #

dataTypeOf :: TestDNSAnswerResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TestDNSAnswerResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestDNSAnswerResponse) #

gmapT :: (forall b. Data b => b -> b) -> TestDNSAnswerResponse -> TestDNSAnswerResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestDNSAnswerResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestDNSAnswerResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestDNSAnswerResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestDNSAnswerResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestDNSAnswerResponse -> m TestDNSAnswerResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestDNSAnswerResponse -> m TestDNSAnswerResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestDNSAnswerResponse -> m TestDNSAnswerResponse #

Read TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Show TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Generic TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Associated Types

type Rep TestDNSAnswerResponse :: Type -> Type #

NFData TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

Methods

rnf :: TestDNSAnswerResponse -> () #

type Rep TestDNSAnswerResponse Source # 
Instance details

Defined in Network.AWS.Route53.TestDNSAnswer

type Rep TestDNSAnswerResponse = D1 (MetaData "TestDNSAnswerResponse" "Network.AWS.Route53.TestDNSAnswer" "amazonka-route53-1.6.1-FKj3w6bny4r4NCyL7bsSVl" False) (C1 (MetaCons "TestDNSAnswerResponse'" PrefixI True) ((S1 (MetaSel (Just "_tdarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_tdarsNameserver") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tdarsRecordName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_tdarsRecordType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RecordType) :*: S1 (MetaSel (Just "_tdarsRecordData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) :*: (S1 (MetaSel (Just "_tdarsResponseCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tdarsProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

Response Lenses

tdarsResponseStatus :: Lens' TestDNSAnswerResponse Int Source #

  • - | The response status code.

tdarsNameserver :: Lens' TestDNSAnswerResponse Text Source #

The Amazon Route 53 name server used to respond to the request.

tdarsRecordName :: Lens' TestDNSAnswerResponse Text Source #

The name of the resource record set that you submitted a request for.

tdarsRecordType :: Lens' TestDNSAnswerResponse RecordType Source #

The type of the resource record set that you submitted a request for.

tdarsRecordData :: Lens' TestDNSAnswerResponse [Text] Source #

A list that contains values that Amazon Route 53 returned for this resource record set.

tdarsResponseCode :: Lens' TestDNSAnswerResponse Text Source #

A code that indicates whether the request is valid or not. The most common response code is NOERROR , meaning that the request is valid. If the response is not valid, Amazon Route 53 returns a response code that describes the error. For a list of possible response codes, see DNS RCODES on the IANA website.

tdarsProtocol :: Lens' TestDNSAnswerResponse Text Source #

The protocol that Amazon Route 53 used to respond to the request, either UDP or TCP .