amazonka-autoscaling-1.2.0: Amazon Auto Scaling SDK.

Copyright(c) 2013-2015 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.AutoScaling.DescribePolicies

Contents

Description

Describes the policies for the specified Auto Scaling group.

See: AWS API Reference for DescribePolicies.

This operation returns paginated results.

Synopsis

Creating a Request

describePolicies :: DescribePolicies Source

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

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

Request Lenses

dpsPolicyNames :: Lens' DescribePolicies [Text] Source

One or more policy names or policy ARNs to be described. If you omit this list, all policy names are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.

dpsNextToken :: Lens' DescribePolicies (Maybe Text) Source

The token for the next set of items to return. (You received this token from a previous call.)

dpsMaxRecords :: Lens' DescribePolicies (Maybe Int) Source

The maximum number of items to be returned with each call.

dpsPolicyTypes :: Lens' DescribePolicies [Text] Source

One or more policy types. Valid values are SimpleScaling and StepScaling.

Destructuring the Response

describePoliciesResponse Source

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

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

Response Lenses

dprsNextToken :: Lens' DescribePoliciesResponse (Maybe Text) Source

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

dprsStatus :: Lens' DescribePoliciesResponse Int Source

The response status code.