listImageBuildVersions method
Returns a list of image build versions.
May throw CallRateLimitExceededException.
May throw ClientException.
May throw ForbiddenException.
May throw InvalidPaginationTokenException.
May throw InvalidRequestException.
May throw ServiceException.
May throw ServiceUnavailableException.
Parameter filters :
Use the following filters to streamline results:
-
name -
osVersion -
platform -
type -
version
Parameter imageVersionArn :
The Amazon Resource Name (ARN) of the image whose build versions you want
to retrieve.
Parameter maxResults :
Specify the maximum number of items to return in a request.
Parameter nextToken :
A token to specify where to start paginating. This is the nextToken from a
previously truncated response.
Implementation
Future<ListImageBuildVersionsResponse> listImageBuildVersions({
List<Filter>? filters,
String? imageVersionArn,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
25,
);
final $payload = <String, dynamic>{
if (filters != null) 'filters': filters,
if (imageVersionArn != null) 'imageVersionArn': imageVersionArn,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListImageBuildVersions',
exceptionFnMap: _exceptionFns,
);
return ListImageBuildVersionsResponse.fromJson(response);
}