Skip to main content

hours_of_operations

Creates, updates, deletes, gets or lists an hours_of_operations resource.

Overview

Namehours_of_operations
TypeResource
Idaws.connect.hours_of_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configarrayConfiguration information for the hours of operation.
descriptionstringThe description for the hours of operation.
hours_of_operation_arnstringThe Amazon Resource Name (ARN) for the hours of operation.
hours_of_operation_idstringThe identifier for the hours of operation.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
namestringThe name for the hours of operation.
parent_hours_of_operationsarrayInformation about parent hours of operations.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
time_zonestringThe time zone for the hours of operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_hours_of_operationselectinstance_id, hours_of_operation_id, regionDescribes the hours of operation.
list_hours_of_operationsselectinstance_id, regionnextToken, maxResultsProvides information about the hours of operation for the specified Connect Customer instance. For more information about hours of operation, see Set the Hours of Operation for a Queue in the Connect Customer Administrator Guide.
search_hours_of_operationsselectregionSearches the hours of operation in an Connect Customer instance, with optional filtering.
create_hours_of_operationinsertinstance_id, region, TimeZoneCreates hours of operation.
associate_hours_of_operationsupdateinstance_id, hours_of_operation_id, region, ParentHoursOfOperationConfigsAssociates a set of hours of operations with another hours of operation. For more information about inheriting overrides from parent hours of operation, see Hours of operation overrides in the Administrator Guide.
disassociate_hours_of_operationsupdateinstance_id, hours_of_operation_id, region, ParentHoursOfOperationIdsDisassociates a set of hours of operations with another hours of operation. For more information about inheriting overrides from parent hours of operation, see Hours of operation overrides in the Administrator Guide.
update_queue_hours_of_operationupdateinstance_id, queue_id, region, HoursOfOperationIdUpdates the hours of operation for the specified queue.
update_hours_of_operationupdateinstance_id, hours_of_operation_id, regionUpdates the hours of operation.
delete_hours_of_operationdeleteinstance_id, hours_of_operation_id, regionDeletes an hours of operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hours_of_operation_idstringThe identifier for the hours of operation.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
queue_idstringThe identifier for the queue.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Describes the hours of operation.

SELECT
config,
description,
hours_of_operation_arn,
hours_of_operation_id,
last_modified_region,
last_modified_time,
name,
parent_hours_of_operations,
tags,
time_zone
FROM aws.connect.hours_of_operations
WHERE instance_id = '{{ instance_id }}' -- required
AND hours_of_operation_id = '{{ hours_of_operation_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates hours of operation.

INSERT INTO aws.connect.hours_of_operations (
Name,
Description,
TimeZone,
Config,
ParentHoursOfOperationConfigs,
Tags,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ TimeZone }}' /* required */,
'{{ Config }}',
'{{ ParentHoursOfOperationConfigs }}',
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
hours_of_operation_arn,
hours_of_operation_id
;

UPDATE examples

Associates a set of hours of operations with another hours of operation. For more information about inheriting overrides from parent hours of operation, see Hours of operation overrides in the Administrator Guide.

UPDATE aws.connect.hours_of_operations
SET
ParentHoursOfOperationConfigs = '{{ ParentHoursOfOperationConfigs }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND hours_of_operation_id = '{{ hours_of_operation_id }}' --required
AND region = '{{ region }}' --required
AND ParentHoursOfOperationConfigs = '{{ ParentHoursOfOperationConfigs }}' --required;

DELETE examples

Deletes an hours of operation.

DELETE FROM aws.connect.hours_of_operations
WHERE instance_id = '{{ instance_id }}' --required
AND hours_of_operation_id = '{{ hours_of_operation_id }}' --required
AND region = '{{ region }}' --required
;