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 |
Retrieves attribute data along with aggregate utilization and savings
data for a given time period. This doesn't support granular or grouped
data (daily/monthly) in response. You can't retrieve data by dates in
a single response similar to GetSavingsPlanUtilization
, but you have
the option to make multiple calls to GetSavingsPlanUtilizationDetails
by providing individual dates. You can use GetDimensionValues
in
SAVINGS_PLANS
to determine the possible dimension values.
GetSavingsPlanUtilizationDetails
internally groups data by
SavingsPlansArn
.
Synopsis
- data GetSavingsPlansUtilizationDetails = GetSavingsPlansUtilizationDetails' {}
- newGetSavingsPlansUtilizationDetails :: DateInterval -> GetSavingsPlansUtilizationDetails
- getSavingsPlansUtilizationDetails_nextToken :: Lens' GetSavingsPlansUtilizationDetails (Maybe Text)
- getSavingsPlansUtilizationDetails_dataType :: Lens' GetSavingsPlansUtilizationDetails (Maybe [SavingsPlansDataType])
- getSavingsPlansUtilizationDetails_filter :: Lens' GetSavingsPlansUtilizationDetails (Maybe Expression)
- getSavingsPlansUtilizationDetails_maxResults :: Lens' GetSavingsPlansUtilizationDetails (Maybe Natural)
- getSavingsPlansUtilizationDetails_sortBy :: Lens' GetSavingsPlansUtilizationDetails (Maybe SortDefinition)
- getSavingsPlansUtilizationDetails_timePeriod :: Lens' GetSavingsPlansUtilizationDetails DateInterval
- data GetSavingsPlansUtilizationDetailsResponse = GetSavingsPlansUtilizationDetailsResponse' {}
- newGetSavingsPlansUtilizationDetailsResponse :: Int -> DateInterval -> GetSavingsPlansUtilizationDetailsResponse
- getSavingsPlansUtilizationDetailsResponse_nextToken :: Lens' GetSavingsPlansUtilizationDetailsResponse (Maybe Text)
- getSavingsPlansUtilizationDetailsResponse_total :: Lens' GetSavingsPlansUtilizationDetailsResponse (Maybe SavingsPlansUtilizationAggregates)
- getSavingsPlansUtilizationDetailsResponse_httpStatus :: Lens' GetSavingsPlansUtilizationDetailsResponse Int
- getSavingsPlansUtilizationDetailsResponse_savingsPlansUtilizationDetails :: Lens' GetSavingsPlansUtilizationDetailsResponse [SavingsPlansUtilizationDetail]
- getSavingsPlansUtilizationDetailsResponse_timePeriod :: Lens' GetSavingsPlansUtilizationDetailsResponse DateInterval
Creating a Request
data GetSavingsPlansUtilizationDetails Source #
See: newGetSavingsPlansUtilizationDetails
smart constructor.
GetSavingsPlansUtilizationDetails' | |
|
Instances
newGetSavingsPlansUtilizationDetails Source #
Create a value of GetSavingsPlansUtilizationDetails
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:nextToken:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_nextToken
- The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:dataType:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_dataType
- The data type.
$sel:filter':GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_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
REGION
PAYMENT_OPTION
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetails
uses the same
Expression
object as the other operations, but only AND
is supported among each
dimension.
$sel:maxResults:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_maxResults
- The number of items to be returned in a response. The default is 20
,
with a minimum value of 1
.
$sel:sortBy:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_sortBy
- The value by which you want to sort the data.
The following values are supported for Key
:
UtilizationPercentage
TotalCommitment
UsedCommitment
UnusedCommitment
NetSavings
AmortizedRecurringCommitment
AmortizedUpfrontCommitment
Supported values for SortOrder
are ASCENDING
or DESCENDING
.
$sel:timePeriod:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetails_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
getSavingsPlansUtilizationDetails_nextToken :: Lens' GetSavingsPlansUtilizationDetails (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
getSavingsPlansUtilizationDetails_dataType :: Lens' GetSavingsPlansUtilizationDetails (Maybe [SavingsPlansDataType]) Source #
The data type.
getSavingsPlansUtilizationDetails_filter :: Lens' GetSavingsPlansUtilizationDetails (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
REGION
PAYMENT_OPTION
INSTANCE_TYPE_FAMILY
GetSavingsPlansUtilizationDetails
uses the same
Expression
object as the other operations, but only AND
is supported among each
dimension.
getSavingsPlansUtilizationDetails_maxResults :: Lens' GetSavingsPlansUtilizationDetails (Maybe Natural) Source #
The number of items to be returned in a response. The default is 20
,
with a minimum value of 1
.
getSavingsPlansUtilizationDetails_sortBy :: Lens' GetSavingsPlansUtilizationDetails (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
AmortizedRecurringCommitment
AmortizedUpfrontCommitment
Supported values for SortOrder
are ASCENDING
or DESCENDING
.
getSavingsPlansUtilizationDetails_timePeriod :: Lens' GetSavingsPlansUtilizationDetails 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 GetSavingsPlansUtilizationDetailsResponse Source #
See: newGetSavingsPlansUtilizationDetailsResponse
smart constructor.
GetSavingsPlansUtilizationDetailsResponse' | |
|
Instances
newGetSavingsPlansUtilizationDetailsResponse Source #
Create a value of GetSavingsPlansUtilizationDetailsResponse
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:nextToken:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetailsResponse_nextToken
- The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:total:GetSavingsPlansUtilizationDetailsResponse'
, getSavingsPlansUtilizationDetailsResponse_total
- The total Savings Plans utilization, regardless of time period.
$sel:httpStatus:GetSavingsPlansUtilizationDetailsResponse'
, getSavingsPlansUtilizationDetailsResponse_httpStatus
- The response's http status code.
$sel:savingsPlansUtilizationDetails:GetSavingsPlansUtilizationDetailsResponse'
, getSavingsPlansUtilizationDetailsResponse_savingsPlansUtilizationDetails
- Retrieves a single daily or monthly Savings Plans utilization rate and
details for your account.
$sel:timePeriod:GetSavingsPlansUtilizationDetails'
, getSavingsPlansUtilizationDetailsResponse_timePeriod
- Undocumented member.
Response Lenses
getSavingsPlansUtilizationDetailsResponse_nextToken :: Lens' GetSavingsPlansUtilizationDetailsResponse (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
getSavingsPlansUtilizationDetailsResponse_total :: Lens' GetSavingsPlansUtilizationDetailsResponse (Maybe SavingsPlansUtilizationAggregates) Source #
The total Savings Plans utilization, regardless of time period.
getSavingsPlansUtilizationDetailsResponse_httpStatus :: Lens' GetSavingsPlansUtilizationDetailsResponse Int Source #
The response's http status code.
getSavingsPlansUtilizationDetailsResponse_savingsPlansUtilizationDetails :: Lens' GetSavingsPlansUtilizationDetailsResponse [SavingsPlansUtilizationDetail] Source #
Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.