Skip to content

Commit 4344479

Browse files
committed
docs and changelog
1 parent 695283b commit 4344479

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.changelog/3561.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_encryption_at_rest_private_endpoint: Adds `timeouts` attribute for create, update and delete operations
3+
```
4+
5+
```release-note:enhancement
6+
resource/mongodbatlas_encryption_at_rest_private_endpoint: Adds `delete_on_create_timeout` attribute to indicate whether to delete the resource if its creation times out
7+
```

docs/resources/encryption_at_rest_private_endpoint.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,26 @@ resource "mongodbatlas_encryption_at_rest_private_endpoint" "endpoint" {
9999
- `project_id` (String) Unique 24-hexadecimal digit string that identifies your project.
100100
- `region_name` (String) Cloud provider region in which the Encryption At Rest private endpoint is located.
101101

102+
### Optional
103+
104+
- `delete_on_create_timeout` (Boolean) Indicates whether to delete the created resource if a timeout is reached when waiting for completion. When set to `true` and timeout occurs, it triggers the cleanup and returns immediately without waiting for deletion to complete. When set to `false`, the timeout will not trigger resource deletion. If you suspect a transient error when the value is `true`, wait before retrying to allow resource deletion to finish. Default is `true`.
105+
- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
106+
102107
### Read-Only
103108

104109
- `error_message` (String) Error message for failures associated with the Encryption At Rest private endpoint.
105110
- `id` (String) Unique 24-hexadecimal digit string that identifies the Private Endpoint Service.
106111
- `private_endpoint_connection_name` (String) Connection name of the Azure Private Endpoint.
107112
- `status` (String) State of the Encryption At Rest private endpoint.
108113

114+
<a id="nestedatt--timeouts"></a>
115+
### Nested Schema for `timeouts`
116+
117+
Optional:
118+
119+
- `create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
120+
- `delete` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
121+
109122
## Import
110123
Encryption At Rest Private Endpoint resource can be imported using the project ID, cloud provider, and private endpoint ID. The format must be `{project_id}-{cloud_provider}-{private_endpoint_id}` e.g.
111124

0 commit comments

Comments
 (0)