Skip to main content

The CDK Construct Library for AWS::ACMPCA

Project description

AWS::ACMPCA Construct Library

---

End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.


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.204.0.tar.gz (197.2 kB view details)

Uploaded Source

Built Distribution

aws_cdk.aws_acmpca-1.204.0-py3-none-any.whl (196.4 kB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.aws-acmpca-1.204.0.tar.gz.

File metadata

  • Download URL: aws-cdk.aws-acmpca-1.204.0.tar.gz
  • Upload date:
  • Size: 197.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for aws-cdk.aws-acmpca-1.204.0.tar.gz
Algorithm Hash digest
SHA256 7221302ca5603c9e0397999187d7ff82c07da17c5d6a8768a29b09153f83bd54
MD5 283334c3a4f5ff74fece3354c2fe533a
BLAKE2b-256 f291a00ca01415f4627b7d2131fffc2086963aa1ab407fb050995386315272c8

See more details on using hashes here.

File details

Details for the file aws_cdk.aws_acmpca-1.204.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk.aws_acmpca-1.204.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6521a30c36eeff5b04b69506af80b66195589ba477bb3f0f0de456c7d4335f9
MD5 7fa0a1af6630226dea7f5b86b3f0ca69
BLAKE2b-256 00830bf851ad689f74588fb976a0e87951f4a48db3c26be6e870f0089f16c6f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page