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:
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.
- Return type
str
-
zone_name
¶ Name of the hosted zone.
- Return type
str