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

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