/AWS1/CL_ELB=>CREATEAPPCOOKIESTICKINESSPLY()
¶
About CreateAppCookieStickinessPolicy¶
Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
except that the lifetime of the special Elastic Load Balancing cookie, AWSELB
,
follows the lifetime of the application-generated cookie specified in the policy configuration.
The load balancer only inserts a new stickiness cookie when the application response
includes a new application cookie.
If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.
For more information, see Application-Controlled Session Stickiness in the Classic Load Balancers Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_loadbalancername
TYPE /AWS1/ELBACCESSPOINTNAME
/AWS1/ELBACCESSPOINTNAME
¶
The name of the load balancer.
iv_policyname
TYPE /AWS1/ELBPOLICYNAME
/AWS1/ELBPOLICYNAME
¶
The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.
iv_cookiename
TYPE /AWS1/ELBCOOKIENAME
/AWS1/ELBCOOKIENAME
¶
The name of the application cookie used for stickiness.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_elbcreappcookiestic01
/AWS1/CL_ELBCREAPPCOOKIESTIC01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_elb~createappcookiestickinessply(
iv_cookiename = |string|
iv_loadbalancername = |string|
iv_policyname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
To generate a stickiness policy for your load balancer¶
This example generates a stickiness policy that follows the sticky session lifetimes of the application-generated cookie.
DATA(lo_result) = lo_client->/aws1/if_elb~createappcookiestickinessply(
iv_cookiename = |my-app-cookie|
iv_loadbalancername = |my-load-balancer|
iv_policyname = |my-app-cookie-policy|
).