The CDK Construct Library for AWS::ACMPCA
Project description
AWS::ACMPCA Construct Library
---This module is part of the AWS Cloud Development Kit project.
import aws_cdk.aws_acmpca as acmpca
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 fromCertificateAuthorityArn
static method:
certificate_authority = 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 = acmpca.CfnCertificateAuthority(self, "CA",
type="ROOT",
key_algorithm="RSA_2048",
signing_algorithm="SHA256WITHRSA",
subject=acmpca.CfnCertificateAuthority.SubjectProperty(
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 fromCertificateAuthorityArn
method:
# cfn_certificate_authority: acmpca.CfnCertificateAuthority
certificate_authority = acmpca.CertificateAuthority.from_certificate_authority_arn(self, "CertificateAuthority", cfn_certificate_authority.attr_arn)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aws-cdk.aws-acmpca-1.153.1.tar.gz
(179.7 kB
view hashes)
Built Distribution
Close
Hashes for aws-cdk.aws-acmpca-1.153.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 016e3d170a911f562c3b7986b2bdc9f376d4cdc2c71e11095a2714795105eb53 |
|
MD5 | be3010774f8250ff0b6d39cd92a25398 |
|
BLAKE2b-256 | 69a6c5b6a416c11075c149343bbc7da04c6c656fe7f8c36106e70eda2c5d90f9 |
Close
Hashes for aws_cdk.aws_acmpca-1.153.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4527b87368eced6bd7653ad24fc9454e89cdc9be1d9069bbbbe3b74658abe24b |
|
MD5 | 418b5c54095bf6554817f81ee63fbbee |
|
BLAKE2b-256 | 3db6afdddf10cab1857b835e118c652e3f4055bdabfcf7a4315ab4e08e8b5a39 |