10 types
This module is part of the AWS Cloud Development Kit project.
require 'aws-cdk-lib'
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:
= AWSCDK::ACMPCA::CertificateAuthority.(self, "CA", "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/023077d8-2bfa-4eb0-8f22-05c96deade77")
Cfn* classesYou can always use the low-level classes
(starting with Cfn*) to create resources like the 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:
= nil # AWSCDK::ACMPCA::CfnCertificateAuthority
= AWSCDK::ACMPCA::CertificateAuthority.(self, "CertificateAuthority", .attr_arn)