deleteQueue method

Future<void> deleteQueue({
  1. required String instanceId,
  2. required String queueId,
})

Deletes a queue.

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 queueId : The identifier for the queue.

Implementation

Future<void> deleteQueue({
  required String instanceId,
  required String queueId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/queues/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(queueId)}',
    exceptionFnMap: _exceptionFns,
  );
}