Skip to content

get_signing_platform async

get_signing_platform(
    platform_id: PlatformId,
    *,
    config_overrides: Optional[AsyncsignerClientConfig] = None,
) -> GetSigningPlatformResponse

Returns information on a specific signing platform.

Parameters:

  • platform_id (PlatformId) –

    The ID of the target signing platform.

Raises:

Source code in docs_src/capo_signer/_services/async_signer.py
async def get_signing_platform(
    self,
    platform_id: "capo_signer.types.platform_id.PlatformId",
    *,
    config_overrides: Optional[AsyncsignerClientConfig] = None,
) -> "capo_signer.types.get_signing_platform_response.GetSigningPlatformResponse":
    """<p>Returns information on a specific signing platform.</p>

    Args:
        platform_id: <p>The ID of the target signing platform.</p>

    Raises:
        capo_signer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_signer.errors.internal_service_error_exception.InternalServiceErrorException: <p>An internal error occurred.</p>
        capo_signer.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be found.</p>
        capo_signer.errors.too_many_requests_exception.TooManyRequestsException: <p>The allowed number of job-signing requests has been exceeded.</p> <p>This error supersedes the error <code>ThrottlingException</code>.</p>
        capo_signer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_signer.types.get_signing_platform_request.GetSigningPlatformRequest]",
    ) -> AsyncOperationResponse[
        "capo_signer.types.get_signing_platform_response.GetSigningPlatformResponse"
    ]:
        import capo_signer._operations.wallaby_service.get_signing_platform

        (
            output,
            http_response,
        ) = await capo_signer._operations.wallaby_service.get_signing_platform.async_get_signing_platform(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetSigningPlatform")
    )
    input_: capo_signer.types.get_signing_platform_request.GetSigningPlatformRequest = {
        "platform_id": platform_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output