Skip to content

Commit 45206bb

Browse files
committed
remove bucket_name and path_expression from metadata_source
1 parent fdc199f commit 45206bb

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

sumologic/resource_sumologic_metadata_source.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,7 @@ func resourceSumologicMetadataSource() *schema.Resource {
7575
"type": {
7676
Type: schema.TypeString,
7777
Required: true,
78-
ValidateFunc: validation.StringInSlice([]string{"S3BucketPathExpression", "CloudWatchPath", "AwsMetadataPath"}, false),
79-
},
80-
"bucket_name": {
81-
Type: schema.TypeString,
82-
Optional: true,
83-
},
84-
"path_expression": {
85-
Type: schema.TypeString,
86-
Optional: true,
78+
ValidateFunc: validation.StringInSlice([]string{"AwsMetadataPath"}, false),
8779
},
8880
"limit_to_regions": {
8981
Type: schema.TypeList,
@@ -214,8 +206,6 @@ func getMetadataThirdPartyPathAttributes(pollingResource []MetadataResource) []m
214206
for _, t := range pollingResource {
215207
mapping := map[string]interface{}{
216208
"type": t.Path.Type,
217-
"bucket_name": t.Path.BucketName,
218-
"path_expression": t.Path.PathExpression,
219209
"limit_to_regions": t.Path.LimitToRegions,
220210
"limit_to_namespaces": t.Path.LimitToNamespaces,
221211
"tag_filters": t.Path.TagFilters,

sumologic/sumologic_metadata_source.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ type MetadataAuthentication struct {
3333

3434
type MetadataPath struct {
3535
Type string `json:"type"`
36-
BucketName string `json:"bucketName,omitempty"`
37-
PathExpression string `json:"pathExpression,omitempty"`
3836
LimitToRegions []string `json:"limitToRegions,omitempty"`
3937
LimitToNamespaces []string `json:"limitToNamespaces,omitempty"`
4038
TagFilters []string `json:"tagFilters,omitempty"`

0 commit comments

Comments
 (0)