getOutpostInstanceTypes method
Gets the instance types for the specified Outpost.
May throw AccessDeniedException.
May throw InternalServerException.
May throw NotFoundException.
May throw ValidationException.
Parameter outpostId :
The ID or ARN of the Outpost.
Implementation
Future<GetOutpostInstanceTypesOutput> getOutpostInstanceTypes({
required String outpostId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/outposts/${Uri.encodeComponent(outpostId)}/instanceTypes',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetOutpostInstanceTypesOutput.fromJson(response);
}