AWS::Connect::HoursOfOperation - AWS CloudFormation

AWS::Connect::HoursOfOperation

Specifies hours of operation.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Connect::HoursOfOperation", "Properties" : { "Config" : [ HoursOfOperationConfig, ... ], "Description" : String, "InstanceArn" : String, "Name" : String, "Tags" : [ Tag, ... ], "TimeZone" : String } }

YAML

Type: AWS::Connect::HoursOfOperation Properties: Config: - HoursOfOperationConfig Description: String InstanceArn: String Name: String Tags: - Tag TimeZone: String

Properties

Config

Configuration information for the hours of operation.

Required: Yes

Type: List of HoursOfOperationConfig

Maximum: 100

Update requires: No interruption

Description

The description for the hours of operation.

Required: No

Type: String

Minimum: 1

Maximum: 250

Update requires: No interruption

InstanceArn

The Amazon Resource Name (ARN) for the instance.

Required: Yes

Type: String

Update requires: No interruption

Name

The name for the hours of operation.

Required: Yes

Type: String

Minimum: 1

Maximum: 127

Update requires: No interruption

Tags

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

Required: No

Type: List of Tag

Update requires: No interruption

TimeZone

The time zone for the hours of operation.

Required: Yes

Type: String

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the hours of operation. For example:

{ "Ref": "myHoursOfOperation" }

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

HoursOfOperationArn

The Amazon Resource Name (ARN) for the hours of operation.

Examples

Specify an hours of operation resource

The following example specifies an hours of operation resource for an Amazon Connect instance. In the following example, the hours of operation claimed operates in Sunday 10:01 to 11:59 AM Pacific Standard Time.

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: Specifies an hours of operation for an Amazon Connect instance Resources: HoursOfOperation: Type: 'AWS::Connect::HoursOfOperation' Properties: Name: 'ExampleHoursOfOperation' Description: 'hours of operation created using cfn' InstanceArn: 'arn:aws:connect:region-name:aws-account-id:instance/instance-arn' TimeZone: 'Pacific/Midway' Config: - Day: 'SUNDAY' EndTime: Hours: 11 Minutes: 59 StartTime: Hours: 10 Minutes: 1 Tags: - Key: 'tagKey' Value: 'tagValue'