File Coverage

blib/lib/Paws/ELBv2/CreateTargetGroup.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ELBv2::CreateTargetGroup;
3 1     1   547 use Moose;
  1         3  
  1         8  
4             has HealthCheckIntervalSeconds => (is => 'ro', isa => 'Int');
5             has HealthCheckPath => (is => 'ro', isa => 'Str');
6             has HealthCheckPort => (is => 'ro', isa => 'Str');
7             has HealthCheckProtocol => (is => 'ro', isa => 'Str');
8             has HealthCheckTimeoutSeconds => (is => 'ro', isa => 'Int');
9             has HealthyThresholdCount => (is => 'ro', isa => 'Int');
10             has Matcher => (is => 'ro', isa => 'Paws::ELBv2::Matcher');
11             has Name => (is => 'ro', isa => 'Str', required => 1);
12             has Port => (is => 'ro', isa => 'Int', required => 1);
13             has Protocol => (is => 'ro', isa => 'Str', required => 1);
14             has TargetType => (is => 'ro', isa => 'Str');
15             has UnhealthyThresholdCount => (is => 'ro', isa => 'Int');
16             has VpcId => (is => 'ro', isa => 'Str', required => 1);
17              
18 1     1   7062 use MooseX::ClassAttribute;
  1         3  
  1         10  
19              
20             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTargetGroup');
21             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateTargetGroupOutput');
22             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateTargetGroupResult');
23             1;
24              
25             ### main pod documentation begin ###
26              
27             =head1 NAME
28              
29             Paws::ELBv2::CreateTargetGroup - Arguments for method CreateTargetGroup on Paws::ELBv2
30              
31             =head1 DESCRIPTION
32              
33             This class represents the parameters used for calling the method CreateTargetGroup on the
34             Elastic Load Balancing service. Use the attributes of this class
35             as arguments to method CreateTargetGroup.
36              
37             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTargetGroup.
38              
39             As an example:
40              
41             $service_obj->CreateTargetGroup(Att1 => $value1, Att2 => $value2, ...);
42              
43             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.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 HealthCheckIntervalSeconds => Int
49              
50             The approximate amount of time, in seconds, between health checks of an
51             individual target. For Application Load Balancers, the range is 5 to
52             300 seconds. For Network Load Balancers, the supported values are 10 or
53             30 seconds. The default is 30 seconds.
54              
55              
56              
57             =head2 HealthCheckPath => Str
58              
59             [HTTP/HTTPS health checks] The ping path that is the destination on the
60             targets for health checks. The default is /.
61              
62              
63              
64             =head2 HealthCheckPort => Str
65              
66             The port the load balancer uses when performing health checks on
67             targets. The default is C<traffic-port>, which is the port on which
68             each target receives traffic from the load balancer.
69              
70              
71              
72             =head2 HealthCheckProtocol => Str
73              
74             The protocol the load balancer uses when performing health checks on
75             targets. The TCP protocol is supported only if the protocol of the
76             target group is TCP. For Application Load Balancers, the default is
77             HTTP. For Network Load Balancers, the default is TCP.
78              
79             Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">
80              
81             =head2 HealthCheckTimeoutSeconds => Int
82              
83             The amount of time, in seconds, during which no response from a target
84             means a failed health check. For Application Load Balancers, the range
85             is 2 to 60 seconds and the default is 5 seconds. For Network Load
86             Balancers, this is 10 seconds for TCP and HTTPS health checks and 6
87             seconds for HTTP health checks.
88              
89              
90              
91             =head2 HealthyThresholdCount => Int
92              
93             The number of consecutive health checks successes required before
94             considering an unhealthy target healthy. For Application Load
95             Balancers, the default is 5. For Network Load Balancers, the default is
96             3.
97              
98              
99              
100             =head2 Matcher => L<Paws::ELBv2::Matcher>
101              
102             [HTTP/HTTPS health checks] The HTTP codes to use when checking for a
103             successful response from a target.
104              
105              
106              
107             =head2 B<REQUIRED> Name => Str
108              
109             The name of the target group.
110              
111             This name must be unique per region per account, can have a maximum of
112             32 characters, must contain only alphanumeric characters or hyphens,
113             and must not begin or end with a hyphen.
114              
115              
116              
117             =head2 B<REQUIRED> Port => Int
118              
119             The port on which the targets receive traffic. This port is used unless
120             you specify a port override when registering the target.
121              
122              
123              
124             =head2 B<REQUIRED> Protocol => Str
125              
126             The protocol to use for routing traffic to the targets. For Application
127             Load Balancers, the supported protocols are HTTP and HTTPS. For Network
128             Load Balancers, the supported protocol is TCP.
129              
130             Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">
131              
132             =head2 TargetType => Str
133              
134             The type of target that you must specify when registering targets with
135             this target group. The possible values are C<instance> (targets are
136             specified by instance ID) or C<ip> (targets are specified by IP
137             address). The default is C<instance>. Note that you can't specify
138             targets for a target group using both instance IDs and IP addresses.
139              
140             If the target type is C<ip>, specify IP addresses from the subnets of
141             the virtual private cloud (VPC) for the target group, the RFC 1918
142             range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598
143             range (100.64.0.0/10). You can't specify publicly routable IP
144             addresses.
145              
146             Valid values are: C<"instance">, C<"ip">
147              
148             =head2 UnhealthyThresholdCount => Int
149              
150             The number of consecutive health check failures required before
151             considering a target unhealthy. For Application Load Balancers, the
152             default is 2. For Network Load Balancers, this value must be the same
153             as the healthy threshold count.
154              
155              
156              
157             =head2 B<REQUIRED> VpcId => Str
158              
159             The identifier of the virtual private cloud (VPC).
160              
161              
162              
163              
164             =head1 SEE ALSO
165              
166             This class forms part of L<Paws>, documenting arguments for method CreateTargetGroup in L<Paws::ELBv2>
167              
168             =head1 BUGS and CONTRIBUTIONS
169              
170             The source code is located here: https://github.com/pplu/aws-sdk-perl
171              
172             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
173              
174             =cut
175