def __init__()

in ec2_ialb_aga_custom_r53/certs_stack.py [0:0]


    def __init__(self, scope: core.Construct, construct_id: str, domain, subdomain, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        # Lookup the existing public hosted zone
        self.blog_hosted_zone = route53.HostedZone.from_lookup(
            self, "Domain", domain_name=domain)

        # Request and DNS Validate a certificate for the new subdomain
        self.domain_cert = acm.Certificate(
            self, "DomainCert",
            domain_name=f"{subdomain}.{domain}",
            validation=acm.CertificateValidation.from_dns(self.blog_hosted_zone))