Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Undocumented operation.
- testDNSAnswer :: Text -> Text -> RecordType -> TestDNSAnswer
- data TestDNSAnswer
- tdaResolverIP :: Lens' TestDNSAnswer (Maybe Text)
- tdaEDNS0ClientSubnetIP :: Lens' TestDNSAnswer (Maybe Text)
- tdaEDNS0ClientSubnetMask :: Lens' TestDNSAnswer (Maybe Text)
- tdaHostedZoneId :: Lens' TestDNSAnswer Text
- tdaRecordName :: Lens' TestDNSAnswer Text
- tdaRecordType :: Lens' TestDNSAnswer RecordType
- testDNSAnswerResponse :: Int -> Text -> Text -> RecordType -> Text -> Text -> TestDNSAnswerResponse
- data TestDNSAnswerResponse
- tdarsResponseStatus :: Lens' TestDNSAnswerResponse Int
- tdarsNameserver :: Lens' TestDNSAnswerResponse Text
- tdarsRecordName :: Lens' TestDNSAnswerResponse Text
- tdarsRecordType :: Lens' TestDNSAnswerResponse RecordType
- tdarsRecordData :: Lens' TestDNSAnswerResponse [Text]
- tdarsResponseCode :: Lens' TestDNSAnswerResponse Text
- tdarsProtocol :: Lens' TestDNSAnswerResponse Text
Creating a Request
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:
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' foredns0clientsubnetip
and '24' foredns0clientsubnetmask
, the checking tool will simulate a request from '192.0.2.0\/24'. The default value is 24 bits.
See: testDNSAnswer
smart constructor.
Request Lenses
tdaResolverIP :: Lens' TestDNSAnswer (Maybe Text) Source #
Undocumented member.
tdaEDNS0ClientSubnetIP :: Lens' TestDNSAnswer (Maybe Text) Source #
Undocumented member.
tdaEDNS0ClientSubnetMask :: Lens' TestDNSAnswer (Maybe Text) Source #
Undocumented member.
tdaHostedZoneId :: Lens' TestDNSAnswer Text Source #
Undocumented member.
tdaRecordName :: Lens' TestDNSAnswer Text Source #
Undocumented member.
tdaRecordType :: Lens' TestDNSAnswer RecordType Source #
Undocumented member.
Destructuring the Response
testDNSAnswerResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> RecordType | |
-> Text | |
-> Text | |
-> TestDNSAnswerResponse |
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:
data TestDNSAnswerResponse Source #
A complex type that contains the response to a TestDNSAnswer
request.
See: testDNSAnswerResponse
smart constructor.
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
.