Connect / Client / create_hours_of_operation

create_hours_of_operation#

Connect.Client.create_hours_of_operation(**kwargs)#

This API is in preview release for Amazon Connect and is subject to change.

Creates hours of operation.

See also: AWS API Documentation

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
            }
        },
    ],
    Tags={
        'string': 'string'
    }
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • Name (string) –

    [REQUIRED]

    The name of the hours of operation.

  • Description (string) – The description of the hours of operation.

  • TimeZone (string) –

    [REQUIRED]

    The time zone of the hours of operation.

  • Config (list) –

    [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.

  • Tags (dict) –

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

    • (string) –

      • (string) –

Return type:

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

  • Connect.Client.exceptions.DuplicateResourceException

  • Connect.Client.exceptions.InvalidRequestException

  • Connect.Client.exceptions.InvalidParameterException

  • Connect.Client.exceptions.ResourceNotFoundException

  • Connect.Client.exceptions.LimitExceededException

  • Connect.Client.exceptions.ThrottlingException

  • Connect.Client.exceptions.InternalServiceException