CreateListener#

Description#

Request to create a listener for the Elastic Load Balancer (ELB).

Request Parameters#

Required parameters#

  • DefaultActions — ELB actions on incoming requests.

    • Type: List of Action objects

    • Required: Yes

  • LoadBalancerArn — The Amazon Resource Name (ARN) of the load balancer.

    • Type: String

    • Required: Yes

  • Port — The port on which the listener receives requests.

    • Type: Integer

    • Required: Yes

    • Valid range: From 1 to 65535

  • Protocol — Protocol for client connection to ELB.

    • Type: String

    • Required: Yes

    • Valid values: TCP | UDP

Optional parameters#

  • Tags.N — Tags assigned to the listener.

    • Type: List of Tag objects

    • Required: No

Response Elements#

  • Listeners.N — Information about listeners.

Examples#

c2-elb CreateListener LoadBalancerArn "elb_arn" Port 80 Protocol tcp DefaultActions.1.TargetGroupArn "target_group_arn" DefaultActions.1.Type forward