Skip to content

Commit

Permalink
Add support for maintenanceWindow property of azurerm_redis_cache dat…
Browse files Browse the repository at this point in the history
…a source (hashicorp#12666)

* Add support for maintenanceWindow property of azurerm_redis_cache data source

* update code
  • Loading branch information
Neil Ye authored and yupwei68 committed Jul 26, 2021
1 parent a0be368 commit 3939067
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azurerm/internal/services/redis/redis_cache_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ func dataSourceRedisCache() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Computed: true,
},

"maintenance_window": {
Type: pluginsdk.TypeString,
Computed: true,
},

"start_hour_utc": {
Type: pluginsdk.TypeInt,
Computed: true,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/redis_cache.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ A `patch_schedule` block supports the following:

* `day_of_week` - the Weekday name for the patch item

* `maintenance_window` - The ISO 8601 timespan which specifies the amount of time the Redis Cache can be updated.

* `start_hour_utc` - The Start Hour for maintenance in UTC

~> **Note:** The Patch Window lasts for `5` hours from the `start_hour_utc`.
Expand Down

0 comments on commit 3939067

Please sign in to comment.