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 all the domain-related billing records for the current AWS account for a specified period
This operation returns paginated results.
Synopsis
- data ViewBilling = ViewBilling' {}
- newViewBilling :: ViewBilling
- viewBilling_start :: Lens' ViewBilling (Maybe UTCTime)
- viewBilling_end :: Lens' ViewBilling (Maybe UTCTime)
- viewBilling_marker :: Lens' ViewBilling (Maybe Text)
- viewBilling_maxItems :: Lens' ViewBilling (Maybe Int)
- data ViewBillingResponse = ViewBillingResponse' {}
- newViewBillingResponse :: Int -> ViewBillingResponse
- viewBillingResponse_nextPageMarker :: Lens' ViewBillingResponse (Maybe Text)
- viewBillingResponse_billingRecords :: Lens' ViewBillingResponse (Maybe [BillingRecord])
- viewBillingResponse_httpStatus :: Lens' ViewBillingResponse Int
Creating a Request
data ViewBilling Source #
The ViewBilling request includes the following elements.
See: newViewBilling
smart constructor.
ViewBilling' | |
|
Instances
newViewBilling :: ViewBilling Source #
Create a value of ViewBilling
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:start:ViewBilling'
, viewBilling_start
- The beginning date and time for the time period for which you want a
list of billing records. Specify the date and time in Unix time format
and Coordinated Universal time (UTC).
$sel:end:ViewBilling'
, viewBilling_end
- The end date and time for the time period for which you want a list of
billing records. Specify the date and time in Unix time format and
Coordinated Universal time (UTC).
$sel:marker:ViewBilling'
, viewBilling_marker
- 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.
Constraints: The marker must match the value of NextPageMarker
that
was returned in the previous response.
$sel:maxItems:ViewBilling'
, viewBilling_maxItems
- The number of billing records to be returned.
Default: 20
Request Lenses
viewBilling_start :: 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 and time in Unix time format and Coordinated Universal time (UTC).
viewBilling_end :: 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 and time in Unix time format and Coordinated Universal time (UTC).
viewBilling_marker :: 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.
Constraints: The marker must match the value of NextPageMarker
that
was returned in the previous response.
viewBilling_maxItems :: Lens' ViewBilling (Maybe Int) Source #
The number of billing records to be returned.
Default: 20
Destructuring the Response
data ViewBillingResponse Source #
The ViewBilling response includes the following elements.
See: newViewBillingResponse
smart constructor.
ViewBillingResponse' | |
|
Instances
newViewBillingResponse Source #
Create a value of ViewBillingResponse
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:nextPageMarker:ViewBillingResponse'
, viewBillingResponse_nextPageMarker
- 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
.
$sel:billingRecords:ViewBillingResponse'
, viewBillingResponse_billingRecords
- A summary of billing records.
$sel:httpStatus:ViewBillingResponse'
, viewBillingResponse_httpStatus
- The response's http status code.
Response Lenses
viewBillingResponse_nextPageMarker :: 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
.
viewBillingResponse_billingRecords :: Lens' ViewBillingResponse (Maybe [BillingRecord]) Source #
A summary of billing records.
viewBillingResponse_httpStatus :: Lens' ViewBillingResponse Int Source #
The response's http status code.