Skip to content

Commit

Permalink
Remove ttl from alias record L2 (not a supported option)
Browse files Browse the repository at this point in the history
  • Loading branch information
clareliguori committed Nov 10, 2018
1 parent 95b1d7a commit 47b64f5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/@aws-cdk/aws-route53/lib/records/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ export interface AliasRecordProps {
* Target for the alias record
*/
target: IAliasRecordTarget;
/**
* The TTL of the zone delegation records.
* @default 1800 seconds
*/
ttl?: number;
}

/**
Expand All @@ -53,15 +48,12 @@ export class AliasRecord extends Construct {
constructor(parent: HostedZoneNameRef, id: string, props: AliasRecordProps) {
super(parent, id);

const ttl = props.ttl === undefined ? 1800 : props.ttl;

const targetProps = props.target.asAliasRecordTarget();

new cloudformation.RecordSetResource(this, 'Resource',
setHostedZoneForRecordSet(parent, {
name: determineFullyQualifiedDomainName(props.recordName, parent),
type: 'A', // ipv4
ttl: ttl.toString(),
aliasTarget: {
hostedZoneId: targetProps.hostedZoneId,
dnsName: targetProps.dnsName
Expand Down

0 comments on commit 47b64f5

Please sign in to comment.