class_docstr: Pipeline Schedule trigger type used to create EventBridge Schedules for SageMaker Pipelines.
  
  To create a pipeline schedule, specify a single type using the ``at``, ``rate``, or ``cron``
  parameters. For more information about EventBridge syntax, see
  `Schedule types on EventBridge Scheduler
  <https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html>`_.
  
  Args:
      start_date (datetime): The start date of the schedule. Default is ``time.now()``.
      at (datetime): An "At" EventBridge expression. Defaults to UTC timezone. Note
          that if you use ``datetime.now()``, the result is a snapshot of your current local
          time. Eventbridge requires a time in UTC format. You can convert the
          result of ``datetime.now()`` to UTC by using ``datetime.utcnow()`` or
          ``datetime.now(tz=pytz.utc)``. For example, you can create a time two minutes from now
          with the expression ``datetime.now(tz=pytz.utc) + timedelta(0, 120)``.
      rate (tuple): A "Rate" EventBridge expression. Format is (value, unit).
      cron (str): A "Cron" EventBridge expression. Format is "minutes hours
          day-of-month month day-of-week year".
      name (str): The schedule name. Default is ``None``.
      enabled (boolean): If the schedule is enabled. Defaults to ``True``.
class_docstr_tok: ["Pipeline","Schedule","trigger","type","used","to","create","EventBridge","Schedules","for","SageMaker","Pipelines",".","To","create","a","pipeline","schedule",",","specify","a","single","type","using","the","``","at","``",",","``","rate","``",",","or","``","cron","``","parameters",".","For","more","information","about","EventBridge","syntax",",","see","`","Schedule","types","on","EventBridge","Scheduler","<","https",":","\/\/docs.aws.amazon.com\/scheduler\/latest\/UserGuide\/schedule-types.html",">","`","_",".","Args",":","start_date","(","datetime",")",":","The","start","date","of","the","schedule",".","Default","is","``","time.now","(",")","``",".","at","(","datetime",")",":","An","``","At","''","EventBridge","expression",".","Defaults","to","UTC","timezone",".","Note","that","if","you","use","``","datetime.now","(",")","``",",","the","result","is","a","snapshot","of","your","current","local","time",".","Eventbridge","requires","a","time","in","UTC","format",".","You","can","convert","the","result","of","``","datetime.now","(",")","``","to","UTC","by","using","``","datetime.utcnow","(",")","``","or","``","datetime.now","(","tz=pytz.utc",")","``",".","For","example",",","you","can","create","a","time","two","minutes","from","now","with","the","expression","``","datetime.now","(","tz=pytz.utc",")","+","timedelta","(","0",",","120",")","``",".","rate","(","tuple",")",":","A","``","Rate","''","EventBridge","expression",".","Format","is","(","value",",","unit",")",".","cron","(","str",")",":","A","``","Cron","''","EventBridge","expression",".","Format","is","``","minutes","hours","day-of-month","month","day-of-week","year","''",".","name","(","str",")",":","The","schedule","name",".","Default","is","``","None","``",".","enabled","(","boolean",")",":","If","the","schedule","is","enabled",".","Defaults","to","``","True","``","."]
docstr: Resolve schedule expression
  
  Format schedule expression for an EventBridge client call from the specified
      at, rate, or cron parameter. After resolution, if there are any othererrors
      in the syntax, this will throw an expected ValidationException from EventBridge.
  
  Returns:
      schedule_expression: Correctly string formatted schedule expression based on type.
docstr_tok: ["Resolve","schedule","expression","Format","schedule","expression","for","an","EventBridge","client","call","from","the","specified","at",",","rate",",","or","cron","parameter",".","After","resolution",",","if","there","are","any","othererrors","in","the","syntax",",","this","will","throw","an","expected","ValidationException","from","EventBridge",".","Returns",":","schedule_expression",":","Correctly","string","formatted","schedule","expression","based","on","type","."]
code: def resolve_schedule_expression(self) -> str:
      """Resolve schedule expression
  
      Format schedule expression for an EventBridge client call from the specified
          at, rate, or cron parameter. After resolution, if there are any othererrors
          in the syntax, this will throw an expected ValidationException from EventBridge.
  
      Returns:
          schedule_expression: Correctly string formatted schedule expression based on type.
      """
  
      if (
          len(
              [
                  x
                  for x in [self.at, self.rate, self.cron]
                  if x is not None
              ]
          )
          > 1
      ):
          raise TypeError(
              "Too many types specified for PipelineSchedule. Please specify a single type "
              "in [at, rate, or cron] to successfully create the EventBridge Schedule."
          )
  
      # "at(yyyy-mm-ddThh:mm:ss)"
      if self.at:
          if isinstance(self.at, datetime):
              utc_dt = self.at  # no tz, assume UTC
              if self.at.tzinfo:
                  utc_dt = self.at.astimezone(tz=UTC)  # convert to UTC
              return f"at({utc_dt.strftime('%Y-%m-%dT%H:%M:%S')})"
          raise TypeError("Incorrect type specified for at= schedule.")
  
      # "rate(value unit)"
      if self.rate:
          if isinstance(self.rate, tuple):
              val, unit = self.rate
              resolved_str = f"rate({val} {unit})"
              return resolved_str
          raise TypeError(
              "Incorrect type specified for rate= schedule."
          )
  
      # "cron(minutes hours day-of-month month day-of-week year)"
      if self.cron:
          if isinstance(self.cron, str):
              return f"cron({self.cron})"
          raise TypeError(
              "Incorrect type specified for cron= schedule."
          )
  
      raise ValueError(
          "No schedule type specified. Please specify a single type "
          "in [at, rate, or cron] to successfully create the EventBridge Schedule."
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/triggers.py
imports: from __future__ import absolute_import
  from datetime import datetime
  import logging
  from typing import Optional, Sequence
  import attr
  import pytz
  from sagemaker.workflow.parameters import Parameter
label_desc: Use image node_id 1 for calling the PipelineSchedule obj's underlying member method code with example usage: obj.resolve_schedule_expression() and returns: str, utc_dt, str, resolved_str, str, self, str