Smarter AWS ACM Helper

class smarter.apps.infrastructure.providers.aws.helpers.acm.AWSCertificateManager(aws_access_key_id=None, aws_secret_access_key=None, aws_region=None, aws_profile=None, shared_resource_identifier=None, environment=None, environment_domain=None, root_domain=None, debug_mode=False, init_info=None)[source]

Bases: AWSBase

The AWS Certificate Manager helper: DNS-validated public certificates.

property acm

The boto3 ACM client.

delete_certificate(certificate_arn)[source]

Delete a certificate.

A certificate that does not exist counts as deleted.

Return type:

None

describe_certificate(certificate_arn)[source]

Return a certificate’s description: its Certificate.

Return type:

dict[str, Any] | None

Returns:

The description, or None if the certificate does not exist.

get_certificate_arn(domain_name)[source]

Return the ARN of a domain’s certificate.

Parameters:

domain_name (str) – The certificate’s domain.

Return type:

str | None

Returns:

The ARN, or None if the domain has no certificate.

request_certificate(domain_name)[source]

Request a DNS-validated certificate for a domain and its subdomains.

Return type:

str

Returns:

The certificate’s ARN.