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
Idaws.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.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, Name, TimeZone, Config, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all hours_of_operations in a region.

SELECT
region,
instance_arn,
name,
description,
time_zone,
config,
hours_of_operation_arn,
tags
FROM aws.connect.hours_of_operations
WHERE region = 'us-east-1';

Gets all properties from an individual hours_of_operation.

SELECT
region,
instance_arn,
name,
description,
time_zone,
config,
hours_of_operation_arn,
tags
FROM aws.connect.hours_of_operations
WHERE region = 'us-east-1' AND data__Identifier = '<HoursOfOperationArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.hours_of_operations (
InstanceArn,
Name,
TimeZone,
Config,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ TimeZone }}',
'{{ Config }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.hours_of_operations
WHERE data__Identifier = '<HoursOfOperationArn>'
AND region = 'us-east-1';

Permissions

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

Create

connect:CreateHoursOfOperation,
connect:TagResource

Read

connect:DescribeHoursOfOperation

Delete

connect:DeleteHoursOfOperation,
connect:UntagResource

Update

connect:UpdateHoursOfOperation,
connect:TagResource,
connect:UntagResource

List

connect:ListHoursOfOperations