Skip to content

Commit

Permalink
automation schedule monthly occurence limit maxItem to 1 (#24614)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 authored Jan 24, 2024
1 parent b620849 commit ae58bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func resourceAutomationSchedule() *pluginsdk.Resource {
"monthly_occurrence": {
Type: pluginsdk.TypeList,
Optional: true,
MaxItems: 1,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
"day": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/automation_schedule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The following arguments are supported:

* `month_days` - (Optional) List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.

* `monthly_occurrence` - (Optional) List of `monthly_occurrence` blocks as defined below to specifies occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
* `monthly_occurrence` - (Optional) One `monthly_occurrence` blocks as defined below to specifies occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.

---

Expand Down

0 comments on commit ae58bd4

Please sign in to comment.