Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetSecurityGroupsCommand

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.

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);
see

SetSecurityGroupsCommandInput for command's input shape.

see

SetSecurityGroupsCommandOutput for command's response shape.

see

config for ElasticLoadBalancingV2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: SetSecurityGroupsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions