listComponentBuildVersions method
Returns the list of component build versions for the specified semantic version.
May throw ServiceException. May throw ClientException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw InvalidPaginationTokenException. May throw ForbiddenException. May throw CallRateLimitExceededException.
Parameter componentVersionArn
:
The component version Amazon Resource Name (ARN) whose versions you want
to list.
Parameter maxResults
:
The maximum 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<ListComponentBuildVersionsResponse> listComponentBuildVersions({
required String componentVersionArn,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(componentVersionArn, 'componentVersionArn');
_s.validateNumRange(
'maxResults',
maxResults,
1,
25,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
65535,
);
final $payload = <String, dynamic>{
'componentVersionArn': componentVersionArn,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListComponentBuildVersions',
exceptionFnMap: _exceptionFns,
);
return ListComponentBuildVersionsResponse.fromJson(response);
}