Automatic Rollover on Elastic Serverless deployment?

I wanted to configure automatic rollover for my index in a new Elastic Serverless deployment. From the docs, it looks like it should be managed automatically by the platform itself.
Is it true? What is the threshold?

I've tried to setup a index template, create an index with "is_write_index": true. When I try to call the Rollover API on the alias, I get "co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/indices.rollover] failed: [illegal_argument_exception] rollover with conditions is not supported in serverless mode"

which seems to be confirming the automated behaviour.
Testing the same on a local elasticsearch instance works just fine.

Hello, correct, rollover is automatic on Serverless. More precisely, it's managed with Data stream lifecycles, as ILM is not available on Serverless.

Thanks for the clarification.
Does it apply also on Index Templates with Data Stream flag set to False?

No. My understanding is that using an index alias + index templates + rollover is not supported on Serverless, you need to switch to data streams instead. Note that data stream lifecycles are also supported in standard Elasticsearch.