| 5 | ) |
| 6 | |
| 7 | class HostedZoneStack(Stack): |
| 8 | def __init__(self, scope: Construct, construct_id: str, domain: str, **kwargs) -> None: |
| 9 | super().__init__(scope, construct_id, **kwargs) |
| 10 | |
| 11 | # Test Env |
| 12 | self.zone = route53.PublicHostedZone(self, "HostedZone", zone_name=domain) |
| 13 | # use below code to use already created hosted zone |
| 14 | # self.hostzone = route53.HostedZone.from_lookup(self, "HostedZone", domain_name=domain) |