blib/lib/Paws/Route53Resolver/CreateResolverEndpoint.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Route53Resolver::CreateResolverEndpoint;
3 use Moose;
4 has CreatorRequestId => (is => 'ro', isa => 'Str', required => 1);
5 has Direction => (is => 'ro', isa => 'Str', required => 1);
6 has IpAddresses => (is => 'ro', isa => 'ArrayRef[Paws::Route53Resolver::IpAddressRequest]', required => 1);
7 has Name => (is => 'ro', isa => 'Str');
8 has SecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Route53Resolver::Tag]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateResolverEndpoint');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53Resolver::CreateResolverEndpointResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Route53Resolver::CreateResolverEndpoint - Arguments for method CreateResolverEndpoint on L<Paws::Route53Resolver>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateResolverEndpoint on the
27 L<Amazon Route 53 Resolver|Paws::Route53Resolver> service. Use the attributes of this class
28 as arguments to method CreateResolverEndpoint.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateResolverEndpoint.
31  
32 =head1 SYNOPSIS
33  
34 my $route53resolver = Paws->service('Route53Resolver');
35 my $CreateResolverEndpointResponse =
36 $route53resolver->CreateResolverEndpoint(
37 CreatorRequestId => 'MyCreatorRequestId',
38 Direction => 'INBOUND',
39 IpAddresses => [
40 {
41 SubnetId => 'MySubnetId', # min: 1, max: 32
42 Ip => 'MyIp', # min: 7, max: 36; OPTIONAL
43 },
44 ...
45 ],
46 SecurityGroupIds => [
47 'MyResourceId',
48 ... # min: 1, max: 64
49 ],
50 Name => 'MyName', # OPTIONAL
51 Tags => [
52 {
53 Key => 'MyTagKey', # min: 1, max: 128
54 Value => 'MyTagValue', # max: 256
55  
56 },
57 ...
58 ], # OPTIONAL
59 );
60  
61 # Results:
62 my $ResolverEndpoint = $CreateResolverEndpointResponse->ResolverEndpoint;
63  
64 # Returns a L<Paws::Route53Resolver::CreateResolverEndpointResponse> object.
65  
66 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.
67 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53resolver/CreateResolverEndpoint>
68  
69 =head1 ATTRIBUTES
70  
71  
72 =head2 B<REQUIRED> CreatorRequestId => Str
73  
74 A unique string that identifies the request and that allows failed
75 requests to be retried without the risk of running the operation twice.
76 C<CreatorRequestId> can be any unique string, for example, a date/time
77 stamp.
78  
79  
80  
81 =head2 B<REQUIRED> Direction => Str
82  
83 Specify the applicable value:
84  
85 =over
86  
87 =item *
88  
89 C<INBOUND>: Resolver forwards DNS queries to the DNS service for a VPC
90 from your network
91  
92 =item *
93  
94 C<OUTBOUND>: Resolver forwards DNS queries from the DNS service for a
95 VPC to your network
96  
97 =back
98  
99  
100 Valid values are: C<"INBOUND">, C<"OUTBOUND">
101  
102 =head2 B<REQUIRED> IpAddresses => ArrayRef[L<Paws::Route53Resolver::IpAddressRequest>]
103  
104 The subnets and IP addresses in your VPC that DNS queries originate
105 from (for outbound endpoints) or that you forward DNS queries to (for
106 inbound endpoints). The subnet ID uniquely identifies a VPC.
107  
108  
109  
110 =head2 Name => Str
111  
112 A friendly name that lets you easily find a configuration in the
113 Resolver dashboard in the Route 53 console.
114  
115  
116  
117 =head2 B<REQUIRED> SecurityGroupIds => ArrayRef[Str|Undef]
118  
119 The ID of one or more security groups that you want to use to control
120 access to this VPC. The security group that you specify must include
121 one or more inbound rules (for inbound Resolver endpoints) or outbound
122 rules (for outbound Resolver endpoints). Inbound and outbound rules
123 must allow TCP and UDP access. For inbound access, open port 53. For
124 outbound access, open the port that you're using for DNS queries on
125 your network.
126  
127  
128  
129 =head2 Tags => ArrayRef[L<Paws::Route53Resolver::Tag>]
130  
131 A list of the tag keys and values that you want to associate with the
132 endpoint.
133  
134  
135  
136  
137 =head1 SEE ALSO
138  
139 This class forms part of L<Paws>, documenting arguments for method CreateResolverEndpoint in L<Paws::Route53Resolver>
140  
141 =head1 BUGS and CONTRIBUTIONS
142  
143 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
144  
145 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
146  
147 =cut
148