1VM::EC2::ELB::InstanceSUtsaetre(C3o)ntributed Perl DocumVeMn:t:aEtCi2o:n:ELB::InstanceState(3)
2
3
4

NAME

6       VM::EC2::ELB:InstanceState - Object describing the state of an instance
7       attached to a load balancer.  It is the result of a
8       DescribeInstanceHealth API call.
9

SYNOPSIS

11        use VM::EC2;
12
13        my $ec2          = VM::EC2->new(...);
14        my $lb           = $ec2->describe_load_balancers('my-lb');
15        my @instance_ids = map { $_->InstanceId } $lb->Instances();
16        my @states       = $lb->describe_instance_health(-instances => \@instance_ids);
17        my @down_ids     = map { $_->InstanceId } grep { $_->State eq 'OutOfService' } @states;
18

DESCRIPTION

20       This object is used to describe the parameters returned by a
21       DescribeInstanceHealth API call.
22

METHODS

24       The following object methods are supported:
25
26        InstanceId   -- The Instance ID of the instance attached to the load balancer
27        State        -- Specifies the current status of the instance
28        ReasonCode   -- Provides information about the cause of OutOfService instances.
29                        Specifically, it indicates whether the cause is Elastic Load Balancing
30                        or the instance behind the load balancer
31        Description  -- Description of why the instance is in the current state
32
33       The following convenience methods are supported:
34
35        instance     -- Provides an L<VM::EC2::Instance> object
36

STRING OVERLOADING

38       When used in a string context, this object will interpolate the
39       instance state.
40

SEE ALSO

42       VM::EC2 VM::EC2::Generic VM::EC2::ELB
43

AUTHOR

45       Lance Kinley <lkinley@loyaltymethods.com>.
46
47       Copyright (c) 2012 Loyalty Methods, Inc.
48
49       This package and its accompanying libraries is free software; you can
50       redistribute it and/or modify it under the terms of the GPL (either
51       version 1, or at your option, any later version) or the Artistic
52       License 2.0.  Refer to LICENSE for the full license text. In addition,
53       please see DISCLAIMER.txt for disclaimers of warranty.
54
55
56
57perl v5.32.0                      2020-07-28    VM::EC2::ELB::InstanceState(3)
Impressum