amazonka-ec2-1.3.2: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RevokeSecurityGroupIngress

Contents

Description

Removes one or more ingress rules from a security group. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be removed.

Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

See: AWS API Reference for RevokeSecurityGroupIngress.

Synopsis

Creating a Request

Request Lenses

rsgiFromPort :: Lens' RevokeSecurityGroupIngress (Maybe Int) Source

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use '-1' to specify all ICMP types.

rsgiIPPermissions :: Lens' RevokeSecurityGroupIngress [IPPermission] Source

A set of IP permissions. You can't specify a source security group and a CIDR IP address range.

rsgiIPProtocol :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use '-1' to specify all.

rsgiGroupId :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

The ID of the security group. Required for a security group in a nondefault VPC.

rsgiToPort :: Lens' RevokeSecurityGroupIngress (Maybe Int) Source

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use '-1' to specify all ICMP codes for the ICMP type.

rsgiCIdRIP :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

The CIDR IP address range. You can't specify this parameter when specifying a source security group.

rsgiSourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

EC2-Classic, default VPC
The AWS account ID of the source security group. For EC2-VPC, the source security group must be in the same VPC. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

rsgiGroupName :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

EC2-Classic, default VPC
The name of the security group.

rsgiSourceSecurityGroupName :: Lens' RevokeSecurityGroupIngress (Maybe Text) Source

EC2-Classic, default VPC
The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC.

rsgiDryRun :: Lens' RevokeSecurityGroupIngress (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.

Destructuring the Response

revokeSecurityGroupIngressResponse :: RevokeSecurityGroupIngressResponse Source

Creates a value of RevokeSecurityGroupIngressResponse with the minimum fields required to make a request.