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