withdrawByoipCidr method
Stops advertising an address range that is provisioned as an address pool. You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of propagation delays.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
May throw AccessDeniedException.
May throw ByoipCidrNotFoundException.
May throw IncorrectCidrStateException.
May throw InternalServiceErrorException.
May throw InvalidArgumentException.
Parameter cidr :
The address range, in CIDR notation.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
Implementation
Future<WithdrawByoipCidrResponse> withdrawByoipCidr({
required String cidr,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GlobalAccelerator_V20180706.WithdrawByoipCidr'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Cidr': cidr,
},
);
return WithdrawByoipCidrResponse.fromJson(jsonResponse.body);
}