Skip to content

Describe Stale Security Groups

ec2_describe_stale_security_groups R Documentation

Describes the stale security group rules for security groups in a specified VPC

Description

Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peered VPC. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.

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",
              GroupId = "string",
              GroupName = "string",
              PeeringStatus = "string",
              UserId = "string",
              VpcId = "string",
              VpcPeeringConnectionId = "string"
            )
          )
        )
      ),
      StaleIpPermissionsEgress = list(
        list(
          FromPort = 123,
          IpProtocol = "string",
          IpRanges = list(
            "string"
          ),
          PrefixListIds = list(
            "string"
          ),
          ToPort = 123,
          UserIdGroupPairs = list(
            list(
              Description = "string",
              GroupId = "string",
              GroupName = "string",
              PeeringStatus = "string",
              UserId = "string",
              VpcId = "string",
              VpcPeeringConnectionId = "string"
            )
          )
        )
      ),
      VpcId = "string"
    )
  )
)

Request syntax

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