withdrawByoipCidr method

Future<WithdrawByoipCidrResponse> withdrawByoipCidr({
  1. required String cidr,
})

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 AWS because of propagation delays.

For more information, see Bring Your Own IP Addresses (BYOIP) in the AWS Global Accelerator Developer Guide.

May throw InternalServiceErrorException. May throw InvalidArgumentException. May throw AccessDeniedException. May throw ByoipCidrNotFoundException. May throw IncorrectCidrStateException.

Parameter cidr : The address range, in CIDR notation.

Implementation

Future<WithdrawByoipCidrResponse> withdrawByoipCidr({
  required String cidr,
}) async {
  ArgumentError.checkNotNull(cidr, 'cidr');
  _s.validateStringLength(
    'cidr',
    cidr,
    0,
    255,
    isRequired: true,
  );
  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);
}