Retrieves a list of your run caches and the metadata for each cache.
Parameters:
-
max_results
(Optional[int], default:
None
)
–
The maximum number of results to return.
-
starting_token
(Optional[ListToken], default:
None
)
–
Optional pagination token returned from a prior call to the ListRunCaches API operation.
Raises:
Source code in docs_src/capo_omics/_services/omics.py
| def list_run_caches(
self,
*,
config_overrides: Optional[OmicsClientConfig] = None,
max_results: Optional[int] = None,
starting_token: Optional["capo_omics.types.list_token.ListToken"] = None,
) -> "capo_omics.types.list_run_caches_response.ListRunCachesResponse":
"""<p>Retrieves a list of your run caches and the metadata for each cache.</p>
Args:
max_results: <p>The maximum number of results to return.</p>
starting_token: <p>Optional pagination token returned from a prior call to the <code>ListRunCaches</code> API operation.</p>
Raises:
capo_omics.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_omics.errors.conflict_exception.ConflictException: <p>The request cannot be applied to the target resource in its current state.</p>
capo_omics.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred. Try the request again.</p>
capo_omics.errors.request_timeout_exception.RequestTimeoutException: <p>The request timed out.</p>
capo_omics.errors.resource_not_found_exception.ResourceNotFoundException: <p>The target resource was not found in the current Region.</p>
capo_omics.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request exceeds a service quota.</p>
capo_omics.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_omics.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_omics.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_omics.types.list_run_caches_request.ListRunCachesRequest]",
) -> OperationResponse[
"capo_omics.types.list_run_caches_response.ListRunCachesResponse"
]:
import capo_omics._operations.omics.list_run_caches
output, http_response = (
capo_omics._operations.omics.list_run_caches.list_run_caches(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRunCaches")
)
input_: capo_omics.types.list_run_caches_request.ListRunCachesRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if starting_token is not None:
input_["starting_token"] = starting_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|