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

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