listSigningJobs method
Lists all your signing jobs. You can use the maxResults
parameter to limit the number of signing jobs that are returned in the
response. If additional jobs remain to be listed, code signing returns a
nextToken
value. Use this value in subsequent calls to
ListSigningJobs
to fetch the remaining values. You can
continue calling ListSigningJobs
with your
maxResults
parameter and with new values that code signing
returns in the nextToken
parameter until all of your signing
jobs have been returned.
May throw ValidationException. May throw AccessDeniedException. May throw TooManyRequestsException. May throw InternalServiceErrorException.
Parameter isRevoked
:
Filters results to return only signing jobs with revoked signatures.
Parameter jobInvoker
:
Filters results to return only signing jobs initiated by a specified IAM
entity.
Parameter maxResults
:
Specifies the maximum number of items to return in the response. Use this
parameter when paginating results. If additional items exist beyond the
number you specify, the nextToken
element is set in the
response. Use the nextToken
value in a subsequent request to
retrieve additional items.
Parameter nextToken
:
String for specifying the next set of paginated results to return. After
you receive a response with truncated results, use this parameter in a
subsequent request. Set it to the value of nextToken
from the
response that you just received.
Parameter platformId
:
The ID of microcontroller platform that you specified for the distribution
of your code image.
Parameter requestedBy
:
The IAM principal that requested the signing job.
Parameter signatureExpiresAfter
:
Filters results to return only signing jobs with signatures expiring after
a specified timestamp.
Parameter signatureExpiresBefore
:
Filters results to return only signing jobs with signatures expiring
before a specified timestamp.
Parameter status
:
A status value with which to filter your results.
Implementation
Future<ListSigningJobsResponse> listSigningJobs({
bool? isRevoked,
String? jobInvoker,
int? maxResults,
String? nextToken,
String? platformId,
String? requestedBy,
DateTime? signatureExpiresAfter,
DateTime? signatureExpiresBefore,
SigningStatus? status,
}) async {
_s.validateStringLength(
'jobInvoker',
jobInvoker,
12,
12,
);
_s.validateNumRange(
'maxResults',
maxResults,
1,
25,
);
final $query = <String, List<String>>{
if (isRevoked != null) 'isRevoked': [isRevoked.toString()],
if (jobInvoker != null) 'jobInvoker': [jobInvoker],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (platformId != null) 'platformId': [platformId],
if (requestedBy != null) 'requestedBy': [requestedBy],
if (signatureExpiresAfter != null)
'signatureExpiresAfter': [
_s.iso8601ToJson(signatureExpiresAfter).toString()
],
if (signatureExpiresBefore != null)
'signatureExpiresBefore': [
_s.iso8601ToJson(signatureExpiresBefore).toString()
],
if (status != null) 'status': [status.toValue()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/signing-jobs',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListSigningJobsResponse.fromJson(response);
}