Skip to content

get_versions async

get_versions(
    *, config_overrides: Optional[AsyncevsClientConfig] = None
) -> GetVersionsResponse

Returns information about VCF versions, ESX versions and EC2 instance types provided by Amazon EVS. For each VCF version, the response also includes the default ESX version and provided EC2 instance types.

Raises:

  • InternalServerException –

    An internal server error occurred. Retry your request.

  • ThrottlingException –

    The operation could not be performed because the service is throttling requests. This exception is thrown when the service endpoint receives too many concurrent requests.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_evs/_services/async_evs.py
async def get_versions(
    self, *, config_overrides: Optional[AsyncevsClientConfig] = None
) -> "capo_evs.types.get_versions_response.GetVersionsResponse":
    """<p>Returns information about VCF versions, ESX versions and EC2 instance types provided by Amazon EVS. For each VCF version, the response also includes the default ESX version and provided EC2 instance types.</p>

    Raises:
        capo_evs.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_evs.errors.throttling_exception.ThrottlingException: <p>The operation could not be performed because the service is throttling requests. This exception is thrown when the service endpoint receives too many concurrent requests.</p>
        capo_evs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_evs.types.get_versions_request.GetVersionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_evs.types.get_versions_response.GetVersionsResponse"
    ]:
        import capo_evs._operations.amazon_elastic_v_mware_service.get_versions

        (
            output,
            http_response,
        ) = await capo_evs._operations.amazon_elastic_v_mware_service.get_versions.async_get_versions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetVersions")
    )
    input_: capo_evs.types.get_versions_request.GetVersionsRequest = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output