View details of a managed job template.
Parameters:
-
template_name
(ManagedJobTemplateName)
–
The unique name of a managed job template, which is required.
-
template_version
(Optional[ManagedTemplateVersion], default:
None
)
–
An optional parameter to specify version of a managed template. If not specified, the pre-defined default version is returned.
Raises:
Source code in docs_src/capo_iot/_services/io_t.py
| def describe_managed_job_template(
self,
template_name: "capo_iot.types.managed_job_template_name.ManagedJobTemplateName",
*,
config_overrides: Optional[IoTClientConfig] = None,
template_version: Optional[
"capo_iot.types.managed_template_version.ManagedTemplateVersion"
] = None,
) -> "capo_iot.types.describe_managed_job_template_response.DescribeManagedJobTemplateResponse":
"""<p>View details of a managed job template.</p>
Args:
template_name: <p>The unique name of a managed job template, which is required.</p>
template_version: <p>An optional parameter to specify version of a managed template. If not specified, the pre-defined default version is returned.</p>
Raises:
capo_iot.errors.internal_server_exception.InternalServerException: <p>Internal error from the service that indicates an unexpected error or that the service is unavailable.</p>
capo_iot.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
capo_iot.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_iot.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
capo_iot.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iot.types.describe_managed_job_template_request.DescribeManagedJobTemplateRequest]",
) -> OperationResponse[
"capo_iot.types.describe_managed_job_template_response.DescribeManagedJobTemplateResponse"
]:
import capo_iot._operations.aws_iot_service.describe_managed_job_template
output, http_response = (
capo_iot._operations.aws_iot_service.describe_managed_job_template.describe_managed_job_template(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeManagedJobTemplate")
)
input_: capo_iot.types.describe_managed_job_template_request.DescribeManagedJobTemplateRequest = {
"template_name": template_name
}
if template_version is not None:
input_["template_version"] = template_version
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|