| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CostExplorer.GetReservationUtilization
Description
Retrieves the reservation utilization for your account. Master accounts in an organization have access to member accounts. You can filter data by dimensions in a time period. You can use GetDimensionValues to determine the possible dimension values. Currently, you can group only by SUBSCRIPTION_ID .
Synopsis
- getReservationUtilization :: DateInterval -> GetReservationUtilization
- data GetReservationUtilization
- gruGroupBy :: Lens' GetReservationUtilization [GroupDefinition]
- gruNextPageToken :: Lens' GetReservationUtilization (Maybe Text)
- gruGranularity :: Lens' GetReservationUtilization (Maybe Granularity)
- gruFilter :: Lens' GetReservationUtilization (Maybe Expression)
- gruTimePeriod :: Lens' GetReservationUtilization DateInterval
- getReservationUtilizationResponse :: Int -> GetReservationUtilizationResponse
- data GetReservationUtilizationResponse
- grursNextPageToken :: Lens' GetReservationUtilizationResponse (Maybe Text)
- grursTotal :: Lens' GetReservationUtilizationResponse (Maybe ReservationAggregates)
- grursResponseStatus :: Lens' GetReservationUtilizationResponse Int
- grursUtilizationsByTime :: Lens' GetReservationUtilizationResponse [UtilizationByTime]
Creating a Request
getReservationUtilization Source #
Arguments
| :: DateInterval | |
| -> GetReservationUtilization |
Creates a value of GetReservationUtilization with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gruGroupBy- Groups only bySUBSCRIPTION_ID. Metadata is included.gruNextPageToken- The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.gruGranularity- IfGroupByis set,Granularitycan't be set. IfGranularityisn't set, the response object doesn't includeGranularity, eitherMONTHLYorDAILY. If bothGroupByandGranularityaren't set,GetReservationUtilizationdefaults toDAILY.gruFilter- Filters utilization data by dimensions. You can filter by the following dimensions: * AZ * CACHE_ENGINE * DATABASE_ENGINE * DEPLOYMENT_OPTION * INSTANCE_TYPE * LINKED_ACCOUNT * OPERATING_SYSTEM * PLATFORM * REGION * SERVICE * SCOPE * TENANCYGetReservationUtilizationuses the sameExpressionobject as the other operations, but onlyANDis supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.gruTimePeriod- Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date is inclusive, but the end date is exclusive. For example, ifstartis2017-01-01andendis2017-05-01, then the cost and usage data is retrieved from2017-01-01up to and including2017-04-30but not including2017-05-01.
data GetReservationUtilization Source #
See: getReservationUtilization smart constructor.
Instances
Request Lenses
gruGroupBy :: Lens' GetReservationUtilization [GroupDefinition] Source #
Groups only by SUBSCRIPTION_ID . Metadata is included.
gruNextPageToken :: Lens' GetReservationUtilization (Maybe Text) Source #
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
gruGranularity :: Lens' GetReservationUtilization (Maybe Granularity) Source #
If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity , either MONTHLY or DAILY . If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY .
gruFilter :: Lens' GetReservationUtilization (Maybe Expression) Source #
Filters utilization data by dimensions. You can filter by the following dimensions: * AZ * CACHE_ENGINE * DATABASE_ENGINE * DEPLOYMENT_OPTION * INSTANCE_TYPE * LINKED_ACCOUNT * OPERATING_SYSTEM * PLATFORM * REGION * SERVICE * SCOPE * TENANCY GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.
gruTimePeriod :: Lens' GetReservationUtilization DateInterval Source #
Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01 , then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01 .
Destructuring the Response
getReservationUtilizationResponse Source #
Arguments
| :: Int | |
| -> GetReservationUtilizationResponse |
Creates a value of GetReservationUtilizationResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grursNextPageToken- The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.grursTotal- The total amount of time that you utilized your RIs.grursResponseStatus- -- | The response status code.grursUtilizationsByTime- The amount of time that you utilized your RIs.
data GetReservationUtilizationResponse Source #
See: getReservationUtilizationResponse smart constructor.
Instances
Response Lenses
grursNextPageToken :: Lens' GetReservationUtilizationResponse (Maybe Text) Source #
The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
grursTotal :: Lens' GetReservationUtilizationResponse (Maybe ReservationAggregates) Source #
The total amount of time that you utilized your RIs.
grursResponseStatus :: Lens' GetReservationUtilizationResponse Int Source #
- - | The response status code.
grursUtilizationsByTime :: Lens' GetReservationUtilizationResponse [UtilizationByTime] Source #
The amount of time that you utilized your RIs.