removeCustomRoutingEndpoints method

Future<void> removeCustomRoutingEndpoints({
  1. required String endpointGroupArn,
  2. required List<String> endpointIds,
})

Remove endpoints from a custom routing accelerator.

May throw EndpointGroupNotFoundException. May throw EndpointNotFoundException. May throw InternalServiceErrorException. May throw InvalidArgumentException. May throw AccessDeniedException. May throw ConflictException.

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

Parameter endpointIds : The IDs for the endpoints. For custom routing accelerators, endpoint IDs are the virtual private cloud (VPC) subnet IDs.

Implementation

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