Associates the specified security groups with the specified Application Load Balancer. The
specified security groups override the previously associated security groups.
You can't specify a security group for a Network Load Balancer or Gateway Load
Balancer.
example
Use a bare-bones client and the command you need to make an API call.
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
You can't specify a security group for a Network Load Balancer or Gateway Load Balancer.
Use a bare-bones client and the command you need to make an API call.
import { ElasticLoadBalancingV2Client, SetSecurityGroupsCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import // const { ElasticLoadBalancingV2Client, SetSecurityGroupsCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import const client = new ElasticLoadBalancingV2Client(config); const command = new SetSecurityGroupsCommand(input); const response = await client.send(command);
SetSecurityGroupsCommandInput for command's
input
shape.SetSecurityGroupsCommandOutput for command's
response
shape.config for ElasticLoadBalancingV2Client's
config
shape.