ListInventoryUsages - 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.

ListInventoryUsages

Lists the places where one certificate was observed in use, such as load balancers and Amazon CloudFront distributions. Usages are sorted by target, in ascending order.

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" }

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 usages 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 usages 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. Otherwise, the operation returns ValidationException.

Type: String

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

Required: No

Response Syntax

{ "NextToken": "string", "TotalCount": number, "TotalCountRelation": "string", "Usages": [ { "AccountId": "string", "AgentReported": { ... }, "CertificateIdentifier": "string", "LastObservedAt": number, "Region": "string", "Target": { ... } } ] }

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.

TotalCount

How many usages the certificate has 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

Usages

The usages on this page, sorted by target in ascending order.

Type: Array of InventoryUsage objects

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

NextToken

Pass this value as NextToken to read the next page. 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: