Skip to content

Commit 69e3208

Browse files
committed
Fix lint
1 parent d23f621 commit 69e3208

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

internal/services/eventgrid/eventgrid_domain_resource.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ func resourceEventGridDomain() *pluginsdk.Resource {
187187
},
188188
},
189189

190+
"minimum_tls_version": {
191+
Type: pluginsdk.TypeString,
192+
Optional: true,
193+
Default: string(domains.TlsVersionOnePointTwo),
194+
ValidateFunc: validation.StringInSlice(domains.PossibleValuesForTlsVersion(), false),
195+
},
196+
190197
"endpoint": {
191198
Type: pluginsdk.TypeString,
192199
Computed: true,

internal/services/eventgrid/eventgrid_topic_resource.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ func resourceEventGridTopic() *pluginsdk.Resource {
196196

197197
"minimum_tls_version": {
198198
Type: pluginsdk.TypeString,
199+
Default: string(topics.TlsVersionOnePointTwo),
200+
Optional: true,
199201
ValidateFunc: validation.StringInSlice(topics.PossibleValuesForTlsVersion(), false),
200202
},
201203
},

internal/services/eventgrid/eventgrid_topic_resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func TestAccEventGridTopic_minimumTlsVersion(t *testing.T) {
204204
Config: r.minimumTlsVersion(data),
205205
Check: acceptance.ComposeTestCheckFunc(
206206
check.That(data.ResourceName).ExistsInAzure(r),
207-
check.That(data.ResourceName).Key("minimum_tls_version").HasValue("1.2"),
207+
check.That(data.ResourceName).Key("minimum_tls_version").HasValue("1.1"),
208208
),
209209
},
210210
data.ImportStep(),
@@ -348,7 +348,7 @@ resource "azurerm_eventgrid_topic" "test" {
348348
name = "acctesteg-%d"
349349
location = azurerm_resource_group.test.location
350350
resource_group_name = azurerm_resource_group.test.name
351-
minimum_tls_version = "1.2"
351+
minimum_tls_version = "1.1"
352352
353353
tags = {
354354
"foo" = "bar"

website/docs/r/eventgrid_domain.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ The following arguments are supported:
5858

5959
* `inbound_ip_rule` - (Optional) One or more `inbound_ip_rule` blocks as defined below.
6060

61+
* `minimum_tls_version` - (Optional) The minimum TLS version that clients can use. Possible values are `1.0`, `1.1`, `1.2`. Default is `1.2`.
62+
6163
* `tags` - (Optional) A mapping of tags to assign to the resource.
6264

6365
---

website/docs/r/eventgrid_topic.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The following arguments are supported:
5656

5757
* `inbound_ip_rule` - (Optional) One or more `inbound_ip_rule` blocks as defined below.
5858

59-
* `minimum_tls_version` - (Optional) The minimum supported TLS version. Possible values are `1.0`, `1.1`, `1.2`.
59+
* `minimum_tls_version` - (Optional) The minimum supported TLS version. Possible values are `1.0`, `1.1`, `1.2`. Default is `1.2`.
6060

6161
* `tags` - (Optional) A mapping of tags to assign to the resource.
6262

0 commit comments

Comments
 (0)