listPlatformVersions method
- List<
PlatformFilter> ? filters, - int? maxRecords,
- String? nextToken,
Lists the platform versions available for your account in an AWS Region. Provides summary information about each platform version. Compare to DescribePlatformVersion, which provides full details about a single platform version.
For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary.
May throw InsufficientPrivilegesException. May throw ElasticBeanstalkServiceException.
Parameter filters
:
Criteria for restricting the resulting list of platform versions. The
filter is interpreted as a logical conjunction (AND) of the separate
PlatformFilter
terms.
Parameter maxRecords
:
The maximum number of platform version values returned in one call.
Parameter nextToken
:
For a paginated request. Specify a token from a previous response page to
retrieve the next response page. All other parameter values must be
identical to the ones specified in the initial request.
If no NextToken
is specified, the first page is retrieved.
Implementation
Future<ListPlatformVersionsResult> listPlatformVersions({
List<PlatformFilter>? filters,
int? maxRecords,
String? nextToken,
}) async {
_s.validateNumRange(
'maxRecords',
maxRecords,
1,
1152921504606846976,
);
final $request = <String, dynamic>{};
filters?.also((arg) => $request['Filters'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
nextToken?.also((arg) => $request['NextToken'] = arg);
final $result = await _protocol.send(
$request,
action: 'ListPlatformVersions',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ListPlatformVersionsRequest'],
shapes: shapes,
resultWrapper: 'ListPlatformVersionsResult',
);
return ListPlatformVersionsResult.fromXml($result);
}