hours_of_operations
Creates, updates, deletes or gets a hours_of_operation
resource or lists hours_of_operations
in a region
Overview
Name | hours_of_operations |
Type | Resource |
Description | Resource Type definition for AWS::Connect::HoursOfOperation |
Id | aws.connect.hours_of_operations |
Fields
Name | Datatype | Description |
---|---|---|
instance_arn | string | The identifier of the Amazon Connect instance. |
name | string | The name of the hours of operation. |
description | string | The description of the hours of operation. |
time_zone | string | The time zone of the hours of operation. |
config | array | Configuration information for the hours of operation: day, start time, and end time. |
hours_of_operation_arn | string | The Amazon Resource Name (ARN) for the hours of operation. |
tags | array | One or more tags. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | InstanceArn, Name, TimeZone, Config, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.connect.hours_of_operations (
InstanceArn,
Name,
TimeZone,
Config,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ TimeZone }}',
'{{ Config }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.connect.hours_of_operations (
InstanceArn,
Name,
Description,
TimeZone,
Config,
Tags,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ Description }}',
'{{ TimeZone }}',
'{{ Config }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: hours_of_operation
props:
- name: InstanceArn
value: '{{ InstanceArn }}'
- name: Name
value: '{{ Name }}'
- name: Description
value: '{{ Description }}'
- name: TimeZone
value: '{{ TimeZone }}'
- name: Config
value:
- Day: '{{ Day }}'
StartTime:
Hours: '{{ Hours }}'
Minutes: '{{ Minutes }}'
EndTime: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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