listByoipCidrs method
Lists the IP address ranges that were specified in calls to ProvisionByoipCidr, including the current state and a history of state changes.
May throw InternalServiceErrorException. May throw InvalidArgumentException. May throw AccessDeniedException. May throw InvalidNextTokenException.
Parameter maxResults
:
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned
nextToken
value.
Parameter nextToken
:
The token for the next page of results.
Implementation
Future<ListByoipCidrsResponse> listByoipCidrs({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
255,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GlobalAccelerator_V20180706.ListByoipCidrs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListByoipCidrsResponse.fromJson(jsonResponse.body);
}