ListInventoryFindings - AWS Certificate Manager
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

ListInventoryFindings

Lists the open findings for one certificate. A finding says that a certificate series has a problem you can fix, and how severe it is. Findings are sorted by severity, highest first. A certificate with no problems returns an empty list.

You must call this operation from the organization's management account or its delegated administrator account. Otherwise, the operation returns AccessDeniedException. The operation returns ResourceNotFoundException if the inventory has no certificate with the identifier. Before the first PutInventoryConfiguration call, the management account gets ResourceNotFoundException, and a delegated administrator gets AccessDeniedException.

Request Syntax

{ "CertificateIdentifier": "string", "MaxResults": number, "NextToken": "string", "Severity": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Note

In the following list, the required parameters are described first.

CertificateIdentifier

The identifier of the certificate whose findings to list, as SearchInventory returns it.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [a-z0-9]{1,64}

Required: Yes

MaxResults

The maximum number of findings to return, 1 to 100. Defaults to 25.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

NextToken

The NextToken from the previous response, to read the next page. Use the same CertificateIdentifier and Severity. Otherwise, the operation returns ValidationException.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Required: No

Severity

Return only findings of this severity. Omit it to return findings of every severity.

Type: String

Valid Values: CRITICAL | HIGH | MEDIUM | LOW | INFORMATIONAL

Required: No

Response Syntax

{ "Findings": [ { "Actual": "string", "CertificateIdentifier": "string", "EvaluatedAt": number, "Expected": "string", "FindingId": "string", "Reason": "string", "Remediation": "string", "RuleId": "string", "Scope": { ... }, "Severity": "string" } ], "HighestFindingSeverity": "string", "NextToken": "string", "TotalCount": number, "TotalCountRelation": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Findings

The findings on this page, sorted by severity, highest first, then by RuleId. A finding that changes while you page can be returned again with its new values.

Type: Array of InventoryFinding objects

Array Members: Minimum number of 0 items. Maximum number of 100 items.

HighestFindingSeverity

The certificate's health, as SearchInventory reports it.

Type: String

Valid Values: CRITICAL | HIGH | MEDIUM | LOW | INFORMATIONAL | HEALTHY | NOT_APPLICABLE | NOT_EVALUATED

TotalCount

How many findings match in total, not only on this page. Counted when each page is read, so it can change between pages if the inventory changes.

Type: Long

TotalCountRelation

Whether TotalCount is exact or a lower bound.

Type: String

Valid Values: EXACT | AT_LEAST

NextToken

A token for pagination. Absent on the last page.

Type: String

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

You do not have access required to perform this action.

HTTP Status Code: 400

InternalServerException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500

ResourceNotFoundException

The specified certificate cannot be found in the caller's account or the caller's account cannot be found.

HTTP Status Code: 400

ThrottlingException

The request was denied because it exceeded a quota.

throttlingReasons

One or more reasons why the request was throttled.

HTTP Status Code: 400

ValidationException

The supplied input failed to satisfy constraints of an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: