| 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 |
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 cannot group by any dimension values for
GetSavingsPlansUtilization.
Synopsis
- data GetSavingsPlansUtilization = GetSavingsPlansUtilization' {}
- newGetSavingsPlansUtilization :: DateInterval -> GetSavingsPlansUtilization
- getSavingsPlansUtilization_granularity :: Lens' GetSavingsPlansUtilization (Maybe Granularity)
- getSavingsPlansUtilization_filter :: Lens' GetSavingsPlansUtilization (Maybe Expression)
- 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: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: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:sortBy:GetSavingsPlansUtilization', getSavingsPlansUtilization_sortBy - The value by which you want to sort the data.
The following values are supported for Key:
UtilizationPercentage
TotalCommitment
UsedCommitment
UnusedCommitment
NetSavings
Supported values for SortOrder are ASCENDING or DESCENDING.
$sel:timePeriod: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_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_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_sortBy :: Lens' GetSavingsPlansUtilization (Maybe SortDefinition) Source #
The value by which you want to sort the data.
The following values are supported for Key:
UtilizationPercentage
TotalCommitment
UsedCommitment
UnusedCommitment
NetSavings
Supported values for SortOrder are ASCENDING or 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 you used your Savings Plans. This allows
you to specify date ranges.
$sel:httpStatus:GetSavingsPlansUtilizationResponse', getSavingsPlansUtilizationResponse_httpStatus - The response's http status code.
$sel:total: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 you used your Savings Plans. This allows you 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.