Returns information on a specific signing profile.
Parameters:
-
profile_name
(ProfileName)
–
The name of the target signing profile.
-
profile_owner
(Optional[AccountId], default:
None
)
–
The AWS account ID of the profile owner.
Raises:
Source code in docs_src/capo_signer/_services/async_signer.py
| async def get_signing_profile(
self,
profile_name: "capo_signer.types.profile_name.ProfileName",
*,
config_overrides: Optional[AsyncsignerClientConfig] = None,
profile_owner: Optional["capo_signer.types.account_id.AccountId"] = None,
) -> "capo_signer.types.get_signing_profile_response.GetSigningProfileResponse":
"""<p>Returns information on a specific signing profile.</p>
Args:
profile_name: <p>The name of the target signing profile.</p>
profile_owner: <p>The AWS account ID of the profile owner.</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_profile_request.GetSigningProfileRequest]",
) -> AsyncOperationResponse[
"capo_signer.types.get_signing_profile_response.GetSigningProfileResponse"
]:
import capo_signer._operations.wallaby_service.get_signing_profile
(
output,
http_response,
) = await capo_signer._operations.wallaby_service.get_signing_profile.async_get_signing_profile(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSigningProfile")
)
input_: capo_signer.types.get_signing_profile_request.GetSigningProfileRequest = {
"profile_name": profile_name
}
if profile_owner is not None:
input_["profile_owner"] = profile_owner
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|