async def list_quotes(
self,
*,
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.list_quotes_output.ListQuotesOutput":
"""<p>Lists the quotes for your Amazon Web Services account.</p>
Args:
next_token: <p>The pagination token.</p>
max_results: <p>The maximum page size.</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.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_outposts.types.list_quotes_input.ListQuotesInput]",
) -> AsyncOperationResponse[
"capo_outposts.types.list_quotes_output.ListQuotesOutput"
]:
import capo_outposts._operations.outposts_olaf_service.list_quotes
(
output,
http_response,
) = await capo_outposts._operations.outposts_olaf_service.list_quotes.async_list_quotes(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_outposts.types.list_quotes_output.ListQuotesOutput",
) -> dict[str, Any]:
import capo_outposts.types.list_quotes_output
return capo_outposts.types.list_quotes_output.redact_sensitive(output)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("ListQuotes", redact_output=_redact_output),
)
input_: capo_outposts.types.list_quotes_input.ListQuotesInput = {}
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