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 an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.
To create a new 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:
data DeleteScalingPolicy Source #
See: deleteScalingPolicy
smart constructor.
Request Lenses
dspPolicyName :: Lens' DeleteScalingPolicy Text Source #
The name of the scaling policy to delete.
dspServiceNamespace :: Lens' DeleteScalingPolicy ServiceNamespace Source #
The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.
dspResourceId :: Lens' DeleteScalingPolicy Text Source #
The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'.
dspScalableDimension :: Lens' DeleteScalingPolicy ScalableDimension Source #
The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as 'ecs:service:DesiredCount' for the desired task count of an Amazon ECS service.
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:
data DeleteScalingPolicyResponse Source #
See: deleteScalingPolicyResponse
smart constructor.
Response Lenses
dsprsResponseStatus :: Lens' DeleteScalingPolicyResponse Int Source #
The response status code.