code: def _set(self):
      # Generate a new rule or update existing rule.
      self._client.put_rule(
          Name=self.name,
          ScheduleExpression="cron(%s)" % self.cron,
          Description="Metaflow generated rule for %s" % self.name,
          State="ENABLED",
      )
      # Assign AWS Step Functions ARN to the rule as a target.
      self._client.put_targets(
          Rule=self.name,
          Targets=[
              {
                  "Id": self.name,
                  "Arn": self.state_machine_arn,
                  # Set input parameters to empty.
                  "Input": json.dumps({"Parameters": json.dumps({})}),
                  "RoleArn": self.role_arn,
              }
          ],
      )
  
file_path: metaflow/metaflow/plugins/aws/step_functions/event_bridge_client.py
imports: import base64
  import json
  from hashlib import sha1
  from metaflow.util import to_bytes, to_unicode
label_desc: Use image node_id 7 for calling the EventBridgeClient obj's underlying member method code with example usage: obj._set() without return types