Lists all search domains owned by an account.
Raises:
Source code in docs_src/capo_cloudsearch/_services/cloud_search.py
| def list_domain_names(
self, *, config_overrides: Optional[CloudSearchClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[None]",
) -> OperationResponse[
"capo_cloudsearch.types.list_domain_names_response.ListDomainNamesResponse"
]:
import capo_cloudsearch._operations.a9_search_cloud_config_service2013.list_domain_names
output, http_response = (
capo_cloudsearch._operations.a9_search_cloud_config_service2013.list_domain_names.list_domain_names(
req.options
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDomainNames")
)
response = execute_pipeline(
OperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|