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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.hours_of_operations
WHERE
Identifier = '{{ hours_of_operation_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

connect:CreateHoursOfOperation,
connect:TagResource,
connect:CreateHoursOfOperationOverride