async def get_codegen_job(
self,
app_id: "capo_amplifyuibuilder.types.app_id.AppId",
environment_name: str,
id: "capo_amplifyuibuilder.types.uuid.Uuid",
*,
config_overrides: Optional[AsyncAmplifyUIBuilderClientConfig] = None,
) -> "capo_amplifyuibuilder.types.get_codegen_job_response.GetCodegenJobResponse":
"""<p>Returns an existing code generation job.</p>
Args:
app_id: <p>The unique ID of the Amplify app associated with the code generation job.</p>
environment_name: <p>The name of the backend environment that is a part of the Amplify app associated with the code generation job.</p>
id: <p>The unique ID of the code generation job.</p>
Raises:
capo_amplifyuibuilder.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred. Please retry your request.</p>
capo_amplifyuibuilder.errors.invalid_parameter_exception.InvalidParameterException: <p>An invalid or out-of-range value was supplied for the input parameter.</p>
capo_amplifyuibuilder.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource does not exist, or access was denied.</p>
capo_amplifyuibuilder.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_amplifyuibuilder.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_amplifyuibuilder.types.get_codegen_job_request.GetCodegenJobRequest]",
) -> AsyncOperationResponse[
"capo_amplifyuibuilder.types.get_codegen_job_response.GetCodegenJobResponse"
]:
import capo_amplifyuibuilder._operations.amplify_ui_builder.get_codegen_job
(
output,
http_response,
) = await capo_amplifyuibuilder._operations.amplify_ui_builder.get_codegen_job.async_get_codegen_job(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCodegenJob")
)
input_: capo_amplifyuibuilder.types.get_codegen_job_request.GetCodegenJobRequest = {
"app_id": app_id,
"environment_name": environment_name,
"id": id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output