Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can click “Customize cookies” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To continue without accepting these cookies, click “Continue without accepting.” To make more detailed choices or learn more, click “Customize cookies.”

Skip to content

/AWS1/CL_ELB=>APPLYSECGROUPSTOLOADBALANCER()

About ApplySecurityGroupsToLoadBalancer

Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.

For more information, see Security Groups for Load Balancers in a VPC in the Classic Load Balancers Guide.

Method Signature

IMPORTING

Required arguments:

IV_LOADBALANCERNAME TYPE /AWS1/ELBACCESSPOINTNAME /AWS1/ELBACCESSPOINTNAME

The name of the load balancer.

IT_SECURITYGROUPS TYPE /AWS1/CL_ELBSECURITYGROUPS_W=>TT_SECURITYGROUPS TT_SECURITYGROUPS

The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ELBAPPLYSECGRSTOLOA01 /AWS1/CL_ELBAPPLYSECGRSTOLOA01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC