listSigningProfiles method
Lists all available signing profiles in your AWS account. Returns only
profiles with an ACTIVE
status unless the
includeCanceled
request field is set to true
. 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 AccessDeniedException. May throw TooManyRequestsException. May throw InternalServiceErrorException.
Parameter includeCanceled
:
Designates whether to include profiles with the status of
CANCELED
.
Parameter maxResults
:
The maximum number of profiles to be returned.
Parameter nextToken
:
Value 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
:
Filters results to return only signing jobs initiated for a specified
signing platform.
Parameter statuses
:
Filters results to return only signing jobs with statuses in the specified
list.
Implementation
Future<ListSigningProfilesResponse> listSigningProfiles({
bool? includeCanceled,
int? maxResults,
String? nextToken,
String? platformId,
List<SigningProfileStatus>? statuses,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
25,
);
final $query = <String, List<String>>{
if (includeCanceled != null)
'includeCanceled': [includeCanceled.toString()],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (platformId != null) 'platformId': [platformId],
if (statuses != null)
'statuses': statuses.map((e) => e.toValue()).toList(),
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/signing-profiles',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListSigningProfilesResponse.fromJson(response);
}