Skip to main content

hours_of_operation_overrides

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

Overview

Namehours_of_operation_overrides
TypeResource
Idaws.connect.hours_of_operation_overrides

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configarrayConfiguration information for the hours of operation override: day, start time, and end time.
descriptionstringThe description of the hours of operation override. (pattern: <code>^[\P{C}\r\n\t]{1,250}$</code>)
effective_fromstringThe date from which the hours of operation override would be effective. (pattern: <code>^\d{4}-\d{2}-\d{2}$</code>)
effective_tillstringThe date until the hours of operation override is effective. (pattern: <code>^\d{4}-\d{2}-\d{2}$</code>)
hours_of_operation_arnstringThe Amazon Resource Name (ARN) for the hours of operation.
hours_of_operation_idstringThe identifier for the hours of operation.
hours_of_operation_override_idstringThe identifier for the hours of operation override.
namestringThe name of the hours of operation override. (pattern: <code>^[\P{C}\r\n\t]{1,127}$</code>)
override_typestringWhether the override will be defined as a standard or as a recurring event. (STANDARD, OPEN, CLOSED)
recurrence_configobjectDefines the recurrence configuration for overrides. This configuration uses a recurrence pattern to specify when and how frequently an event should repeat.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_hours_of_operation_overrideselectinstance_id, hours_of_operation_id, hours_of_operation_override_id, regionDescribes the hours of operation override.
list_hours_of_operation_overridesselectinstance_id, hours_of_operation_id, regionnextToken, maxResultsList the hours of operation overrides.
search_hours_of_operation_overridesselectregionSearches the hours of operation overrides.
create_hours_of_operation_overrideinsertinstance_id, hours_of_operation_id, region, EffectiveFrom, EffectiveTillCreates an hours of operation override in an Connect Customer hours of operation resource.
update_hours_of_operation_overrideupdateinstance_id, hours_of_operation_id, hours_of_operation_override_id, regionUpdate the hours of operation override.
delete_hours_of_operation_overridedeleteinstance_id, hours_of_operation_id, hours_of_operation_override_id, regionDeletes an hours of operation override in an Connect Customer hours of operation resource.

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.
hours_of_operation_override_idstringThe identifier for the hours of operation override.
instance_idstringThe identifier of the Connect Customer instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page.
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 override.

SELECT
config,
description,
effective_from,
effective_till,
hours_of_operation_arn,
hours_of_operation_id,
hours_of_operation_override_id,
name,
override_type,
recurrence_config
FROM aws.connect.hours_of_operation_overrides
WHERE instance_id = '{{ instance_id }}' -- required
AND hours_of_operation_id = '{{ hours_of_operation_id }}' -- required
AND hours_of_operation_override_id = '{{ hours_of_operation_override_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an hours of operation override in an Connect Customer hours of operation resource.

INSERT INTO aws.connect.hours_of_operation_overrides (
Name,
Description,
Config,
EffectiveFrom,
EffectiveTill,
RecurrenceConfig,
OverrideType,
instance_id,
hours_of_operation_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Config }}',
'{{ EffectiveFrom }}' /* required */,
'{{ EffectiveTill }}' /* required */,
'{{ RecurrenceConfig }}',
'{{ OverrideType }}',
'{{ instance_id }}',
'{{ hours_of_operation_id }}',
'{{ region }}'
RETURNING
hours_of_operation_override_id
;

UPDATE examples

Update the hours of operation override.

UPDATE aws.connect.hours_of_operation_overrides
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
Config = '{{ Config }}',
EffectiveFrom = '{{ EffectiveFrom }}',
EffectiveTill = '{{ EffectiveTill }}',
RecurrenceConfig = '{{ RecurrenceConfig }}',
OverrideType = '{{ OverrideType }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND hours_of_operation_id = '{{ hours_of_operation_id }}' --required
AND hours_of_operation_override_id = '{{ hours_of_operation_override_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an hours of operation override in an Connect Customer hours of operation resource.

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