Gets current and historical billing information about the specified Outpost.
Parameters:
Raises:
Source code in docs_src/capo_outposts/_services/async_outposts.py
| async def get_outpost_billing_information(
self,
outpost_identifier: "capo_outposts.types.outpost_identifier.OutpostIdentifier",
*,
config_overrides: Optional[AsyncOutpostsClientConfig] = None,
next_token: Optional["capo_outposts.types.token.Token"] = None,
max_results: Optional[
"capo_outposts.types.max_results1000.MaxResults1000"
] = None,
) -> "capo_outposts.types.get_outpost_billing_information_output.GetOutpostBillingInformationOutput":
"""<p>Gets current and historical billing information about the specified Outpost.</p>
Args:
outpost_identifier: <p>The ID or ARN of the Outpost.</p>
Raises:
capo_outposts.errors.access_denied_exception.AccessDeniedException: <p>You do not have permission to perform this operation.</p>
capo_outposts.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
capo_outposts.errors.not_found_exception.NotFoundException: <p>The specified request is not valid.</p>
capo_outposts.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_outposts.types.get_outpost_billing_information_input.GetOutpostBillingInformationInput]",
) -> AsyncOperationResponse[
"capo_outposts.types.get_outpost_billing_information_output.GetOutpostBillingInformationOutput"
]:
import capo_outposts._operations.outposts_olaf_service.get_outpost_billing_information
(
output,
http_response,
) = await capo_outposts._operations.outposts_olaf_service.get_outpost_billing_information.async_get_outpost_billing_information(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetOutpostBillingInformation")
)
input_: capo_outposts.types.get_outpost_billing_information_input.GetOutpostBillingInformationInput = {
"outpost_identifier": outpost_identifier
}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|