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

Copyright(c) 2013-2016 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.RevokeSecurityGroupEgress

Contents

Description

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.

Synopsis

Creating a Request

data RevokeSecurityGroupEgress Source #

Contains the parameters for RevokeSecurityGroupEgress.

See: revokeSecurityGroupEgress smart constructor.

Instances

Eq RevokeSecurityGroupEgress Source # 
Data RevokeSecurityGroupEgress Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RevokeSecurityGroupEgress -> c RevokeSecurityGroupEgress #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RevokeSecurityGroupEgress #

toConstr :: RevokeSecurityGroupEgress -> Constr #

dataTypeOf :: RevokeSecurityGroupEgress -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RevokeSecurityGroupEgress) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RevokeSecurityGroupEgress) #

gmapT :: (forall b. Data b => b -> b) -> RevokeSecurityGroupEgress -> RevokeSecurityGroupEgress #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RevokeSecurityGroupEgress -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RevokeSecurityGroupEgress -> r #

gmapQ :: (forall d. Data d => d -> u) -> RevokeSecurityGroupEgress -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RevokeSecurityGroupEgress -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgress -> m RevokeSecurityGroupEgress #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgress -> m RevokeSecurityGroupEgress #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgress -> m RevokeSecurityGroupEgress #

Read RevokeSecurityGroupEgress Source # 
Show RevokeSecurityGroupEgress Source # 
Generic RevokeSecurityGroupEgress Source # 
Hashable RevokeSecurityGroupEgress Source # 
NFData RevokeSecurityGroupEgress Source # 
AWSRequest RevokeSecurityGroupEgress Source # 
ToPath RevokeSecurityGroupEgress Source # 
ToHeaders RevokeSecurityGroupEgress Source # 
ToQuery RevokeSecurityGroupEgress Source # 
type Rep RevokeSecurityGroupEgress Source # 
type Rep RevokeSecurityGroupEgress = D1 (MetaData "RevokeSecurityGroupEgress" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" False) (C1 (MetaCons "RevokeSecurityGroupEgress'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rsgeFromPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_rsgeIPPermissions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [IPPermission])))) ((:*:) (S1 (MetaSel (Just Symbol "_rsgeIPProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rsgeToPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rsgeCIdRIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_rsgeSourceSecurityGroupOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_rsgeSourceSecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_rsgeDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_rsgeGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Rs RevokeSecurityGroupEgress Source # 

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.

Instances

Eq RevokeSecurityGroupEgressResponse Source # 
Data RevokeSecurityGroupEgressResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RevokeSecurityGroupEgressResponse -> c RevokeSecurityGroupEgressResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RevokeSecurityGroupEgressResponse #

toConstr :: RevokeSecurityGroupEgressResponse -> Constr #

dataTypeOf :: RevokeSecurityGroupEgressResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RevokeSecurityGroupEgressResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RevokeSecurityGroupEgressResponse) #

gmapT :: (forall b. Data b => b -> b) -> RevokeSecurityGroupEgressResponse -> RevokeSecurityGroupEgressResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RevokeSecurityGroupEgressResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RevokeSecurityGroupEgressResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> RevokeSecurityGroupEgressResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RevokeSecurityGroupEgressResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgressResponse -> m RevokeSecurityGroupEgressResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgressResponse -> m RevokeSecurityGroupEgressResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RevokeSecurityGroupEgressResponse -> m RevokeSecurityGroupEgressResponse #

Read RevokeSecurityGroupEgressResponse Source # 
Show RevokeSecurityGroupEgressResponse Source # 
Generic RevokeSecurityGroupEgressResponse Source # 
NFData RevokeSecurityGroupEgressResponse Source # 
type Rep RevokeSecurityGroupEgressResponse Source # 
type Rep RevokeSecurityGroupEgressResponse = D1 (MetaData "RevokeSecurityGroupEgressResponse" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" False) (C1 (MetaCons "RevokeSecurityGroupEgressResponse'" PrefixI False) U1)