Class LoadBalancer
An interface of an abstract load balancer, as needed by CodeDeploy.
Inheritance
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.AWS.CodeDeploy.dll
Syntax (csharp)
public abstract class LoadBalancer : DeputyBase
Syntax (vb)
Public MustInherit Class LoadBalancer
Inherits DeputyBase
Remarks
Create instances using the static factory methods: {@link #classic}, {@link #application} and {@link #network}.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ElasticLoadBalancing;
LoadBalancer lb;
lb.AddListener(new LoadBalancerListener {
ExternalPort = 80
});
var deploymentGroup = new ServerDeploymentGroup(this, "DeploymentGroup", new ServerDeploymentGroupProps {
LoadBalancer = LoadBalancer.Classic(lb)
});
Synopsis
Constructors
LoadBalancer() | |
LoadBalancer(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LoadBalancer(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Generation | |
Name |
Methods
Application(IApplicationTargetGroup) | Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group. |
Classic(LoadBalancer) | Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer. |
Network(INetworkTargetGroup) | Creates a new CodeDeploy load balancer from a Network Load Balancer Target Group. |
Constructors
LoadBalancer()
protected LoadBalancer()
LoadBalancer(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LoadBalancer(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LoadBalancer(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LoadBalancer(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Generation
Name
public abstract string Name { get; }
Property Value
System.String
Methods
Application(IApplicationTargetGroup)
Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group.
public static LoadBalancer Application(IApplicationTargetGroup albTargetGroup)
Parameters
- albTargetGroup IApplicationTargetGroup
an ALB Target Group.
Returns
Classic(LoadBalancer)
Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer.
public static LoadBalancer Classic(LoadBalancer loadBalancer)
Parameters
- loadBalancer LoadBalancer
a classic ELB Load Balancer.
Returns
Network(INetworkTargetGroup)
Creates a new CodeDeploy load balancer from a Network Load Balancer Target Group.
public static LoadBalancer Network(INetworkTargetGroup nlbTargetGroup)
Parameters
- nlbTargetGroup INetworkTargetGroup
an NLB Target Group.
Returns