File Coverage

blib/lib/Paws/ApplicationAutoScaling/DeleteScalingPolicy.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ApplicationAutoScaling::DeleteScalingPolicy;
3 1     1   522 use Moose;
  1         4  
  1         9  
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 1     1   7292 use MooseX::ClassAttribute;
  1         3  
  1         10  
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 Paws::ApplicationAutoScaling
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method DeleteScalingPolicy on the
25             Application Auto Scaling 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             As an example:
31              
32             $service_obj->DeleteScalingPolicy(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> PolicyName => Str
40              
41             The name of the scaling policy.
42              
43              
44              
45             =head2 B<REQUIRED> ResourceId => Str
46              
47             The identifier of the resource associated with the scalable target.
48             This string consists of the resource type and unique identifier.
49              
50             =over
51              
52             =item *
53              
54             ECS service - The resource type is C<service> and the unique identifier
55             is the cluster name and service name. Example:
56             C<service/default/sample-webapp>.
57              
58             =item *
59              
60             Spot fleet request - The resource type is C<spot-fleet-request> and the
61             unique identifier is the Spot fleet request ID. Example:
62             C<spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE>.
63              
64             =item *
65              
66             EMR cluster - The resource type is C<instancegroup> and the unique
67             identifier is the cluster ID and instance group ID. Example:
68             C<instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0>.
69              
70             =item *
71              
72             AppStream 2.0 fleet - The resource type is C<fleet> and the unique
73             identifier is the fleet name. Example: C<fleet/sample-fleet>.
74              
75             =item *
76              
77             DynamoDB table - The resource type is C<table> and the unique
78             identifier is the resource ID. Example: C<table/my-table>.
79              
80             =item *
81              
82             DynamoDB global secondary index - The resource type is C<index> and the
83             unique identifier is the resource ID. Example:
84             C<table/my-table/index/my-table-index>.
85              
86             =back
87              
88              
89              
90              
91             =head2 B<REQUIRED> ScalableDimension => Str
92              
93             The scalable dimension. This string consists of the service namespace,
94             resource type, and scaling property.
95              
96             =over
97              
98             =item *
99              
100             C<ecs:service:DesiredCount> - The desired task count of an ECS service.
101              
102             =item *
103              
104             C<ec2:spot-fleet-request:TargetCapacity> - The target capacity of a
105             Spot fleet request.
106              
107             =item *
108              
109             C<elasticmapreduce:instancegroup:InstanceCount> - The instance count of
110             an EMR Instance Group.
111              
112             =item *
113              
114             C<appstream:fleet:DesiredCapacity> - The desired capacity of an
115             AppStream 2.0 fleet.
116              
117             =item *
118              
119             C<dynamodb:table:ReadCapacityUnits> - The provisioned read capacity for
120             a DynamoDB table.
121              
122             =item *
123              
124             C<dynamodb:table:WriteCapacityUnits> - The provisioned write capacity
125             for a DynamoDB table.
126              
127             =item *
128              
129             C<dynamodb:index:ReadCapacityUnits> - The provisioned read capacity for
130             a DynamoDB global secondary index.
131              
132             =item *
133              
134             C<dynamodb:index:WriteCapacityUnits> - The provisioned write capacity
135             for a DynamoDB global secondary index.
136              
137             =back
138              
139              
140             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">
141              
142             =head2 B<REQUIRED> ServiceNamespace => Str
143              
144             The namespace of the AWS service. For more information, see AWS Service
145             Namespaces in the I<Amazon Web Services General Reference>.
146              
147             Valid values are: C<"ecs">, C<"elasticmapreduce">, C<"ec2">, C<"appstream">, C<"dynamodb">
148              
149              
150             =head1 SEE ALSO
151              
152             This class forms part of L<Paws>, documenting arguments for method DeleteScalingPolicy in L<Paws::ApplicationAutoScaling>
153              
154             =head1 BUGS and CONTRIBUTIONS
155              
156             The source code is located here: https://github.com/pplu/aws-sdk-perl
157              
158             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
159              
160             =cut
161