Skip to content

Commit

Permalink
Merge pull request #22 from imperva/matt/log-agg-content-type
Browse files Browse the repository at this point in the history
Add content_type to log aggregator schema
  • Loading branch information
mattJsonar authored Nov 12, 2024
2 parents 536721c + ca00017 commit 8750314
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dsfhub/resource_log_aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,13 @@ func resourceLogAggregator() *schema.Resource {
Optional: true,
Default: nil,
},
"content_type": {
Type: schema.TypeString,
Description: "content_type should be set to the desired <'parent' asset 'Server Type'>, which is the one that uses this asset as a destination for logs. NOTE: The content_type field will take precedence on the lookup for parent_asset_id field when checking which server is sending logs to this asset.",
Required: false,
Optional: true,
Default: nil,
},
"credentials_endpoint": {
Type: schema.TypeString,
Description: "A specific sts endpoint to use",
Expand Down Expand Up @@ -702,6 +709,7 @@ func resourceLogAggregatorReadContext(ctx context.Context, d *schema.ResourceDat
d.Set("audit_type", logAggregatorReadResponse.Data.AssetData.AuditType)
d.Set("available_regions", logAggregatorReadResponse.Data.AssetData.AvailableRegions)
d.Set("bucket_account_id", logAggregatorReadResponse.Data.AssetData.BucketAccountId)
d.Set("content_type", logAggregatorReadResponse.Data.AssetData.ContentType)
if logAggregatorReadResponse.Data.AssetData.CredentialsEndpoint != "" {
d.Set("credential_endpoint", logAggregatorReadResponse.Data.AssetData.CredentialsEndpoint)
}
Expand Down

0 comments on commit 8750314

Please sign in to comment.