Class Route53RecordTarget
Use another Route 53 record as an alias record target.
Inheritance
System.Object
Route53RecordTarget
Implements
Namespace: Amazon.CDK.AWS.Route53.Targets
Assembly: Amazon.CDK.AWS.Route53.Targets.dll
Syntax (csharp)
public class Route53RecordTarget : DeputyBase, IAliasRecordTarget
Syntax (vb)
Public Class Route53RecordTarget
Inherits DeputyBase
Implements IAliasRecordTarget
Remarks
ExampleMetadata: infused
Examples
HostedZone zone;
ARecord record;
new ARecord(this, "AliasRecord", new ARecordProps {
Zone = zone,
Target = RecordTarget.FromAlias(new Route53RecordTarget(record))
});
Synopsis
Constructors
Route53RecordTarget(IRecordSet) | |
Route53RecordTarget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Route53RecordTarget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IRecordSet, IHostedZone) | Return hosted zone ID and DNS name, usable for Route53 alias targets. |
Constructors
Route53RecordTarget(IRecordSet)
Route53RecordTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Route53RecordTarget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Route53RecordTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Route53RecordTarget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IRecordSet, IHostedZone)
Return hosted zone ID and DNS name, usable for Route53 alias targets.
public virtual IAliasRecordTargetConfig Bind(IRecordSet record, IHostedZone zone = null)
Parameters
- record IRecordSet
- zone IHostedZone
Returns