sign_payload
async
¶
sign_payload(
profile_name: ProfileName,
payload: Payload,
payload_format: String,
*,
config_overrides: Optional[AsyncsignerClientConfig] = None,
profile_owner: Optional[AccountId] = None,
) -> SignPayloadResponse
Signs a binary payload and returns a signature envelope.
Parameters:
-
profile_name(ProfileName) –The name of the signing profile.
-
profile_owner(Optional[AccountId], default:None) –The AWS account ID of the profile owner.
-
payload(Payload) –Specifies the object digest (hash) to sign.
-
payload_format(String) –Payload content type. The single valid type is
application/vnd.cncf.notary.payload.v1+json.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServiceErrorException–An internal error occurred.
-
ResourceNotFoundException–A specified resource could not be found.
-
TooManyRequestsException–The allowed number of job-signing requests has been exceeded.
This error supersedes the error
ThrottlingException. -
ValidationException–You signing certificate could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.