Skip to content

Commit

Permalink
feat: add short lived instance field in agentless data structs
Browse files Browse the repository at this point in the history
  • Loading branch information
wl-smith committed Oct 17, 2023
1 parent 2ccd309 commit ed171a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/cloud_accounts_aws_sidekick.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type AwsSidekickData struct {
ScanHostVulnerabilities bool `json:"scanHostVulnerabilities"`
ScanMultiVolume bool `json:"scanMultiVolume"`
ScanStoppedInstances bool `json:"scanStoppedInstances"`
ScanShortLivedInstances bool `json:"scanShortLivedInstances"`

AccountID string `json:"awsAccountId,omitempty"`
BucketArn string `json:"bucketArn,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions api/cloud_accounts_aws_sidekick_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type AwsSidekickOrgData struct {
ScanHostVulnerabilities bool `json:"scanHostVulnerabilities"`
ScanMultiVolume bool `json:"scanMultiVolume"`
ScanStoppedInstances bool `json:"scanStoppedInstances"`
ScanShortLivedInstances bool `json:"scanShortLivedInstances"`

//Properties specific to the AWS organization integration type
ScanningAccount string `json:"scanningAccount"`
Expand Down
3 changes: 3 additions & 0 deletions api/cloud_accounts_aws_sidekick_org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ func singleAwsSidekickOrgCloudAccount(id string) string {
"scanFrequency": 24,
"scanContainers": true,
"scanHostVulnerabilities": true,
"scanShortLivedInstances": false,
"scanStoppedInstances": true,
"scanMultiVolume": false,
"managementAccount": "000123456789",
"monitoredAccounts": "r-1234, ou-0987",
"scanningAccount": "123456789000"
Expand Down
5 changes: 4 additions & 1 deletion api/cloud_accounts_aws_sidekick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ func singleAwsSidekickCloudAccount(id string) string {
},
"scanFrequency": 24,
"scanContainers": true,
"scanHostVulnerabilities": true
"scanHostVulnerabilities": true,
"scanShortLivedInstances": false,
"scanStoppedInstances": true,
"scanMultiVolume": false
},
"enabled": 1,
"intgGuid": "` + id + `",
Expand Down

0 comments on commit ed171a0

Please sign in to comment.