updateRoutingProfileDefaultOutboundQueue method

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

Updates the default outbound queue of a routing profile.

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

Parameter defaultOutboundQueueId : The identifier for the default outbound queue.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter routingProfileId : The identifier of the routing profile.

Implementation

Future<void> updateRoutingProfileDefaultOutboundQueue({
  required String defaultOutboundQueueId,
  required String instanceId,
  required String routingProfileId,
}) async {
  ArgumentError.checkNotNull(
      defaultOutboundQueueId, 'defaultOutboundQueueId');
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(routingProfileId, 'routingProfileId');
  final $payload = <String, dynamic>{
    'DefaultOutboundQueueId': defaultOutboundQueueId,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/routing-profiles/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(routingProfileId)}/default-outbound-queue',
    exceptionFnMap: _exceptionFns,
  );
}