Skip to content

Commit

Permalink
Merge pull request #16914 from gunadhya/b-resource-aws_msk_cluster
Browse files Browse the repository at this point in the history
fix in resource aws_msk_cluster enhanced_monitoring and client_broker values
  • Loading branch information
anGie44 authored Jan 5, 2021
2 parents 3ea1c3d + debd489 commit f24f66d
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions aws/resource_aws_msk_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,11 @@ func resourceAwsMskCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_broker": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: kafka.ClientBrokerTls,
ValidateFunc: validation.StringInSlice([]string{
kafka.ClientBrokerPlaintext,
kafka.ClientBrokerTlsPlaintext,
kafka.ClientBrokerTls,
}, false),
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: kafka.ClientBrokerTls,
ValidateFunc: validation.StringInSlice(kafka.ClientBroker_Values(), false),
},
"in_cluster": {
Type: schema.TypeBool,
Expand All @@ -213,14 +209,10 @@ func resourceAwsMskCluster() *schema.Resource {
},
},
"enhanced_monitoring": {
Type: schema.TypeString,
Optional: true,
Default: kafka.EnhancedMonitoringDefault,
ValidateFunc: validation.StringInSlice([]string{
kafka.EnhancedMonitoringDefault,
kafka.EnhancedMonitoringPerBroker,
kafka.EnhancedMonitoringPerTopicPerBroker,
}, true),
Type: schema.TypeString,
Optional: true,
Default: kafka.EnhancedMonitoringDefault,
ValidateFunc: validation.StringInSlice(kafka.EnhancedMonitoring_Values(), true),
},
"kafka_version": {
Type: schema.TypeString,
Expand Down

0 comments on commit f24f66d

Please sign in to comment.