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.DescribeScalingPolicies

Contents

Description

Provides descriptive information for scaling policies with a specified service namespace.

You can filter the results in a service namespace with the ResourceId, ScalableDimension, and PolicyNames parameters.

To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.

Synopsis

Creating a Request

describeScalingPolicies Source #

Creates a value of DescribeScalingPolicies with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeScalingPolicies Source #

See: describeScalingPolicies smart constructor.

Instances

Eq DescribeScalingPolicies Source # 
Data DescribeScalingPolicies Source # 

Methods

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

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

toConstr :: DescribeScalingPolicies -> Constr #

dataTypeOf :: DescribeScalingPolicies -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: DescribeScalingPolicies -> () #

AWSRequest DescribeScalingPolicies Source # 
ToPath DescribeScalingPolicies Source # 
ToHeaders DescribeScalingPolicies Source # 
ToQuery DescribeScalingPolicies Source # 
type Rep DescribeScalingPolicies Source # 
type Rep DescribeScalingPolicies = D1 (MetaData "DescribeScalingPolicies" "Network.AWS.ApplicationAutoScaling.DescribeScalingPolicies" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "DescribeScalingPolicies'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dPolicyNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_dScalableDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ScalableDimension))) (S1 (MetaSel (Just Symbol "_dResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_dNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_dServiceNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ServiceNamespace))))))
type Rs DescribeScalingPolicies Source # 

Request Lenses

dPolicyNames :: Lens' DescribeScalingPolicies [Text] Source #

The names of the scaling policies to describe.

dScalableDimension :: Lens' DescribeScalingPolicies (Maybe ScalableDimension) Source #

The scalable dimension of the scalable target that the scaling policy is associated with. 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. If you specify a scalable dimension, you must also specify a resource ID.

dResourceId :: Lens' DescribeScalingPolicies (Maybe Text) Source #

The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as 'service\/default\/sample-webapp'. If you specify a scalable dimension, you must also specify a resource ID.

dNextToken :: Lens' DescribeScalingPolicies (Maybe Text) Source #

The NextToken value returned from a previous paginated DescribeScalingPolicies request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

dMaxResults :: Lens' DescribeScalingPolicies (Maybe Int) Source #

The maximum number of scaling policy results returned by DescribeScalingPolicies in paginated output. When this parameter is used, DescribeScalingPolicies returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalingPolicies request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalingPolicies returns up to 50 results and a NextToken value, if applicable.

dServiceNamespace :: Lens' DescribeScalingPolicies ServiceNamespace Source #

The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

Destructuring the Response

describeScalingPoliciesResponse Source #

Creates a value of DescribeScalingPoliciesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeScalingPoliciesResponse Source #

See: describeScalingPoliciesResponse smart constructor.

Instances

Eq DescribeScalingPoliciesResponse Source # 
Data DescribeScalingPoliciesResponse Source # 

Methods

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

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

toConstr :: DescribeScalingPoliciesResponse -> Constr #

dataTypeOf :: DescribeScalingPoliciesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeScalingPoliciesResponse Source # 
Show DescribeScalingPoliciesResponse Source # 
Generic DescribeScalingPoliciesResponse Source # 
NFData DescribeScalingPoliciesResponse Source # 
type Rep DescribeScalingPoliciesResponse Source # 
type Rep DescribeScalingPoliciesResponse = D1 (MetaData "DescribeScalingPoliciesResponse" "Network.AWS.ApplicationAutoScaling.DescribeScalingPolicies" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "DescribeScalingPoliciesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_drsScalingPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ScalingPolicy]))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

drsNextToken :: Lens' DescribeScalingPoliciesResponse (Maybe Text) Source #

The NextToken value to include in a future DescribeScalingPolicies request. When the results of a DescribeScalingPolicies request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.