[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.
[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.
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);
DescribeStaleSecurityGroupsCommandInput for command's
input
shape.DescribeStaleSecurityGroupsCommandOutput for command's
response
shape.config for EC2Client's
config
shape.