HostedZoneAttributes
- class aws_cdk.aws_route53.HostedZoneAttributes(*, hosted_zone_id, zone_name)
Bases:
object
Reference to a hosted zone.
- Parameters:
hosted_zone_id (
str
) – Identifier of the hosted zone.zone_name (
str
) – Name of the hosted zone.
- ExampleMetadata:
infused
Example:
# app: App stack = Stack(app, "Stack", cross_region_references=True, env=Environment( region="us-east-2" ) ) patterns.HttpsRedirect(self, "Redirect", record_names=["foo.example.com"], target_domain="bar.example.com", zone=route53.HostedZone.from_hosted_zone_attributes(self, "HostedZone", hosted_zone_id="ID", zone_name="example.com" ) )
Attributes
- hosted_zone_id
Identifier of the hosted zone.
- zone_name
Name of the hosted zone.