class Route53RecordTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Route53.Targets.Route53RecordTarget |
Java | software.amazon.awscdk.services.route53.targets.Route53RecordTarget |
Python | aws_cdk.aws_route53_targets.Route53RecordTarget |
TypeScript (source) | @aws-cdk/aws-route53-targets » Route53RecordTarget |
Implements
IAlias
Use another Route 53 record as an alias record target.
Example
declare const zone: route53.HostedZone;
declare const record: route53.ARecord;
new route53.ARecord(this, 'AliasRecord', {
zone,
target: route53.RecordTarget.fromAlias(new targets.Route53RecordTarget(record)),
});
Initializer
new Route53RecordTarget(record: IRecordSet)
Parameters
- record
IRecord
Set
Methods
Name | Description |
---|---|
bind(_record, zone?) | Return hosted zone ID and DNS name, usable for Route53 alias targets. |
bind(_record, zone?)
public bind(_record: IRecordSet, zone?: IHostedZone): AliasRecordTargetConfig
Parameters
- _record
IRecord
Set - zone
IHosted
Zone
Returns
Return hosted zone ID and DNS name, usable for Route53 alias targets.