Skip to content

Describe Stale Security Groups

ec2_describe_stale_security_groups R Documentation

Describes the stale security group rules for security groups referenced across a VPC peering connection, transit gateway connection, or with a security group VPC association

Description

Describes the stale security group rules for security groups referenced across a VPC peering connection, transit gateway connection, or with a security group VPC association. Rules are stale when they reference a deleted security group. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has been deleted, across a transit gateway where the transit gateway has been deleted (or the transit gateway security group referencing feature has been disabled), or if a security group VPC association has been disassociated.

Usage

ec2_describe_stale_security_groups(DryRun, MaxResults, NextToken, VpcId)

Arguments

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

MaxResults

The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

NextToken

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

VpcId

[required] The ID of the VPC.

Value

A list with the following syntax:

list(
  NextToken = "string",
  StaleSecurityGroupSet = list(
    list(
      Description = "string",
      GroupId = "string",
      GroupName = "string",
      StaleIpPermissions = list(
        list(
          FromPort = 123,
          IpProtocol = "string",
          IpRanges = list(
            "string"
          ),
          PrefixListIds = list(
            "string"
          ),
          ToPort = 123,
          UserIdGroupPairs = list(
            list(
              Description = "string",
              UserId = "string",
              GroupName = "string",
              GroupId = "string",
              VpcId = "string",
              VpcPeeringConnectionId = "string",
              PeeringStatus = "string"
            )
          )
        )
      ),
      StaleIpPermissionsEgress = list(
        list(
          FromPort = 123,
          IpProtocol = "string",
          IpRanges = list(
            "string"
          ),
          PrefixListIds = list(
            "string"
          ),
          ToPort = 123,
          UserIdGroupPairs = list(
            list(
              Description = "string",
              UserId = "string",
              GroupName = "string",
              GroupId = "string",
              VpcId = "string",
              VpcPeeringConnectionId = "string",
              PeeringStatus = "string"
            )
          )
        )
      ),
      VpcId = "string"
    )
  )
)

Request syntax

svc$describe_stale_security_groups(
  DryRun = TRUE|FALSE,
  MaxResults = 123,
  NextToken = "string",
  VpcId = "string"
)