blib/lib/Paws/ELBv2/ModifyTargetGroup.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELBv2::ModifyTargetGroup;
3 use Moose;
4 has HealthCheckEnabled => (is => 'ro', isa => 'Bool');
5 has HealthCheckIntervalSeconds => (is => 'ro', isa => 'Int');
6 has HealthCheckPath => (is => 'ro', isa => 'Str');
7 has HealthCheckPort => (is => 'ro', isa => 'Str');
8 has HealthCheckProtocol => (is => 'ro', isa => 'Str');
9 has HealthCheckTimeoutSeconds => (is => 'ro', isa => 'Int');
10 has HealthyThresholdCount => (is => 'ro', isa => 'Int');
11 has Matcher => (is => 'ro', isa => 'Paws::ELBv2::Matcher');
12 has TargetGroupArn => (is => 'ro', isa => 'Str', required => 1);
13 has UnhealthyThresholdCount => (is => 'ro', isa => 'Int');
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyTargetGroup');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::ModifyTargetGroupOutput');
19 class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyTargetGroupResult');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::ELBv2::ModifyTargetGroup - Arguments for method ModifyTargetGroup on L<Paws::ELBv2>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method ModifyTargetGroup on the
31 L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class
32 as arguments to method ModifyTargetGroup.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyTargetGroup.
35  
36 =head1 SYNOPSIS
37  
38 my $elasticloadbalancing = Paws->service('ELBv2');
39 # To modify the health check configuration for a target group
40 # This example changes the configuration of the health checks used to evaluate
41 # the health of the targets for the specified target group.
42 my $ModifyTargetGroupOutput = $elasticloadbalancing->ModifyTargetGroup(
43 'HealthCheckPort' => 443,
44 'HealthCheckProtocol' => 'HTTPS',
45 'TargetGroupArn' =>
46 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f'
47 );
48  
49 # Results:
50 my $TargetGroups = $ModifyTargetGroupOutput->TargetGroups;
51  
52 # Returns a L<Paws::ELBv2::ModifyTargetGroupOutput> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/ModifyTargetGroup>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 HealthCheckEnabled => Bool
61  
62 Indicates whether health checks are enabled.
63  
64  
65  
66 =head2 HealthCheckIntervalSeconds => Int
67  
68 The approximate amount of time, in seconds, between health checks of an
69 individual target. For TCP health checks, the supported values are 10
70 or 30 seconds.
71  
72 With Network Load Balancers, you can't modify this setting.
73  
74  
75  
76 =head2 HealthCheckPath => Str
77  
78 [HTTP/HTTPS health checks] The destination for health checks on the
79 targets.
80  
81 [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
82  
83 [GRPC protocol version] The path of a custom health check method with
84 the format /package.service/method. The default is /Amazon Web
85 Services.ALB/healthcheck.
86  
87  
88  
89 =head2 HealthCheckPort => Str
90  
91 The port the load balancer uses when performing health checks on
92 targets.
93  
94  
95  
96 =head2 HealthCheckProtocol => Str
97  
98 The protocol the load balancer uses when performing health checks on
99 targets. For Application Load Balancers, the default is HTTP. For
100 Network Load Balancers and Gateway Load Balancers, the default is TCP.
101 The TCP protocol is not supported for health checks if the protocol of
102 the target group is HTTP or HTTPS. It is supported for health checks
103 only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
104 The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for
105 health checks.
106  
107 With Network Load Balancers, you can't modify this setting.
108  
109 Valid values are: C<"HTTP">, C<"HTTPS">, C<"TCP">, C<"TLS">, C<"UDP">, C<"TCP_UDP">, C<"GENEVE">
110  
111 =head2 HealthCheckTimeoutSeconds => Int
112  
113 [HTTP/HTTPS health checks] The amount of time, in seconds, during which
114 no response means a failed health check.
115  
116 With Network Load Balancers, you can't modify this setting.
117  
118  
119  
120 =head2 HealthyThresholdCount => Int
121  
122 The number of consecutive health checks successes required before
123 considering an unhealthy target healthy.
124  
125  
126  
127 =head2 Matcher => L<Paws::ELBv2::Matcher>
128  
129 [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking
130 for a successful response from a target.
131  
132 With Network Load Balancers, you can't modify this setting.
133  
134  
135  
136 =head2 B<REQUIRED> TargetGroupArn => Str
137  
138 The Amazon Resource Name (ARN) of the target group.
139  
140  
141  
142 =head2 UnhealthyThresholdCount => Int
143  
144 The number of consecutive health check failures required before
145 considering the target unhealthy. For target groups with a protocol of
146 TCP or TLS, this value must be the same as the healthy threshold count.
147  
148  
149  
150  
151 =head1 SEE ALSO
152  
153 This class forms part of L<Paws>, documenting arguments for method ModifyTargetGroup in L<Paws::ELBv2>
154  
155 =head1 BUGS and CONTRIBUTIONS
156  
157 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
158  
159 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
160  
161 =cut
162