Retrieves the certificate and certificate chain for your private certificate authority (CA) or one that has been shared with you. Both the certificate and the chain are base64 PEM-encoded. The chain does not include the CA certificate. Each certificate in the chain signs the one before it.
Parameters:
-
certificate_authority_arn
(Arn)
–
The Amazon Resource Name (ARN) of your private CA. This is of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 .
Raises:
Source code in docs_src/capo_acm_pca/_services/async_acmpca.py
| async def get_certificate_authority_certificate(
self,
certificate_authority_arn: "capo_acm_pca.types.arn.Arn",
*,
config_overrides: Optional[AsyncACMPCAClientConfig] = None,
) -> "capo_acm_pca.types.get_certificate_authority_certificate_response.GetCertificateAuthorityCertificateResponse":
"""<p>Retrieves the certificate and certificate chain for your private certificate authority (CA) or one that has been shared with you. Both the certificate and the chain are base64 PEM-encoded. The chain does not include the CA certificate. Each certificate in the chain signs the one before it. </p>
Args:
certificate_authority_arn: <p>The Amazon Resource Name (ARN) of your private CA. This is of the form:</p> <p> <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> </code>. </p>
Raises:
capo_acm_pca.errors.invalid_arn_exception.InvalidArnException: <p>The requested Amazon Resource Name (ARN) does not refer to an existing resource.</p>
capo_acm_pca.errors.invalid_state_exception.InvalidStateException: <p>The state of the private CA does not allow this action to occur.</p>
capo_acm_pca.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.</p>
capo_acm_pca.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_acm_pca.types.get_certificate_authority_certificate_request.GetCertificateAuthorityCertificateRequest]",
) -> AsyncOperationResponse[
"capo_acm_pca.types.get_certificate_authority_certificate_response.GetCertificateAuthorityCertificateResponse"
]:
import capo_acm_pca._operations.acm_private_ca.get_certificate_authority_certificate
(
output,
http_response,
) = await capo_acm_pca._operations.acm_private_ca.get_certificate_authority_certificate.async_get_certificate_authority_certificate(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCertificateAuthorityCertificate")
)
input_: capo_acm_pca.types.get_certificate_authority_certificate_request.GetCertificateAuthorityCertificateRequest = {
"certificate_authority_arn": certificate_authority_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|