Returns the apps owned by the caller. We recommend using pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of items to return in a single page. Valid range: 1 to 100.
-
next_token
(Optional[NextToken], default:
None
)
–
An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
Raises:
Source code in docs_src/capo_appmonetization/_services/async_app_monetization.py
| async def list_apps(
self,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
max_results: Optional[
"capo_appmonetization.types.max_results.MaxResults"
] = None,
next_token: Optional["capo_appmonetization.types.next_token.NextToken"] = None,
) -> "capo_appmonetization.types.list_apps_response.ListAppsResponse":
"""Returns the apps owned by the caller. We recommend using pagination to ensure that the operation returns quickly and successfully.
Args:
max_results: The maximum number of items to return in a single page. Valid range: 1 to 100.
next_token: An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
Raises:
capo_appmonetization.errors.access_denied_exception.AccessDeniedException: The caller does not have sufficient permission to perform this action.
capo_appmonetization.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
capo_appmonetization.errors.throttling_exception.ThrottlingException: The request was denied due to request throttling.
capo_appmonetization.errors.validation_exception.ValidationException: The request failed input validation.
capo_appmonetization.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appmonetization.types.list_apps_request.ListAppsRequest]",
) -> AsyncOperationResponse[
"capo_appmonetization.types.list_apps_response.ListAppsResponse"
]:
import capo_appmonetization._operations.aws_monetization_ai_front_end.list_apps
(
output,
http_response,
) = await capo_appmonetization._operations.aws_monetization_ai_front_end.list_apps.async_list_apps(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApps")
)
input_: capo_appmonetization.types.list_apps_request.ListAppsRequest = {}
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
|