deprovisionByoipCidr method

Future<DeprovisionByoipCidrResponse> deprovisionByoipCidr({
  1. required String cidr,
})

Releases the specified address range that you provisioned to use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it by using WithdrawByoipCidr and you must not have any accelerators that are using static IP addresses allocated from its address range.

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. The prefix must be the same prefix that you specified when you provisioned the address range.

Implementation

Future<DeprovisionByoipCidrResponse> deprovisionByoipCidr({
  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.DeprovisionByoipCidr'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Cidr': cidr,
    },
  );

  return DeprovisionByoipCidrResponse.fromJson(jsonResponse.body);
}