Skip to content

list_vpc_endpoints async

list_vpc_endpoints(
    *,
    config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> ListVpcEndpointsResponse

Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current Amazon Web Services account and Region.

Parameters:

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

    If your initial ListVpcEndpoints operation returns a nextToken, you can include the returned nextToken in subsequent ListVpcEndpoints operations, which returns results in the next page.

Raises:

Source code in docs_src/capo_opensearch/_services/async_open_search.py
async def list_vpc_endpoints(
    self,
    *,
    config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
    next_token: Optional["capo_opensearch.types.next_token.NextToken"] = None,
) -> "capo_opensearch.types.list_vpc_endpoints_response.ListVpcEndpointsResponse":
    """<p>Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current Amazon Web Services account and Region.</p>

    Args:
        next_token: <p>If your initial <code>ListVpcEndpoints</code> operation returns a <code>nextToken</code>, you can include the returned <code>nextToken</code> in subsequent <code>ListVpcEndpoints</code> operations, which returns results in the next page.</p>

    Raises:
        capo_opensearch.errors.base_exception.BaseException: <p>An error occurred while processing the request.</p>
        capo_opensearch.errors.disabled_operation_exception.DisabledOperationException: <p>An error occured because the client wanted to access an unsupported operation.</p>
        capo_opensearch.errors.internal_exception.InternalException: <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
        capo_opensearch.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_opensearch.types.list_vpc_endpoints_request.ListVpcEndpointsRequest]",
    ) -> AsyncOperationResponse[
        "capo_opensearch.types.list_vpc_endpoints_response.ListVpcEndpointsResponse"
    ]:
        import capo_opensearch._operations.amazon_open_search_service.list_vpc_endpoints

        (
            output,
            http_response,
        ) = await capo_opensearch._operations.amazon_open_search_service.list_vpc_endpoints.async_list_vpc_endpoints(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListVpcEndpoints")
    )
    input_: capo_opensearch.types.list_vpc_endpoints_request.ListVpcEndpointsRequest = {}
    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