# PagerDuty::Schedules::Schedule Restriction ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : String, "DurationSeconds" : Integer, "StartTimeOfDay" : String, "StartDayOfWeek" : Integer }### YAML
Type: String DurationSeconds: Integer StartTimeOfDay: String StartDayOfWeek: Integer## Properties #### Type Specify the types of restriction. _Required_: Yes _Type_: String _Allowed Values_:
daily_restriction
| weekly_restriction
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### DurationSeconds
The duration of the restriction in seconds.
_Required_: Yes
_Type_: Integer
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### StartTimeOfDay
The start time in HH:mm:ss format.
_Required_: Yes
_Type_: String
_Pattern_: ([0-1][0-9]|2[0-3])(:[0-5][0-9]){2}
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### StartDayOfWeek
Only required for use with a weekly_restriction restriction type. The first day of the weekly rotation schedule as ISO 8601 day (1 is Monday, etc.)
_Required_: No
_Type_: Integer
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)