| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AutoScaling.DescribePolicies
Description
Gets information about the scaling policies in the account and Region.
This operation returns paginated results.
Synopsis
- data DescribePolicies = DescribePolicies' {
- autoScalingGroupName :: Maybe Text
- maxRecords :: Maybe Int
- nextToken :: Maybe Text
- policyNames :: Maybe [Text]
- policyTypes :: Maybe [Text]
- newDescribePolicies :: DescribePolicies
- describePolicies_autoScalingGroupName :: Lens' DescribePolicies (Maybe Text)
- describePolicies_maxRecords :: Lens' DescribePolicies (Maybe Int)
- describePolicies_nextToken :: Lens' DescribePolicies (Maybe Text)
- describePolicies_policyNames :: Lens' DescribePolicies (Maybe [Text])
- 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.
Constructors
| DescribePolicies' | |
Fields
| |
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:
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_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_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
| |
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:
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.