---
This module is part of the AWS Cloud Development Kit project.
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 import software.amazon.awscdk.aws_acmpca;
This package contains a CertificateAuthority class.
At the moment, you cannot create new Authorities using it,
but you can import existing ones using the fromCertificateAuthorityArn static method:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 Object certificateAuthority = acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, "CA", "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/023077d8-2bfa-4eb0-8f22-05c96deade77");
Cfn* classes
You can always use the low-level classes
(starting with Cfn*) to create resources like the Certificate Authority:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Object cfnCertificateAuthority = CfnCertificateAuthority.Builder.create(this, "CA")
.type("ROOT")
.keyAlgorithm("RSA_2048")
.signingAlgorithm("SHA256WITHRSA")
.subject(Map.of(
"country", "US",
"organization", "string",
"organizationalUnit", "string",
"distinguishedNameQualifier", "string",
"state", "string",
"commonName", "123",
"serialNumber", "string",
"locality", "string",
"title", "string",
"surname", "string",
"givenName", "string",
"initials", "DG",
"pseudonym", "string",
"generationQualifier", "DBG"))
.build();
If you need to pass the higher-level ICertificateAuthority somewhere,
you can get it from the lower-level CfnCertificateAuthority using the same fromCertificateAuthorityArn method:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 Object certificateAuthority = acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, "CertificateAuthority", cfnCertificateAuthority.getAttrArn());
Copyright © 2021. All rights reserved.