Skip to content

Commit

Permalink
azurerm_eventhub_namespace - remove Computed from `maximum_throug…
Browse files Browse the repository at this point in the history
…hput_units` and `minimum_tls_version` (#26501)

* azurerm_eventhub_namespace - remove Computed from maximum_throughput_units and minimum_tls_version

* add original schema
  • Loading branch information
neil-yechenwei committed Jul 4, 2024
1 parent bd9271d commit 9ba0bc8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions internal/services/eventhub/eventhub_namespace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func resourceEventHubNamespace() *pluginsdk.Resource {
"maximum_throughput_units": {
Type: pluginsdk.TypeInt,
Optional: true,
Computed: true,
ValidateFunc: validation.IntBetween(0, 40),
},

Expand Down Expand Up @@ -212,7 +211,7 @@ func resourceEventHubNamespace() *pluginsdk.Resource {
"minimum_tls_version": {
Type: pluginsdk.TypeString,
Optional: true,
Computed: true,
Default: string(namespaces.TlsVersionOnePointTwo),
ValidateFunc: validation.StringInSlice([]string{
string(namespaces.TlsVersionOnePointZero),
string(namespaces.TlsVersionOnePointOne),
Expand Down Expand Up @@ -286,6 +285,17 @@ func resourceEventHubNamespace() *pluginsdk.Resource {
Default: false,
ForceNew: true,
}

resource.Schema["minimum_tls_version"] = &pluginsdk.Schema{
Type: pluginsdk.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{
string(namespaces.TlsVersionOnePointZero),
string(namespaces.TlsVersionOnePointOne),
string(namespaces.TlsVersionOnePointTwo),
}, false),
}
}
return resource
}
Expand Down

0 comments on commit 9ba0bc8

Please sign in to comment.