Skip to content

Commit

Permalink
Add support for new statistic types in GetFindingsStatistics.
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-dotnet-automation committed Sep 11, 2024
1 parent a4a4248 commit d17ac14
Show file tree
Hide file tree
Showing 55 changed files with 2,124 additions and 149 deletions.
177 changes: 173 additions & 4 deletions generator/ServiceModels/guardduty/guardduty-2017-11-28.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,23 @@
}
}
},
"AccountStatistics":{
"type":"structure",
"members":{
"AccountId":{
"shape":"String",
"locationName":"accountId"
},
"LastGeneratedAt":{
"shape":"Timestamp",
"locationName":"lastGeneratedAt"
},
"TotalFindings":{
"shape":"Integer",
"locationName":"totalFindings"
}
}
},
"Action":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -2474,6 +2491,27 @@
}
}
},
"DateStatistics":{
"type":"structure",
"members":{
"Date":{
"shape":"Timestamp",
"locationName":"date"
},
"LastGeneratedAt":{
"shape":"Timestamp",
"locationName":"lastGeneratedAt"
},
"Severity":{
"shape":"Double",
"locationName":"severity"
},
"TotalFindings":{
"shape":"Integer",
"locationName":"totalFindings"
}
}
},
"DeclineInvitationsRequest":{
"type":"structure",
"required":["AccountIds"],
Expand Down Expand Up @@ -3569,7 +3607,29 @@
"members":{
"CountBySeverity":{
"shape":"CountBySeverity",
"deprecated":true,
"deprecatedMessage":"This parameter is deprecated. Please set GroupBy to 'SEVERITY' to return GroupedBySeverity instead.",
"locationName":"countBySeverity"
},
"GroupedByAccount":{
"shape":"GroupedByAccount",
"locationName":"groupedByAccount"
},
"GroupedByDate":{
"shape":"GroupedByDate",
"locationName":"groupedByDate"
},
"GroupedByFindingType":{
"shape":"GroupedByFindingType",
"locationName":"groupedByFindingType"
},
"GroupedByResource":{
"shape":"GroupedByResource",
"locationName":"groupedByResource"
},
"GroupedBySeverity":{
"shape":"GroupedBySeverity",
"locationName":"groupedBySeverity"
}
}
},
Expand All @@ -3578,6 +3638,23 @@
"max":50,
"min":1
},
"FindingTypeStatistics":{
"type":"structure",
"members":{
"FindingType":{
"shape":"String",
"locationName":"findingType"
},
"LastGeneratedAt":{
"shape":"Timestamp",
"locationName":"lastGeneratedAt"
},
"TotalFindings":{
"shape":"Integer",
"locationName":"totalFindings"
}
}
},
"FindingTypes":{
"type":"list",
"member":{"shape":"FindingType"},
Expand Down Expand Up @@ -3843,10 +3920,7 @@
},
"GetFindingsStatisticsRequest":{
"type":"structure",
"required":[
"DetectorId",
"FindingStatisticTypes"
],
"required":["DetectorId"],
"members":{
"DetectorId":{
"shape":"DetectorId",
Expand All @@ -3855,11 +3929,25 @@
},
"FindingStatisticTypes":{
"shape":"FindingStatisticTypes",
"deprecated":true,
"deprecatedMessage":"This parameter is deprecated, please use GroupBy instead",
"locationName":"findingStatisticTypes"
},
"FindingCriteria":{
"shape":"FindingCriteria",
"locationName":"findingCriteria"
},
"GroupBy":{
"shape":"GroupByType",
"locationName":"groupBy"
},
"OrderBy":{
"shape":"OrderBy",
"locationName":"orderBy"
},
"MaxResults":{
"shape":"MaxResults100",
"locationName":"maxResults"
}
}
},
Expand All @@ -3870,6 +3958,10 @@
"FindingStatistics":{
"shape":"FindingStatistics",
"locationName":"findingStatistics"
},
"NextToken":{
"shape":"String",
"locationName":"nextToken"
}
}
},
Expand Down Expand Up @@ -4239,6 +4331,36 @@
}
}
},
"GroupByType":{
"type":"string",
"enum":[
"ACCOUNT",
"DATE",
"FINDING_TYPE",
"RESOURCE",
"SEVERITY"
]
},
"GroupedByAccount":{
"type":"list",
"member":{"shape":"AccountStatistics"}
},
"GroupedByDate":{
"type":"list",
"member":{"shape":"DateStatistics"}
},
"GroupedByFindingType":{
"type":"list",
"member":{"shape":"FindingTypeStatistics"}
},
"GroupedByResource":{
"type":"list",
"member":{"shape":"ResourceStatistics"}
},
"GroupedBySeverity":{
"type":"list",
"member":{"shape":"SeverityStatistics"}
},
"Groups":{
"type":"list",
"member":{"shape":"String"}
Expand Down Expand Up @@ -5430,6 +5552,11 @@
"max":50,
"min":1
},
"MaxResults100":{
"type":"integer",
"max":100,
"min":1
},
"Member":{
"type":"structure",
"required":[
Expand Down Expand Up @@ -6456,6 +6583,31 @@
"error":{"httpStatusCode":404},
"exception":true
},
"ResourceStatistics":{
"type":"structure",
"members":{
"AccountId":{
"shape":"String",
"locationName":"accountId"
},
"LastGeneratedAt":{
"shape":"Timestamp",
"locationName":"lastGeneratedAt"
},
"ResourceId":{
"shape":"String",
"locationName":"resourceId"
},
"ResourceType":{
"shape":"String",
"locationName":"resourceType"
},
"TotalFindings":{
"shape":"Integer",
"locationName":"totalFindings"
}
}
},
"ResourceType":{
"type":"string",
"enum":[
Expand Down Expand Up @@ -7045,6 +7197,23 @@
"type":"list",
"member":{"shape":"String"}
},
"SeverityStatistics":{
"type":"structure",
"members":{
"LastGeneratedAt":{
"shape":"Timestamp",
"locationName":"lastGeneratedAt"
},
"Severity":{
"shape":"Double",
"locationName":"severity"
},
"TotalFindings":{
"shape":"Integer",
"locationName":"totalFindings"
}
}
},
"SortCriteria":{
"type":"structure",
"members":{
Expand Down
Loading

0 comments on commit d17ac14

Please sign in to comment.