Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeStaleSecurityGroupsCommand

[VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in the same VPC or in a peer VPC, or if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, DescribeStaleSecurityGroupsCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, DescribeStaleSecurityGroupsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new DescribeStaleSecurityGroupsCommand(input);
const response = await client.send(command);
see

DescribeStaleSecurityGroupsCommandInput for command's input shape.

see

DescribeStaleSecurityGroupsCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DescribeStaleSecurityGroupsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions