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'
}
)
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
[REQUIRED]
The name of the hours of operation.
[REQUIRED]
The time zone of the hours of operation.
[REQUIRED]
Configuration information for the hours of operation: day, start time, and end time.
Contains information about the hours of operation.
The day that the hours of operation applies to.
The start time that your contact center opens.
The hours.
The minutes.
The end time that your contact center closes.
The hours.
The minutes.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
dict
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