CaaRecordProps

class aws_cdk.aws_route53.CaaRecordProps(*, comment=None, record_name=None, ttl=None, zone, values)

Bases: aws_cdk.aws_route53.RecordSetOptions

Construction properties for a CaaRecord.

Parameters
  • 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)

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

  • values (Sequence[CaaRecordValue]) – The values.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_route53 as route53
import aws_cdk.core as cdk

# hosted_zone is of type HostedZone

caa_record_props = route53.CaaRecordProps(
    values=[route53.CaaRecordValue(
        flag=123,
        tag=route53.CaaTag.ISSUE,
        value="value"
    )],
    zone=hosted_zone,

    # the properties below are optional
    comment="comment",
    record_name="recordName",
    ttl=cdk.Duration.minutes(30)
)

Attributes

comment

A comment to add on the record.

Default

no comment

Return type

Optional[str]

record_name

The domain name for this record.

Default

zone root

Return type

Optional[str]

ttl

The resource record cache time to live (TTL).

Default

Duration.minutes(30)

Return type

Optional[Duration]

values

The values.

Return type

List[CaaRecordValue]

zone

The hosted zone in which to define the new record.

Return type

IHostedZone