| 1 | |||
| 2 | package Paws::Route53::TestDNSAnswer; | ||
| 3 | use Moose; | ||
| 4 | has EDNS0ClientSubnetIP => (is => 'ro', isa => 'Str', query_name => 'edns0clientsubnetip', traits => ['ParamInQuery']); | ||
| 5 | has EDNS0ClientSubnetMask => (is => 'ro', isa => 'Str', query_name => 'edns0clientsubnetmask', traits => ['ParamInQuery']); | ||
| 6 | has HostedZoneId => (is => 'ro', isa => 'Str', query_name => 'hostedzoneid', traits => ['ParamInQuery'], required => 1); | ||
| 7 | has RecordName => (is => 'ro', isa => 'Str', query_name => 'recordname', traits => ['ParamInQuery'], required => 1); | ||
| 8 | has RecordType => (is => 'ro', isa => 'Str', query_name => 'recordtype', traits => ['ParamInQuery'], required => 1); | ||
| 9 | has ResolverIP => (is => 'ro', isa => 'Str', query_name => 'resolverip', traits => ['ParamInQuery']); | ||
| 10 | |||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'TestDNSAnswer'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/testdnsanswer'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::TestDNSAnswerResponse'); | ||
| 18 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 19 | |||
| 20 | |||
| 21 | 1; | ||
| 22 | |||
| 23 | ### main pod documentation begin ### | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Paws::Route53::TestDNSAnswer - Arguments for method TestDNSAnswer on L<Paws::Route53> | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This class represents the parameters used for calling the method TestDNSAnswer on the | ||
| 32 | L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class | ||
| 33 | as arguments to method TestDNSAnswer. | ||
| 34 | |||
| 35 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to TestDNSAnswer. | ||
| 36 | |||
| 37 | =head1 SYNOPSIS | ||
| 38 | |||
| 39 | my $route53 = Paws->service('Route53'); | ||
| 40 | my $TestDNSAnswerResponse = $route53->TestDNSAnswer( | ||
| 41 | HostedZoneId => 'MyResourceId', | ||
| 42 | RecordName => 'MyDNSName', | ||
| 43 | RecordType => 'SOA', | ||
| 44 | EDNS0ClientSubnetIP => 'MyIPAddress', # OPTIONAL | ||
| 45 | EDNS0ClientSubnetMask => 'MySubnetMask', # OPTIONAL | ||
| 46 | ResolverIP => 'MyIPAddress', # OPTIONAL | ||
| 47 | ); | ||
| 48 | |||
| 49 | # Results: | ||
| 50 | my $Nameserver = $TestDNSAnswerResponse->Nameserver; | ||
| 51 | my $Protocol = $TestDNSAnswerResponse->Protocol; | ||
| 52 | my $RecordData = $TestDNSAnswerResponse->RecordData; | ||
| 53 | my $RecordName = $TestDNSAnswerResponse->RecordName; | ||
| 54 | my $RecordType = $TestDNSAnswerResponse->RecordType; | ||
| 55 | my $ResponseCode = $TestDNSAnswerResponse->ResponseCode; | ||
| 56 | |||
| 57 | # Returns a L<Paws::Route53::TestDNSAnswerResponse> object. | ||
| 58 | |||
| 59 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 60 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/TestDNSAnswer> | ||
| 61 | |||
| 62 | =head1 ATTRIBUTES | ||
| 63 | |||
| 64 | |||
| 65 | =head2 EDNS0ClientSubnetIP => Str | ||
| 66 | |||
| 67 | If the resolver that you specified for resolverip supports EDNS0, | ||
| 68 | specify the IPv4 or IPv6 address of a client in the applicable | ||
| 69 | location, for example, C<192.0.2.44> or | ||
| 70 | C<2001:db8:85a3::8a2e:370:7334>. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 EDNS0ClientSubnetMask => Str | ||
| 75 | |||
| 76 | If you specify an IP address for C<edns0clientsubnetip>, you can | ||
| 77 | optionally specify the number of bits of the IP address that you want | ||
| 78 | the checking tool to include in the DNS query. For example, if you | ||
| 79 | specify C<192.0.2.44> for C<edns0clientsubnetip> and C<24> for | ||
| 80 | C<edns0clientsubnetmask>, the checking tool will simulate a request | ||
| 81 | from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and | ||
| 82 | 64 bits for IPv6 addresses. | ||
| 83 | |||
| 84 | The range of valid values depends on whether C<edns0clientsubnetip> is | ||
| 85 | an IPv4 or an IPv6 address: | ||
| 86 | |||
| 87 | =over | ||
| 88 | |||
| 89 | =item * | ||
| 90 | |||
| 91 | B<IPv4>: Specify a value between 0 and 32 | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | B<IPv6>: Specify a value between 0 and 128 | ||
| 96 | |||
| 97 | =back | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =head2 B<REQUIRED> HostedZoneId => Str | ||
| 103 | |||
| 104 | The ID of the hosted zone that you want Amazon Route 53 to simulate a | ||
| 105 | query for. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =head2 B<REQUIRED> RecordName => Str | ||
| 110 | |||
| 111 | The name of the resource record set that you want Amazon Route 53 to | ||
| 112 | simulate a query for. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 B<REQUIRED> RecordType => Str | ||
| 117 | |||
| 118 | The type of the resource record set. | ||
| 119 | |||
| 120 | Valid values are: C<"SOA">, C<"A">, C<"TXT">, C<"NS">, C<"CNAME">, C<"MX">, C<"NAPTR">, C<"PTR">, C<"SRV">, C<"SPF">, C<"AAAA">, C<"CAA">, C<"DS"> | ||
| 121 | |||
| 122 | =head2 ResolverIP => Str | ||
| 123 | |||
| 124 | If you want to simulate a request from a specific DNS resolver, specify | ||
| 125 | the IP address for that resolver. If you omit this value, | ||
| 126 | C<TestDnsAnswer> uses the IP address of a DNS resolver in the AWS US | ||
| 127 | East (N. Virginia) Region (C<us-east-1>). | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | =head1 SEE ALSO | ||
| 133 | |||
| 134 | This class forms part of L<Paws>, documenting arguments for method TestDNSAnswer in L<Paws::Route53> | ||
| 135 | |||
| 136 | =head1 BUGS and CONTRIBUTIONS | ||
| 137 | |||
| 138 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 139 | |||
| 140 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 141 | |||
| 142 | =cut | ||
| 143 |