describeAddonVersions method
Describes the Kubernetes versions that the add-on can be used with.
May throw ServerException. May throw ResourceNotFoundException. May throw InvalidParameterException.
Parameter addonName
:
The name of the add-on. The name must match one of the names returned by
ListAddons
.
Parameter kubernetesVersion
:
The Kubernetes versions that the add-on can be used with.
Parameter maxResults
:
The maximum number of results to return.
Parameter nextToken
:
The nextToken
value returned from a previous paginated
DescribeAddonVersionsRequest
where maxResults
was used and the results exceeded the value of that parameter. Pagination
continues from the end of the previous results that returned the
nextToken
value.
Implementation
Future<DescribeAddonVersionsResponse> describeAddonVersions({
String? addonName,
String? kubernetesVersion,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (addonName != null) 'addonName': [addonName],
if (kubernetesVersion != null) 'kubernetesVersion': [kubernetesVersion],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/addons/supported-versions',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeAddonVersionsResponse.fromJson(response);
}