blib/lib/Paws/ApplicationAutoScaling/ScalableTarget.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::ApplicationAutoScaling::ScalableTarget;
3 use Moose;
4 has CreationTime => (is => 'ro', isa => 'Str', required => 1);
5 has MaxCapacity => (is => 'ro', isa => 'Int', required => 1);
6 has MinCapacity => (is => 'ro', isa => 'Int', required => 1);
7 has ResourceId => (is => 'ro', isa => 'Str', required => 1);
8 has RoleARN => (is => 'ro', isa => 'Str', required => 1);
9 has ScalableDimension => (is => 'ro', isa => 'Str', required => 1);
10 has ServiceNamespace => (is => 'ro', isa => 'Str', required => 1);
11 has SuspendedState => (is => 'ro', isa => 'Paws::ApplicationAutoScaling::SuspendedState');
12  
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::ApplicationAutoScaling::ScalableTarget
20  
21 =head1 USAGE
22  
23 This class represents one of two things:
24  
25 =head3 Arguments in a call to a service
26  
27 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
28 Each attribute should be used as a named argument in the calls that expect this type of object.
29  
30 As an example, if Att1 is expected to be a Paws::ApplicationAutoScaling::ScalableTarget object:
31  
32 $service_obj->Method(Att1 => { CreationTime => $value, ..., SuspendedState => $value });
33  
34 =head3 Results returned from an API call
35  
36 Use accessors for each attribute. If Att1 is expected to be an Paws::ApplicationAutoScaling::ScalableTarget object:
37  
38 $result = $service_obj->Method(...);
39 $result->Att1->CreationTime
40  
41 =head1 DESCRIPTION
42  
43 Represents a scalable target.
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 B<REQUIRED> CreationTime => Str
49  
50 The Unix timestamp for when the scalable target was created.
51  
52  
53 =head2 B<REQUIRED> MaxCapacity => Int
54  
55 The maximum value to scale to in response to a scale-out activity.
56  
57  
58 =head2 B<REQUIRED> MinCapacity => Int
59  
60 The minimum value to scale to in response to a scale-in activity.
61  
62  
63 =head2 B<REQUIRED> ResourceId => Str
64  
65 The identifier of the resource associated with the scalable target.
66 This string consists of the resource type and unique identifier.
67  
68 =over
69  
70 =item *
71  
72 ECS service - The resource type is C<service> and the unique identifier
73 is the cluster name and service name. Example:
74 C<service/default/sample-webapp>.
75  
76 =item *
77  
78 Spot Fleet request - The resource type is C<spot-fleet-request> and the
79 unique identifier is the Spot Fleet request ID. Example:
80 C<spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE>.
81  
82 =item *
83  
84 EMR cluster - The resource type is C<instancegroup> and the unique
85 identifier is the cluster ID and instance group ID. Example:
86 C<instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0>.
87  
88 =item *
89  
90 AppStream 2.0 fleet - The resource type is C<fleet> and the unique
91 identifier is the fleet name. Example: C<fleet/sample-fleet>.
92  
93 =item *
94  
95 DynamoDB table - The resource type is C<table> and the unique
96 identifier is the table name. Example: C<table/my-table>.
97  
98 =item *
99  
100 DynamoDB global secondary index - The resource type is C<index> and the
101 unique identifier is the index name. Example:
102 C<table/my-table/index/my-table-index>.
103  
104 =item *
105  
106 Aurora DB cluster - The resource type is C<cluster> and the unique
107 identifier is the cluster name. Example: C<cluster:my-db-cluster>.
108  
109 =item *
110  
111 Amazon SageMaker endpoint variant - The resource type is C<variant> and
112 the unique identifier is the resource ID. Example:
113 C<endpoint/my-end-point/variant/KMeansClustering>.
114  
115 =item *
116  
117 Custom resources are not supported with a resource type. This parameter
118 must specify the C<OutputValue> from the CloudFormation template stack
119 used to access the resources. The unique identifier is defined by the
120 service provider. More information is available in our GitHub
121 repository (https://github.com/aws/aws-auto-scaling-custom-resource).
122  
123 =item *
124  
125 Amazon Comprehend document classification endpoint - The resource type
126 and unique identifier are specified using the endpoint ARN. Example:
127 C<arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE>.
128  
129 =item *
130  
131 Amazon Comprehend entity recognizer endpoint - The resource type and
132 unique identifier are specified using the endpoint ARN. Example:
133 C<arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE>.
134  
135 =item *
136  
137 Lambda provisioned concurrency - The resource type is C<function> and
138 the unique identifier is the function name with a function version or
139 alias name suffix that is not C<$LATEST>. Example:
140 C<function:my-function:prod> or C<function:my-function:1>.
141  
142 =item *
143  
144 Amazon Keyspaces table - The resource type is C<table> and the unique
145 identifier is the table name. Example:
146 C<keyspace/mykeyspace/table/mytable>.
147  
148 =item *
149  
150 Amazon MSK cluster - The resource type and unique identifier are
151 specified using the cluster ARN. Example:
152 C<arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5>.
153  
154 =back
155  
156  
157  
158 =head2 B<REQUIRED> RoleARN => Str
159  
160 The ARN of an IAM role that allows Application Auto Scaling to modify
161 the scalable target on your behalf.
162  
163  
164 =head2 B<REQUIRED> ScalableDimension => Str
165  
166 The scalable dimension associated with the scalable target. This string
167 consists of the service namespace, resource type, and scaling property.
168  
169 =over
170  
171 =item *
172  
173 C<ecs:service:DesiredCount> - The desired task count of an ECS service.
174  
175 =item *
176  
177 C<ec2:spot-fleet-request:TargetCapacity> - The target capacity of a
178 Spot Fleet request.
179  
180 =item *
181  
182 C<elasticmapreduce:instancegroup:InstanceCount> - The instance count of
183 an EMR Instance Group.
184  
185 =item *
186  
187 C<appstream:fleet:DesiredCapacity> - The desired capacity of an
188 AppStream 2.0 fleet.
189  
190 =item *
191  
192 C<dynamodb:table:ReadCapacityUnits> - The provisioned read capacity for
193 a DynamoDB table.
194  
195 =item *
196  
197 C<dynamodb:table:WriteCapacityUnits> - The provisioned write capacity
198 for a DynamoDB table.
199  
200 =item *
201  
202 C<dynamodb:index:ReadCapacityUnits> - The provisioned read capacity for
203 a DynamoDB global secondary index.
204  
205 =item *
206  
207 C<dynamodb:index:WriteCapacityUnits> - The provisioned write capacity
208 for a DynamoDB global secondary index.
209  
210 =item *
211  
212 C<rds:cluster:ReadReplicaCount> - The count of Aurora Replicas in an
213 Aurora DB cluster. Available for Aurora MySQL-compatible edition and
214 Aurora PostgreSQL-compatible edition.
215  
216 =item *
217  
218 C<sagemaker:variant:DesiredInstanceCount> - The number of EC2 instances
219 for an Amazon SageMaker model endpoint variant.
220  
221 =item *
222  
223 C<custom-resource:ResourceType:Property> - The scalable dimension for a
224 custom resource provided by your own application or service.
225  
226 =item *
227  
228 C<comprehend:document-classifier-endpoint:DesiredInferenceUnits> - The
229 number of inference units for an Amazon Comprehend document
230 classification endpoint.
231  
232 =item *
233  
234 C<comprehend:entity-recognizer-endpoint:DesiredInferenceUnits> - The
235 number of inference units for an Amazon Comprehend entity recognizer
236 endpoint.
237  
238 =item *
239  
240 C<lambda:function:ProvisionedConcurrency> - The provisioned concurrency
241 for a Lambda function.
242  
243 =item *
244  
245 C<cassandra:table:ReadCapacityUnits> - The provisioned read capacity
246 for an Amazon Keyspaces table.
247  
248 =item *
249  
250 C<cassandra:table:WriteCapacityUnits> - The provisioned write capacity
251 for an Amazon Keyspaces table.
252  
253 =item *
254  
255 C<kafka:broker-storage:VolumeSize> - The provisioned volume size (in
256 GiB) for brokers in an Amazon MSK cluster.
257  
258 =back
259  
260  
261  
262 =head2 B<REQUIRED> ServiceNamespace => Str
263  
264 The namespace of the AWS service that provides the resource, or a
265 C<custom-resource>.
266  
267  
268 =head2 SuspendedState => L<Paws::ApplicationAutoScaling::SuspendedState>
269  
270  
271  
272  
273  
274 =head1 SEE ALSO
275  
276 This class forms part of L<Paws>, describing an object used in L<Paws::ApplicationAutoScaling>
277  
278 =head1 BUGS and CONTRIBUTIONS
279  
280 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
281  
282 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
283  
284 =cut
285