This repository was archived by the owner on Mar 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,22 @@ resource "gcore_dns_zone" "example_zone" {
29
29
30
30
- ` name ` (String) A name of DNS Zone resource.
31
31
32
+ ### Optional
33
+
34
+ - ` timeouts ` (Block, Optional) (see [ below for nested schema] ( #nestedblock--timeouts ) )
35
+
32
36
### Read-Only
33
37
34
38
- ` id ` (String) The ID of this resource.
35
39
40
+ <a id =" nestedblock--timeouts " ></a >
41
+ ### Nested Schema for ` timeouts `
42
+
43
+ Optional:
44
+
45
+ - ` create ` (String)
46
+ - ` delete ` (String)
47
+
36
48
## Import
37
49
38
50
Import is supported using the following syntax:
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ resource "gcore_dns_zone_record" "subdomain_examplezone_caa" {
113
113
### Optional
114
114
115
115
- ` filter ` (Block Set) (see [ below for nested schema] ( #nestedblock--filter ) )
116
+ - ` timeouts ` (Block, Optional) (see [ below for nested schema] ( #nestedblock--timeouts ) )
116
117
- ` ttl ` (Number) A ttl of DNS Zone Record resource.
117
118
118
119
### Read-Only
@@ -158,6 +159,15 @@ Optional:
158
159
- ` limit ` (Number) A DNS Zone Record filter option that describe how many records will be percolated.
159
160
- ` strict ` (Boolean) A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
160
161
162
+
163
+ <a id =" nestedblock--timeouts " ></a >
164
+ ### Nested Schema for ` timeouts `
165
+
166
+ Optional:
167
+
168
+ - ` create ` (String)
169
+ - ` delete ` (String)
170
+
161
171
## Import
162
172
163
173
Import is supported using the following syntax:
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"log"
7
7
"strings"
8
+ "time"
8
9
9
10
"github.com/hashicorp/go-cty/cty"
10
11
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -33,6 +34,10 @@ func resourceDNSZone() *schema.Resource {
33
34
Description : "A name of DNS Zone resource." ,
34
35
},
35
36
},
37
+ Timeouts : & schema.ResourceTimeout {
38
+ Create : schema .DefaultTimeout (5 * time .Minute ),
39
+ Delete : schema .DefaultTimeout (5 * time .Minute ),
40
+ },
36
41
CreateContext : checkDNSDependency (resourceDNSZoneCreate ),
37
42
ReadContext : checkDNSDependency (resourceDNSZoneRead ),
38
43
DeleteContext : checkDNSDependency (resourceDNSZoneDelete ),
Original file line number Diff line number Diff line change 7
7
"log"
8
8
"net"
9
9
"strings"
10
+ "time"
10
11
11
12
dnssdk "github.com/G-Core/gcore-dns-sdk-go"
12
13
"github.com/hashicorp/go-cty/cty"
@@ -232,6 +233,10 @@ func resourceDNSZoneRecord() *schema.Resource {
232
233
Description : "An array of contents with meta of DNS Zone Record resource." ,
233
234
},
234
235
},
236
+ Timeouts : & schema.ResourceTimeout {
237
+ Create : schema .DefaultTimeout (5 * time .Minute ),
238
+ Delete : schema .DefaultTimeout (5 * time .Minute ),
239
+ },
235
240
CreateContext : checkDNSDependency (resourceDNSZoneRecordCreate ),
236
241
UpdateContext : checkDNSDependency (resourceDNSZoneRecordUpdate ),
237
242
ReadContext : checkDNSDependency (resourceDNSZoneRecordRead ),
You can’t perform that action at this time.
0 commit comments