« blib/lib/Paws/Route53Resolver/CreateResolverQueryLogConfigResponse.pm
↑ Summary
blib/lib/Paws/Route53Resolver/CreateResolverRuleResponse.pm »
| 1 | |||
| 2 | package Paws::Route53Resolver::CreateResolverRule; | ||
| 3 | use Moose; | ||
| 4 | has CreatorRequestId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has DomainName => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Name => (is => 'ro', isa => 'Str'); | ||
| 7 | has ResolverEndpointId => (is => 'ro', isa => 'Str'); | ||
| 8 | has RuleType => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Route53Resolver::Tag]'); | ||
| 10 | has TargetIps => (is => 'ro', isa => 'ArrayRef[Paws::Route53Resolver::TargetAddress]'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateResolverRule'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53Resolver::CreateResolverRuleResponse'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::Route53Resolver::CreateResolverRule - Arguments for method CreateResolverRule on L<Paws::Route53Resolver> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateResolverRule on the | ||
| 28 | L<Amazon Route 53 Resolver|Paws::Route53Resolver> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateResolverRule. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateResolverRule. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $route53resolver = Paws->service('Route53Resolver'); | ||
| 36 | my $CreateResolverRuleResponse = $route53resolver->CreateResolverRule( | ||
| 37 | CreatorRequestId => 'MyCreatorRequestId', | ||
| 38 | DomainName => 'MyDomainName', | ||
| 39 | RuleType => 'FORWARD', | ||
| 40 | Name => 'MyName', # OPTIONAL | ||
| 41 | ResolverEndpointId => 'MyResourceId', # OPTIONAL | ||
| 42 | Tags => [ | ||
| 43 | { | ||
| 44 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 45 | Value => 'MyTagValue', # max: 256 | ||
| 46 | |||
| 47 | }, | ||
| 48 | ... | ||
| 49 | ], # OPTIONAL | ||
| 50 | TargetIps => [ | ||
| 51 | { | ||
| 52 | Ip => 'MyIp', # min: 7, max: 36 | ||
| 53 | Port => 1, # max: 65535; OPTIONAL | ||
| 54 | }, | ||
| 55 | ... | ||
| 56 | ], # OPTIONAL | ||
| 57 | ); | ||
| 58 | |||
| 59 | # Results: | ||
| 60 | my $ResolverRule = $CreateResolverRuleResponse->ResolverRule; | ||
| 61 | |||
| 62 | # Returns a L<Paws::Route53Resolver::CreateResolverRuleResponse> object. | ||
| 63 | |||
| 64 | 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. | ||
| 65 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53resolver/CreateResolverRule> | ||
| 66 | |||
| 67 | =head1 ATTRIBUTES | ||
| 68 | |||
| 69 | |||
| 70 | =head2 B<REQUIRED> CreatorRequestId => Str | ||
| 71 | |||
| 72 | A unique string that identifies the request and that allows failed | ||
| 73 | requests to be retried without the risk of running the operation twice. | ||
| 74 | C<CreatorRequestId> can be any unique string, for example, a date/time | ||
| 75 | stamp. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> DomainName => Str | ||
| 80 | |||
| 81 | DNS queries for this domain name are forwarded to the IP addresses that | ||
| 82 | you specify in C<TargetIps>. If a query matches multiple Resolver rules | ||
| 83 | (example.com and www.example.com), outbound DNS queries are routed | ||
| 84 | using the Resolver rule that contains the most specific domain name | ||
| 85 | (www.example.com). | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 Name => Str | ||
| 90 | |||
| 91 | A friendly name that lets you easily find a rule in the Resolver | ||
| 92 | dashboard in the Route 53 console. | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | =head2 ResolverEndpointId => Str | ||
| 97 | |||
| 98 | The ID of the outbound Resolver endpoint that you want to use to route | ||
| 99 | DNS queries to the IP addresses that you specify in C<TargetIps>. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 B<REQUIRED> RuleType => Str | ||
| 104 | |||
| 105 | When you want to forward DNS queries for specified domain name to | ||
| 106 | resolvers on your network, specify C<FORWARD>. | ||
| 107 | |||
| 108 | When you have a forwarding rule to forward DNS queries for a domain to | ||
| 109 | your network and you want Resolver to process queries for a subdomain | ||
| 110 | of that domain, specify C<SYSTEM>. | ||
| 111 | |||
| 112 | For example, to forward DNS queries for example.com to resolvers on | ||
| 113 | your network, you create a rule and specify C<FORWARD> for C<RuleType>. | ||
| 114 | To then have Resolver process queries for apex.example.com, you create | ||
| 115 | a rule and specify C<SYSTEM> for C<RuleType>. | ||
| 116 | |||
| 117 | Currently, only Resolver can create rules that have a value of | ||
| 118 | C<RECURSIVE> for C<RuleType>. | ||
| 119 | |||
| 120 | Valid values are: C<"FORWARD">, C<"SYSTEM">, C<"RECURSIVE"> | ||
| 121 | |||
| 122 | =head2 Tags => ArrayRef[L<Paws::Route53Resolver::Tag>] | ||
| 123 | |||
| 124 | A list of the tag keys and values that you want to associate with the | ||
| 125 | endpoint. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 TargetIps => ArrayRef[L<Paws::Route53Resolver::TargetAddress>] | ||
| 130 | |||
| 131 | The IPs that you want Resolver to forward DNS queries to. You can | ||
| 132 | specify only IPv4 addresses. Separate IP addresses with a space. | ||
| 133 | |||
| 134 | C<TargetIps> is available only when the value of C<Rule type> is | ||
| 135 | C<FORWARD>. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | =head1 SEE ALSO | ||
| 141 | |||
| 142 | This class forms part of L<Paws>, documenting arguments for method CreateResolverRule in L<Paws::Route53Resolver> | ||
| 143 | |||
| 144 | =head1 BUGS and CONTRIBUTIONS | ||
| 145 | |||
| 146 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 147 | |||
| 148 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 149 | |||
| 150 | =cut | ||
| 151 |