Skip to main content

hours_of_operations

Creates, updates, deletes or gets a hours_of_operation resource or lists hours_of_operations in a region

Overview

Namehours_of_operations
TypeResource
DescriptionResource Type definition for AWS::Connect::HoursOfOperation
Idawscc.connect.hours_of_operations

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
namestringThe name of the hours of operation.
descriptionstringThe description of the hours of operation.
time_zonestringThe time zone of the hours of operation.
configarrayConfiguration information for the hours of operation: day, start time, and end time.
hours_of_operation_arnstringThe Amazon Resource Name (ARN) for the hours of operation.
tagsarrayOne or more tags.
hours_of_operation_overridesarrayOne or more hours of operation overrides assigned to an hour of operation.
regionstringAWS region.

For more information, see AWS::Connect::HoursOfOperation.

Methods

NameResourceAccessible byRequired Params
create_resourcehours_of_operationsINSERTInstanceArn, Name, TimeZone, Config, region
delete_resourcehours_of_operationsDELETEIdentifier, region
update_resourcehours_of_operationsUPDATEIdentifier, PatchDocument, region
list_resourceshours_of_operations_list_onlySELECTregion
get_resourcehours_of_operationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual hours_of_operation.

SELECT
region,
instance_arn,
name,
description,
time_zone,
config,
hours_of_operation_arn,
tags,
hours_of_operation_overrides
FROM awscc.connect.hours_of_operations
WHERE
region = 'us-east-1' AND
Identifier = '{{ hours_of_operation_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new hours_of_operation resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.connect.hours_of_operations (
InstanceArn,
Name,
TimeZone,
Config,
region
)
SELECT
'{{ instance_arn }}',
'{{ name }}',
'{{ time_zone }}',
'{{ config }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a hours_of_operation resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.hours_of_operations
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"Name": name,
"Description": description,
"TimeZone": time_zone,
"Config": config,
"Tags": tags,
"HoursOfOperationOverrides": hours_of_operation_overrides
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ hours_of_operation_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.connect.hours_of_operations
WHERE
Identifier = '{{ hours_of_operation_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the hours_of_operations resource, the following permissions are required:

connect:CreateHoursOfOperation,
connect:TagResource,
connect:CreateHoursOfOperationOverride