updateRoutingProfileQueues method
Future<void>
updateRoutingProfileQueues({
- required String instanceId,
- required List<
RoutingProfileQueueConfig> queueConfigs, - required String routingProfileId,
Updates the properties associated with a set of queues for 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 be updated for this routing profile. Queues must first be
associated to the routing profile. You can do this using
AssociateRoutingProfileQueues.
Parameter routingProfileId
:
The identifier of the routing profile.
Implementation
Future<void> updateRoutingProfileQueues({
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)}/queues',
exceptionFnMap: _exceptionFns,
);
}