describeAutoScalingInstances method
Describes one or more Auto Scaling instances.
May throw InvalidNextToken. May throw ResourceContentionFault.
Parameter instanceIds
:
The IDs of the instances. You can specify up to MaxRecords
IDs. If you omit this parameter, all Auto Scaling instances are described.
If you specify an ID that does not exist, it is ignored with no error.
Parameter maxRecords
:
The maximum number of items to return with this call. The default value is
50
and the maximum value is 50
.
Parameter nextToken
:
The token for the next set of items to return. (You received this token
from a previous call.)
Implementation
Future<AutoScalingInstancesType> describeAutoScalingInstances({
List<String>? instanceIds,
int? maxRecords,
String? nextToken,
}) async {
final $request = <String, dynamic>{};
instanceIds?.also((arg) => $request['InstanceIds'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
nextToken?.also((arg) => $request['NextToken'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeAutoScalingInstances',
version: '2011-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeAutoScalingInstancesType'],
shapes: shapes,
resultWrapper: 'DescribeAutoScalingInstancesResult',
);
return AutoScalingInstancesType.fromXml($result);
}