blib/lib/Paws/ELBv2/CreateTargetGroup.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELBv2::CreateTargetGroup;
3 use Moose;
4 has HealthCheckEnabled => (is => 'ro', isa => 'Bool');
5 has HealthCheckIntervalSeconds => (is => 'ro', isa => 'Int');
6 has HealthCheckPath => (is => 'ro', isa => 'Str');
7 has HealthCheckPort => (is => 'ro', isa => 'Str');
8 has HealthCheckProtocol => (is => 'ro', isa => 'Str');
9 has HealthCheckTimeoutSeconds => (is => 'ro', isa => 'Int');
10 has HealthyThresholdCount => (is => 'ro', isa => 'Int');
11 has Matcher => (is => 'ro', isa => 'Paws::ELBv2::Matcher');
12 has Name => (is => 'ro', isa => 'Str', required => 1);
13 has Port => (is => 'ro', isa => 'Int');
14 has Protocol => (is => 'ro', isa => 'Str');
15 has ProtocolVersion => (is => 'ro', isa => 'Str');
16 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Tag]');
17 has TargetType => (is => 'ro', isa => 'Str');
18 has UnhealthyThresholdCount => (is => 'ro', isa => 'Int');
19 has VpcId => (is => 'ro', isa => 'Str');
20  
21 use MooseX::ClassAttribute;
22  
23 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTargetGroup');
24 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateTargetGroupOutput');
25 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateTargetGroupResult');
26 1;
27  
28 ### main pod documentation begin ###
29  
30 =head1 NAME
31  
32 Paws::ELBv2::CreateTargetGroup - Arguments for method CreateTargetGroup on L<Paws::ELBv2>
33  
34 =head1 DESCRIPTION
35  
36 This class represents the parameters used for calling the method CreateTargetGroup on the
37 L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class
38 as arguments to method CreateTargetGroup.
39  
40 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTargetGroup.
41  
42 =head1 SYNOPSIS
43  
44 my $elasticloadbalancing = Paws->service('ELBv2');
45 # To create a target group
46 # This example creates a target group that you can use to route traffic to
47 # targets using HTTP on port 80. This target group uses the default health check
48 # configuration.
49 my $CreateTargetGroupOutput = $elasticloadbalancing->CreateTargetGroup(
50 'Name' => 'my-targets',
51 'Port' => 80,
52 'Protocol' => 'HTTP',
53 'VpcId' => 'vpc-3ac0fb5f'
54 );
55  
56 # Results:
57 my $TargetGroups = $CreateTargetGroupOutput->TargetGroups;
58  
59 # Returns a L<Paws::ELBv2::CreateTargetGroupOutput> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateTargetGroup>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 HealthCheckEnabled => Bool
68  
69 Indicates whether health checks are enabled. If the target type is
70 C<lambda>, health checks are disabled by default but can be enabled. If
71 the target type is C<instance> or C<ip>, health checks are always
72 enabled and cannot be disabled.
73  
74  
75  
76 =head2 HealthCheckIntervalSeconds => Int
77  
78 The approximate amount of time, in seconds, between health checks of an
79 individual target. If the target group protocol is TCP, TLS, UDP, or
80 TCP_UDP, the supported values are 10 and 30 seconds. If the target
81 group protocol is HTTP or HTTPS, the default is 30 seconds. If the
82 target group protocol is GENEVE, the default is 10 seconds. If the
83 target type is C<lambda>, the default is 35 seconds.
84  
85  
86  
87 =head2 HealthCheckPath => Str
88  
89 [HTTP/HTTPS health checks] The destination for health checks on the
90 targets.
91  
92 [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
93  
94 [GRPC protocol version] The path of a custom health check method with
95 the format /package.service/method. The default is /Amazon Web
96 Services.ALB/healthcheck.
97  
98  
99  
100 =head2 HealthCheckPort => Str
101  
102 The port the load balancer uses when performing health checks on
103 targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the
104 default is C<traffic-port>, which is the port on which each target
105 receives traffic from the load balancer. If the protocol is GENEVE, the
106 default is port 80.
107  
108  
109  
110 =head2 HealthCheckProtocol => Str
111  
112 The protocol the load balancer uses when performing health checks on
113 targets. For Application Load Balancers, the default is HTTP. For
114 Network Load Balancers and Gateway Load Balancers, the default is TCP.
115 The TCP protocol is not supported for health checks if the protocol of
116 the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP
117 protocols are not supported for health checks.
118  
119 Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">, C<"TLS">, C<"UDP">, C<"TCP_UDP">, C<"GENEVE">
120  
121 =head2 HealthCheckTimeoutSeconds => Int
122  
123 The amount of time, in seconds, during which no response from a target
124 means a failed health check. For target groups with a protocol of HTTP,
125 HTTPS, or GENEVE, the default is 5 seconds. For target groups with a
126 protocol of TCP or TLS, this value must be 6 seconds for HTTP health
127 checks and 10 seconds for TCP and HTTPS health checks. If the target
128 type is C<lambda>, the default is 30 seconds.
129  
130  
131  
132 =head2 HealthyThresholdCount => Int
133  
134 The number of consecutive health checks successes required before
135 considering an unhealthy target healthy. For target groups with a
136 protocol of HTTP or HTTPS, the default is 5. For target groups with a
137 protocol of TCP, TLS, or GENEVE, the default is 3. If the target type
138 is C<lambda>, the default is 5.
139  
140  
141  
142 =head2 Matcher => L<Paws::ELBv2::Matcher>
143  
144 [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking
145 for a successful response from a target.
146  
147  
148  
149 =head2 B<REQUIRED> Name => Str
150  
151 The name of the target group.
152  
153 This name must be unique per region per account, can have a maximum of
154 32 characters, must contain only alphanumeric characters or hyphens,
155 and must not begin or end with a hyphen.
156  
157  
158  
159 =head2 Port => Int
160  
161 The port on which the targets receive traffic. This port is used unless
162 you specify a port override when registering the target. If the target
163 is a Lambda function, this parameter does not apply. If the protocol is
164 GENEVE, the supported port is 6081.
165  
166  
167  
168 =head2 Protocol => Str
169  
170 The protocol to use for routing traffic to the targets. For Application
171 Load Balancers, the supported protocols are HTTP and HTTPS. For Network
172 Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP.
173 For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP
174 listener must be associated with a TCP_UDP target group. If the target
175 is a Lambda function, this parameter does not apply.
176  
177 Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">, C<"TLS">, C<"UDP">, C<"TCP_UDP">, C<"GENEVE">
178  
179 =head2 ProtocolVersion => Str
180  
181 [HTTP/HTTPS protocol] The protocol version. Specify C<GRPC> to send
182 requests to targets using gRPC. Specify C<HTTP2> to send requests to
183 targets using HTTP/2. The default is C<HTTP1>, which sends requests to
184 targets using HTTP/1.1.
185  
186  
187  
188 =head2 Tags => ArrayRef[L<Paws::ELBv2::Tag>]
189  
190 The tags to assign to the target group.
191  
192  
193  
194 =head2 TargetType => Str
195  
196 The type of target that you must specify when registering targets with
197 this target group. You can't specify targets for a target group using
198 more than one target type.
199  
200 =over
201  
202 =item *
203  
204 C<instance> - Register targets by instance ID. This is the default
205 value.
206  
207 =item *
208  
209 C<ip> - Register targets by IP address. You can specify IP addresses
210 from the subnets of the virtual private cloud (VPC) for the target
211 group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and
212 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't
213 specify publicly routable IP addresses.
214  
215 =item *
216  
217 C<lambda> - Register a single Lambda function as a target.
218  
219 =back
220  
221  
222 Valid values are: C<"instance">, C<"ip">, C<"lambda">
223  
224 =head2 UnhealthyThresholdCount => Int
225  
226 The number of consecutive health check failures required before
227 considering a target unhealthy. If the target group protocol is HTTP or
228 HTTPS, the default is 2. If the target group protocol is TCP or TLS,
229 this value must be the same as the healthy threshold count. If the
230 target group protocol is GENEVE, the default is 3. If the target type
231 is C<lambda>, the default is 2.
232  
233  
234  
235 =head2 VpcId => Str
236  
237 The identifier of the virtual private cloud (VPC). If the target is a
238 Lambda function, this parameter does not apply. Otherwise, this
239 parameter is required.
240  
241  
242  
243  
244 =head1 SEE ALSO
245  
246 This class forms part of L<Paws>, documenting arguments for method CreateTargetGroup in L<Paws::ELBv2>
247  
248 =head1 BUGS and CONTRIBUTIONS
249  
250 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
251  
252 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
253  
254 =cut
255