AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
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 Elastic Load Balancing Developer Guide.

Namespace: Amazon.ElasticLoadBalancing
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract ApplySecurityGroupsToLoadBalancerResponse ApplySecurityGroupsToLoadBalancer(
         ApplySecurityGroupsToLoadBalancerRequest request
)

Parameters

request
Type: Amazon.ElasticLoadBalancing.Model.ApplySecurityGroupsToLoadBalancerRequest

Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer service method.

Return Value
Type: Amazon.ElasticLoadBalancing.Model.ApplySecurityGroupsToLoadBalancerResponse
The response from the ApplySecurityGroupsToLoadBalancer service method, as returned by ElasticLoadBalancing.

Exceptions

ExceptionCondition
AccessPointNotFoundException The specified load balancer does not exist.
InvalidConfigurationRequestException The requested configuration change is not valid.
InvalidSecurityGroupException One or more of the specified security groups do not exist.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5