amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.DescribeScalingPolicies

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.

A fleet may have all of its scaling policies suspended. This operation does not affect the status of the scaling policies, which remains ACTIVE.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeScalingPolicies Source #

See: newDescribeScalingPolicies smart constructor.

Constructors

DescribeScalingPolicies' 

Fields

  • limit :: Maybe Natural

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

  • location :: Maybe Text

    The fleet location. If you don't specify this value, the response contains the scaling policies of every location in the fleet.

  • nextToken :: Maybe Text

    A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

  • statusFilter :: Maybe ScalingStatusType

    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.
  • fleetId :: Text

    A unique identifier for the fleet for which to retrieve scaling policies. You can use either the fleet ID or ARN value.

Instances

Instances details
ToJSON DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

ToHeaders DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

ToPath DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

ToQuery DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

AWSPager DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

AWSRequest DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Generic DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Associated Types

type Rep DescribeScalingPolicies :: Type -> Type #

Read DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Show DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

NFData DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Methods

rnf :: DescribeScalingPolicies -> () #

Eq DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Hashable DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

type AWSResponse DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

type Rep DescribeScalingPolicies Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

type Rep DescribeScalingPolicies = D1 ('MetaData "DescribeScalingPolicies" "Amazonka.GameLift.DescribeScalingPolicies" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "DescribeScalingPolicies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "statusFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ScalingStatusType)) :*: S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newDescribeScalingPolicies Source #

Create a value of DescribeScalingPolicies with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:limit:DescribeScalingPolicies', describeScalingPolicies_limit - The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

DescribeScalingPolicies, describeScalingPolicies_location - The fleet location. If you don't specify this value, the response contains the scaling policies of every location in the fleet.

DescribeScalingPolicies, describeScalingPolicies_nextToken - A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

$sel:statusFilter:DescribeScalingPolicies', describeScalingPolicies_statusFilter - 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.

DescribeScalingPolicies, describeScalingPolicies_fleetId - A unique identifier for the fleet for which to retrieve scaling policies. You can use either the fleet ID or ARN value.

Request Lenses

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

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

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

The fleet location. If you don't specify this value, the response contains the scaling policies of every location in the fleet.

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

A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

describeScalingPolicies_statusFilter :: 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.

describeScalingPolicies_fleetId :: Lens' DescribeScalingPolicies Text Source #

A unique identifier for the fleet for which to retrieve scaling policies. You can use either the fleet ID or ARN value.

Destructuring the Response

data DescribeScalingPoliciesResponse Source #

See: newDescribeScalingPoliciesResponse smart constructor.

Constructors

DescribeScalingPoliciesResponse' 

Fields

  • nextToken :: Maybe Text

    A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

  • scalingPolicies :: Maybe [ScalingPolicy]

    A collection of objects containing the scaling policies matching the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Associated Types

type Rep DescribeScalingPoliciesResponse :: Type -> Type #

Read DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Show DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

NFData DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

Eq DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

type Rep DescribeScalingPoliciesResponse Source # 
Instance details

Defined in Amazonka.GameLift.DescribeScalingPolicies

type Rep DescribeScalingPoliciesResponse = D1 ('MetaData "DescribeScalingPoliciesResponse" "Amazonka.GameLift.DescribeScalingPolicies" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "DescribeScalingPoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "scalingPolicies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ScalingPolicy])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeScalingPoliciesResponse Source #

Create a value of DescribeScalingPoliciesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeScalingPolicies, describeScalingPoliciesResponse_nextToken - A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

$sel:scalingPolicies:DescribeScalingPoliciesResponse', describeScalingPoliciesResponse_scalingPolicies - A collection of objects containing the scaling policies matching the request.

$sel:httpStatus:DescribeScalingPoliciesResponse', describeScalingPoliciesResponse_httpStatus - The response's http status code.

Response Lenses

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

A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

describeScalingPoliciesResponse_scalingPolicies :: Lens' DescribeScalingPoliciesResponse (Maybe [ScalingPolicy]) Source #

A collection of objects containing the scaling policies matching the request.