async def list_long_term_pricing(
self,
*,
config_overrides: Optional[AsyncSnowballClientConfig] = None,
max_results: Optional["capo_snowball.types.list_limit.ListLimit"] = None,
next_token: Optional["capo_snowball.types.string.String"] = None,
) -> "capo_snowball.types.list_long_term_pricing_result.ListLongTermPricingResult":
"""<p>Lists all long-term pricing types.</p>
Args:
max_results: <p>The maximum number of <code>ListLongTermPricing</code> objects to return.</p>
next_token: <p>Because HTTP requests are stateless, this is the starting point for your next list of <code>ListLongTermPricing</code> to return.</p>
Raises:
capo_snowball.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The <code>NextToken</code> string was altered unexpectedly, and the operation has stopped. Run the operation without changing the <code>NextToken</code> string, and try again.</p>
capo_snowball.errors.invalid_resource_exception.InvalidResourceException: <p>The specified resource can't be found. Check the information you provided in your last request, and try again.</p>
capo_snowball.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_snowball.types.list_long_term_pricing_request.ListLongTermPricingRequest]",
) -> AsyncOperationResponse[
"capo_snowball.types.list_long_term_pricing_result.ListLongTermPricingResult"
]:
import capo_snowball._operations.awsie_snowball_job_management_service.list_long_term_pricing
(
output,
http_response,
) = await capo_snowball._operations.awsie_snowball_job_management_service.list_long_term_pricing.async_list_long_term_pricing(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListLongTermPricing")
)
input_: capo_snowball.types.list_long_term_pricing_request.ListLongTermPricingRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output