amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeStaleSecurityGroups

Description

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.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeStaleSecurityGroups Source #

See: newDescribeStaleSecurityGroups smart constructor.

Constructors

DescribeStaleSecurityGroups' 

Fields

  • dryRun :: Maybe Bool

    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 :: Maybe Natural

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

  • nextToken :: Maybe Text

    The token for the next set of items to return. (You received this token from a prior call.)

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

ToPath DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

ToQuery DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

AWSPager DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

AWSRequest DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Generic DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Associated Types

type Rep DescribeStaleSecurityGroups :: Type -> Type #

Read DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Show DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

NFData DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Eq DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Hashable DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

type AWSResponse DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

type Rep DescribeStaleSecurityGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

type Rep DescribeStaleSecurityGroups = D1 ('MetaData "DescribeStaleSecurityGroups" "Amazonka.EC2.DescribeStaleSecurityGroups" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeStaleSecurityGroups'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDescribeStaleSecurityGroups Source #

Create a value of DescribeStaleSecurityGroups with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeStaleSecurityGroups', describeStaleSecurityGroups_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.

$sel:maxResults:DescribeStaleSecurityGroups', describeStaleSecurityGroups_maxResults - The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

DescribeStaleSecurityGroups, describeStaleSecurityGroups_nextToken - The token for the next set of items to return. (You received this token from a prior call.)

DescribeStaleSecurityGroups, describeStaleSecurityGroups_vpcId - The ID of the VPC.

Request Lenses

describeStaleSecurityGroups_dryRun :: Lens' DescribeStaleSecurityGroups (Maybe Bool) Source #

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.

describeStaleSecurityGroups_maxResults :: Lens' DescribeStaleSecurityGroups (Maybe Natural) Source #

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

describeStaleSecurityGroups_nextToken :: Lens' DescribeStaleSecurityGroups (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a prior call.)

Destructuring the Response

data DescribeStaleSecurityGroupsResponse Source #

Constructors

DescribeStaleSecurityGroupsResponse' 

Fields

Instances

Instances details
Generic DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Read DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Show DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

NFData DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

Eq DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

type Rep DescribeStaleSecurityGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeStaleSecurityGroups

type Rep DescribeStaleSecurityGroupsResponse = D1 ('MetaData "DescribeStaleSecurityGroupsResponse" "Amazonka.EC2.DescribeStaleSecurityGroups" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeStaleSecurityGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "staleSecurityGroupSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StaleSecurityGroup])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeStaleSecurityGroupsResponse Source #

Create a value of DescribeStaleSecurityGroupsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeStaleSecurityGroups, describeStaleSecurityGroupsResponse_nextToken - The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

$sel:staleSecurityGroupSet:DescribeStaleSecurityGroupsResponse', describeStaleSecurityGroupsResponse_staleSecurityGroupSet - Information about the stale security groups.

$sel:httpStatus:DescribeStaleSecurityGroupsResponse', describeStaleSecurityGroupsResponse_httpStatus - The response's http status code.

Response Lenses

describeStaleSecurityGroupsResponse_nextToken :: Lens' DescribeStaleSecurityGroupsResponse (Maybe Text) Source #

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.