blib/lib/Paws/ApplicationAutoScaling/DescribeScalingActivities.pm untested

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