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 |
Describes one or more of your scaling plans.
This operation returns paginated results.
Synopsis
- data DescribeScalingPlans = DescribeScalingPlans' {}
- newDescribeScalingPlans :: DescribeScalingPlans
- describeScalingPlans_scalingPlanVersion :: Lens' DescribeScalingPlans (Maybe Integer)
- describeScalingPlans_scalingPlanNames :: Lens' DescribeScalingPlans (Maybe [Text])
- describeScalingPlans_nextToken :: Lens' DescribeScalingPlans (Maybe Text)
- describeScalingPlans_applicationSources :: Lens' DescribeScalingPlans (Maybe [ApplicationSource])
- describeScalingPlans_maxResults :: Lens' DescribeScalingPlans (Maybe Int)
- data DescribeScalingPlansResponse = DescribeScalingPlansResponse' {
- scalingPlans :: Maybe [ScalingPlan]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeScalingPlansResponse :: Int -> DescribeScalingPlansResponse
- describeScalingPlansResponse_scalingPlans :: Lens' DescribeScalingPlansResponse (Maybe [ScalingPlan])
- describeScalingPlansResponse_nextToken :: Lens' DescribeScalingPlansResponse (Maybe Text)
- describeScalingPlansResponse_httpStatus :: Lens' DescribeScalingPlansResponse Int
Creating a Request
data DescribeScalingPlans Source #
See: newDescribeScalingPlans
smart constructor.
DescribeScalingPlans' | |
|
Instances
newDescribeScalingPlans :: DescribeScalingPlans Source #
Create a value of DescribeScalingPlans
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:scalingPlanVersion:DescribeScalingPlans'
, describeScalingPlans_scalingPlanVersion
- The version number of the scaling plan. Currently, the only valid value
is 1
.
If you specify a scaling plan version, you must also specify a scaling plan name.
$sel:scalingPlanNames:DescribeScalingPlans'
, describeScalingPlans_scalingPlanNames
- The names of the scaling plans (up to 10). If you specify application
sources, you cannot specify scaling plan names.
$sel:nextToken:DescribeScalingPlans'
, describeScalingPlans_nextToken
- The token for the next set of results.
$sel:applicationSources:DescribeScalingPlans'
, describeScalingPlans_applicationSources
- The sources for the applications (up to 10). If you specify scaling plan
names, you cannot specify application sources.
$sel:maxResults:DescribeScalingPlans'
, describeScalingPlans_maxResults
- The maximum number of scalable resources to return. This value can be
between 1 and 50. The default value is 50.
Request Lenses
describeScalingPlans_scalingPlanVersion :: Lens' DescribeScalingPlans (Maybe Integer) Source #
The version number of the scaling plan. Currently, the only valid value
is 1
.
If you specify a scaling plan version, you must also specify a scaling plan name.
describeScalingPlans_scalingPlanNames :: Lens' DescribeScalingPlans (Maybe [Text]) Source #
The names of the scaling plans (up to 10). If you specify application sources, you cannot specify scaling plan names.
describeScalingPlans_nextToken :: Lens' DescribeScalingPlans (Maybe Text) Source #
The token for the next set of results.
describeScalingPlans_applicationSources :: Lens' DescribeScalingPlans (Maybe [ApplicationSource]) Source #
The sources for the applications (up to 10). If you specify scaling plan names, you cannot specify application sources.
describeScalingPlans_maxResults :: Lens' DescribeScalingPlans (Maybe Int) Source #
The maximum number of scalable resources to return. This value can be between 1 and 50. The default value is 50.
Destructuring the Response
data DescribeScalingPlansResponse Source #
See: newDescribeScalingPlansResponse
smart constructor.
DescribeScalingPlansResponse' | |
|
Instances
newDescribeScalingPlansResponse Source #
Create a value of DescribeScalingPlansResponse
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:scalingPlans:DescribeScalingPlansResponse'
, describeScalingPlansResponse_scalingPlans
- Information about the scaling plans.
$sel:nextToken:DescribeScalingPlans'
, describeScalingPlansResponse_nextToken
- The token required to get the next set of results. This value is null
if there are no more results to return.
$sel:httpStatus:DescribeScalingPlansResponse'
, describeScalingPlansResponse_httpStatus
- The response's http status code.
Response Lenses
describeScalingPlansResponse_scalingPlans :: Lens' DescribeScalingPlansResponse (Maybe [ScalingPlan]) Source #
Information about the scaling plans.
describeScalingPlansResponse_nextToken :: Lens' DescribeScalingPlansResponse (Maybe Text) Source #
The token required to get the next set of results. This value is null
if there are no more results to return.
describeScalingPlansResponse_httpStatus :: Lens' DescribeScalingPlansResponse Int Source #
The response's http status code.