Skip to content

describe_managed_job_template async

describe_managed_job_template(
    template_name: ManagedJobTemplateName,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    template_version: Optional[ManagedTemplateVersion] = None,
) -> DescribeManagedJobTemplateResponse

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/async_io_t.py
async def describe_managed_job_template(
    self,
    template_name: "capo_iot.types.managed_job_template_name.ManagedJobTemplateName",
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot.types.describe_managed_job_template_request.DescribeManagedJobTemplateRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot.types.describe_managed_job_template_response.DescribeManagedJobTemplateResponse"
    ]:
        import capo_iot._operations.aws_iot_service.describe_managed_job_template

        (
            output,
            http_response,
        ) = await capo_iot._operations.aws_iot_service.describe_managed_job_template.async_describe_managed_job_template(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output