AaaaRecordProps

class aws_cdk.aws_route53.AaaaRecordProps(*, zone, comment=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

  • 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

record_name

The domain name for this record.

Default:

zone root

target

The target.

ttl

The resource record cache time to live (TTL).

Default:

Duration.minutes(30)

zone

The hosted zone in which to define the new record.