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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

Each rule consists of the protocol and the IPv4 or IPv6 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. If the security group rule has a description, you do not have to specify the description to revoke the rule.

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

Synopsis

Creating a Request

revokeSecurityGroupEgress #

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:

  • rsgeFromPort - Not supported. Use a set of IP permissions to specify the port.
  • rsgeIPPermissions - One or more sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.
  • rsgeIPProtocol - Not supported. Use a set of IP permissions to specify the protocol name or number.
  • rsgeToPort - Not supported. Use a set of IP permissions to specify the port.
  • rsgeCidrIP - Not supported. Use a set of IP permissions to specify the CIDR.
  • rsgeSourceSecurityGroupOwnerId - Not supported. Use a set of IP permissions to specify a destination security group.
  • rsgeSourceSecurityGroupName - Not supported. Use a set of IP permissions to specify a destination security group.
  • rsgeDryRun - 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 - The ID of the security group.

data RevokeSecurityGroupEgress #

Contains the parameters for RevokeSecurityGroupEgress.

See: revokeSecurityGroupEgress smart constructor.

Instances

Eq RevokeSecurityGroupEgress # 
Data RevokeSecurityGroupEgress # 

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 # 
Show RevokeSecurityGroupEgress # 
Generic RevokeSecurityGroupEgress # 
Hashable RevokeSecurityGroupEgress # 
NFData RevokeSecurityGroupEgress # 
AWSRequest RevokeSecurityGroupEgress # 
ToHeaders RevokeSecurityGroupEgress # 
ToPath RevokeSecurityGroupEgress # 
ToQuery RevokeSecurityGroupEgress # 
type Rep RevokeSecurityGroupEgress # 
type Rep RevokeSecurityGroupEgress = D1 * (MetaData "RevokeSecurityGroupEgress" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

rsgeFromPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) #

Not supported. Use a set of IP permissions to specify the port.

rsgeIPPermissions :: Lens' RevokeSecurityGroupEgress [IPPermission] #

One or more sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.

rsgeIPProtocol :: Lens' RevokeSecurityGroupEgress (Maybe Text) #

Not supported. Use a set of IP permissions to specify the protocol name or number.

rsgeToPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) #

Not supported. Use a set of IP permissions to specify the port.

rsgeCidrIP :: Lens' RevokeSecurityGroupEgress (Maybe Text) #

Not supported. Use a set of IP permissions to specify the CIDR.

rsgeSourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupEgress (Maybe Text) #

Not supported. Use a set of IP permissions to specify a destination security group.

rsgeSourceSecurityGroupName :: Lens' RevokeSecurityGroupEgress (Maybe Text) #

Not supported. Use a set of IP permissions to specify a destination security group.

rsgeDryRun :: Lens' RevokeSecurityGroupEgress (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 .

rsgeGroupId :: Lens' RevokeSecurityGroupEgress Text #

The ID of the security group.

Destructuring the Response

revokeSecurityGroupEgressResponse :: RevokeSecurityGroupEgressResponse #

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

data RevokeSecurityGroupEgressResponse #

See: revokeSecurityGroupEgressResponse smart constructor.

Instances

Eq RevokeSecurityGroupEgressResponse # 
Data RevokeSecurityGroupEgressResponse # 

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 # 
Show RevokeSecurityGroupEgressResponse # 
Generic RevokeSecurityGroupEgressResponse # 
NFData RevokeSecurityGroupEgressResponse # 
type Rep RevokeSecurityGroupEgressResponse # 
type Rep RevokeSecurityGroupEgressResponse = D1 * (MetaData "RevokeSecurityGroupEgressResponse" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "RevokeSecurityGroupEgressResponse'" PrefixI False) (U1 *))