amazonka-autoscaling-2.0: Amazon Auto Scaling 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.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

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

  • nextToken :: Maybe Text

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

  • policyNames :: Maybe [Text]

    The names of one or more policies. If you omit this property, 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.

  • policyTypes :: Maybe [Text]

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

Instances

Instances details
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

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 #

Generic DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Associated Types

type Rep DescribePolicies :: Type -> Type #

Read DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Show DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

NFData DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Methods

rnf :: DescribePolicies -> () #

Eq DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Hashable DescribePolicies Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

type AWSResponse 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" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "DescribePolicies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoScalingGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policyNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "policyTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))))

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:

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.

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

$sel:policyNames:DescribePolicies', describePolicies_policyNames - The names of one or more policies. If you omit this property, 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:policyTypes:DescribePolicies', describePolicies_policyTypes - One or more policy types. The valid values are SimpleScaling, StepScaling, TargetTrackingScaling, and PredictiveScaling.

Request Lenses

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_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_policyNames :: Lens' DescribePolicies (Maybe [Text]) Source #

The names of one or more policies. If you omit this property, 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_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
Generic DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Associated Types

type Rep DescribePoliciesResponse :: Type -> Type #

Read DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Show DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

NFData DescribePoliciesResponse Source # 
Instance details

Defined in Amazonka.AutoScaling.DescribePolicies

Eq 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" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" '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:

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.