blib/lib/Paws/ECS/LoadBalancer.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ECS::LoadBalancer;
3 use Moose;
4 has ContainerName => (is => 'ro', isa => 'Str', request_name => 'containerName', traits => ['NameInRequest']);
5 has ContainerPort => (is => 'ro', isa => 'Int', request_name => 'containerPort', traits => ['NameInRequest']);
6 has LoadBalancerName => (is => 'ro', isa => 'Str', request_name => 'loadBalancerName', traits => ['NameInRequest']);
7 has TargetGroupArn => (is => 'ro', isa => 'Str', request_name => 'targetGroupArn', traits => ['NameInRequest']);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::ECS::LoadBalancer
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::ECS::LoadBalancer object:
27  
28 $service_obj->Method(Att1 => { ContainerName => $value, ..., TargetGroupArn => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::LoadBalancer object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->ContainerName
36  
37 =head1 DESCRIPTION
38  
39 The load balancer configuration to use with a service or task set.
40  
41 For specific notes and restrictions regarding the use of load balancers
42 with services and task sets, see the CreateService and CreateTaskSet
43 actions.
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 ContainerName => Str
49  
50 The name of the container (as it appears in a container definition) to
51 associate with the load balancer.
52  
53  
54 =head2 ContainerPort => Int
55  
56 The port on the container to associate with the load balancer. This
57 port must correspond to a C<containerPort> in the task definition the
58 tasks in the service are using. For tasks that use the EC2 launch type,
59 the container instance they are launched on must allow ingress traffic
60 on the C<hostPort> of the port mapping.
61  
62  
63 =head2 LoadBalancerName => Str
64  
65 The name of the load balancer to associate with the Amazon ECS service
66 or task set.
67  
68 A load balancer name is only specified when using a Classic Load
69 Balancer. If you are using an Application Load Balancer or a Network
70 Load Balancer the load balancer name parameter should be omitted.
71  
72  
73 =head2 TargetGroupArn => Str
74  
75 The full Amazon Resource Name (ARN) of the Elastic Load Balancing
76 target group or groups associated with a service or task set.
77  
78 A target group ARN is only specified when using an Application Load
79 Balancer or Network Load Balancer. If you are using a Classic Load
80 Balancer the target group ARN should be omitted.
81  
82 For services using the C<ECS> deployment controller, you can specify
83 one or multiple target groups. For more information, see Registering
84 Multiple Target Groups with a Service
85 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html)
86 in the I<Amazon Elastic Container Service Developer Guide>.
87  
88 For services using the C<CODE_DEPLOY> deployment controller, you are
89 required to define two target groups for the load balancer. For more
90 information, see Blue/Green Deployment with CodeDeploy
91 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html)
92 in the I<Amazon Elastic Container Service Developer Guide>.
93  
94 If your service's task definition uses the C<awsvpc> network mode
95 (which is required for the Fargate launch type), you must choose C<ip>
96 as the target type, not C<instance>, when creating your target groups
97 because tasks that use the C<awsvpc> network mode are associated with
98 an elastic network interface, not an Amazon EC2 instance.
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113