« blib/lib/Paws/ELBv2/DescribeTargetGroupsOutput.pm
↑ Summary
blib/lib/Paws/ELBv2/DescribeTargetHealthOutput.pm »
| 1 | |||
| 2 | package Paws::ELBv2::DescribeTargetHealth; | ||
| 3 | use Moose; | ||
| 4 | has TargetGroupArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Targets => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::TargetDescription]'); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeTargetHealth'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::DescribeTargetHealthOutput'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'DescribeTargetHealthResult'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::ELBv2::DescribeTargetHealth - Arguments for method DescribeTargetHealth on L<Paws::ELBv2> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method DescribeTargetHealth on the | ||
| 23 | L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class | ||
| 24 | as arguments to method DescribeTargetHealth. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeTargetHealth. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $elasticloadbalancing = Paws->service('ELBv2'); | ||
| 31 | # To describe the health of the targets for a target group | ||
| 32 | # This example describes the health of the targets for the specified target | ||
| 33 | # group. One target is healthy but the other is not specified in an action, so | ||
| 34 | # it can't receive traffic from the load balancer. | ||
| 35 | my $DescribeTargetHealthOutput = | ||
| 36 | $elasticloadbalancing->DescribeTargetHealth( 'TargetGroupArn' => | ||
| 37 | 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067' | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $TargetHealthDescriptions = | ||
| 42 | $DescribeTargetHealthOutput->TargetHealthDescriptions; | ||
| 43 | |||
| 44 | # Returns a L<Paws::ELBv2::DescribeTargetHealthOutput> object. | ||
| 45 | # To describe the health of a target | ||
| 46 | # This example describes the health of the specified target. This target is | ||
| 47 | # healthy. | ||
| 48 | my $DescribeTargetHealthOutput = | ||
| 49 | $elasticloadbalancing->DescribeTargetHealth( | ||
| 50 | 'TargetGroupArn' => | ||
| 51 | 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067', | ||
| 52 | 'Targets' => [ | ||
| 53 | |||
| 54 | { | ||
| 55 | 'Id' => 'i-0f76fade', | ||
| 56 | 'Port' => 80 | ||
| 57 | } | ||
| 58 | ] | ||
| 59 | ); | ||
| 60 | |||
| 61 | # Results: | ||
| 62 | my $TargetHealthDescriptions = | ||
| 63 | $DescribeTargetHealthOutput->TargetHealthDescriptions; | ||
| 64 | |||
| 65 | # Returns a L<Paws::ELBv2::DescribeTargetHealthOutput> object. | ||
| 66 | |||
| 67 | 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. | ||
| 68 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/DescribeTargetHealth> | ||
| 69 | |||
| 70 | =head1 ATTRIBUTES | ||
| 71 | |||
| 72 | |||
| 73 | =head2 B<REQUIRED> TargetGroupArn => Str | ||
| 74 | |||
| 75 | The Amazon Resource Name (ARN) of the target group. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 Targets => ArrayRef[L<Paws::ELBv2::TargetDescription>] | ||
| 80 | |||
| 81 | The targets. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head1 SEE ALSO | ||
| 87 | |||
| 88 | This class forms part of L<Paws>, documenting arguments for method DescribeTargetHealth in L<Paws::ELBv2> | ||
| 89 | |||
| 90 | =head1 BUGS and CONTRIBUTIONS | ||
| 91 | |||
| 92 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 93 | |||
| 94 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 95 | |||
| 96 | =cut | ||
| 97 |