libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.DescribePolicies

Description

Gets information about the scaling policies in the account and Region.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribePolicies Source #

See: newDescribePolicies smart constructor.

Constructors

DescribePolicies' 

Fields

  • policyNames :: Maybe [Text]

    The names of one or more policies. If you omit this parameter, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.

    Array Members: Maximum number of 50 items.

  • nextToken :: Maybe Text

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

  • autoScalingGroupName :: Maybe Text

    The name of the Auto Scaling group.

  • maxRecords :: Maybe Int

    The maximum number of items to be returned with each call. The default value is 50 and the maximum value is 100.

  • policyTypes :: Maybe [Text]

    One or more policy types. The valid values are SimpleScaling, StepScaling, TargetTrackingScaling, and PredictiveScaling.

Instances

Instances details
Eq DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Read DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Show DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Generic DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Associated Types

type Rep DescribePolicies :: Type -> Type #

NFData DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Methods

rnf :: DescribePolicies -> () #

Hashable DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

AWSPager DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

AWSRequest DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Associated Types

type AWSResponse DescribePolicies #

ToHeaders DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

ToPath DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

ToQuery DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

type Rep DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

type Rep DescribePolicies = D1 ('MetaData "DescribePolicies" "Amazonka.AutoScaling.DescribePolicies" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "DescribePolicies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policyNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "policyTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))))
type AWSResponse DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

newDescribePolicies :: DescribePolicies Source #

Create a value of DescribePolicies 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:policyNames:DescribePolicies', describePolicies_policyNames - The names of one or more policies. If you omit this parameter, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.

Array Members: Maximum number of 50 items.

$sel:nextToken:DescribePolicies', describePolicies_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:autoScalingGroupName:DescribePolicies', describePolicies_autoScalingGroupName - The name of the Auto Scaling group.

$sel:maxRecords:DescribePolicies', describePolicies_maxRecords - The maximum number of items to be returned with each call. The default value is 50 and the maximum value is 100.

$sel:policyTypes:DescribePolicies', describePolicies_policyTypes - One or more policy types. The valid values are SimpleScaling, StepScaling, TargetTrackingScaling, and PredictiveScaling.

Request Lenses

describePolicies_policyNames :: Lens' DescribePolicies (Maybe [Text]) Source #

The names of one or more policies. If you omit this parameter, all policies are described. If a group name is provided, the results are limited to that group. If you specify an unknown policy name, it is ignored with no error.

Array Members: Maximum number of 50 items.

describePolicies_nextToken :: Lens' DescribePolicies (Maybe Text) Source #

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

describePolicies_maxRecords :: Lens' DescribePolicies (Maybe Int) Source #

The maximum number of items to be returned with each call. The default value is 50 and the maximum value is 100.

describePolicies_policyTypes :: Lens' DescribePolicies (Maybe [Text]) Source #

One or more policy types. The valid values are SimpleScaling, StepScaling, TargetTrackingScaling, and PredictiveScaling.

Destructuring the Response

data DescribePoliciesResponse Source #

See: newDescribePoliciesResponse smart constructor.

Constructors

DescribePoliciesResponse' 

Fields

  • nextToken :: Maybe Text

    A string that indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the NextToken value when requesting the next set of items. This value is null when there are no more items to return.

  • scalingPolicies :: Maybe [ScalingPolicy]

    The scaling policies.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Read DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Show DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Generic DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Associated Types

type Rep DescribePoliciesResponse :: Type -> Type #

NFData DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

type Rep DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

type Rep DescribePoliciesResponse = D1 ('MetaData "DescribePoliciesResponse" "Amazonka.AutoScaling.DescribePolicies" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "DescribePoliciesResponse'" '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))))

newDescribePoliciesResponse Source #

Create a value of DescribePoliciesResponse 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:nextToken:DescribePolicies', describePoliciesResponse_nextToken - A string that indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the NextToken value when requesting the next set of items. This value is null when there are no more items to return.

$sel:scalingPolicies:DescribePoliciesResponse', describePoliciesResponse_scalingPolicies - The scaling policies.

$sel:httpStatus:DescribePoliciesResponse', describePoliciesResponse_httpStatus - The response's http status code.

Response Lenses

describePoliciesResponse_nextToken :: Lens' DescribePoliciesResponse (Maybe Text) Source #

A string that indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the NextToken value when requesting the next set of items. This value is null when there are no more items to return.