Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the specified Application Auto Scaling scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.
To create a scaling policy or update an existing one, see PutScalingPolicy
.
- deleteScalingPolicy :: Text -> ServiceNamespace -> Text -> ScalableDimension -> DeleteScalingPolicy
- data DeleteScalingPolicy
- dspPolicyName :: Lens' DeleteScalingPolicy Text
- dspServiceNamespace :: Lens' DeleteScalingPolicy ServiceNamespace
- dspResourceId :: Lens' DeleteScalingPolicy Text
- dspScalableDimension :: Lens' DeleteScalingPolicy ScalableDimension
- deleteScalingPolicyResponse :: Int -> DeleteScalingPolicyResponse
- data DeleteScalingPolicyResponse
- dsprsResponseStatus :: Lens' DeleteScalingPolicyResponse Int
Creating a Request
:: Text | |
-> ServiceNamespace | |
-> Text | |
-> ScalableDimension | |
-> DeleteScalingPolicy |
Creates a value of DeleteScalingPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dspPolicyName
- The name of the scaling policy.dspServiceNamespace
- The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .dspResourceId
- The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type isservice
and the unique identifier is the cluster name and service name. Example:servicedefaultsample-webapp
. * Spot fleet request - The resource type isspot-fleet-request
and the unique identifier is the Spot fleet request ID. Example:spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE
. * EMR cluster - The resource type isinstancegroup
and the unique identifier is the cluster ID and instance group ID. Example:instancegroupj-2EEZNYKUA1NTVig-1791Y4E1L8YI0
.dspScalableDimension
- The scalable dimension. This string consists of the service namespace, resource type, and scaling property. *ecs:service:DesiredCount
- The desired task count of an ECS service. *ec2:spot-fleet-request:TargetCapacity
- The target capacity of a Spot fleet request. *elasticmapreduce:instancegroup:InstanceCount
- The instance count of an EMR Instance Group.
data DeleteScalingPolicy Source #
See: deleteScalingPolicy
smart constructor.
Request Lenses
dspPolicyName :: Lens' DeleteScalingPolicy Text Source #
The name of the scaling policy.
dspServiceNamespace :: Lens' DeleteScalingPolicy ServiceNamespace Source #
The namespace of the AWS service. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference .
dspResourceId :: Lens' DeleteScalingPolicy Text Source #
The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. * ECS service - The resource type is service
and the unique identifier is the cluster name and service name. Example: servicedefaultsample-webapp
. * Spot fleet request - The resource type is spot-fleet-request
and the unique identifier is the Spot fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE
. * EMR cluster - The resource type is instancegroup
and the unique identifier is the cluster ID and instance group ID. Example: instancegroupj-2EEZNYKUA1NTVig-1791Y4E1L8YI0
.
dspScalableDimension :: Lens' DeleteScalingPolicy ScalableDimension Source #
The scalable dimension. This string consists of the service namespace, resource type, and scaling property. * ecs:service:DesiredCount
- The desired task count of an ECS service. * ec2:spot-fleet-request:TargetCapacity
- The target capacity of a Spot fleet request. * elasticmapreduce:instancegroup:InstanceCount
- The instance count of an EMR Instance Group.
Destructuring the Response
deleteScalingPolicyResponse Source #
Creates a value of DeleteScalingPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsprsResponseStatus
- -- | The response status code.
data DeleteScalingPolicyResponse Source #
See: deleteScalingPolicyResponse
smart constructor.
Response Lenses
dsprsResponseStatus :: Lens' DeleteScalingPolicyResponse Int Source #
- - | The response status code.