@@ -21,11 +21,10 @@ func resourceSumologicPollingSource() *schema.Resource {
2121 "We are deprecating the generic sumologic polling source and in turn creating individual sources for each of the content_type currently supported."
2222
2323 pollingSource .Schema ["content_type" ] = & schema.Schema {
24- Type : schema .TypeString ,
25- Required : true ,
26- ForceNew : true ,
27- ValidateFunc : validation .StringInSlice ([]string {"AwsS3Bucket" , "AwsElbBucket" , "AwsCloudFrontBucket" ,
28- "AwsCloudTrailBucket" , "AwsS3AuditBucket" , "AwsCloudWatch" , "AwsXRay" }, false ),
24+ Type : schema .TypeString ,
25+ Required : true ,
26+ ForceNew : true ,
27+ ValidateFunc : validation .StringInSlice ([]string {"AwsS3Bucket" , "AwsElbBucket" , "AwsCloudFrontBucket" , "AwsCloudTrailBucket" , "AwsS3AuditBucket" , "AwsCloudWatch" }, false ),
2928 }
3029 pollingSource .Schema ["scan_interval" ] = & schema.Schema {
3130 Type : schema .TypeInt ,
@@ -76,10 +75,9 @@ func resourceSumologicPollingSource() *schema.Resource {
7675 Elem : & schema.Resource {
7776 Schema : map [string ]* schema.Schema {
7877 "type" : {
79- Type : schema .TypeString ,
80- Required : true ,
81- ValidateFunc : validation .StringInSlice ([]string {"S3BucketPathExpression" , "CloudWatchPath" ,
82- "AwsXRayPath" }, false ),
78+ Type : schema .TypeString ,
79+ Required : true ,
80+ ValidateFunc : validation .StringInSlice ([]string {"S3BucketPathExpression" , "CloudWatchPath" }, false ),
8381 },
8482 "bucket_name" : {
8583 Type : schema .TypeString ,
@@ -331,14 +329,6 @@ func getPathSettings(d *schema.ResourceData) PollingPath {
331329 pathSettings .LimitToRegions = LimitToRegions
332330 pathSettings .LimitToNamespaces = LimitToNamespaces
333331 pathSettings .TagFilters = getTagFilters (d )
334- case "AwsXRayPath" :
335- pathSettings .Type = "AwsXRayPath"
336- rawLimitToRegions := path ["limit_to_regions" ].([]interface {})
337- LimitToRegions := make ([]string , len (rawLimitToRegions ))
338- for i , v := range rawLimitToRegions {
339- LimitToRegions [i ] = v .(string )
340- }
341- pathSettings .LimitToRegions = LimitToRegions
342332 default :
343333 log .Printf ("[ERROR] Unknown resourceType in path: %v" , pathType )
344334 }
0 commit comments