blib/lib/Paws/Route53/HealthCheckConfig.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::Route53::HealthCheckConfig;
3 use Moose;
4 has AlarmIdentifier => (is => 'ro', isa => 'Paws::Route53::AlarmIdentifier');
5 has ChildHealthChecks => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'ChildHealthCheck', traits => ['NameInRequest']);
6 has Disabled => (is => 'ro', isa => 'Bool');
7 has EnableSNI => (is => 'ro', isa => 'Bool');
8 has FailureThreshold => (is => 'ro', isa => 'Int');
9 has FullyQualifiedDomainName => (is => 'ro', isa => 'Str');
10 has HealthThreshold => (is => 'ro', isa => 'Int');
11 has InsufficientDataHealthStatus => (is => 'ro', isa => 'Str');
12 has Inverted => (is => 'ro', isa => 'Bool');
13 has IPAddress => (is => 'ro', isa => 'Str');
14 has MeasureLatency => (is => 'ro', isa => 'Bool');
15 has Port => (is => 'ro', isa => 'Int');
16 has Regions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Region', traits => ['NameInRequest']);
17 has RequestInterval => (is => 'ro', isa => 'Int');
18 has ResourcePath => (is => 'ro', isa => 'Str');
19 has SearchString => (is => 'ro', isa => 'Str');
20 has Type => (is => 'ro', isa => 'Str', required => 1);
21  
22 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::Route53::HealthCheckConfig
29  
30 =head1 USAGE
31  
32 This class represents one of two things:
33  
34 =head3 Arguments in a call to a service
35  
36 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
37 Each attribute should be used as a named argument in the calls that expect this type of object.
38  
39 As an example, if Att1 is expected to be a Paws::Route53::HealthCheckConfig object:
40  
41 $service_obj->Method(Att1 => { AlarmIdentifier => $value, ..., Type => $value });
42  
43 =head3 Results returned from an API call
44  
45 Use accessors for each attribute. If Att1 is expected to be an Paws::Route53::HealthCheckConfig object:
46  
47 $result = $service_obj->Method(...);
48 $result->Att1->AlarmIdentifier
49  
50 =head1 DESCRIPTION
51  
52 A complex type that contains information about the health check.
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 AlarmIdentifier => L<Paws::Route53::AlarmIdentifier>
58  
59 A complex type that identifies the CloudWatch alarm that you want
60 Amazon Route 53 health checkers to use to determine whether the
61 specified health check is healthy.
62  
63  
64 =head2 ChildHealthChecks => ArrayRef[Str|Undef]
65  
66 (CALCULATED Health Checks Only) A complex type that contains one
67 C<ChildHealthCheck> element for each health check that you want to
68 associate with a C<CALCULATED> health check.
69  
70  
71 =head2 Disabled => Bool
72  
73 Stops Route 53 from performing health checks. When you disable a health
74 check, here's what happens:
75  
76 =over
77  
78 =item *
79  
80 B<Health checks that check the health of endpoints:> Route 53 stops
81 submitting requests to your application, server, or other resource.
82  
83 =item *
84  
85 B<Calculated health checks:> Route 53 stops aggregating the status of
86 the referenced health checks.
87  
88 =item *
89  
90 B<Health checks that monitor CloudWatch alarms:> Route 53 stops
91 monitoring the corresponding CloudWatch metrics.
92  
93 =back
94  
95 After you disable a health check, Route 53 considers the status of the
96 health check to always be healthy. If you configured DNS failover,
97 Route 53 continues to route traffic to the corresponding resources. If
98 you want to stop routing traffic to a resource, change the value of
99 Inverted
100 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_UpdateHealthCheck.html#Route53-UpdateHealthCheck-request-Inverted).
101  
102 Charges for a health check still apply when the health check is
103 disabled. For more information, see Amazon Route 53 Pricing
104 (http://aws.amazon.com/route53/pricing/).
105  
106  
107 =head2 EnableSNI => Bool
108  
109 Specify whether you want Amazon Route 53 to send the value of
110 C<FullyQualifiedDomainName> to the endpoint in the C<client_hello>
111 message during TLS negotiation. This allows the endpoint to respond to
112 C<HTTPS> health check requests with the applicable SSL/TLS certificate.
113  
114 Some endpoints require that C<HTTPS> requests include the host name in
115 the C<client_hello> message. If you don't enable SNI, the status of the
116 health check will be C<SSL alert handshake_failure>. A health check can
117 also have that status for other reasons. If SNI is enabled and you're
118 still getting the error, check the SSL/TLS configuration on your
119 endpoint and confirm that your certificate is valid.
120  
121 The SSL/TLS certificate on your endpoint includes a domain name in the
122 C<Common Name> field and possibly several more in the C<Subject
123 Alternative Names> field. One of the domain names in the certificate
124 should match the value that you specify for
125 C<FullyQualifiedDomainName>. If the endpoint responds to the
126 C<client_hello> message with a certificate that does not include the
127 domain name that you specified in C<FullyQualifiedDomainName>, a health
128 checker will retry the handshake. In the second attempt, the health
129 checker will omit C<FullyQualifiedDomainName> from the C<client_hello>
130 message.
131  
132  
133 =head2 FailureThreshold => Int
134  
135 The number of consecutive health checks that an endpoint must pass or
136 fail for Amazon Route 53 to change the current status of the endpoint
137 from unhealthy to healthy or vice versa. For more information, see How
138 Amazon Route 53 Determines Whether an Endpoint Is Healthy
139 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
140 in the I<Amazon Route 53 Developer Guide>.
141  
142 If you don't specify a value for C<FailureThreshold>, the default value
143 is three health checks.
144  
145  
146 =head2 FullyQualifiedDomainName => Str
147  
148 Amazon Route 53 behavior depends on whether you specify a value for
149 C<IPAddress>.
150  
151 B<If you specify a value for> C<IPAddress>:
152  
153 Amazon Route 53 sends health check requests to the specified IPv4 or
154 IPv6 address and passes the value of C<FullyQualifiedDomainName> in the
155 C<Host> header for all health checks except TCP health checks. This is
156 typically the fully qualified DNS name of the endpoint on which you
157 want Route 53 to perform health checks.
158  
159 When Route 53 checks the health of an endpoint, here is how it
160 constructs the C<Host> header:
161  
162 =over
163  
164 =item *
165  
166 If you specify a value of C<80> for C<Port> and C<HTTP> or
167 C<HTTP_STR_MATCH> for C<Type>, Route 53 passes the value of
168 C<FullyQualifiedDomainName> to the endpoint in the Host header.
169  
170 =item *
171  
172 If you specify a value of C<443> for C<Port> and C<HTTPS> or
173 C<HTTPS_STR_MATCH> for C<Type>, Route 53 passes the value of
174 C<FullyQualifiedDomainName> to the endpoint in the C<Host> header.
175  
176 =item *
177  
178 If you specify another value for C<Port> and any value except C<TCP>
179 for C<Type>, Route 53 passes C<FullyQualifiedDomainName:Port> to the
180 endpoint in the C<Host> header.
181  
182 =back
183  
184 If you don't specify a value for C<FullyQualifiedDomainName>, Route 53
185 substitutes the value of C<IPAddress> in the C<Host> header in each of
186 the preceding cases.
187  
188 B<If you don't specify a value for C<IPAddress> >:
189  
190 Route 53 sends a DNS request to the domain that you specify for
191 C<FullyQualifiedDomainName> at the interval that you specify for
192 C<RequestInterval>. Using an IPv4 address that DNS returns, Route 53
193 then checks the health of the endpoint.
194  
195 If you don't specify a value for C<IPAddress>, Route 53 uses only IPv4
196 to send health checks to the endpoint. If there's no resource record
197 set with a type of A for the name that you specify for
198 C<FullyQualifiedDomainName>, the health check fails with a "DNS
199 resolution failed" error.
200  
201 If you want to check the health of weighted, latency, or failover
202 resource record sets and you choose to specify the endpoint only by
203 C<FullyQualifiedDomainName>, we recommend that you create a separate
204 health check for each endpoint. For example, create a health check for
205 each HTTP server that is serving content for www.example.com. For the
206 value of C<FullyQualifiedDomainName>, specify the domain name of the
207 server (such as us-east-2-www.example.com), not the name of the
208 resource record sets (www.example.com).
209  
210 In this configuration, if you create a health check for which the value
211 of C<FullyQualifiedDomainName> matches the name of the resource record
212 sets and you then associate the health check with those resource record
213 sets, health check results will be unpredictable.
214  
215 In addition, if the value that you specify for C<Type> is C<HTTP>,
216 C<HTTPS>, C<HTTP_STR_MATCH>, or C<HTTPS_STR_MATCH>, Route 53 passes the
217 value of C<FullyQualifiedDomainName> in the C<Host> header, as it does
218 when you specify a value for C<IPAddress>. If the value of C<Type> is
219 C<TCP>, Route 53 doesn't pass a C<Host> header.
220  
221  
222 =head2 HealthThreshold => Int
223  
224 The number of child health checks that are associated with a
225 C<CALCULATED> health check that Amazon Route 53 must consider healthy
226 for the C<CALCULATED> health check to be considered healthy. To specify
227 the child health checks that you want to associate with a C<CALCULATED>
228 health check, use the ChildHealthChecks
229 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_UpdateHealthCheck.html#Route53-UpdateHealthCheck-request-ChildHealthChecks)
230 element.
231  
232 Note the following:
233  
234 =over
235  
236 =item *
237  
238 If you specify a number greater than the number of child health checks,
239 Route 53 always considers this health check to be unhealthy.
240  
241 =item *
242  
243 If you specify C<0>, Route 53 always considers this health check to be
244 healthy.
245  
246 =back
247  
248  
249  
250 =head2 InsufficientDataHealthStatus => Str
251  
252 When CloudWatch has insufficient data about the metric to determine the
253 alarm state, the status that you want Amazon Route 53 to assign to the
254 health check:
255  
256 =over
257  
258 =item *
259  
260 C<Healthy>: Route 53 considers the health check to be healthy.
261  
262 =item *
263  
264 C<Unhealthy>: Route 53 considers the health check to be unhealthy.
265  
266 =item *
267  
268 C<LastKnownStatus>: Route 53 uses the status of the health check from
269 the last time that CloudWatch had sufficient data to determine the
270 alarm state. For new health checks that have no last known status, the
271 default status for the health check is healthy.
272  
273 =back
274  
275  
276  
277 =head2 Inverted => Bool
278  
279 Specify whether you want Amazon Route 53 to invert the status of a
280 health check, for example, to consider a health check unhealthy when it
281 otherwise would be considered healthy.
282  
283  
284 =head2 IPAddress => Str
285  
286 The IPv4 or IPv6 IP address of the endpoint that you want Amazon Route
287 53 to perform health checks on. If you don't specify a value for
288 C<IPAddress>, Route 53 sends a DNS request to resolve the domain name
289 that you specify in C<FullyQualifiedDomainName> at the interval that
290 you specify in C<RequestInterval>. Using an IP address returned by DNS,
291 Route 53 then checks the health of the endpoint.
292  
293 Use one of the following formats for the value of C<IPAddress>:
294  
295 =over
296  
297 =item *
298  
299 B<IPv4 address>: four values between 0 and 255, separated by periods
300 (.), for example, C<192.0.2.44>.
301  
302 =item *
303  
304 B<IPv6 address>: eight groups of four hexadecimal values, separated by
305 colons (:), for example, C<2001:0db8:85a3:0000:0000:abcd:0001:2345>.
306 You can also shorten IPv6 addresses as described in RFC 5952, for
307 example, C<2001:db8:85a3::abcd:1:2345>.
308  
309 =back
310  
311 If the endpoint is an EC2 instance, we recommend that you create an
312 Elastic IP address, associate it with your EC2 instance, and specify
313 the Elastic IP address for C<IPAddress>. This ensures that the IP
314 address of your instance will never change.
315  
316 For more information, see FullyQualifiedDomainName
317 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_UpdateHealthCheck.html#Route53-UpdateHealthCheck-request-FullyQualifiedDomainName).
318  
319 Constraints: Route 53 can't check the health of endpoints for which the
320 IP address is in local, private, non-routable, or multicast ranges. For
321 more information about IP addresses for which you can't create health
322 checks, see the following documents:
323  
324 =over
325  
326 =item *
327  
328 RFC 5735, Special Use IPv4 Addresses
329 (https://tools.ietf.org/html/rfc5735)
330  
331 =item *
332  
333 RFC 6598, IANA-Reserved IPv4 Prefix for Shared Address Space
334 (https://tools.ietf.org/html/rfc6598)
335  
336 =item *
337  
338 RFC 5156, Special-Use IPv6 Addresses
339 (https://tools.ietf.org/html/rfc5156)
340  
341 =back
342  
343 When the value of C<Type> is C<CALCULATED> or C<CLOUDWATCH_METRIC>,
344 omit C<IPAddress>.
345  
346  
347 =head2 MeasureLatency => Bool
348  
349 Specify whether you want Amazon Route 53 to measure the latency between
350 health checkers in multiple AWS regions and your endpoint, and to
351 display CloudWatch latency graphs on the B<Health Checks> page in the
352 Route 53 console.
353  
354 You can't change the value of C<MeasureLatency> after you create a
355 health check.
356  
357  
358 =head2 Port => Int
359  
360 The port on the endpoint that you want Amazon Route 53 to perform
361 health checks on.
362  
363 Don't specify a value for C<Port> when you specify a value for C<Type>
364 of C<CLOUDWATCH_METRIC> or C<CALCULATED>.
365  
366  
367 =head2 Regions => ArrayRef[Str|Undef]
368  
369 A complex type that contains one C<Region> element for each region from
370 which you want Amazon Route 53 health checkers to check the specified
371 endpoint.
372  
373 If you don't specify any regions, Route 53 health checkers
374 automatically performs checks from all of the regions that are listed
375 under B<Valid Values>.
376  
377 If you update a health check to remove a region that has been
378 performing health checks, Route 53 will briefly continue to perform
379 checks from that region to ensure that some health checkers are always
380 checking the endpoint (for example, if you replace three regions with
381 four different regions).
382  
383  
384 =head2 RequestInterval => Int
385  
386 The number of seconds between the time that Amazon Route 53 gets a
387 response from your endpoint and the time that it sends the next health
388 check request. Each Route 53 health checker makes requests at this
389 interval.
390  
391 You can't change the value of C<RequestInterval> after you create a
392 health check.
393  
394 If you don't specify a value for C<RequestInterval>, the default value
395 is C<30> seconds.
396  
397  
398 =head2 ResourcePath => Str
399  
400 The path, if any, that you want Amazon Route 53 to request when
401 performing health checks. The path can be any value for which your
402 endpoint will return an HTTP status code of 2xx or 3xx when the
403 endpoint is healthy, for example, the file
404 /docs/route53-health-check.html. You can also include query string
405 parameters, for example, C</welcome.html?language=jp&login=y>.
406  
407  
408 =head2 SearchString => Str
409  
410 If the value of Type is C<HTTP_STR_MATCH> or C<HTTPS_STR_MATCH>, the
411 string that you want Amazon Route 53 to search for in the response body
412 from the specified resource. If the string appears in the response
413 body, Route 53 considers the resource healthy.
414  
415 Route 53 considers case when searching for C<SearchString> in the
416 response body.
417  
418  
419 =head2 B<REQUIRED> Type => Str
420  
421 The type of health check that you want to create, which indicates how
422 Amazon Route 53 determines whether an endpoint is healthy.
423  
424 You can't change the value of C<Type> after you create a health check.
425  
426 You can create the following types of health checks:
427  
428 =over
429  
430 =item *
431  
432 B<HTTP>: Route 53 tries to establish a TCP connection. If successful,
433 Route 53 submits an HTTP request and waits for an HTTP status code of
434 200 or greater and less than 400.
435  
436 =item *
437  
438 B<HTTPS>: Route 53 tries to establish a TCP connection. If successful,
439 Route 53 submits an HTTPS request and waits for an HTTP status code of
440 200 or greater and less than 400.
441  
442 If you specify C<HTTPS> for the value of C<Type>, the endpoint must
443 support TLS v1.0 or later.
444  
445 =item *
446  
447 B<HTTP_STR_MATCH>: Route 53 tries to establish a TCP connection. If
448 successful, Route 53 submits an HTTP request and searches the first
449 5,120 bytes of the response body for the string that you specify in
450 C<SearchString>.
451  
452 =item *
453  
454 B<HTTPS_STR_MATCH>: Route 53 tries to establish a TCP connection. If
455 successful, Route 53 submits an C<HTTPS> request and searches the first
456 5,120 bytes of the response body for the string that you specify in
457 C<SearchString>.
458  
459 =item *
460  
461 B<TCP>: Route 53 tries to establish a TCP connection.
462  
463 =item *
464  
465 B<CLOUDWATCH_METRIC>: The health check is associated with a CloudWatch
466 alarm. If the state of the alarm is C<OK>, the health check is
467 considered healthy. If the state is C<ALARM>, the health check is
468 considered unhealthy. If CloudWatch doesn't have sufficient data to
469 determine whether the state is C<OK> or C<ALARM>, the health check
470 status depends on the setting for C<InsufficientDataHealthStatus>:
471 C<Healthy>, C<Unhealthy>, or C<LastKnownStatus>.
472  
473 =item *
474  
475 B<CALCULATED>: For health checks that monitor the status of other
476 health checks, Route 53 adds up the number of health checks that Route
477 53 health checkers consider to be healthy and compares that number with
478 the value of C<HealthThreshold>.
479  
480 =back
481  
482 For more information, see How Route 53 Determines Whether an Endpoint
483 Is Healthy
484 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-determining-health-of-endpoints.html)
485 in the I<Amazon Route 53 Developer Guide>.
486  
487  
488  
489 =head1 SEE ALSO
490  
491 This class forms part of L<Paws>, describing an object used in L<Paws::Route53>
492  
493 =head1 BUGS and CONTRIBUTIONS
494  
495 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
496  
497 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
498  
499 =cut
500