amazonka-gamelift-1.4.4: Amazon GameLift 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.GameLift.DescribeScalingPolicies

Contents

Description

Retrieves all scaling policies applied to a fleet.

To get a fleet's scaling policies, specify the fleet ID. You can filter this request by policy status, such as to retrieve only active scaling policies. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, set of ScalingPolicy objects is returned for the fleet.

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 #

Represents the input for a request action.

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 # 
Hashable DescribeScalingPolicies Source # 
NFData DescribeScalingPolicies Source # 

Methods

rnf :: DescribeScalingPolicies -> () #

AWSRequest DescribeScalingPolicies Source # 
ToPath DescribeScalingPolicies Source # 
ToHeaders DescribeScalingPolicies Source # 
ToQuery DescribeScalingPolicies Source # 
ToJSON DescribeScalingPolicies Source # 
type Rep DescribeScalingPolicies Source # 
type Rep DescribeScalingPolicies = D1 (MetaData "DescribeScalingPolicies" "Network.AWS.GameLift.DescribeScalingPolicies" "amazonka-gamelift-1.4.4-DPfJmtllByT7OdD35vBDe5" False) (C1 (MetaCons "DescribeScalingPolicies'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dStatusFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ScalingStatusType)))) ((:*:) (S1 (MetaSel (Just Symbol "_dLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_dFleetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DescribeScalingPolicies Source # 

Request Lenses

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

Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

dStatusFilter :: Lens' DescribeScalingPolicies (Maybe ScalingStatusType) Source #

Scaling policy status to filter results on. A scaling policy is only in force when in an ACTIVE status.

  • ACTIVE – The scaling policy is currently in force.
  • UPDATEREQUESTED – A request to update the scaling policy has been received.
  • UPDATING – A change is being made to the scaling policy.
  • DELETEREQUESTED – A request to delete the scaling policy has been received.
  • DELETING – The scaling policy is being deleted.
  • DELETED – The scaling policy has been deleted.
  • ERROR – An error occurred in creating the policy. It should be removed and recreated.

dLimit :: Lens' DescribeScalingPolicies (Maybe Natural) Source #

Maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

dFleetId :: Lens' DescribeScalingPolicies Text Source #

Unique identifier for a fleet. Specify the fleet to retrieve scaling policies for.

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 #

Represents the returned data in response to a request action.

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.GameLift.DescribeScalingPolicies" "amazonka-gamelift-1.4.4-DPfJmtllByT7OdD35vBDe5" False) (C1 (MetaCons "DescribeScalingPoliciesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dsprsScalingPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ScalingPolicy]))) (S1 (MetaSel (Just Symbol "_dsprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

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

Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

dsprsScalingPolicies :: Lens' DescribeScalingPoliciesResponse [ScalingPolicy] Source #

Collection of objects containing the scaling policies matching the request.