AWSCDK::ACMPCA

10 types

AWS::ACMPCA Construct Library

This module is part of the AWS Cloud Development Kit project.

require 'aws-cdk-lib'

Certificate Authority

This package contains a CertificateAuthority class. At the moment, you cannot create new Authorities using it, but you can import existing ones using the from_certificate_authority_arn static method:

certificate_authority = AWSCDK::ACMPCA::CertificateAuthority.from_certificate_authority_arn(self, "CA", "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/023077d8-2bfa-4eb0-8f22-05c96deade77")

Low-level Cfn* classes

You can always use the low-level classes (starting with Cfn*) to create resources like the Certificate Authority:

cfn_certificate_authority = AWSCDK::ACMPCA::CfnCertificateAuthority.new(self, "CA", {
    type: "ROOT",
    key_algorithm: "RSA_2048",
    signing_algorithm: "SHA256WITHRSA",
    subject: {
        country: "US",
        organization: "string",
        organizational_unit: "string",
        distinguished_name_qualifier: "string",
        state: "string",
        common_name: "123",
        serial_number: "string",
        locality: "string",
        title: "string",
        surname: "string",
        given_name: "string",
        initials: "DG",
        pseudonym: "string",
        generation_qualifier: "DBG",
    },
})

If you need to pass the higher-level ICertificateAuthority somewhere, you can get it from the lower-level CfnCertificateAuthority using the same from_certificate_authority_arn method:

cfn_certificate_authority = nil # AWSCDK::ACMPCA::CfnCertificateAuthority


certificate_authority = AWSCDK::ACMPCA::CertificateAuthority.from_certificate_authority_arn(self, "CertificateAuthority", cfn_certificate_authority.attr_arn)

API Reference

Classes 5

CertificateAuthorityDefines a Certificate for ACMPCA. CfnCertificateThe `AWS::ACMPCA::Certificate` resource is used to issue a certificate using your private CfnCertificateAuthorityUse the `AWS::ACMPCA::CertificateAuthority` resource to create a private CA. CfnCertificateAuthorityActivationThe `AWS::ACMPCA::CertificateAuthorityActivation` resource creates and installs a CA certi CfnPermissionGrants permissions to the Certificate Manager ( ACM ) service principal ( `acm.amazonaws.c

Interfaces 5

CfnCertificateAuthorityActivationPropsProperties for defining a `CfnCertificateAuthorityActivation`. CfnCertificateAuthorityPropsProperties for defining a `CfnCertificateAuthority`. CfnCertificatePropsProperties for defining a `CfnCertificate`. CfnPermissionPropsProperties for defining a `CfnPermission`. ICertificateAuthorityInterface which all CertificateAuthority based class must implement.