@@ -129,6 +129,13 @@ func resourceSumologicGenericPollingSource() *schema.Resource {
129129 Type : schema .TypeBool ,
130130 Optional : true ,
131131 Default : true ,
132+ DiffSuppressFunc : func (k , old , new string , d * schema.ResourceData ) bool {
133+ contentType := d .Get ("content_type" ).(string )
134+ if contentType != "AwsS3Bucket" {
135+ return true
136+ }
137+ return false
138+ },
132139 },
133140 "path_expression" : {
134141 Type : schema .TypeString ,
@@ -584,7 +591,6 @@ func getPollingPathSettings(d *schema.ResourceData) (PollingPath, error) {
584591 }
585592 pathSettings .SnsTopicOrSubscriptionArn = getPollingSnsTopicOrSubscriptionArn (d )
586593 case "CloudWatchPath" , "AwsInventoryPath" :
587- pathSettings .UseVersionedApi = nil
588594 pathSettings .Type = pathType
589595 rawLimitToRegions := path ["limit_to_regions" ].([]interface {})
590596 LimitToRegions := make ([]string , 0 , len (rawLimitToRegions ))
@@ -607,7 +613,6 @@ func getPollingPathSettings(d *schema.ResourceData) (PollingPath, error) {
607613 pathSettings .TagFilters = getPollingTagFilters (d )
608614 }
609615 case "AwsXRayPath" :
610- pathSettings .UseVersionedApi = nil
611616 pathSettings .Type = "AwsXRayPath"
612617 rawLimitToRegions := path ["limit_to_regions" ].([]interface {})
613618 LimitToRegions := make ([]string , 0 , len (rawLimitToRegions ))
@@ -618,7 +623,6 @@ func getPollingPathSettings(d *schema.ResourceData) (PollingPath, error) {
618623 }
619624 pathSettings .LimitToRegions = LimitToRegions
620625 case "GcpMetricsPath" :
621- pathSettings .UseVersionedApi = nil
622626 pathSettings .Type = pathType
623627 addGcpMetricsPathSettings (& pathSettings , path )
624628 default :
0 commit comments