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

Contents

Description

Provides descriptive information for scalable targets with a specified service namespace.

You can filter the results in a service namespace with the ResourceIds and ScalableDimension parameters.

To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.

Synopsis

Creating a Request

describeScalableTargets Source #

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

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

data DescribeScalableTargets Source #

See: describeScalableTargets smart constructor.

Instances

Eq DescribeScalableTargets Source # 
Data DescribeScalableTargets Source # 

Methods

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

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

toConstr :: DescribeScalableTargets -> Constr #

dataTypeOf :: DescribeScalableTargets -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: DescribeScalableTargets -> () #

AWSRequest DescribeScalableTargets Source # 
ToPath DescribeScalableTargets Source # 
ToHeaders DescribeScalableTargets Source # 
ToQuery DescribeScalableTargets Source # 
type Rep DescribeScalableTargets Source # 
type Rep DescribeScalableTargets = D1 (MetaData "DescribeScalableTargets" "Network.AWS.ApplicationAutoScaling.DescribeScalableTargets" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "DescribeScalableTargets'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dstResourceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_dstScalableDimension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ScalableDimension)))) ((:*:) (S1 (MetaSel (Just Symbol "_dstNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dstMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_dstServiceNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ServiceNamespace))))))
type Rs DescribeScalableTargets Source # 

Request Lenses

dstResourceIds :: Lens' DescribeScalableTargets [Text] Source #

The unique identifier string for the resource associated with the scalable target. 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.

dstScalableDimension :: Lens' DescribeScalableTargets (Maybe ScalableDimension) Source #

The scalable dimension associated with the scalable target. 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.

dstNextToken :: Lens' DescribeScalableTargets (Maybe Text) Source #

The NextToken value returned from a previous paginated DescribeScalableTargets 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.

dstMaxResults :: Lens' DescribeScalableTargets (Maybe Int) Source #

The maximum number of scalable target results returned by DescribeScalableTargets in paginated output. When this parameter is used, DescribeScalableTargets 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 DescribeScalableTargets request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalableTargets returns up to 50 results and a NextToken value, if applicable.

dstServiceNamespace :: Lens' DescribeScalableTargets ServiceNamespace Source #

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

Destructuring the Response

describeScalableTargetsResponse Source #

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

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

data DescribeScalableTargetsResponse Source #

See: describeScalableTargetsResponse smart constructor.

Instances

Eq DescribeScalableTargetsResponse Source # 
Data DescribeScalableTargetsResponse Source # 

Methods

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

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

toConstr :: DescribeScalableTargetsResponse -> Constr #

dataTypeOf :: DescribeScalableTargetsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeScalableTargetsResponse Source # 
Show DescribeScalableTargetsResponse Source # 
Generic DescribeScalableTargetsResponse Source # 
NFData DescribeScalableTargetsResponse Source # 
type Rep DescribeScalableTargetsResponse Source # 
type Rep DescribeScalableTargetsResponse = D1 (MetaData "DescribeScalableTargetsResponse" "Network.AWS.ApplicationAutoScaling.DescribeScalableTargets" "amazonka-application-autoscaling-1.4.3-AN6n0v3PjFC88P4FkDV0Y6" False) (C1 (MetaCons "DescribeScalableTargetsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dstsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dstsrsScalableTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ScalableTarget]))) (S1 (MetaSel (Just Symbol "_dstsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

dstsrsNextToken :: Lens' DescribeScalableTargetsResponse (Maybe Text) Source #

The NextToken value to include in a future DescribeScalableTargets request. When the results of a DescribeScalableTargets 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.

dstsrsScalableTargets :: Lens' DescribeScalableTargetsResponse [ScalableTarget] Source #

The list of scalable targets that matches the request parameters.