Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Describes the policies for the specified Auto Scaling group.
This operation returns paginated results.
Synopsis
- describePolicies :: DescribePolicies
- data DescribePolicies
- dpsPolicyNames :: Lens' DescribePolicies [Text]
- dpsNextToken :: Lens' DescribePolicies (Maybe Text)
- dpsAutoScalingGroupName :: Lens' DescribePolicies (Maybe Text)
- dpsMaxRecords :: Lens' DescribePolicies (Maybe Int)
- dpsPolicyTypes :: Lens' DescribePolicies [Text]
- describePoliciesResponse :: Int -> DescribePoliciesResponse
- data DescribePoliciesResponse
- dprsNextToken :: Lens' DescribePoliciesResponse (Maybe Text)
- dprsScalingPolicies :: Lens' DescribePoliciesResponse [ScalingPolicy]
- dprsResponseStatus :: Lens' DescribePoliciesResponse Int
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:
dpsPolicyNames
- The names of one or more policies. If you omit this parameter, all policies 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
- The token for the next set of items to return. (You received this token from a previous call.)dpsAutoScalingGroupName
- The name of the Auto Scaling group.dpsMaxRecords
- The maximum number of items to be returned with each call. The default value is 50 and the maximum value is 100.dpsPolicyTypes
- One or more policy types. Valid values areSimpleScaling
andStepScaling
.
data DescribePolicies Source #
See: describePolicies
smart constructor.
Instances
Request Lenses
dpsPolicyNames :: Lens' DescribePolicies [Text] Source #
The names of one or more policies. If you omit this parameter, all policies 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.)
dpsAutoScalingGroupName :: Lens' DescribePolicies (Maybe Text) Source #
The name of the Auto Scaling group.
dpsMaxRecords :: 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.
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:
dprsNextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.dprsScalingPolicies
- The scaling policies.dprsResponseStatus
- -- | The response status code.
data DescribePoliciesResponse Source #
See: describePoliciesResponse
smart constructor.
Instances
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.
dprsScalingPolicies :: Lens' DescribePoliciesResponse [ScalingPolicy] Source #
The scaling policies.
dprsResponseStatus :: Lens' DescribePoliciesResponse Int Source #
- - | The response status code.