revokeSignature method
Changes the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
May throw ValidationException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw InternalServiceErrorException.
Parameter jobId
:
ID of the signing job to be revoked.
Parameter reason
:
The reason for revoking the signing job.
Parameter jobOwner
:
AWS account ID of the job owner.
Implementation
Future<void> revokeSignature({
required String jobId,
required String reason,
String? jobOwner,
}) async {
ArgumentError.checkNotNull(jobId, 'jobId');
ArgumentError.checkNotNull(reason, 'reason');
_s.validateStringLength(
'reason',
reason,
1,
500,
isRequired: true,
);
_s.validateStringLength(
'jobOwner',
jobOwner,
12,
12,
);
final $payload = <String, dynamic>{
'reason': reason,
if (jobOwner != null) 'jobOwner': jobOwner,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/signing-jobs/${Uri.encodeComponent(jobId)}/revoke',
exceptionFnMap: _exceptionFns,
);
}