Skip to content

batch_get_vpc_endpoint async

batch_get_vpc_endpoint(
    ids: VpcEndpointIds,
    *,
    config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = None,
) -> BatchGetVpcEndpointResponse

Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameters:

Raises:

Source code in docs_src/capo_opensearchserverless/_services/async_open_search_serverless.py
async def batch_get_vpc_endpoint(
    self,
    ids: "capo_opensearchserverless.types.vpc_endpoint_ids.VpcEndpointIds",
    *,
    config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = None,
) -> "capo_opensearchserverless.types.batch_get_vpc_endpoint_response.BatchGetVpcEndpointResponse":
    """<p>Returns attributes for one or more VPC endpoints associated with the current account. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-vpc.html">Access Amazon OpenSearch Serverless using an interface endpoint</a>.</p>

    Args:
        ids: <p>A list of VPC endpoint identifiers.</p>

    Raises:
        capo_opensearchserverless.errors.internal_server_exception.InternalServerException: <p>Thrown when an error internal to the service occurs while processing a request.</p>
        capo_opensearchserverless.errors.validation_exception.ValidationException: <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
        capo_opensearchserverless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_opensearchserverless.types.batch_get_vpc_endpoint_request.BatchGetVpcEndpointRequest]",
    ) -> AsyncOperationResponse[
        "capo_opensearchserverless.types.batch_get_vpc_endpoint_response.BatchGetVpcEndpointResponse"
    ]:
        import capo_opensearchserverless._operations.open_search_serverless.batch_get_vpc_endpoint

        (
            output,
            http_response,
        ) = await capo_opensearchserverless._operations.open_search_serverless.batch_get_vpc_endpoint.async_batch_get_vpc_endpoint(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetVpcEndpoint")
    )
    input_: capo_opensearchserverless.types.batch_get_vpc_endpoint_request.BatchGetVpcEndpointRequest = {
        "ids": ids
    }

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