

# Search and investigate inventory certificates

After you turn on certificate inventory for organizations, you search and investigate it with five read operations: `SearchInventory`, `ListInventoryUsages`, `ListInventoryRelatedResources`, `ListInventoryFindings`, and `GetInventoryInsights`. Send requests to your organization's home AWS Region.

The three list operations take one certificate's identifier in `CertificateIdentifier`. They fail with `ResourceNotFoundException` if no certificate in the inventory has it, or if the organization has no inventory configuration yet. All of these operations return whatever data the inventory holds, so results can be empty while `ProvisioningStatus` is `ENABLING`. For how turning off collection or trusted access affects them, see [Turn off certificate inventory](acm-inventory-setup.md#acm-inventory-turn-off) and [Prerequisites](acm-inventory-setup.md#acm-inventory-prerequisites).

The examples in this topic show JSON request bodies. All timestamps are in epoch seconds, the same as in other ACM operations. New values can be added to enumerations over time, so process the values that you recognize and don't fail on ones that you don't.

**Topics**
+ [Search for certificates](#acm-inventory-search-certificates)
+ [Build search filters](#acm-inventory-filters)
+ [Find where a certificate is deployed](#acm-inventory-usages)
+ [Find the ACM and AWS Private CA resources for a certificate](#acm-inventory-related-resources)
+ [Review certificate findings](#acm-inventory-findings)
+ [Get organization-wide counts](#acm-inventory-summary)
+ [Page through results](#acm-inventory-pagination)

## Search for certificates
<a name="acm-inventory-search-certificates"></a>

`SearchInventory` returns certificate records that match a filter. If you leave out `Filter`, every certificate in the inventory matches. If nothing matches, the response has an empty `Certificates` list and a `TotalCount` of 0 instead of an error.

Each record includes the following:
+ `Identifier`, `MaterialType`, `Validity`, and `Identity`: the certificate's identifier, its material type, its validity period, and its subject and names.
+ `X509Details`: the issuer, serial number, validity period, subject alternative names, key algorithm and key size, signature algorithm, and issuance type. For issuance types, see [Issuance Type](acm-concepts.md#concept-issuance-type).
+ `UsageCount`: how many places the certificate was observed in use when its record was last collected. For the current count, see [Find where a certificate is deployed](#acm-inventory-usages).
+ `HighestFindingSeverity` and `FindingCounts`: the certificate's health, and the number of its open findings at each severity. `FindingCounts` is absent until the certificate's findings are evaluated. For more information, see [Review certificate findings](#acm-inventory-findings).
+ `RelatedResourceCount`: how many ACM and AWS Private CA resources the certificate maps to, as counted when its record was last indexed. To list them, see [Find the ACM and AWS Private CA resources for a certificate](#acm-inventory-related-resources).

Results are sorted by `SortBy` and `SortOrder`. Ties are broken by `Identifier` in ascending order. There's no relevance ranking.

`SortBy`  
The field to sort by: `NOT_AFTER` (default), `NOT_BEFORE`, `USAGE_COUNT`, `SUBJECT`, or `HIGHEST_FINDING_SEVERITY`. `SUBJECT` sorts case-sensitively, character by character, and puts certificates without a subject last. `HIGHEST_FINDING_SEVERITY` sorts in severity order, with `CRITICAL` first when descending, and always puts certificates whose findings aren't evaluated last.

`SortOrder`  
The sort direction: `DESCENDING` (default) or `ASCENDING`.

`MaxResults`  
The page size, from 1 through 100. The default is 25. For more information, see [Page through results](#acm-inventory-pagination).

### Look up one certificate
<a name="acm-inventory-lookup"></a>

To look up a single certificate, use a filter that contains only the `Identifier` predicate. For how to compute an identifier, see [Certificate identifiers](acm-inventory.md#acm-inventory-identifiers).

```json
{
  "Filter": {
    "Filter": {
      "Identifier": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    }
  },
  "MaxResults": 1
}
```

The following response is abbreviated, and its values are examples:

```json
{
  "Certificates": [
    {
      "Identifier": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "MaterialType": "X509_CERTIFICATE",
      "Validity": { "NotBefore": 1785542400, "NotAfter": 1817078400 },
      "Identity": {
        "Subject": "CN=www.example.com",
        "Identifiers": ["www.example.com"]
      },
      "UsageCount": 2,
      "HighestFindingSeverity": "HEALTHY",
      "FindingCounts": { "Critical": 0, "High": 0, "Medium": 0, "Low": 0, "Informational": 0 },
      "RelatedResourceCount": 1,
      "X509Details": {
        "Issuer": "CN=Amazon RSA 2048 M02,O=Amazon,C=US",
        "SerialNumber": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
        "NotBefore": 1785542400,
        "NotAfter": 1817078400,
        "KeyAlgorithm": "RSA_2048",
        "KeySizeBits": 2048,
        "SignatureAlgorithm": "SHA256WITHRSA",
        "IssuanceType": "AMAZON_ISSUED",
        "SubjectAlternativeNames": ["www.example.com"]
      }
    }
  ],
  "TotalCount": 1,
  "TotalCountRelation": "EXACT"
}
```

### Count matching certificates
<a name="acm-inventory-count"></a>

To count every certificate in your organization, call `GetInventoryInsights` and read `CertificateCount`. For more information, see [Get organization-wide counts](#acm-inventory-summary).

To count certificates that match a filter, call `SearchInventory` with `MaxResults` set to 1 and read `TotalCount`, which counts every match, not only the returned page. When `TotalCountRelation` is `AT_LEAST`, `TotalCount` is a lower bound.

The following JSON request counts imported certificates that aren't in use in account `111122223333`:

```json
{
  "Filter": {
    "And": [
      { "Filter": { "IssuanceType": "IMPORTED" } },
      { "Filter": { "UsageStatus": "NOT_IN_USE" } },
      { "Filter": { "AccountId": "111122223333" } }
    ]
  },
  "MaxResults": 1
}
```

This request uses the following values:
+ `IssuanceType` is set to `IMPORTED` to match imported certificates.
+ `UsageStatus` is set to `NOT_IN_USE` to match certificates with no observed usage.
+ For `AccountId`, replace `111122223333` with your AWS account ID.

## Build search filters
<a name="acm-inventory-filters"></a>

A filter is a statement that combines conditions. Each statement sets exactly one member: `Filter`, a single predicate; `And`, which matches when every statement in its list matches; `Or`, which matches when at least one statement in its list matches; or `Not`, which matches when its inner statement doesn't match.

### Filter predicates
<a name="acm-inventory-predicates"></a>

Each predicate sets exactly one of the following conditions:

`AccountId`  
Matches certificates with a related resource in this account. An account that isn't in your organization matches nothing.

`AcmCertificateArn`  
Matches certificates by the ARN of a related ACM certificate. Set `Value` to the ARN, and `Match` to `CURRENT` for the certificate that the ACM certificate holds now, or `ANY` for every certificate that it has held across renewals and reimports. The ARN is compared exactly, including case.

`Domain`  
Matches a domain name against the certificate's DNS subject alternative names and its subject common name. For matching rules, see [Domain matching](#acm-inventory-domain-matching).

`HighestFindingSeverity`  
Matches certificates whose health is exactly this value: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFORMATIONAL`, `HEALTHY`, `NOT_APPLICABLE`, or `NOT_EVALUATED`. `NOT_EVALUATED` matches exactly the certificates whose findings aren't evaluated yet.

`Identifier`  
Matches one certificate. For an example, see [Look up one certificate](#acm-inventory-lookup).

`IssuanceType`  
Matches the certificate's issuance type: `AMAZON_ISSUED` (issued by ACM, including ACME and Amazon N2 certificates), `PRIVATE_CA_ISSUED` (issued by ACM from AWS Private CA), `PRIVATE_CA_DIRECT` (issued by AWS Private CA outside ACM), `IMPORTED`, or `EXTERNAL` (no AWS issuance observed in the inventory scope). This is the issuance type of the inventory certificate, not the `IssuanceType` of a related ACM certificate.

`Issuer`  
Matches the issuer distinguished name (DN) exactly, as it appears in the certificate. A AWS Private CA ARN isn't accepted. To match by certificate authority ARN, use `PcaCertificateAuthorityArn`.

`KeyAlgorithm`  
Matches the certificate's key algorithm: `RSA_1024`, `RSA_2048`, `RSA_3072`, `RSA_4096`, `EC_prime256v1`, `EC_secp384r1`, `EC_secp521r1`, `ED25519`, `ED448`, or `OTHER`. `OTHER` matches certificates whose key algorithm the service can't identify.

`MaterialType`  
Matches the certificate's material type. The only value is `X509_CERTIFICATE`.

`NotAfter`  
Matches certificates whose expiration time falls inside a range. `After` is an inclusive lower bound, and `Before` is an exclusive upper bound. Both are in epoch seconds. Set at least one. If you set both, `Before` must be later than `After`.

`PcaCertificateArn`  
Matches the certificate that AWS Private CA issued with this certificate ARN. The ARN is compared exactly, including case.

`PcaCertificateAuthorityArn`  
Matches certificates by the ARN of a related AWS Private CA certificate authority. Set `Value` to the ARN, and `Relationship` to `ISSUED_BY` for the certificates that the certificate authority issued, or `CA_CERTIFICATE` for the certificate authority's own certificate. The ARN is compared exactly, including case.

`Region`  
Matches certificates with a related resource in this AWS Region, such as `aa-example-1`. When you combine `AccountId` and `Region`, the account and Region don't have to come from the same related resource.

`RelatedResourceType`  
Matches certificates that have a related resource of this type: `ACM_CERTIFICATE`, `PCA_CERTIFICATE`, or `PCA_CERTIFICATE_AUTHORITY`. Usage target types, such as `EKS_POD`, aren't valid here.

`UsageStatus`  
Matches certificates by whether they're observed in use. Set `IN_USE` to match certificates that are observed in use, or `NOT_IN_USE` to match certificates with no observed usages.

### Domain matching
<a name="acm-inventory-domain-matching"></a>

The `Domain` predicate takes a `Value` and a `Match` type. Matching is case-insensitive, and the following match types are supported:
+ `EQUALS` matches only that exact name.
+ `IN_DOMAIN` matches the name and everything under it, label by label. For example, `example.com` matches `www.example.com` and `*.example.com`, but not `notexample.com`.
+ The inventory treats an asterisk as a literal label. `*.example.com` matches only a certificate that has `*.example.com` as a name. It doesn't match `www.example.com`. Only the first label can be an asterisk.

### Filter limits
<a name="acm-inventory-filter-limits"></a>

The following table lists the size limits for a filter statement.


| Limit | Value | 
| --- | --- | 
| Entries in an `And` or `Or` list | 1 to 15 | 
| Nesting depth | 3 levels | 
| Predicates in one filter | 20 | 

The request's `Filter` is level 1, and each statement inside an `And`, `Or`, or `Not` is one level deeper. For example, an `And` of `Not` statements that each hold a predicate is 3 levels deep. A filter over any of these limits fails with `ValidationException`.

### Filter examples
<a name="acm-inventory-filter-examples"></a>

**Example – Find in-use certificates for example.com and its subdomains that expire before 2027-01-01, soonest first**

```json
{
  "Filter": {
    "And": [
      { "Filter": { "Domain": { "Value": "example.com", "Match": "IN_DOMAIN" } } },
      { "Filter": { "NotAfter": { "Before": 1798761600 } } },
      { "Filter": { "UsageStatus": "IN_USE" } }
    ]
  },
  "SortBy": "NOT_AFTER",
  "SortOrder": "ASCENDING"
}
```

**Example – Find the certificates with the most severe findings first**

```json
{
  "Filter": {
    "Or": [
      { "Filter": { "HighestFindingSeverity": "CRITICAL" } },
      { "Filter": { "HighestFindingSeverity": "HIGH" } }
    ]
  },
  "SortBy": "HIGHEST_FINDING_SEVERITY",
  "SortOrder": "DESCENDING"
}
```

**Example – Find every certificate that an ACM certificate has held**

```json
{
  "Filter": {
    "Filter": {
      "AcmCertificateArn": {
        "Value": "arn:aws:acm:aa-example-1:111122223333:certificate/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "Match": "ANY"
      }
    }
  }
}
```

**Example – Find certificates that use a 1024-bit RSA key or a key algorithm the service can't identify**

To match other key algorithms, add a `KeyAlgorithm` predicate for each value that you want to find, such as `RSA_2048`.

```json
{
  "Filter": {
    "Or": [
      { "Filter": { "KeyAlgorithm": "RSA_1024" } },
      { "Filter": { "KeyAlgorithm": "OTHER" } }
    ]
  }
}
```

## Find where a certificate is deployed
<a name="acm-inventory-usages"></a>

`ListInventoryUsages` lists every place a certificate is currently observed in use.

```json
{
  "CertificateIdentifier": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
```

Each usage includes the following:
+ `Target`: where the certificate is deployed, as either an `Arn`, such as the ARN of an Application Load Balancer or a Amazon CloudFront distribution, or, for a target without an ARN, a `ResourceIdentifier` with a `ResourceType` and a `Value`. For an Amazon EKS pod that the AWS Workload Credentials Provider reports, `ResourceType` is `EKS_POD`, with `{{namespace}}/{{pod-name}}/{{pod-UID}}` as `Value`. Amazon EC2 instances and Amazon ECS tasks that the provider reports appear by ARN.
+ `LastObservedAt`: when the inventory last recorded the certificate on that target, in epoch seconds.
+ `AccountId` and `Region`: the account that holds the target and the target's Region, when they're known. `Region` is absent for a global resource, such as a Amazon CloudFront distribution. For a usage that telemetry reports, they're the account whose credentials sent the telemetry and the Region it was sent to.
+ `AgentReported`: for a usage that telemetry reports, how it was reported: the `Port` and `ServerName` that discovery probed, or the `CertificateArn` of the ACM certificate that the provider deployed.

The inventory sorts results by target in ascending order. The response's `TotalCount` is the authoritative usage count. The `UsageCount` on a `SearchInventory` record is set when the record is collected and can lag behind it.

## Find the ACM and AWS Private CA resources for a certificate
<a name="acm-inventory-related-resources"></a>

`ListInventoryRelatedResources` lists every ACM certificate, AWS Private CA certificate, and AWS Private CA certificate authority that an inventory certificate maps to. A single inventory certificate can map to several ACM certificates, for example when you import the same certificate more than once.

Related resources are always ACM or AWS Private CA resources. A certificate that only the AWS Workload Credentials Provider reports, with the issuance type `EXTERNAL`, has no related resources. To see where a certificate is deployed, use the separate usages list described in [Find where a certificate is deployed](#acm-inventory-usages).

Each related resource includes a `ResourceArn` and a `ResourceType` of `ACM_CERTIFICATE`, `PCA_CERTIFICATE`, or `PCA_CERTIFICATE_AUTHORITY`. It can also include the following:
+ `IssuanceType`: for an ACM certificate, how ACM holds the certificate.
+ `AssociationStatus`: for an ACM certificate, `CURRENT` if the ACM certificate holds this certificate now, or `REPLACED` if a renewal or reimport replaced it. For more information, see [Certificate Series](acm-concepts.md#concept-certificate-series).
+ `Metadata`: what ACM or AWS Private CA reported for the resource when the inventory last read it, with the time of that read in `UpdatedAt`. For an ACM certificate, the `AcmCertificate` member holds what `DescribeCertificate` returned, such as renewal eligibility and status, the export option, the managing service, the validation method, and the ACME endpoint ARN. For a certificate authority, the `PcaCertificateAuthority` member holds what `DescribeCertificateAuthority` returned, such as its status, type, and usage mode. `Metadata` is absent for a AWS Private CA certificate, and when the inventory hasn't read the resource.

**Important**  
`Metadata` is a stored copy, not a live read. It describes the resource named by `ResourceArn`, so for a certificate whose `AssociationStatus` is `REPLACED`, it describes the certificate that the ACM certificate holds now. Before you act on a resource, read it with ACM or AWS Private CA in the account that owns it.

The inventory sorts results by `ResourceArn` in ascending order.

## Review certificate findings
<a name="acm-inventory-findings"></a>

A finding is a problem that the inventory found with an ACM certificate and that you can fix. The inventory evaluates findings for each ACM certificate across its renewals, which is its certificate series, so a finding describes the ACM certificate rather than one certificate in it. A rule that passes or doesn't apply produces no finding. For more information, see [Certificate Series](acm-concepts.md#concept-certificate-series).

Findings are always evaluated, and you can't turn them off. The inventory evaluates them for ACM certificates: certificates that ACM issued, including through ACME, and imported certificates. Each finding comes from one of the following rules.


| Rule | Raised when | Severity | 
| --- | --- | --- | 
| `NO_VALID_CERTIFICATE` | No current certificate in the series is valid, because each one is expired, revoked, not yet valid, or pending, and the series is in use. | `CRITICAL` | 
| `ACM_RENEWAL_OVERDUE` | ACM hasn't renewed the series while it's in use, starting 3 days after renewal should have begun. That's 57 days before expiration for private certificates and for public certificates valid for more than 200 days, and 42 days before expiration for other public certificates. | `HIGH`, then `CRITICAL` within 15 days of expiration | 
| `EXPIRING_SOON` | ACM doesn't renew the series' certificate, because it was imported or issued through ACME, and it expires within 45 days. For a certificate valid for less than 141 days, the window is a third of its validity minus 2 days, and for an ACME certificate it's at most 25 days. The rule doesn't apply to a certificate valid for 51 days or less. | `HIGH`. `CRITICAL` within 15 days of expiration if the certificate is in use or was issued through ACME. `LOW` if it's self-signed. | 
| `NO_USAGE_EVIDENCE` | No current certificate in the series has an observed usage. The finding's `Reason` says why: `USAGE_NOT_OBSERVABLE` (the certificate is imported or issued through ACME, so it might be used where the inventory can't observe it), `EXPIRED_NOT_IN_USE` (every current certificate is expired or revoked, and none is in use), or `NOT_IN_USE` (the inventory can observe where the certificate is used, and it observed no usage). A usage that telemetry reports counts as observed usage. Findings reflect new telemetry the next time they're evaluated. | `LOW` | 
| `EXPIRED_CERTIFICATE_IN_USE` | A resource uses a certificate in the series that's expired or revoked, while another current certificate in the series is valid. | `CRITICAL` | 

A finding's severity can rise as the certificate nears expiration. When it does, the finding is returned with its new severity and the same `FindingId`.

`EXPIRING_SOON` covers only certificates that ACM doesn't renew. To find every certificate that expires soon, use the `NotAfter` predicate or the `EXPIRY_WINDOW` aggregate.

### Certificate health
<a name="acm-inventory-health"></a>

Each certificate's `HighestFindingSeverity` is its health: the highest severity among the open findings of the series that it's current in, from `CRITICAL` through `INFORMATIONAL`. The other values are the following:
+ `HEALTHY`: rules apply to the certificate, and it has no open findings.
+ `NOT_APPLICABLE`: no rule applies to the certificate, for example because AWS Private CA issued it directly, it comes only from telemetry, or no ACM certificate holds it now.
+ `NOT_EVALUATED`: the certificate's findings aren't evaluated yet.

To find certificates by health, use the `HighestFindingSeverity` predicate, or sort by `HIGHEST_FINDING_SEVERITY`. To count them, use the `HIGHEST_FINDING_SEVERITY` aggregate. For more information, see [Get organization-wide counts](#acm-inventory-summary).

### List a certificate's findings
<a name="acm-inventory-list-findings"></a>

`ListInventoryFindings` lists the open findings for one certificate. To list only the findings of one severity, set `Severity`.

```json
{
  "CertificateIdentifier": "4dbdc28afef36601b8392355eaac300afabdaed5951ddecdbef751e0c89afb81"
}
```

Each finding includes the following:
+ `FindingId`: an identifier that stays the same for the same rule and series across evaluations and pages, so you can recognize a finding that's returned again. Don't parse it.
+ `RuleId` and `Severity`: the rule that raised the finding, and how severe it is.
+ `Scope`: what the rule evaluated. Its `Series` member names the ACM certificate by `CertificateArn`, `AccountId`, and `Region`.
+ `Reason`: why the rule fired, for `NO_USAGE_EVIDENCE` only.
+ `Expected`, `Actual`, and `Remediation`: what the rule requires, what it found, and how to fix it, when the rule describes them.
+ `EvaluatedAt`: when the finding was opened or its content, including its severity, last changed.

The following response is abbreviated, and its values are examples:

```json
{
  "Findings": [
    {
      "FindingId": "3k9x2m7q4w8z1n5r",
      "CertificateIdentifier": "4dbdc28afef36601b8392355eaac300afabdaed5951ddecdbef751e0c89afb81",
      "RuleId": "EXPIRING_SOON",
      "Severity": "HIGH",
      "Scope": {
        "Series": {
          "CertificateArn": "arn:aws:acm:aa-example-1:111122223333:certificate/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
          "AccountId": "111122223333",
          "Region": "aa-example-1"
        }
      },
      "EvaluatedAt": 1792522800
    }
  ],
  "HighestFindingSeverity": "HIGH",
  "TotalCount": 1,
  "TotalCountRelation": "EXACT"
}
```

The response also includes the certificate's `HighestFindingSeverity`. The inventory sorts findings by severity, highest first, then by `RuleId`. If a finding changes while you page, for example if its severity rises, it's returned again with its new values on the next page, with the same `FindingId`.

## Get organization-wide counts
<a name="acm-inventory-summary"></a>

`GetInventoryInsights` returns the number of certificates in your whole organization in `CertificateCount`, and counts grouped by the aggregates that you request. To count certificates that match a filter, use `SearchInventory` instead, as described in [Count matching certificates](#acm-inventory-count).

In `RequestedAggregates`, list up to 25 aggregates. Each entry selects one aggregate and takes an options object. An empty list returns only `CertificateCount`. An aggregate that appears more than once fails with `ValidationException`.


| Request member | Result `Aggregate` | Groups certificates by | 
| --- | --- | --- | 
| `ExpiryWindow` | `EXPIRY_WINDOW` | Days until expiration, in fixed windows | 
| `HighestFindingSeverity` | `HIGHEST_FINDING_SEVERITY` | Certificate health. Certificates whose findings aren't evaluated count under `NOT_EVALUATED`. To also break the counts down by certificate type, set `GroupBy` to `CERTIFICATE_TYPE` in the options. | 
| `InUse` | `IN_USE` | Whether the certificate is observed in use. Group values are `true` and `false`. | 
| `IssuanceType` | `ISSUANCE_TYPE` | The certificate's issuance type | 
| `KeyAlgorithm` | `KEY_ALGORITHM` | The certificate's key algorithm | 
| `Region` | `REGION` | Region code | 

The following JSON request asks for the expiration counts:

```json
{
  "RequestedAggregates": [
    { "ExpiryWindow": {} }
  ]
}
```

The response includes `CertificateCount`, when it was last recomputed in `UpdatedAt`, and one result in `Aggregates` for each requested aggregate, in request order:

```json
{
  "CertificateCount": 480,
  "UpdatedAt": 1792522800,
  "Aggregates": [
    {
      "Aggregate": "EXPIRY_WINDOW",
      "Status": "COMPLETE",
      "UpdatedAt": 1792522800,
      "Groups": [
        { "Count": 12, "MaxDays": -1 },
        { "Count": 24, "MinDays": 0, "MaxDays": 7 },
        { "Count": 61, "MinDays": 8, "MaxDays": 30 },
        { "Count": 93, "MinDays": 31, "MaxDays": 60 },
        { "Count": 110, "MinDays": 61, "MaxDays": 90 },
        { "Count": 180, "MinDays": 91 }
      ]
    }
  ]
}
```

When you read the results, keep the following in mind:
+ The service precomputes the counts, so `UpdatedAt` on the response and on each aggregate result can be earlier than your request.
+ `EXPIRY_WINDOW` always returns six groups in window order, including empty ones: expired (`MaxDays` -1), 0 to 7 days, 8 to 30 days, 31 to 60 days, 61 to 90 days, and 91 days or more. Days are whole days from the result's `UpdatedAt` to the certificate's expiration, rounded down. Both bounds are inclusive.
+ The other aggregates leave out empty groups, sort groups by `Count` in descending order and then by `Value`, and return at most 100 groups. `OtherCount` holds the count for the groups that weren't returned.
+ With `GroupBy` set to `CERTIFICATE_TYPE`, the `HIGHEST_FINDING_SEVERITY` result also has `CertificateTypeGroups`: one entry for each certificate type that has certificates (`ACME`, `IMPORTED`, `OTHER`, `PRIVATE_TLS`, or `PUBLIC_TLS`), with its `CertificateCount` and its own health groups.
+ If the precomputed counts for an aggregate aren't ready, that aggregate has a `Status` of `FAILED` and no `Groups`, while the other aggregates still return. Try again later. Until the first counts are computed, for example while `ProvisioningStatus` is `ENABLING`, `CertificateCount` is 0 and `UpdatedAt` is absent.

## Page through results
<a name="acm-inventory-pagination"></a>

`SearchInventory`, `ListInventoryUsages`, `ListInventoryRelatedResources`, and `ListInventoryFindings` return results in pages and accept `MaxResults` and `NextToken`. `GetInventoryInsights` isn't paginated.
+ `MaxResults` sets the page size only, not how many results exist in total. It accepts 1 through 100, and the default is 25.
+ If more results might remain, the response includes `NextToken`. Keep paging until a response has no `NextToken`, and don't use the number of results on a page to decide whether you're done. A page can have fewer results than `MaxResults`, or none.
+ To get the next page, pass `NextToken` back unchanged, with the same `Filter`, `SortBy`, and `SortOrder`, or with the same `CertificateIdentifier` and `Severity`. A token works only with the request that returned it. If you change any of these members, or the token is malformed, the call fails with `ValidationException`. Start again from the first page.

  Pagination tokens don't expire.
+ Each response includes `TotalCount` for the full result set, with a `TotalCountRelation` of `EXACT` or, for a lower bound, `AT_LEAST`.
+ Pagination doesn't use a snapshot. If an item's sort value changes while you're paging, you might miss it or see it twice. `ListInventoryFindings` is the exception: it returns a finding that changed while you paged again, with its new values.