« blib/lib/Paws/ELB/EnableAvailabilityZonesForLoadBalancer.pm
↑ Summary
blib/lib/Paws/ELB/Instance.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ELB::HealthCheck; | ||
| 3 | use Moose; | ||
| 4 | has HealthyThreshold => (is => 'ro', isa => 'Int', required => 1); | ||
| 5 | has Interval => (is => 'ro', isa => 'Int', required => 1); | ||
| 6 | has Target => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Timeout => (is => 'ro', isa => 'Int', required => 1); | ||
| 8 | has UnhealthyThreshold => (is => 'ro', isa => 'Int', required => 1); | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | ### main pod documentation begin ### | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | Paws::ELB::HealthCheck | ||
| 17 | |||
| 18 | =head1 USAGE | ||
| 19 | |||
| 20 | This class represents one of two things: | ||
| 21 | |||
| 22 | =head3 Arguments in a call to a service | ||
| 23 | |||
| 24 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 25 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 26 | |||
| 27 | As an example, if Att1 is expected to be a Paws::ELB::HealthCheck object: | ||
| 28 | |||
| 29 | $service_obj->Method(Att1 => { HealthyThreshold => $value, ..., UnhealthyThreshold => $value }); | ||
| 30 | |||
| 31 | =head3 Results returned from an API call | ||
| 32 | |||
| 33 | Use accessors for each attribute. If Att1 is expected to be an Paws::ELB::HealthCheck object: | ||
| 34 | |||
| 35 | $result = $service_obj->Method(...); | ||
| 36 | $result->Att1->HealthyThreshold | ||
| 37 | |||
| 38 | =head1 DESCRIPTION | ||
| 39 | |||
| 40 | Information about a health check. | ||
| 41 | |||
| 42 | =head1 ATTRIBUTES | ||
| 43 | |||
| 44 | |||
| 45 | =head2 B<REQUIRED> HealthyThreshold => Int | ||
| 46 | |||
| 47 | The number of consecutive health checks successes required before | ||
| 48 | moving the instance to the C<Healthy> state. | ||
| 49 | |||
| 50 | |||
| 51 | =head2 B<REQUIRED> Interval => Int | ||
| 52 | |||
| 53 | The approximate interval, in seconds, between health checks of an | ||
| 54 | individual instance. | ||
| 55 | |||
| 56 | |||
| 57 | =head2 B<REQUIRED> Target => Str | ||
| 58 | |||
| 59 | The instance being checked. The protocol is either TCP, HTTP, HTTPS, or | ||
| 60 | SSL. The range of valid ports is one (1) through 65535. | ||
| 61 | |||
| 62 | TCP is the default, specified as a TCP: port pair, for example | ||
| 63 | "TCP:5000". In this case, a health check simply attempts to open a TCP | ||
| 64 | connection to the instance on the specified port. Failure to connect | ||
| 65 | within the configured timeout is considered unhealthy. | ||
| 66 | |||
| 67 | SSL is also specified as SSL: port pair, for example, SSL:5000. | ||
| 68 | |||
| 69 | For HTTP/HTTPS, you must include a ping path in the string. HTTP is | ||
| 70 | specified as a HTTP:port;/;PathToPing; grouping, for example | ||
| 71 | "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is | ||
| 72 | issued to the instance on the given port and path. Any answer other | ||
| 73 | than "200 OK" within the timeout period is considered unhealthy. | ||
| 74 | |||
| 75 | The total length of the HTTP ping target must be 1024 16-bit Unicode | ||
| 76 | characters or less. | ||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> Timeout => Int | ||
| 80 | |||
| 81 | The amount of time, in seconds, during which no response means a failed | ||
| 82 | health check. | ||
| 83 | |||
| 84 | This value must be less than the C<Interval> value. | ||
| 85 | |||
| 86 | |||
| 87 | =head2 B<REQUIRED> UnhealthyThreshold => Int | ||
| 88 | |||
| 89 | The number of consecutive health check failures required before moving | ||
| 90 | the instance to the C<Unhealthy> state. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head1 SEE ALSO | ||
| 95 | |||
| 96 | This class forms part of L<Paws>, describing an object used in L<Paws::ELB> | ||
| 97 | |||
| 98 | =head1 BUGS and CONTRIBUTIONS | ||
| 99 | |||
| 100 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 101 | |||
| 102 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 103 | |||
| 104 | =cut | ||
| 105 |