associateRoutingProfileQueues method

Future<void> associateRoutingProfileQueues({
  1. required String instanceId,
  2. required List<RoutingProfileQueueConfig> queueConfigs,
  3. required String routingProfileId,
})

Associates a set of queues with 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 queueConfigs : The queues to associate with this routing profile.

Parameter routingProfileId : The identifier of the routing profile.

Implementation

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