updateRoutingProfileConcurrency method

Future<void> updateRoutingProfileConcurrency({
  1. required String instanceId,
  2. required List<MediaConcurrency> mediaConcurrencies,
  3. required String routingProfileId,
})

Updates the channels that agents can handle in the Contact Control Panel (CCP) 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 mediaConcurrencies : The channels agents can handle in the Contact Control Panel (CCP).

Parameter routingProfileId : The identifier of the routing profile.

Implementation

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