deleteEndpointGroup method

Future<void> deleteEndpointGroup({
  1. required String endpointGroupArn,
})

Delete an endpoint group from a listener.

May throw InvalidArgumentException. May throw EndpointGroupNotFoundException. May throw InternalServiceErrorException.

Parameter endpointGroupArn : The Amazon Resource Name (ARN) of the endpoint group to delete.

Implementation

Future<void> deleteEndpointGroup({
  required String endpointGroupArn,
}) async {
  ArgumentError.checkNotNull(endpointGroupArn, 'endpointGroupArn');
  _s.validateStringLength(
    'endpointGroupArn',
    endpointGroupArn,
    0,
    255,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'GlobalAccelerator_V20180706.DeleteEndpointGroup'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointGroupArn': endpointGroupArn,
    },
  );
}