Show / Hide Table of Contents

Class CfnLoadBalancer.ListenersProperty

Specifies a listener for your Classic Load Balancer.

Inheritance
object
CfnLoadBalancer.ListenersProperty
Implements
CfnLoadBalancer.IListenersProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLoadBalancer.ListenersProperty : CfnLoadBalancer.IListenersProperty
Syntax (vb)
Public Class CfnLoadBalancer.ListenersProperty Implements CfnLoadBalancer.IListenersProperty
Remarks

Modifying any property replaces the listener.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.ElasticLoadBalancing;

             var listenersProperty = new ListenersProperty {
                 InstancePort = "instancePort",
                 LoadBalancerPort = "loadBalancerPort",
                 Protocol = "protocol",

                 // the properties below are optional
                 InstanceProtocol = "instanceProtocol",
                 PolicyNames = new [] { "policyNames" },
                 SslCertificateId = "sslCertificateId"
             };

Synopsis

Constructors

ListenersProperty()

Specifies a listener for your Classic Load Balancer.

Properties

InstancePort

The port on which the instance is listening.

InstanceProtocol

The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.

LoadBalancerPort

The port on which the load balancer is listening.

PolicyNames

The names of the policies to associate with the listener.

Protocol

The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.

SslCertificateId

The Amazon Resource Name (ARN) of the server certificate.

Constructors

ListenersProperty()

Specifies a listener for your Classic Load Balancer.

public ListenersProperty()
Remarks

Modifying any property replaces the listener.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.ElasticLoadBalancing;

             var listenersProperty = new ListenersProperty {
                 InstancePort = "instancePort",
                 LoadBalancerPort = "loadBalancerPort",
                 Protocol = "protocol",

                 // the properties below are optional
                 InstanceProtocol = "instanceProtocol",
                 PolicyNames = new [] { "policyNames" },
                 SslCertificateId = "sslCertificateId"
             };

Properties

InstancePort

The port on which the instance is listening.

public string InstancePort { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-instanceport

InstanceProtocol

The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.

public string? InstanceProtocol { get; set; }
Property Value

string

Remarks

If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.

If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.

If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-instanceprotocol

LoadBalancerPort

The port on which the load balancer is listening.

public string LoadBalancerPort { get; set; }
Property Value

string

Remarks

On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-loadbalancerport

PolicyNames

The names of the policies to associate with the listener.

public string[]? PolicyNames { get; set; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-policynames

Protocol

The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.

public string Protocol { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-protocol

SslCertificateId

The Amazon Resource Name (ARN) of the server certificate.

public string? SslCertificateId { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancing-loadbalancer-listeners.html#cfn-elasticloadbalancing-loadbalancer-listeners-sslcertificateid

Implements

CfnLoadBalancer.IListenersProperty
Back to top Generated by DocFX