code: def validate_default_parameters_for_schedules(
      parameters: Optional[Sequence[Parameter]],
  ):
      """Validate that pipeline parameters have defaults if it will interact with EventBridge.
  
      Currently, we are not allowing scheduled executions to override pipeline parameters.
      This means that we must fail fast in the case that no default is specified.
  
      Args:
          parameters (Optional[Sequence[Parameter]]): A list of Pipeline Parameters
      """
      if parameters:
          no_defaults = [
              param.name
              for param in parameters
              if isinstance(param, Parameter)
              and param.default_value is None
          ]
          if no_defaults:
              raise ValueError(
                  f"When using pipeline triggers, please specify default values for all Pipeline "
                  f"Parameters. Currently, they are not overridable at runtime as inputs to a "
                  f"scheduled pipeline execution. The current parameters don't have defaults "
                  f"{no_defaults}."
              )
  
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 a global function with example usage: validate_default_parameters_for_schedules(parameters) without return types