blib/lib/Paws/AutoScalingPlans/PredefinedScalingMetricSpecification.pm untested

filter: Statementstmt 0.0% 0 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 6 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::AutoScalingPlans::PredefinedScalingMetricSpecification;
3 use Moose;
4 has PredefinedScalingMetricType => (is => 'ro', isa => 'Str', required => 1);
5 has ResourceLabel => (is => 'ro', isa => 'Str');
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::AutoScalingPlans::PredefinedScalingMetricSpecification
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::AutoScalingPlans::PredefinedScalingMetricSpecification object:
25  
26 $service_obj->Method(Att1 => { PredefinedScalingMetricType => $value, ..., ResourceLabel => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScalingPlans::PredefinedScalingMetricSpecification object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->PredefinedScalingMetricType
34  
35 =head1 DESCRIPTION
36  
37 Represents a predefined metric that can be used for dynamic scaling as
38 part of a target tracking scaling policy.
39  
40 =head1 ATTRIBUTES
41  
42  
43 =head2 B<REQUIRED> PredefinedScalingMetricType => Str
44  
45 The metric type. The C<ALBRequestCountPerTarget> metric type applies
46 only to Auto Scaling groups, Spot Fleet requests, and ECS services.
47  
48  
49 =head2 ResourceLabel => Str
50  
51 Identifies the resource associated with the metric type. You can't
52 specify a resource label unless the metric type is
53 C<ALBRequestCountPerTarget> and there is a target group for an
54 Application Load Balancer attached to the Auto Scaling group, Spot
55 Fleet request, or ECS service.
56  
57 You create the resource label by appending the final portion of the
58 load balancer ARN and the final portion of the target group ARN into a
59 single value, separated by a forward slash (/). The format is
60 app/E<lt>load-balancer-nameE<gt>/E<lt>load-balancer-idE<gt>/targetgroup/E<lt>target-group-nameE<gt>/E<lt>target-group-idE<gt>,
61 where:
62  
63 =over
64  
65 =item *
66  
67 app/E<lt>load-balancer-nameE<gt>/E<lt>load-balancer-idE<gt> is the
68 final portion of the load balancer ARN
69  
70 =item *
71  
72 targetgroup/E<lt>target-group-nameE<gt>/E<lt>target-group-idE<gt> is
73 the final portion of the target group ARN.
74  
75 =back
76  
77 This is an example:
78 app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
79  
80 To find the ARN for an Application Load Balancer, use the
81 DescribeLoadBalancers
82 (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
83 API operation. To find the ARN for the target group, use the
84 DescribeTargetGroups
85 (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html)
86 API operation.
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScalingPlans>
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