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 the specified Savings Plans.
Synopsis
- data DescribeSavingsPlans = DescribeSavingsPlans' {
- states :: Maybe [SavingsPlanState]
- savingsPlanIds :: Maybe [Text]
- filters :: Maybe [SavingsPlanFilter]
- nextToken :: Maybe Text
- savingsPlanArns :: Maybe [Text]
- maxResults :: Maybe Natural
- newDescribeSavingsPlans :: DescribeSavingsPlans
- describeSavingsPlans_states :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanState])
- describeSavingsPlans_savingsPlanIds :: Lens' DescribeSavingsPlans (Maybe [Text])
- describeSavingsPlans_filters :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanFilter])
- describeSavingsPlans_nextToken :: Lens' DescribeSavingsPlans (Maybe Text)
- describeSavingsPlans_savingsPlanArns :: Lens' DescribeSavingsPlans (Maybe [Text])
- describeSavingsPlans_maxResults :: Lens' DescribeSavingsPlans (Maybe Natural)
- data DescribeSavingsPlansResponse = DescribeSavingsPlansResponse' {
- savingsPlans :: Maybe [SavingsPlan]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeSavingsPlansResponse :: Int -> DescribeSavingsPlansResponse
- describeSavingsPlansResponse_savingsPlans :: Lens' DescribeSavingsPlansResponse (Maybe [SavingsPlan])
- describeSavingsPlansResponse_nextToken :: Lens' DescribeSavingsPlansResponse (Maybe Text)
- describeSavingsPlansResponse_httpStatus :: Lens' DescribeSavingsPlansResponse Int
Creating a Request
data DescribeSavingsPlans Source #
See: newDescribeSavingsPlans
smart constructor.
DescribeSavingsPlans' | |
|
Instances
newDescribeSavingsPlans :: DescribeSavingsPlans Source #
Create a value of DescribeSavingsPlans
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:states:DescribeSavingsPlans'
, describeSavingsPlans_states
- The states.
$sel:savingsPlanIds:DescribeSavingsPlans'
, describeSavingsPlans_savingsPlanIds
- The IDs of the Savings Plans.
$sel:filters:DescribeSavingsPlans'
, describeSavingsPlans_filters
- The filters.
$sel:nextToken:DescribeSavingsPlans'
, describeSavingsPlans_nextToken
- The token for the next page of results.
$sel:savingsPlanArns:DescribeSavingsPlans'
, describeSavingsPlans_savingsPlanArns
- The Amazon Resource Names (ARN) of the Savings Plans.
$sel:maxResults:DescribeSavingsPlans'
, describeSavingsPlans_maxResults
- The maximum number of results to return with a single call. To retrieve
additional results, make another call with the returned token value.
Request Lenses
describeSavingsPlans_states :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanState]) Source #
The states.
describeSavingsPlans_savingsPlanIds :: Lens' DescribeSavingsPlans (Maybe [Text]) Source #
The IDs of the Savings Plans.
describeSavingsPlans_filters :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanFilter]) Source #
The filters.
describeSavingsPlans_nextToken :: Lens' DescribeSavingsPlans (Maybe Text) Source #
The token for the next page of results.
describeSavingsPlans_savingsPlanArns :: Lens' DescribeSavingsPlans (Maybe [Text]) Source #
The Amazon Resource Names (ARN) of the Savings Plans.
describeSavingsPlans_maxResults :: Lens' DescribeSavingsPlans (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.
Destructuring the Response
data DescribeSavingsPlansResponse Source #
See: newDescribeSavingsPlansResponse
smart constructor.
DescribeSavingsPlansResponse' | |
|
Instances
newDescribeSavingsPlansResponse Source #
Create a value of DescribeSavingsPlansResponse
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:savingsPlans:DescribeSavingsPlansResponse'
, describeSavingsPlansResponse_savingsPlans
- Information about the Savings Plans.
$sel:nextToken:DescribeSavingsPlans'
, describeSavingsPlansResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null when there are no more results to return.
$sel:httpStatus:DescribeSavingsPlansResponse'
, describeSavingsPlansResponse_httpStatus
- The response's http status code.
Response Lenses
describeSavingsPlansResponse_savingsPlans :: Lens' DescribeSavingsPlansResponse (Maybe [SavingsPlan]) Source #
Information about the Savings Plans.
describeSavingsPlansResponse_nextToken :: Lens' DescribeSavingsPlansResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
describeSavingsPlansResponse_httpStatus :: Lens' DescribeSavingsPlansResponse Int Source #
The response's http status code.