Lists all search domains owned by an account.
Raises:
Source code in docs_src/capo_cloudsearch/_services/async_cloud_search.py
| async def list_domain_names(
self, *, config_overrides: Optional[AsyncCloudSearchClientConfig] = None
) -> "capo_cloudsearch.types.list_domain_names_response.ListDomainNamesResponse":
"""<p>Lists all search domains owned by an account.</p>
Raises:
capo_cloudsearch.errors.base_exception.BaseException: <p>An error occurred while processing the request.</p>
capo_cloudsearch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_cloudsearch.types.list_domain_names_response.ListDomainNamesResponse"
]:
import capo_cloudsearch._operations.a9_search_cloud_config_service2013.list_domain_names
(
output,
http_response,
) = await capo_cloudsearch._operations.a9_search_cloud_config_service2013.list_domain_names.async_list_domain_names(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDomainNames")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|