:doc:`GlueDataBrew <../../databrew>` / Client / create_schedule

***************
create_schedule
***************



.. py:method:: GlueDataBrew.Client.create_schedule(**kwargs)

  

  Creates a new schedule for one or more DataBrew jobs. Jobs can be run at a specific date and time, or at regular intervals.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/databrew-2017-07-25/CreateSchedule>`_  


  **Request Syntax**
  ::

    response = client.create_schedule(
        JobNames=[
            'string',
        ],
        CronExpression='string',
        Tags={
            'string': 'string'
        },
        Name='string'
    )
    
  :type JobNames: list
  :param JobNames: 

    The name or names of one or more jobs to be run.

    

  
    - *(string) --* 

    

  :type CronExpression: string
  :param CronExpression: **[REQUIRED]** 

    The date or dates and time or times when the jobs are to be run. For more information, see `Cron expressions <https://docs.aws.amazon.com/databrew/latest/dg/jobs.cron.html>`__ in the *Glue DataBrew Developer Guide*.

    

  
  :type Tags: dict
  :param Tags: 

    Metadata tags to apply to this schedule.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type Name: string
  :param Name: **[REQUIRED]** 

    A unique name for the schedule. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Name': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Name** *(string) --* 

        The name of the schedule that was created.

        
  
  **Exceptions**
  
  *   :py:class:`GlueDataBrew.Client.exceptions.ConflictException`

  
  *   :py:class:`GlueDataBrew.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`GlueDataBrew.Client.exceptions.ValidationException`

  