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.DescribeSecurityGroupRules

Description

Describes one or more of your security group rules.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeSecurityGroupRules Source #

See: newDescribeSecurityGroupRules smart constructor.

Constructors

DescribeSecurityGroupRules' 

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.

  • filters :: Maybe [Filter]

    One or more filters.

    • group-id - The ID of the security group.
    • security-group-rule-id - The ID of the security group rule.
    • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
  • maxResults :: Maybe Natural

    The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value. This value can be between 5 and 1000. If this parameter is not specified, then all results are returned.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • securityGroupRuleIds :: Maybe [Text]

    The IDs of the security group rules.

Instances

Instances details
ToHeaders DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

ToPath DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

ToQuery DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

AWSPager DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

AWSRequest DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Generic DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Associated Types

type Rep DescribeSecurityGroupRules :: Type -> Type #

Read DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Show DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

NFData DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Eq DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Hashable DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

type AWSResponse DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

type Rep DescribeSecurityGroupRules Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

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

newDescribeSecurityGroupRules :: DescribeSecurityGroupRules Source #

Create a value of DescribeSecurityGroupRules 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:DescribeSecurityGroupRules', describeSecurityGroupRules_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:filters:DescribeSecurityGroupRules', describeSecurityGroupRules_filters - One or more filters.

  • group-id - The ID of the security group.
  • security-group-rule-id - The ID of the security group rule.
  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

$sel:maxResults:DescribeSecurityGroupRules', describeSecurityGroupRules_maxResults - The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value. This value can be between 5 and 1000. If this parameter is not specified, then all results are returned.

DescribeSecurityGroupRules, describeSecurityGroupRules_nextToken - The token for the next page of results.

$sel:securityGroupRuleIds:DescribeSecurityGroupRules', describeSecurityGroupRules_securityGroupRuleIds - The IDs of the security group rules.

Request Lenses

describeSecurityGroupRules_dryRun :: Lens' DescribeSecurityGroupRules (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.

describeSecurityGroupRules_filters :: Lens' DescribeSecurityGroupRules (Maybe [Filter]) Source #

One or more filters.

  • group-id - The ID of the security group.
  • security-group-rule-id - The ID of the security group rule.
  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

describeSecurityGroupRules_maxResults :: Lens' DescribeSecurityGroupRules (Maybe Natural) Source #

The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value. This value can be between 5 and 1000. If this parameter is not specified, then all results are returned.

Destructuring the Response

data DescribeSecurityGroupRulesResponse Source #

Constructors

DescribeSecurityGroupRulesResponse' 

Fields

Instances

Instances details
Generic DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Associated Types

type Rep DescribeSecurityGroupRulesResponse :: Type -> Type #

Read DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Show DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

NFData DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

Eq DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

type Rep DescribeSecurityGroupRulesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSecurityGroupRules

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

newDescribeSecurityGroupRulesResponse Source #

Create a value of DescribeSecurityGroupRulesResponse 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:

DescribeSecurityGroupRules, describeSecurityGroupRulesResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:securityGroupRules:DescribeSecurityGroupRulesResponse', describeSecurityGroupRulesResponse_securityGroupRules - Information about security group rules.

$sel:httpStatus:DescribeSecurityGroupRulesResponse', describeSecurityGroupRulesResponse_httpStatus - The response's http status code.

Response Lenses

describeSecurityGroupRulesResponse_nextToken :: Lens' DescribeSecurityGroupRulesResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.