| 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.CostExplorer.GetSavingsPlansUtilization
Description
Retrieves the Savings Plans utilization for your account across date
ranges with daily or monthly granularity. Management account in an
organization have access to member accounts. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible
dimension values.
You can't group by any dimension values for
GetSavingsPlansUtilization.
Synopsis
- data GetSavingsPlansUtilization = GetSavingsPlansUtilization' {}
- newGetSavingsPlansUtilization :: DateInterval -> GetSavingsPlansUtilization
- getSavingsPlansUtilization_filter :: Lens' GetSavingsPlansUtilization (Maybe Expression)
- getSavingsPlansUtilization_granularity :: Lens' GetSavingsPlansUtilization (Maybe Granularity)
- getSavingsPlansUtilization_sortBy :: Lens' GetSavingsPlansUtilization (Maybe SortDefinition)
- getSavingsPlansUtilization_timePeriod :: Lens' GetSavingsPlansUtilization DateInterval
- data GetSavingsPlansUtilizationResponse = GetSavingsPlansUtilizationResponse' {}
- newGetSavingsPlansUtilizationResponse :: Int -> SavingsPlansUtilizationAggregates -> GetSavingsPlansUtilizationResponse
- getSavingsPlansUtilizationResponse_savingsPlansUtilizationsByTime :: Lens' GetSavingsPlansUtilizationResponse (Maybe [SavingsPlansUtilizationByTime])
- getSavingsPlansUtilizationResponse_httpStatus :: Lens' GetSavingsPlansUtilizationResponse Int
- getSavingsPlansUtilizationResponse_total :: Lens' GetSavingsPlansUtilizationResponse SavingsPlansUtilizationAggregates
Creating a Request
data GetSavingsPlansUtilization Source #
See: newGetSavingsPlansUtilization smart constructor.
Constructors
| GetSavingsPlansUtilization' | |
Fields
| |
Instances
newGetSavingsPlansUtilization Source #
Create a value of GetSavingsPlansUtilization 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:filter':GetSavingsPlansUtilization', getSavingsPlansUtilization_filter - Filters Savings Plans utilization coverage data for active Savings Plans
dimensions. You can filter data with the following dimensions:
LINKED_ACCOUNT
SAVINGS_PLAN_ARN
SAVINGS_PLANS_TYPE
REGION
PAYMENT_OPTION
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilization uses the same
Expression
object as the other operations, but only AND is supported among each
dimension.
$sel:granularity:GetSavingsPlansUtilization', getSavingsPlansUtilization_granularity - The granularity of the Amazon Web Services utillization data for your
Savings Plans.
The GetSavingsPlansUtilization operation supports only DAILY and
MONTHLY granularities.
$sel:sortBy:GetSavingsPlansUtilization', getSavingsPlansUtilization_sortBy - The value that you want to sort the data by.
The following values are supported for Key:
UtilizationPercentage
TotalCommitment
UsedCommitment
UnusedCommitment
NetSavings
The supported values for SortOrder are ASCENDING and DESCENDING.
GetSavingsPlansUtilization, getSavingsPlansUtilization_timePeriod - The time period that you want the usage and costs for. The Start date
must be within 13 months. The End date must be after the Start date,
and before the current date. Future dates can't be used as an End
date.
Request Lenses
getSavingsPlansUtilization_filter :: Lens' GetSavingsPlansUtilization (Maybe Expression) Source #
Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:
LINKED_ACCOUNT
SAVINGS_PLAN_ARN
SAVINGS_PLANS_TYPE
REGION
PAYMENT_OPTION
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilization uses the same
Expression
object as the other operations, but only AND is supported among each
dimension.
getSavingsPlansUtilization_granularity :: Lens' GetSavingsPlansUtilization (Maybe Granularity) Source #
The granularity of the Amazon Web Services utillization data for your Savings Plans.
The GetSavingsPlansUtilization operation supports only DAILY and
MONTHLY granularities.
getSavingsPlansUtilization_sortBy :: Lens' GetSavingsPlansUtilization (Maybe SortDefinition) Source #
The value that you want to sort the data by.
The following values are supported for Key:
UtilizationPercentage
TotalCommitment
UsedCommitment
UnusedCommitment
NetSavings
The supported values for SortOrder are ASCENDING and DESCENDING.
getSavingsPlansUtilization_timePeriod :: Lens' GetSavingsPlansUtilization DateInterval Source #
The time period that you want the usage and costs for. The Start date
must be within 13 months. The End date must be after the Start date,
and before the current date. Future dates can't be used as an End
date.
Destructuring the Response
data GetSavingsPlansUtilizationResponse Source #
See: newGetSavingsPlansUtilizationResponse smart constructor.
Constructors
| GetSavingsPlansUtilizationResponse' | |
Fields
| |
Instances
newGetSavingsPlansUtilizationResponse Source #
Arguments
| :: Int | |
| -> SavingsPlansUtilizationAggregates | |
| -> GetSavingsPlansUtilizationResponse |
Create a value of GetSavingsPlansUtilizationResponse 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:savingsPlansUtilizationsByTime:GetSavingsPlansUtilizationResponse', getSavingsPlansUtilizationResponse_savingsPlansUtilizationsByTime - The amount of cost/commitment that you used your Savings Plans. You can
use it to specify date ranges.
$sel:httpStatus:GetSavingsPlansUtilizationResponse', getSavingsPlansUtilizationResponse_httpStatus - The response's http status code.
GetSavingsPlansUtilizationResponse, getSavingsPlansUtilizationResponse_total - The total amount of cost/commitment that you used your Savings Plans,
regardless of date ranges.
Response Lenses
getSavingsPlansUtilizationResponse_savingsPlansUtilizationsByTime :: Lens' GetSavingsPlansUtilizationResponse (Maybe [SavingsPlansUtilizationByTime]) Source #
The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.
getSavingsPlansUtilizationResponse_httpStatus :: Lens' GetSavingsPlansUtilizationResponse Int Source #
The response's http status code.
getSavingsPlansUtilizationResponse_total :: Lens' GetSavingsPlansUtilizationResponse SavingsPlansUtilizationAggregates Source #
The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.