advertiseByoipCidr method

Future<AdvertiseByoipCidrResponse> advertiseByoipCidr({
  1. required String cidr,
})

Advertises an IPv4 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP). It can take a few minutes before traffic to the specified addresses starts routing to AWS 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 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. This must be the exact range that you provisioned. You can't advertise only a portion of the provisioned range.

Implementation

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

  return AdvertiseByoipCidrResponse.fromJson(jsonResponse.body);
}