API used to get data automation status.
Parameters:
Raises:
Source code in docs_src/capo_bedrock_data_automation_runtime/_services/async_bedrock_data_automation_runtime.py
| async def get_data_automation_status(
self,
invocation_arn: "capo_bedrock_data_automation_runtime.types.invocation_arn.InvocationArn",
*,
config_overrides: Optional[
AsyncBedrockDataAutomationRuntimeClientConfig
] = None,
) -> "capo_bedrock_data_automation_runtime.types.get_data_automation_status_response.GetDataAutomationStatusResponse":
"""API used to get data automation status.
Args:
invocation_arn: Invocation arn.
Raises:
capo_bedrock_data_automation_runtime.errors.access_denied_exception.AccessDeniedException: This exception will be thrown when customer does not have access to API.
capo_bedrock_data_automation_runtime.errors.internal_server_exception.InternalServerException: This exception is for any internal un-expected service errors.
capo_bedrock_data_automation_runtime.errors.resource_not_found_exception.ResourceNotFoundException: This exception will be thrown when resource provided from customer not found.
capo_bedrock_data_automation_runtime.errors.throttling_exception.ThrottlingException: This exception will be thrown when customer reached API TPS limit.
capo_bedrock_data_automation_runtime.errors.validation_exception.ValidationException: This exception will be thrown when customer provided invalid parameters.
capo_bedrock_data_automation_runtime.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_bedrock_data_automation_runtime.types.get_data_automation_status_request.GetDataAutomationStatusRequest]",
) -> AsyncOperationResponse[
"capo_bedrock_data_automation_runtime.types.get_data_automation_status_response.GetDataAutomationStatusResponse"
]:
import capo_bedrock_data_automation_runtime._operations.amazon_bedrock_keystone_runtime_service.get_data_automation_status
(
output,
http_response,
) = await capo_bedrock_data_automation_runtime._operations.amazon_bedrock_keystone_runtime_service.get_data_automation_status.async_get_data_automation_status(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDataAutomationStatus")
)
input_: capo_bedrock_data_automation_runtime.types.get_data_automation_status_request.GetDataAutomationStatusRequest = {
"invocation_arn": invocation_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|