Smaws_Client_ACMPCA.GetCertificateRetrieves a certificate from your private CA or one that has been shared with you. The ARN of the certificate is returned when you call the IssueCertificate action. You must specify both the ARN of your private CA and the ARN of the issued certificate when calling the GetCertificate action. You can retrieve the certificate if it is in the ISSUED, EXPIRED, or REVOKED state. You can call the CreateCertificateAuthorityAuditReport action to create a report that contains information about all of the certificates issued and revoked by your private CA.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `RequestInProgressException of Types.request_in_progress_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_certificate_request ->
(Types.get_certificate_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `RequestInProgressException of Types.request_in_progress_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_certificate_request ->
(Types.get_certificate_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArnException of Types.invalid_arn_exception
| `InvalidStateException of Types.invalid_state_exception
| `RequestFailedException of Types.request_failed_exception
| `RequestInProgressException of Types.request_in_progress_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result