ListCertificateAuthorityAssociations
Lists the resource associations for a service-affiliated private certificate authority (CA). Each entry pairs the private CA with an associated AWS resource. The results can be paginated.
Request Syntax
{
"CertificateAuthorityArn": "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.
- CertificateAuthorityArn
-
The Amazon Resource Name (ARN) of the service-affiliated private CA whose associations you want to list.
Type: String
Length Constraints: Minimum length of 5. Maximum length of 200.
Pattern:
arn:[\w+=/,.@-]+:acm-pca:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w+=,.@-]+)*Required: Yes
- MaxResults
-
Use this parameter when paginating results to specify the maximum number of associations to return in the response on each page. If additional associations exist beyond the number you specify, the
NextTokenelement is sent in the response. Use thisNextTokenvalue in a subsequent request to retrieve additional associations.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1000.
Required: No
- NextToken
-
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the
NextTokenparameter from the response you just received.Type: String
Length Constraints: Minimum length of 1. Maximum length of 43739.
Required: No
Response Syntax
{
"Associations": [
{
"AssociatedResourceArn": "string",
"CertificateAuthorityArn": "string",
"CreatedAt": number
}
],
"NextToken": "string",
"ServiceAffiliation": {
"ServiceAffiliationCode": "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.
- Associations
-
Summary information about each AWS resource associated with the private CA.
Type: Array of Association objects
- NextToken
-
When the list is truncated, this value is present and should be used for the
NextTokenparameter in a subsequent pagination request.Type: String
Length Constraints: Minimum length of 1. Maximum length of 43739.
- ServiceAffiliation
-
Service-affiliation details for the CA whose associations are listed. Present only when the CA is service-affiliated.
Type: ServiceAffiliation object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- InvalidArnException
-
The requested Amazon Resource Name (ARN) does not refer to an existing resource.
HTTP Status Code: 400
- InvalidNextTokenException
-
The token specified in the
NextTokenargument is not valid. Use the token returned from your previous call to ListCertificateAuthorities.HTTP Status Code: 400
- ResourceNotFoundException
-
A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: