Gets the ARN of the current default application.
If the default application isn't set, the operation returns a resource not found error.
Raises:
Source code in docs_src/capo_opensearch/_services/open_search.py
| def get_default_application_setting(
self, *, config_overrides: Optional[OpenSearchClientConfig] = None
) -> "capo_opensearch.types.get_default_application_setting_response.GetDefaultApplicationSettingResponse":
"""<p>Gets the ARN of the current default application.</p> <p> If the default application isn't set, the operation returns a resource not found error.</p>
Raises:
capo_opensearch.errors.access_denied_exception.AccessDeniedException: <p>An error occurred because you don't have permissions to access the resource.</p>
capo_opensearch.errors.internal_exception.InternalException: <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
capo_opensearch.errors.resource_not_found_exception.ResourceNotFoundException: <p>An exception for accessing or deleting a resource that doesn't exist.</p>
capo_opensearch.errors.validation_exception.ValidationException: <p>An exception for accessing or deleting a resource that doesn't exist.</p>
capo_opensearch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_opensearch.types.get_default_application_setting_request.GetDefaultApplicationSettingRequest]",
) -> OperationResponse[
"capo_opensearch.types.get_default_application_setting_response.GetDefaultApplicationSettingResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.get_default_application_setting
output, http_response = (
capo_opensearch._operations.amazon_open_search_service.get_default_application_setting.get_default_application_setting(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDefaultApplicationSetting")
)
input_: capo_opensearch.types.get_default_application_setting_request.GetDefaultApplicationSettingRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|