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/signer.py
| def get_signing_platform(
self,
platform_id: "capo_signer.types.platform_id.PlatformId",
*,
config_overrides: Optional[signerClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_signer.types.get_signing_platform_request.GetSigningPlatformRequest]",
) -> OperationResponse[
"capo_signer.types.get_signing_platform_response.GetSigningPlatformResponse"
]:
import capo_signer._operations.wallaby_service.get_signing_platform
output, http_response = (
capo_signer._operations.wallaby_service.get_signing_platform.get_signing_platform(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|