Skip to content

list_managed_microvm_images

list_managed_microvm_images(
    *,
    config_overrides: Optional[LambdaMicrovmsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[String] = None,
) -> ListManagedMicrovmImagesOutput

Lists AWS managed MicroVM images available for use as base images. We recommend using pagination to ensure that the operation returns quickly and successfully.

Parameters:

  • max_results (Optional[int], default: None ) –

    The maximum number of results to return in a single call.

  • next_token (Optional[String], default: None ) –

    The pagination token from a previous call. Use this token to retrieve the next page of results.

Raises:

Source code in docs_src/capo_lambda_microvms/_services/lambda_microvms.py
def list_managed_microvm_images(
    self,
    *,
    config_overrides: Optional[LambdaMicrovmsClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_lambda_microvms.types.string.String"] = None,
) -> "capo_lambda_microvms.types.list_managed_microvm_images_output.ListManagedMicrovmImagesOutput":
    """<p>Lists AWS managed MicroVM images available for use as base images. We recommend using pagination to ensure that the operation returns quickly and successfully.</p>

    Args:
        max_results: <p>The maximum number of results to return in a single call.</p>
        next_token: <p>The pagination token from a previous call. Use this token to retrieve the next page of results.</p>

    Raises:
        capo_lambda_microvms.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_lambda_microvms.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry the request later.</p>
        capo_lambda_microvms.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. Retry the request later.</p>
        capo_lambda_microvms.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by the service.</p>
        capo_lambda_microvms.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_lambda_microvms.types.list_managed_microvm_images_input.ListManagedMicrovmImagesInput]",
    ) -> OperationResponse[
        "capo_lambda_microvms.types.list_managed_microvm_images_output.ListManagedMicrovmImagesOutput"
    ]:
        import capo_lambda_microvms._operations.lambda_microvms.list_managed_microvm_images

        output, http_response = (
            capo_lambda_microvms._operations.lambda_microvms.list_managed_microvm_images.list_managed_microvm_images(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListManagedMicrovmImages")
    )
    input_: capo_lambda_microvms.types.list_managed_microvm_images_input.ListManagedMicrovmImagesInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output