advertiseByoipCidr method
Advertises an IPv4 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of propagation delays.
To stop advertising the BYOIP address range, use WithdrawByoipCidr.
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. This must be the exact range that you
provisioned. You can't advertise only a portion of the provisioned range.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
Implementation
Future<AdvertiseByoipCidrResponse> advertiseByoipCidr({
required String cidr,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GlobalAccelerator_V20180706.AdvertiseByoipCidr'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Cidr': cidr,
},
);
return AdvertiseByoipCidrResponse.fromJson(jsonResponse.body);
}