async def start_job_run(
self,
name: "capo_databrew.types.job_name.JobName",
*,
config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> "capo_databrew.types.start_job_run_response.StartJobRunResponse":
"""<p>Runs a DataBrew job.</p>
Args:
name: <p>The name of the job to be run.</p>
Raises:
capo_databrew.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
capo_databrew.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>A service quota is exceeded.</p>
capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_databrew.types.start_job_run_request.StartJobRunRequest]",
) -> AsyncOperationResponse[
"capo_databrew.types.start_job_run_response.StartJobRunResponse"
]:
import capo_databrew._operations.aws_glue_data_brew.start_job_run
(
output,
http_response,
) = await capo_databrew._operations.aws_glue_data_brew.start_job_run.async_start_job_run(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StartJobRun")
)
input_: capo_databrew.types.start_job_run_request.StartJobRunRequest = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output