Class LoadBalancerTarget
Use an ELBv2 as an alias record target.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Route53.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LoadBalancerTarget : DeputyBase, IAliasRecordTarget
Syntax (vb)
Public Class LoadBalancerTarget
Inherits DeputyBase
Implements IAliasRecordTarget
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
HostedZone zone;
ApplicationLoadBalancer lb;
new ARecord(this, "AliasRecord", new ARecordProps {
Zone = zone,
Target = RecordTarget.FromAlias(
new LoadBalancerTarget(lb, new Dictionary<string, boolean?> {
{ "evaluateTargetHealth", true }
}))
});
Synopsis
Constructors
Load |
|
Load |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Load |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IRecord |
Return hosted zone ID and DNS name, usable for Route53 alias targets. |
Constructors
LoadBalancerTarget(ILoadBalancerV2, IAliasRecordTargetProps)
public LoadBalancerTarget(ILoadBalancerV2 loadBalancer, IAliasRecordTargetProps props = null)
Parameters
- loadBalancer ILoad
Balancer V2 - props IAlias
Record Target Props
LoadBalancerTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LoadBalancerTarget(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
LoadBalancerTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LoadBalancerTarget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props 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 IRecord
Set - zone IHosted
Zone
Returns