To invoke a Step Function when an object is posted to S3, you'll need to create a Lambda function that starts an execution of the state machine. Each execution will be separate and independent for each uploaded object.
There isn't a concept of "enabled" and "disabled" for state machine executions - they are either running and in some state, or terminated.
There is no direct integration between S3 and StepFunctions. You can send the S3 notification to a Lambda function, as suggest by @Michael_F, or a no code solution, by sending the event to EventBridge and setting a rule with a StepFunction target.
Saying that, I am not sure that StepFunctions is your right solution. It seems that you want to run some process on multiple files. If that is the case, you will not be able to "attach" into a running state machine. There may be some options using the Wait For Task Token integration pattern, but I am not sure it will solve what you are trying to do.
I think it would be best if you could explain your use case better.
In step function, how do I convert single-object output to array containing single-object.asked 3 months ago
From S3 bucket to SFTP serverasked 2 months ago
how to trigger a step function from a s3 object notification?asked 6 months ago
Step Function Local Accessing Context Object causes SCHEMA_VALIDATION_FAILEDasked 3 months ago
How to create a read stream of a AWS S3 object in a async function?asked 3 years ago
S3 object and lambda function in step machine with the asynchronous express workflowsAccepted Answerasked 8 months ago
Intermittend InvalidSignature error when retrieving object from S3 Object Lambda accesspoint in lambda@edge functionasked 6 months ago
How to use multiple Lambdas to a single S3 used by amazon connectasked 9 months ago
can a s3 object creation event trigger an existing fargate job?asked 2 months ago
Return Value from Lambda function triggered by SQS to individual clientAccepted Answerasked 8 months ago