Fugue.AWS.ELBv2.Listener

Table of Contents

Module Members

new

(Function)

new Listener (Constructor)

Example usage:

listener: ELBv2.Listener.new {
  port: 80,
  protocol: ELBv2.HTTP,
  defaultAction: ELBv2.Action.forward {
    targetGroup: myTargetGroup,
  },
}

Type Signature

 fun { port: Int,
       protocol: Protocol,
       certificate: Optional<ListenerServerCertificate>,
       sslPolicy: Optional<String>,
       defaultAction: Action,
       rules: Optional<List<Rule>> } -> Listener
Argument: port

The port on the load balancer to listen on. Must be between 1 and 65535. Mutable.

Type: Int

Argument: protocol

The protocol for the listener. Mutable.

Type: Protocol

Argument: certificate

The IAM or ACM server certificate to use. Required for HTTPS listeners. Mutable.

Type: Optional<ListenerServerCertificate>

Argument: sslPolicy

The SSL configuration to use for the listener. See Fugue.AWS.ELBv2.SslPolicy for a list of currently defined policies.

Type: Optional<String>

Argument: defaultAction

Default action for the listener. See Fugue.AWS.ELBv2.Action for details on declaring actions. Mutable.

Type: Action

Argument: rules

Rules for determining how to forward traffic. See Fugue.AWS.ELBv2.Rules for details on declaring rules. Mutable.

Type: Optional<List<Rule>>

Returns:

A new Fugue.Core.AWS.ELBv2.Listener value.

Type: Listener