amazonka-route53-1.4.5: Amazon Route 53 SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 region.
  • tdaEDNS0ClientSubnetIP - If the resolver that you specified for resolverip supports EDNS0, specify the IP address of a client in the applicable location.
  • 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.
  • 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.

Parameters

  • hostedzoneid * The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.
  • recordname * The name of the resource record set that you want Amazon Route 53 to simulate a query for.
  • recordtype * The type of the resource record set.
  • resolverip (optional) * 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 region.
  • edns0clientsubnetip (optional) * If the resolver that you specified for resolverip supports EDNS0, specify the IP address of a client in the applicable location.
  • edns0clientsubnetmask (optional) * 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.

See: testDNSAnswer smart constructor.

Instances

Eq TestDNSAnswer Source # 
Data TestDNSAnswer Source # 

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 # 
Show TestDNSAnswer Source # 
Generic TestDNSAnswer Source # 

Associated Types

type Rep TestDNSAnswer :: * -> * #

Hashable TestDNSAnswer Source # 
NFData TestDNSAnswer Source # 

Methods

rnf :: TestDNSAnswer -> () #

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

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 region.

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

If the resolver that you specified for resolverip supports EDNS0, specify the IP address of a client in the applicable location.

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.

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 # 
Data TestDNSAnswerResponse Source # 

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 # 
Show TestDNSAnswerResponse Source # 
Generic TestDNSAnswerResponse Source # 
NFData TestDNSAnswerResponse Source # 

Methods

rnf :: TestDNSAnswerResponse -> () #

type Rep TestDNSAnswerResponse Source # 
type Rep TestDNSAnswerResponse = D1 (MetaData "TestDNSAnswerResponse" "Network.AWS.Route53.TestDNSAnswer" "amazonka-route53-1.4.5-DoQ7bXPvDC1HwWocjSAILy" False) (C1 (MetaCons "TestDNSAnswerResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tdarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "_tdarsNameserver") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tdarsRecordName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tdarsRecordType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RecordType)) (S1 (MetaSel (Just Symbol "_tdarsRecordData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_tdarsResponseCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_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 .