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

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