AaaaRecordProps

class aws_cdk.aws_route53.AaaaRecordProps(*, zone, comment=None, delete_existing=None, record_name=None, ttl=None, target)

Bases: RecordSetOptions

Construction properties for a AaaaRecord.

Parameters
  • zone (IHostedZone) – The hosted zone in which to define the new record.

  • comment (Optional[str]) – A comment to add on the record. Default: no comment

  • delete_existing (Optional[bool]) – Whether to delete the same record set in the hosted zone if it already exists. This allows to deploy a new record set while minimizing the downtime because the new record set will be created immediately after the existing one is deleted. It also avoids “manual” actions to delete existing record sets. Default: false

  • record_name (Optional[str]) – The domain name for this record. Default: zone root

  • ttl (Optional[Duration]) – The resource record cache time to live (TTL). Default: Duration.minutes(30)

  • target (RecordTarget) – The target.

ExampleMetadata

infused

Example:

import aws_cdk.aws_cloudfront as cloudfront

# my_zone: route53.HostedZone
# distribution: cloudfront.CloudFrontWebDistribution

route53.AaaaRecord(self, "Alias",
    zone=my_zone,
    target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution))
)

Attributes

comment

A comment to add on the record.

Default

no comment

Return type

Optional[str]

delete_existing

Whether to delete the same record set in the hosted zone if it already exists.

This allows to deploy a new record set while minimizing the downtime because the new record set will be created immediately after the existing one is deleted. It also avoids “manual” actions to delete existing record sets.

Default

false

Return type

Optional[bool]

record_name

The domain name for this record.

Default

zone root

Return type

Optional[str]

target

The target.

Return type

RecordTarget

ttl

The resource record cache time to live (TTL).

Default

Duration.minutes(30)

Return type

Optional[Duration]

zone

The hosted zone in which to define the new record.

Return type

IHostedZone