Skip to content

/AWS1/CL_EL2=>CREATERULE()

About CreateRule

Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.

Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.

Method Signature

IMPORTING

Required arguments:

IV_LISTENERARN TYPE /AWS1/EL2LISTENERARN /AWS1/EL2LISTENERARN

The Amazon Resource Name (ARN) of the listener.

IT_CONDITIONS TYPE /AWS1/CL_EL2RULECONDITION=>TT_RULECONDITIONLIST TT_RULECONDITIONLIST

The conditions.

IV_PRIORITY TYPE /AWS1/EL2RULEPRIORITY /AWS1/EL2RULEPRIORITY

The rule priority. A listener can't have multiple rules with the same priority.

IT_ACTIONS TYPE /AWS1/CL_EL2ACTION=>TT_ACTIONS TT_ACTIONS

The actions.

Optional arguments:

IT_TAGS TYPE /AWS1/CL_EL2TAG=>TT_TAGLIST TT_TAGLIST

The tags to assign to the rule.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EL2CREATERULEOUTPUT /AWS1/CL_EL2CREATERULEOUTPUT