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/open_search.py
| def list_vpc_endpoints(
self,
*,
config_overrides: Optional[OpenSearchClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_opensearch.types.list_vpc_endpoints_request.ListVpcEndpointsRequest]",
) -> OperationResponse[
"capo_opensearch.types.list_vpc_endpoints_response.ListVpcEndpointsResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.list_vpc_endpoints
output, http_response = (
capo_opensearch._operations.amazon_open_search_service.list_vpc_endpoints.list_vpc_endpoints(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|