Skip to content

Commit

Permalink
set rdb-snapshot-period to optional (#6739) (#12872)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Oct 25, 2022
1 parent 726aeb9 commit f3f10c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .changelog/6739.txt
@@ -0,0 +1,4 @@
```release-note:bug
redis: Updated`rdb_snapshot_period` to optional in the `persistence_config` resource.

```
4 changes: 2 additions & 2 deletions google/resource_redis_instance.go
Expand Up @@ -318,8 +318,8 @@ resolution and up to nine fractional digits.`,
},
"rdb_snapshot_period": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS"}),
Optional: true,
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS", ""}),
Description: `Optional. Available snapshot periods for scheduling.
- ONE_HOUR: Snapshot every 1 hour.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/redis_instance.html.markdown
Expand Up @@ -418,7 +418,7 @@ The following arguments are supported:
Possible values are `DISABLED` and `RDB`.

* `rdb_snapshot_period` -
(Required)
(Optional)
Optional. Available snapshot periods for scheduling.
- ONE_HOUR: Snapshot every 1 hour.
- SIX_HOURS: Snapshot every 6 hours.
Expand Down

0 comments on commit f3f10c7

Please sign in to comment.