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 |
Returns the number of minutes used by account.
Synopsis
- data GetMinuteUsage = GetMinuteUsage' {}
- newGetMinuteUsage :: Int -> Int -> GetMinuteUsage
- getMinuteUsage_month :: Lens' GetMinuteUsage Int
- getMinuteUsage_year :: Lens' GetMinuteUsage Int
- data GetMinuteUsageResponse = GetMinuteUsageResponse' {}
- newGetMinuteUsageResponse :: Int -> GetMinuteUsageResponse
- getMinuteUsageResponse_isReservedMinutesCustomer :: Lens' GetMinuteUsageResponse (Maybe Bool)
- getMinuteUsageResponse_upcomingMinutesScheduled :: Lens' GetMinuteUsageResponse (Maybe Int)
- getMinuteUsageResponse_totalScheduledMinutes :: Lens' GetMinuteUsageResponse (Maybe Int)
- getMinuteUsageResponse_totalReservedMinuteAllocation :: Lens' GetMinuteUsageResponse (Maybe Int)
- getMinuteUsageResponse_estimatedMinutesRemaining :: Lens' GetMinuteUsageResponse (Maybe Int)
- getMinuteUsageResponse_httpStatus :: Lens' GetMinuteUsageResponse Int
Creating a Request
data GetMinuteUsage Source #
See: newGetMinuteUsage
smart constructor.
Instances
Create a value of GetMinuteUsage
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:month:GetMinuteUsage'
, getMinuteUsage_month
- The month being requested, with a value of 1-12.
$sel:year:GetMinuteUsage'
, getMinuteUsage_year
- The year being requested, in the format of YYYY.
Request Lenses
getMinuteUsage_month :: Lens' GetMinuteUsage Int Source #
The month being requested, with a value of 1-12.
getMinuteUsage_year :: Lens' GetMinuteUsage Int Source #
The year being requested, in the format of YYYY.
Destructuring the Response
data GetMinuteUsageResponse Source #
See: newGetMinuteUsageResponse
smart constructor.
GetMinuteUsageResponse' | |
|
Instances
newGetMinuteUsageResponse Source #
Create a value of GetMinuteUsageResponse
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:isReservedMinutesCustomer:GetMinuteUsageResponse'
, getMinuteUsageResponse_isReservedMinutesCustomer
- Returns whether or not an account has signed up for the reserved minutes
pricing plan, specific to the month being requested.
$sel:upcomingMinutesScheduled:GetMinuteUsageResponse'
, getMinuteUsageResponse_upcomingMinutesScheduled
- Upcoming minutes scheduled for an account, specific to the month being
requested.
$sel:totalScheduledMinutes:GetMinuteUsageResponse'
, getMinuteUsageResponse_totalScheduledMinutes
- Total scheduled minutes for an account, specific to the month being
requested.
$sel:totalReservedMinuteAllocation:GetMinuteUsageResponse'
, getMinuteUsageResponse_totalReservedMinuteAllocation
- Total number of reserved minutes allocated, specific to the month being
requested.
$sel:estimatedMinutesRemaining:GetMinuteUsageResponse'
, getMinuteUsageResponse_estimatedMinutesRemaining
- Estimated number of minutes remaining for an account, specific to the
month being requested.
$sel:httpStatus:GetMinuteUsageResponse'
, getMinuteUsageResponse_httpStatus
- The response's http status code.
Response Lenses
getMinuteUsageResponse_isReservedMinutesCustomer :: Lens' GetMinuteUsageResponse (Maybe Bool) Source #
Returns whether or not an account has signed up for the reserved minutes pricing plan, specific to the month being requested.
getMinuteUsageResponse_upcomingMinutesScheduled :: Lens' GetMinuteUsageResponse (Maybe Int) Source #
Upcoming minutes scheduled for an account, specific to the month being requested.
getMinuteUsageResponse_totalScheduledMinutes :: Lens' GetMinuteUsageResponse (Maybe Int) Source #
Total scheduled minutes for an account, specific to the month being requested.
getMinuteUsageResponse_totalReservedMinuteAllocation :: Lens' GetMinuteUsageResponse (Maybe Int) Source #
Total number of reserved minutes allocated, specific to the month being requested.
getMinuteUsageResponse_estimatedMinutesRemaining :: Lens' GetMinuteUsageResponse (Maybe Int) Source #
Estimated number of minutes remaining for an account, specific to the month being requested.
getMinuteUsageResponse_httpStatus :: Lens' GetMinuteUsageResponse Int Source #
The response's http status code.