ListInventoryRelatedResources
Lists the resources that one certificate maps to: ACM certificates, AWS Private CA certificates, and AWS Private CA certificate authorities. Related resources are sorted by ResourceArn, 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.
In the following list, the required parameters are described first.
- CertificateIdentifier
-
The identifier of the certificate whose related resources 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 related resources to return, 1 to 100. Defaults to 25.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
The
NextTokenfrom the previous response, to read the next page. Use the sameCertificateIdentifier. Otherwise, the operation returnsValidationException.Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Required: No
Response Syntax
{
"NextToken": "string",
"RelatedResources": [
{
"AssociationStatus": "string",
"IssuanceType": "string",
"Metadata": { ... },
"ResourceArn": "string",
"ResourceType": "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.
- RelatedResources
-
The related resources on this page, sorted by
ResourceArnin ascending order.Type: Array of InventoryRelatedResource objects
Array Members: Minimum number of 0 items. Maximum number of 100 items.
- TotalCount
-
How many related resources 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
TotalCountis exact or a lower bound.Type: String
Valid Values:
EXACT | AT_LEAST - NextToken
-
Pass this value as
NextTokento 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: