Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- EC2-VPC only
- Removes one or more egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be revoked.
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.
- revokeSecurityGroupEgress :: Text -> RevokeSecurityGroupEgress
- data RevokeSecurityGroupEgress
- rsgeFromPort :: Lens' RevokeSecurityGroupEgress (Maybe Int)
- rsgeIPPermissions :: Lens' RevokeSecurityGroupEgress [IPPermission]
- rsgeIPProtocol :: Lens' RevokeSecurityGroupEgress (Maybe Text)
- rsgeToPort :: Lens' RevokeSecurityGroupEgress (Maybe Int)
- rsgeCIdRIP :: Lens' RevokeSecurityGroupEgress (Maybe Text)
- rsgeSourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupEgress (Maybe Text)
- rsgeSourceSecurityGroupName :: Lens' RevokeSecurityGroupEgress (Maybe Text)
- rsgeDryRun :: Lens' RevokeSecurityGroupEgress (Maybe Bool)
- rsgeGroupId :: Lens' RevokeSecurityGroupEgress Text
- revokeSecurityGroupEgressResponse :: RevokeSecurityGroupEgressResponse
- data RevokeSecurityGroupEgressResponse
Creating a Request
revokeSecurityGroupEgress Source #
Creates a value of RevokeSecurityGroupEgress
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RevokeSecurityGroupEgress Source #
Contains the parameters for RevokeSecurityGroupEgress.
See: revokeSecurityGroupEgress
smart constructor.
Request Lenses
rsgeFromPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) Source #
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
rsgeIPPermissions :: Lens' RevokeSecurityGroupEgress [IPPermission] Source #
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
rsgeIPProtocol :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
rsgeToPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) Source #
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
rsgeCIdRIP :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
rsgeSourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #
The AWS account number for a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
rsgeSourceSecurityGroupName :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #
The name of a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
rsgeDryRun :: Lens' RevokeSecurityGroupEgress (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
.
rsgeGroupId :: Lens' RevokeSecurityGroupEgress Text Source #
The ID of the security group.
Destructuring the Response
revokeSecurityGroupEgressResponse :: RevokeSecurityGroupEgressResponse Source #
Creates a value of RevokeSecurityGroupEgressResponse
with the minimum fields required to make a request.
data RevokeSecurityGroupEgressResponse Source #
See: revokeSecurityGroupEgressResponse
smart constructor.