updateUserSecurityProfiles method

Future<void> updateUserSecurityProfiles({
  1. required String instanceId,
  2. required List<String> securityProfileIds,
  3. required String userId,
})

Assigns the specified security profiles to 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 securityProfileIds : The identifiers of the security profiles for the user.

Parameter userId : The identifier of the user account.

Implementation

Future<void> updateUserSecurityProfiles({
  required String instanceId,
  required List<String> securityProfileIds,
  required String userId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(securityProfileIds, 'securityProfileIds');
  ArgumentError.checkNotNull(userId, 'userId');
  final $payload = <String, dynamic>{
    'SecurityProfileIds': securityProfileIds,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}/security-profiles',
    exceptionFnMap: _exceptionFns,
  );
}