| 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.SavingsPlans.DescribeSavingsPlans
Description
Describes the specified Savings Plans.
Synopsis
- data DescribeSavingsPlans = DescribeSavingsPlans' {
- filters :: Maybe [SavingsPlanFilter]
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- savingsPlanArns :: Maybe [Text]
- savingsPlanIds :: Maybe [Text]
- states :: Maybe [SavingsPlanState]
- newDescribeSavingsPlans :: DescribeSavingsPlans
- describeSavingsPlans_filters :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanFilter])
- describeSavingsPlans_maxResults :: Lens' DescribeSavingsPlans (Maybe Natural)
- describeSavingsPlans_nextToken :: Lens' DescribeSavingsPlans (Maybe Text)
- describeSavingsPlans_savingsPlanArns :: Lens' DescribeSavingsPlans (Maybe [Text])
- describeSavingsPlans_savingsPlanIds :: Lens' DescribeSavingsPlans (Maybe [Text])
- describeSavingsPlans_states :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanState])
- data DescribeSavingsPlansResponse = DescribeSavingsPlansResponse' {
- nextToken :: Maybe Text
- savingsPlans :: Maybe [SavingsPlan]
- httpStatus :: Int
- newDescribeSavingsPlansResponse :: Int -> DescribeSavingsPlansResponse
- describeSavingsPlansResponse_nextToken :: Lens' DescribeSavingsPlansResponse (Maybe Text)
- describeSavingsPlansResponse_savingsPlans :: Lens' DescribeSavingsPlansResponse (Maybe [SavingsPlan])
- describeSavingsPlansResponse_httpStatus :: Lens' DescribeSavingsPlansResponse Int
Creating a Request
data DescribeSavingsPlans Source #
See: newDescribeSavingsPlans smart constructor.
Constructors
| DescribeSavingsPlans' | |
Fields
| |
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:filters:DescribeSavingsPlans', describeSavingsPlans_filters - The filters.
$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.
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:savingsPlanIds:DescribeSavingsPlans', describeSavingsPlans_savingsPlanIds - The IDs of the Savings Plans.
$sel:states:DescribeSavingsPlans', describeSavingsPlans_states - The states.
Request Lenses
describeSavingsPlans_filters :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanFilter]) Source #
The filters.
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.
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_savingsPlanIds :: Lens' DescribeSavingsPlans (Maybe [Text]) Source #
The IDs of the Savings Plans.
describeSavingsPlans_states :: Lens' DescribeSavingsPlans (Maybe [SavingsPlanState]) Source #
The states.
Destructuring the Response
data DescribeSavingsPlansResponse Source #
See: newDescribeSavingsPlansResponse smart constructor.
Constructors
| DescribeSavingsPlansResponse' | |
Fields
| |
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:
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:savingsPlans:DescribeSavingsPlansResponse', describeSavingsPlansResponse_savingsPlans - Information about the Savings Plans.
$sel:httpStatus:DescribeSavingsPlansResponse', describeSavingsPlansResponse_httpStatus - The response's http status code.
Response Lenses
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_savingsPlans :: Lens' DescribeSavingsPlansResponse (Maybe [SavingsPlan]) Source #
Information about the Savings Plans.
describeSavingsPlansResponse_httpStatus :: Lens' DescribeSavingsPlansResponse Int Source #
The response's http status code.