describeApplicationVersions method
Retrieve a list of application versions.
Parameter applicationName
:
Specify an application name to show only application versions for that
application.
Parameter maxRecords
:
For a paginated request. Specify a maximum number of application versions
to include in each response.
If no MaxRecords
is specified, all available application
versions are retrieved in a single response.
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.
Parameter versionLabels
:
Specify a version label to show a specific application version.
Implementation
Future<ApplicationVersionDescriptionsMessage> describeApplicationVersions({
String? applicationName,
int? maxRecords,
String? nextToken,
List<String>? versionLabels,
}) async {
_s.validateStringLength(
'applicationName',
applicationName,
1,
100,
);
_s.validateNumRange(
'maxRecords',
maxRecords,
1,
1000,
);
final $request = <String, dynamic>{};
applicationName?.also((arg) => $request['ApplicationName'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
nextToken?.also((arg) => $request['NextToken'] = arg);
versionLabels?.also((arg) => $request['VersionLabels'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeApplicationVersions',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeApplicationVersionsMessage'],
shapes: shapes,
resultWrapper: 'DescribeApplicationVersionsResult',
);
return ApplicationVersionDescriptionsMessage.fromXml($result);
}