disassociateRoutingProfileQueues method

Future<void> disassociateRoutingProfileQueues({
  1. required String instanceId,
  2. required List<RoutingProfileQueueReference> queueReferences,
  3. required String routingProfileId,
})

Disassociates a set of queues from a routing profile.

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

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter queueReferences : The queues to disassociate from this routing profile.

Parameter routingProfileId : The identifier of the routing profile.

Implementation

Future<void> disassociateRoutingProfileQueues({
  required String instanceId,
  required List<RoutingProfileQueueReference> queueReferences,
  required String routingProfileId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(queueReferences, 'queueReferences');
  ArgumentError.checkNotNull(routingProfileId, 'routingProfileId');
  final $payload = <String, dynamic>{
    'QueueReferences': queueReferences,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/routing-profiles/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(routingProfileId)}/disassociate-queues',
    exceptionFnMap: _exceptionFns,
  );
}