deleteRoutingProfile method

Future<void> deleteRoutingProfile({
  1. required String instanceId,
  2. required String routingProfileId,
})

Deletes a routing profile.

May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceInUseException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter routingProfileId : The identifier of the routing profile.

Implementation

Future<void> deleteRoutingProfile({
  required String instanceId,
  required String routingProfileId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/routing-profiles/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(routingProfileId)}',
    exceptionFnMap: _exceptionFns,
  );
}