Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about the scaling policies in the account and Region.
This operation returns paginated results.
Synopsis
- data DescribePolicies = DescribePolicies' {
- policyNames :: Maybe [Text]
- nextToken :: Maybe Text
- autoScalingGroupName :: Maybe Text
- maxRecords :: Maybe Int
- policyTypes :: Maybe [Text]
- newDescribePolicies :: DescribePolicies
- describePolicies_policyNames :: Lens' DescribePolicies (Maybe [Text])
- describePolicies_nextToken :: Lens' DescribePolicies (Maybe Text)
- describePolicies_autoScalingGroupName :: Lens' DescribePolicies (Maybe Text)
- describePolicies_maxRecords :: Lens' DescribePolicies (Maybe Int)
- describePolicies_policyTypes :: Lens' DescribePolicies (Maybe [Text])
- data DescribePoliciesResponse = DescribePoliciesResponse' {
- nextToken :: Maybe Text
- scalingPolicies :: Maybe [ScalingPolicy]
- httpStatus :: Int
- newDescribePoliciesResponse :: Int -> DescribePoliciesResponse
- describePoliciesResponse_nextToken :: Lens' DescribePoliciesResponse (Maybe Text)
- describePoliciesResponse_scalingPolicies :: Lens' DescribePoliciesResponse (Maybe [ScalingPolicy])
- describePoliciesResponse_httpStatus :: Lens' DescribePoliciesResponse Int
Creating a Request
data DescribePolicies Source #
See: newDescribePolicies
smart constructor.
DescribePolicies' | |
|
Instances
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_autoScalingGroupName :: Lens' DescribePolicies (Maybe Text) Source #
The name of the Auto Scaling group.
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.
DescribePoliciesResponse' | |
|
Instances
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.
describePoliciesResponse_scalingPolicies :: Lens' DescribePoliciesResponse (Maybe [ScalingPolicy]) Source #
The scaling policies.
describePoliciesResponse_httpStatus :: Lens' DescribePoliciesResponse Int Source #
The response's http status code.