Show / Hide Table of Contents

Interface ILoadBalancerListener

Add a backend to the load balancer.

Namespace: Amazon.CDK.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILoadBalancerListener
Syntax (vb)
Public Interface ILoadBalancerListener
Remarks

ExampleMetadata: infused

Examples
IVpc vpc;

            AutoScalingGroup myAutoScalingGroup;

            var lb = new LoadBalancer(this, "LB", new LoadBalancerProps {
                Vpc = vpc,
                InternetFacing = true,
                HealthCheck = new HealthCheck {
                    Port = 80
                }
            });
            lb.AddTarget(myAutoScalingGroup);
            lb.AddListener(new LoadBalancerListener {
                ExternalPort = 80
            });

Synopsis

Properties

AllowConnectionsFrom

Allow connections to the load balancer from the given set of connection peers.

ExternalPort

External listening port.

ExternalProtocol

What public protocol to use for load balancing.

InternalPort

Instance listening port.

InternalProtocol

What public protocol to use for load balancing.

PolicyNames

SSL policy names.

SslCertificateArn

the ARN of the SSL certificate.

Properties

AllowConnectionsFrom

Allow connections to the load balancer from the given set of connection peers.

IConnectable[]? AllowConnectionsFrom { get; }
Property Value

IConnectable[]

Remarks

By default, connections will be allowed from anywhere. Set this to an empty list to deny connections, or supply a custom list of peers to allow connections from (IP ranges or security groups).

Default: Anywhere

ExternalPort

External listening port.

double ExternalPort { get; }
Property Value

double

Remarks

ExampleMetadata: infused

ExternalProtocol

What public protocol to use for load balancing.

LoadBalancingProtocol? ExternalProtocol { get; }
Property Value

LoadBalancingProtocol?

Remarks

Either 'tcp', 'ssl', 'http' or 'https'.

May be omitted if the external port is either 80 or 443.

InternalPort

Instance listening port.

double? InternalPort { get; }
Property Value

double?

Remarks

Same as the externalPort if not specified.

Default: externalPort

InternalProtocol

What public protocol to use for load balancing.

LoadBalancingProtocol? InternalProtocol { get; }
Property Value

LoadBalancingProtocol?

Remarks

Either 'tcp', 'ssl', 'http' or 'https'.

May be omitted if the internal port is either 80 or 443.

The instance protocol is 'tcp' if the front-end protocol is 'tcp' or 'ssl', the instance protocol is 'http' if the front-end protocol is 'https'.

PolicyNames

SSL policy names.

string[]? PolicyNames { get; }
Property Value

string[]

Remarks

ExampleMetadata: infused

SslCertificateArn

the ARN of the SSL certificate.

string? SslCertificateArn { get; }
Property Value

string

Remarks

Default: - none

Back to top Generated by DocFX