amazonka-ec2-1.6.1: 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 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:

  • 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 Source #

Contains the parameters for RevokeSecurityGroupEgress.

See: revokeSecurityGroupEgress smart constructor.

Instances
Eq RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Data RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Show RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Generic RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Associated Types

type Rep RevokeSecurityGroupEgress :: Type -> Type #

Hashable RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

AWSRequest RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Associated Types

type Rs RevokeSecurityGroupEgress :: Type #

ToHeaders RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

ToPath RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

ToQuery RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

NFData RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

type Rep RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

type Rep RevokeSecurityGroupEgress = D1 (MetaData "RevokeSecurityGroupEgress" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RevokeSecurityGroupEgress'" PrefixI True) (((S1 (MetaSel (Just "_rsgeFromPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_rsgeIPPermissions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [IPPermission]))) :*: (S1 (MetaSel (Just "_rsgeIPProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rsgeToPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 (MetaSel (Just "_rsgeCidrIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rsgeSourceSecurityGroupOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rsgeSourceSecurityGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rsgeDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_rsgeGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs RevokeSecurityGroupEgress Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Request Lenses

rsgeFromPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) Source #

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

rsgeIPPermissions :: Lens' RevokeSecurityGroupEgress [IPPermission] Source #

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) Source #

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

rsgeToPort :: Lens' RevokeSecurityGroupEgress (Maybe Int) Source #

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

rsgeCidrIP :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #

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

rsgeSourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #

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

rsgeSourceSecurityGroupName :: Lens' RevokeSecurityGroupEgress (Maybe Text) Source #

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

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 # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Data RevokeSecurityGroupEgressResponse Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

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 # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Show RevokeSecurityGroupEgressResponse Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Generic RevokeSecurityGroupEgressResponse Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

Associated Types

type Rep RevokeSecurityGroupEgressResponse :: Type -> Type #

NFData RevokeSecurityGroupEgressResponse Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

type Rep RevokeSecurityGroupEgressResponse Source # 
Instance details

Defined in Network.AWS.EC2.RevokeSecurityGroupEgress

type Rep RevokeSecurityGroupEgressResponse = D1 (MetaData "RevokeSecurityGroupEgressResponse" "Network.AWS.EC2.RevokeSecurityGroupEgress" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "RevokeSecurityGroupEgressResponse'" PrefixI False) (U1 :: Type -> Type))