Class ClassicLoadBalancerTarget
Use a classic ELB as an alias record target.
Inheritance
System.Object
ClassicLoadBalancerTarget
Implements
Namespace: Amazon.CDK.AWS.Route53.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ClassicLoadBalancerTarget : DeputyBase, IAliasRecordTarget
Syntax (vb)
Public Class ClassicLoadBalancerTarget
Inherits DeputyBase
Implements IAliasRecordTarget
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ElasticLoadBalancing;
HostedZone zone;
LoadBalancer lb;
new ARecord(this, "AliasRecord", new ARecordProps {
Zone = zone,
Target = RecordTarget.FromAlias(new ClassicLoadBalancerTarget(lb))
});
Synopsis
Constructors
ClassicLoadBalancerTarget(LoadBalancer) | |
ClassicLoadBalancerTarget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ClassicLoadBalancerTarget(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
ClassicLoadBalancerTarget(LoadBalancer)
ClassicLoadBalancerTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ClassicLoadBalancerTarget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ClassicLoadBalancerTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ClassicLoadBalancerTarget(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