:doc:`Connect <../../connect>` / Client / create_hours_of_operation

*************************
create_hours_of_operation
*************************



.. py:method:: Connect.Client.create_hours_of_operation(**kwargs)

  

  Creates hours of operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateHoursOfOperation>`_  


  **Request Syntax**
  ::

    response = client.create_hours_of_operation(
        InstanceId='string',
        Name='string',
        Description='string',
        TimeZone='string',
        Config=[
            {
                'Day': 'SUNDAY'|'MONDAY'|'TUESDAY'|'WEDNESDAY'|'THURSDAY'|'FRIDAY'|'SATURDAY',
                'StartTime': {
                    'Hours': 123,
                    'Minutes': 123
                },
                'EndTime': {
                    'Hours': 123,
                    'Minutes': 123
                }
            },
        ],
        ParentHoursOfOperationConfigs=[
            {
                'HoursOfOperationId': 'string'
            },
        ],
        Tags={
            'string': 'string'
        }
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The name of the hours of operation.

    

  
  :type Description: string
  :param Description: 

    The description of the hours of operation.

    

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

    The time zone of the hours of operation.

    

  
  :type Config: list
  :param Config: **[REQUIRED]** 

    Configuration information for the hours of operation: day, start time, and end time.

    

  
    - *(dict) --* 

      Contains information about the hours of operation.

      

    
      - **Day** *(string) --* **[REQUIRED]** 

        The day that the hours of operation applies to.

        

      
      - **StartTime** *(dict) --* **[REQUIRED]** 

        The start time that your contact center opens.

        

      
        - **Hours** *(integer) --* **[REQUIRED]** 

          The hours.

          

        
        - **Minutes** *(integer) --* **[REQUIRED]** 

          The minutes.

          

        
      
      - **EndTime** *(dict) --* **[REQUIRED]** 

        The end time that your contact center closes.

        

      
        - **Hours** *(integer) --* **[REQUIRED]** 

          The hours.

          

        
        - **Minutes** *(integer) --* **[REQUIRED]** 

          The minutes.

          

        
      
    

  :type ParentHoursOfOperationConfigs: list
  :param ParentHoursOfOperationConfigs: 

    Configuration for parent hours of operations. Eg: ResourceArn.

     

    For more information about parent hours of operations, see `Link overrides from different hours of operation <https://docs.aws.amazon.com/https:/docs.aws.amazon.com/connect/latest/adminguide/hours-of-operation-overrides.html>`__ in the *Administrator Guide*.

    

  
    - *(dict) --* 

      Contains configuration for the parent hours of operation.

      

    
      - **HoursOfOperationId** *(string) --* 

        The identifier for the hours of operation.

        

      
    

  :type Tags: dict
  :param Tags: 

    The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'HoursOfOperationId': 'string',
          'HoursOfOperationArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **HoursOfOperationId** *(string) --* 

        The identifier for the hours of operation.

        
      

      - **HoursOfOperationArn** *(string) --* 

        The Amazon Resource Name (ARN) for the hours of operation.

        
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.DuplicateResourceException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.LimitExceededException`

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

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

  