Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This operation returns all the domain-related billing records for the current AWS account for a specified period
- viewBilling :: ViewBilling
- data ViewBilling
- vbStart :: Lens' ViewBilling (Maybe UTCTime)
- vbEnd :: Lens' ViewBilling (Maybe UTCTime)
- vbMarker :: Lens' ViewBilling (Maybe Text)
- vbMaxItems :: Lens' ViewBilling (Maybe Int)
- viewBillingResponse :: Int -> ViewBillingResponse
- data ViewBillingResponse
- vbrsNextPageMarker :: Lens' ViewBillingResponse (Maybe Text)
- vbrsBillingRecords :: Lens' ViewBillingResponse [BillingRecord]
- vbrsResponseStatus :: Lens' ViewBillingResponse Int
Creating a Request
viewBilling :: ViewBilling Source #
Creates a value of ViewBilling
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vbStart
- The beginning date and time for the time period for which you want a list of billing records. Specify the date in Unix time format. Type: Double Default: None Required: YesvbEnd
- The end date and time for the time period for which you want a list of billing records. Specify the date in Unix time format. Type: Double Default: None Required: YesvbMarker
- For an initial request for a list of billing records, omit this element. If the number of billing records that are associated with the current AWS account during the specified period is greater than the value that you specified forMaxItems
, you can useMarker
to return additional billing records. Get the value ofNextPageMarker
from the previous response, and submit another request that includes the value ofNextPageMarker
in theMarker
element. Type: String Default: None Constraints: The marker must match the value ofNextPageMarker
that was returned in the previous response. Required: NovbMaxItems
- The number of billing records to be returned. Type: Integer Default: 20 Constraints: A value between 1 and 100. Required: No
data ViewBilling Source #
The ViewBilling request includes the following elements.
See: viewBilling
smart constructor.
Request Lenses
vbStart :: Lens' ViewBilling (Maybe UTCTime) Source #
The beginning date and time for the time period for which you want a list of billing records. Specify the date in Unix time format. Type: Double Default: None Required: Yes
vbEnd :: Lens' ViewBilling (Maybe UTCTime) Source #
The end date and time for the time period for which you want a list of billing records. Specify the date in Unix time format. Type: Double Default: None Required: Yes
vbMarker :: Lens' ViewBilling (Maybe Text) Source #
For an initial request for a list of billing records, omit this element. If the number of billing records that are associated with the current AWS account during the specified period is greater than the value that you specified for MaxItems
, you can use Marker
to return additional billing records. Get the value of NextPageMarker
from the previous response, and submit another request that includes the value of NextPageMarker
in the Marker
element. Type: String Default: None Constraints: The marker must match the value of NextPageMarker
that was returned in the previous response. Required: No
vbMaxItems :: Lens' ViewBilling (Maybe Int) Source #
The number of billing records to be returned. Type: Integer Default: 20 Constraints: A value between 1 and 100. Required: No
Destructuring the Response
Creates a value of ViewBillingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vbrsNextPageMarker
- If there are more billing records than you specified forMaxItems
in the request, submit another request and include the value ofNextPageMarker
in the value ofMarker
. Type: String Parent:BillingRecords
vbrsBillingRecords
- A summary of billing records. Type: Complex type containing a list of billing record summaries. Children:DomainName
,Operation
,InvoiceId
,BillDate
andPrice
vbrsResponseStatus
- -- | The response status code.
data ViewBillingResponse Source #
The ViewBilling response includes the following elements.
See: viewBillingResponse
smart constructor.
Response Lenses
vbrsNextPageMarker :: Lens' ViewBillingResponse (Maybe Text) Source #
If there are more billing records than you specified for MaxItems
in the request, submit another request and include the value of NextPageMarker
in the value of Marker
. Type: String Parent: BillingRecords
vbrsBillingRecords :: Lens' ViewBillingResponse [BillingRecord] Source #
A summary of billing records. Type: Complex type containing a list of billing record summaries. Children: DomainName
, Operation
, InvoiceId
, BillDate
and Price
vbrsResponseStatus :: Lens' ViewBillingResponse Int Source #
- - | The response status code.