blib/lib/Paws/AutoScaling/PredictiveScalingPredefinedScalingMetric.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::AutoScaling::PredictiveScalingPredefinedScalingMetric;
3 use Moose;
4 has PredefinedMetricType => (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::AutoScaling::PredictiveScalingPredefinedScalingMetric
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::AutoScaling::PredictiveScalingPredefinedScalingMetric object:
25  
26 $service_obj->Method(Att1 => { PredefinedMetricType => $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::AutoScaling::PredictiveScalingPredefinedScalingMetric object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->PredefinedMetricType
34  
35 =head1 DESCRIPTION
36  
37 Describes a scaling metric for a predictive scaling policy.
38  
39 When returned in the output of C<DescribePolicies>, it indicates that a
40 predictive scaling policy uses individually specified load and scaling
41 metrics instead of a metric pair.
42  
43 =head1 ATTRIBUTES
44  
45  
46 =head2 B<REQUIRED> PredefinedMetricType => Str
47  
48 The metric type.
49  
50  
51 =head2 ResourceLabel => Str
52  
53 A label that uniquely identifies a specific Application Load Balancer
54 target group from which to determine the average request count served
55 by your Auto Scaling group. You can't specify a resource label unless
56 the target group is attached to the Auto Scaling group.
57  
58 You create the resource label by appending the final portion of the
59 load balancer ARN and the final portion of the target group ARN into a
60 single value, separated by a forward slash (/). The format of the
61 resource label is:
62  
63 C<app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff>.
64  
65 Where:
66  
67 =over
68  
69 =item *
70  
71 app/E<lt>load-balancer-nameE<gt>/E<lt>load-balancer-idE<gt> is the
72 final portion of the load balancer ARN
73  
74 =item *
75  
76 targetgroup/E<lt>target-group-nameE<gt>/E<lt>target-group-idE<gt> is
77 the final portion of the target group ARN.
78  
79 =back
80  
81 To find the ARN for an Application Load Balancer, use the
82 DescribeLoadBalancers
83 (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
84 API operation. To find the ARN for the target group, use the
85 DescribeTargetGroups
86 (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html)
87 API operation.
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102