Skip to content

Commit c501ca5

Browse files
firestore_database: Deprecate deletion_policy (#13936) (#9976)
[upstream:181fcd455c8ecb77ecee7fd6023e2c3a5c7e5930] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 4199257 commit c501ca5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changelog/13936.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:deprecation
2+
firestore: deprecated `deletion_policy` field of `google_firestore_database` resource
3+
```

google-beta/services/firestore/resource_firestore_database.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@ If the PITR feature is enabled, the retention period is 7 days. Otherwise, the r
216216
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".`,
217217
},
218218
"deletion_policy": {
219-
Type: schema.TypeString,
220-
Optional: true,
219+
Type: schema.TypeString,
220+
Optional: true,
221+
Deprecated: "`deletion_policy` is deprecated and will be removed in a future major release. Use `delete_protection_state` instead.",
221222
Description: `Deletion behavior for this database.
222223
If the deletion policy is 'ABANDON', the database will be removed from Terraform state but not deleted from Google Cloud upon destruction.
223224
If the deletion policy is 'DELETE', the database will both be removed from Terraform state and deleted from Google Cloud upon destruction.

0 commit comments

Comments
 (0)