amazonka-application-autoscaling-1.4.3: Amazon Application Auto Scaling SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ApplicationAutoScaling.DeleteScalingPolicy

Contents

Description

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.

Synopsis

Creating a Request

deleteScalingPolicy Source #

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.

Instances

Eq DeleteScalingPolicy Source # 
Data DeleteScalingPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteScalingPolicy -> c DeleteScalingPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteScalingPolicy #

toConstr :: DeleteScalingPolicy -> Constr #

dataTypeOf :: DeleteScalingPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteScalingPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteScalingPolicy) #

gmapT :: (forall b. Data b => b -> b) -> DeleteScalingPolicy -> DeleteScalingPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteScalingPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteScalingPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteScalingPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteScalingPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteScalingPolicy -> m DeleteScalingPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteScalingPolicy -> m DeleteScalingPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteScalingPolicy -> m DeleteScalingPolicy #

Read DeleteScalingPolicy Source # 
Show DeleteScalingPolicy Source # 
Generic DeleteScalingPolicy Source # 
ToJSON DeleteScalingPolicy Source # 
Hashable DeleteScalingPolicy Source # 
NFData DeleteScalingPolicy Source # 

Methods

rnf :: DeleteScalingPolicy -> () #

AWSRequest DeleteScalingPolicy Source # 
ToPath DeleteScalingPolicy Source # 
ToHeaders DeleteScalingPolicy Source # 
ToQuery DeleteScalingPolicy Source # 
type Rep DeleteScalingPolicy Source # 
type Rep DeleteScalingPolicy = D1 (MetaData "DeleteScalingPolicy" "Network.AWS.ApplicationAutoScaling.DeleteScalingPolicy" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "DeleteScalingPolicy'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dspPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dspServiceNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ServiceNamespace))) ((:*:) (S1 (MetaSel (Just Symbol "_dspResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dspScalableDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ScalableDimension)))))
type Rs DeleteScalingPolicy Source # 

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.

Instances

Eq DeleteScalingPolicyResponse Source # 
Data DeleteScalingPolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteScalingPolicyResponse -> c DeleteScalingPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteScalingPolicyResponse #

toConstr :: DeleteScalingPolicyResponse -> Constr #

dataTypeOf :: DeleteScalingPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteScalingPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteScalingPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteScalingPolicyResponse -> DeleteScalingPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteScalingPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteScalingPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteScalingPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteScalingPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteScalingPolicyResponse -> m DeleteScalingPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteScalingPolicyResponse -> m DeleteScalingPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteScalingPolicyResponse -> m DeleteScalingPolicyResponse #

Read DeleteScalingPolicyResponse Source # 
Show DeleteScalingPolicyResponse Source # 
Generic DeleteScalingPolicyResponse Source # 
NFData DeleteScalingPolicyResponse Source # 
type Rep DeleteScalingPolicyResponse Source # 
type Rep DeleteScalingPolicyResponse = D1 (MetaData "DeleteScalingPolicyResponse" "Network.AWS.ApplicationAutoScaling.DeleteScalingPolicy" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" True) (C1 (MetaCons "DeleteScalingPolicyResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_dsprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses