interface ARecordProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Route53.ARecordProps |
Java | software.amazon.awscdk.services.route53.ARecordProps |
Python | aws_cdk.aws_route53.ARecordProps |
TypeScript (source) | @aws-cdk/aws-route53 » ARecordProps |
Construction properties for a ARecord.
Example
import * as apigw from '@aws-cdk/aws-apigateway';
declare const zone: route53.HostedZone;
declare const restApi: apigw.LambdaRestApi;
new route53.ARecord(this, 'AliasRecord', {
zone,
target: route53.RecordTarget.fromAlias(new targets.ApiGateway(restApi)),
// or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomain(domainName)),
});
Properties
Name | Type | Description |
---|---|---|
target | Record | The target. |
zone | IHosted | The hosted zone in which to define the new record. |
comment? | string | A comment to add on the record. |
record | string | The domain name for this record. |
ttl? | Duration | The resource record cache time to live (TTL). |
target
Type:
Record
The target.
zone
Type:
IHosted
The hosted zone in which to define the new record.
comment?
Type:
string
(optional, default: no comment)
A comment to add on the record.
recordName?
Type:
string
(optional, default: zone root)
The domain name for this record.
ttl?
Type:
Duration
(optional, default: Duration.minutes(30))
The resource record cache time to live (TTL).