

# AmiAggregationResponse
<a name="API_AmiAggregationResponse"></a>

A response that contains the results of a finding aggregation by AMI.

## Contents
<a name="API_AmiAggregationResponse_Contents"></a>

 ** ami **   <a name="inspector2-Type-AmiAggregationResponse-ami"></a>
The ID of the AMI that findings were aggregated for.  
Type: String  
Pattern: `ami-([a-z0-9]{8}|[a-z0-9]{17}|\*)`   
Required: Yes

 ** accountId **   <a name="inspector2-Type-AmiAggregationResponse-accountId"></a>
The AWS account ID for the AMI.  
Type: String  
Length Constraints: Fixed length of 12.  
Pattern: `\d{12}`   
Required: No

 ** affectedInstances **   <a name="inspector2-Type-AmiAggregationResponse-affectedInstances"></a>
The IDs of Amazon EC2 instances using this AMI.  
Type: Long  
Required: No

 ** severityCounts **   <a name="inspector2-Type-AmiAggregationResponse-severityCounts"></a>
An object that contains the count of matched findings per severity.  
Type: [SeverityCounts](API_SeverityCounts.md) object  
Required: No

## See Also
<a name="API_AmiAggregationResponse_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/inspector2-2020-06-08/AmiAggregationResponse) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/inspector2-2020-06-08/AmiAggregationResponse) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/inspector2-2020-06-08/AmiAggregationResponse) 