updateUserPhoneConfig method

Future<void> updateUserPhoneConfig({
  1. required String instanceId,
  2. required UserPhoneConfig phoneConfig,
  3. required String userId,
})

Updates the phone configuration settings for the specified user.

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 phoneConfig : Information about phone configuration settings for the user.

Parameter userId : The identifier of the user account.

Implementation

Future<void> updateUserPhoneConfig({
  required String instanceId,
  required UserPhoneConfig phoneConfig,
  required String userId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(phoneConfig, 'phoneConfig');
  ArgumentError.checkNotNull(userId, 'userId');
  final $payload = <String, dynamic>{
    'PhoneConfig': phoneConfig,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}/phone-config',
    exceptionFnMap: _exceptionFns,
  );
}