{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.EC2.RevokeSecurityGroupIngress
(
RevokeSecurityGroupIngress (..),
newRevokeSecurityGroupIngress,
revokeSecurityGroupIngress_cidrIp,
revokeSecurityGroupIngress_dryRun,
revokeSecurityGroupIngress_fromPort,
revokeSecurityGroupIngress_groupId,
revokeSecurityGroupIngress_groupName,
revokeSecurityGroupIngress_ipPermissions,
revokeSecurityGroupIngress_ipProtocol,
revokeSecurityGroupIngress_securityGroupRuleIds,
revokeSecurityGroupIngress_sourceSecurityGroupName,
revokeSecurityGroupIngress_sourceSecurityGroupOwnerId,
revokeSecurityGroupIngress_toPort,
RevokeSecurityGroupIngressResponse (..),
newRevokeSecurityGroupIngressResponse,
revokeSecurityGroupIngressResponse_return,
revokeSecurityGroupIngressResponse_unknownIpPermissions,
revokeSecurityGroupIngressResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data RevokeSecurityGroupIngress = RevokeSecurityGroupIngress'
{
RevokeSecurityGroupIngress -> Maybe Text
cidrIp :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
RevokeSecurityGroupIngress -> Maybe Int
fromPort :: Prelude.Maybe Prelude.Int,
RevokeSecurityGroupIngress -> Maybe Text
groupId :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe Text
groupName :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe [IpPermission]
ipPermissions :: Prelude.Maybe [IpPermission],
RevokeSecurityGroupIngress -> Maybe Text
ipProtocol :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe [Text]
securityGroupRuleIds :: Prelude.Maybe [Prelude.Text],
RevokeSecurityGroupIngress -> Maybe Text
sourceSecurityGroupName :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe Text
sourceSecurityGroupOwnerId :: Prelude.Maybe Prelude.Text,
RevokeSecurityGroupIngress -> Maybe Int
toPort :: Prelude.Maybe Prelude.Int
}
deriving (RevokeSecurityGroupIngress -> RevokeSecurityGroupIngress -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RevokeSecurityGroupIngress -> RevokeSecurityGroupIngress -> Bool
$c/= :: RevokeSecurityGroupIngress -> RevokeSecurityGroupIngress -> Bool
== :: RevokeSecurityGroupIngress -> RevokeSecurityGroupIngress -> Bool
$c== :: RevokeSecurityGroupIngress -> RevokeSecurityGroupIngress -> Bool
Prelude.Eq, ReadPrec [RevokeSecurityGroupIngress]
ReadPrec RevokeSecurityGroupIngress
Int -> ReadS RevokeSecurityGroupIngress
ReadS [RevokeSecurityGroupIngress]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RevokeSecurityGroupIngress]
$creadListPrec :: ReadPrec [RevokeSecurityGroupIngress]
readPrec :: ReadPrec RevokeSecurityGroupIngress
$creadPrec :: ReadPrec RevokeSecurityGroupIngress
readList :: ReadS [RevokeSecurityGroupIngress]
$creadList :: ReadS [RevokeSecurityGroupIngress]
readsPrec :: Int -> ReadS RevokeSecurityGroupIngress
$creadsPrec :: Int -> ReadS RevokeSecurityGroupIngress
Prelude.Read, Int -> RevokeSecurityGroupIngress -> ShowS
[RevokeSecurityGroupIngress] -> ShowS
RevokeSecurityGroupIngress -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RevokeSecurityGroupIngress] -> ShowS
$cshowList :: [RevokeSecurityGroupIngress] -> ShowS
show :: RevokeSecurityGroupIngress -> String
$cshow :: RevokeSecurityGroupIngress -> String
showsPrec :: Int -> RevokeSecurityGroupIngress -> ShowS
$cshowsPrec :: Int -> RevokeSecurityGroupIngress -> ShowS
Prelude.Show, forall x.
Rep RevokeSecurityGroupIngress x -> RevokeSecurityGroupIngress
forall x.
RevokeSecurityGroupIngress -> Rep RevokeSecurityGroupIngress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RevokeSecurityGroupIngress x -> RevokeSecurityGroupIngress
$cfrom :: forall x.
RevokeSecurityGroupIngress -> Rep RevokeSecurityGroupIngress x
Prelude.Generic)
newRevokeSecurityGroupIngress ::
RevokeSecurityGroupIngress
newRevokeSecurityGroupIngress :: RevokeSecurityGroupIngress
newRevokeSecurityGroupIngress =
RevokeSecurityGroupIngress'
{ $sel:cidrIp:RevokeSecurityGroupIngress' :: Maybe Text
cidrIp =
forall a. Maybe a
Prelude.Nothing,
$sel:dryRun:RevokeSecurityGroupIngress' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
$sel:fromPort:RevokeSecurityGroupIngress' :: Maybe Int
fromPort = forall a. Maybe a
Prelude.Nothing,
$sel:groupId:RevokeSecurityGroupIngress' :: Maybe Text
groupId = forall a. Maybe a
Prelude.Nothing,
$sel:groupName:RevokeSecurityGroupIngress' :: Maybe Text
groupName = forall a. Maybe a
Prelude.Nothing,
$sel:ipPermissions:RevokeSecurityGroupIngress' :: Maybe [IpPermission]
ipPermissions = forall a. Maybe a
Prelude.Nothing,
$sel:ipProtocol:RevokeSecurityGroupIngress' :: Maybe Text
ipProtocol = forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: Maybe [Text]
securityGroupRuleIds = forall a. Maybe a
Prelude.Nothing,
$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: Maybe Text
sourceSecurityGroupName = forall a. Maybe a
Prelude.Nothing,
$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: Maybe Text
sourceSecurityGroupOwnerId = forall a. Maybe a
Prelude.Nothing,
$sel:toPort:RevokeSecurityGroupIngress' :: Maybe Int
toPort = forall a. Maybe a
Prelude.Nothing
}
revokeSecurityGroupIngress_cidrIp :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_cidrIp :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_cidrIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
cidrIp :: Maybe Text
$sel:cidrIp:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
cidrIp} -> Maybe Text
cidrIp) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:cidrIp:RevokeSecurityGroupIngress' :: Maybe Text
cidrIp = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_dryRun :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Bool)
revokeSecurityGroupIngress_dryRun :: Lens' RevokeSecurityGroupIngress (Maybe Bool)
revokeSecurityGroupIngress_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Bool
a -> RevokeSecurityGroupIngress
s {$sel:dryRun:RevokeSecurityGroupIngress' :: Maybe Bool
dryRun = Maybe Bool
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_fromPort :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Int)
revokeSecurityGroupIngress_fromPort :: Lens' RevokeSecurityGroupIngress (Maybe Int)
revokeSecurityGroupIngress_fromPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Int
fromPort :: Maybe Int
$sel:fromPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
fromPort} -> Maybe Int
fromPort) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Int
a -> RevokeSecurityGroupIngress
s {$sel:fromPort:RevokeSecurityGroupIngress' :: Maybe Int
fromPort = Maybe Int
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_groupId :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_groupId :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_groupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
groupId :: Maybe Text
$sel:groupId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
groupId} -> Maybe Text
groupId) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:groupId:RevokeSecurityGroupIngress' :: Maybe Text
groupId = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_groupName :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_groupName :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_groupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
groupName :: Maybe Text
$sel:groupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
groupName} -> Maybe Text
groupName) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:groupName:RevokeSecurityGroupIngress' :: Maybe Text
groupName = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_ipPermissions :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe [IpPermission])
revokeSecurityGroupIngress_ipPermissions :: Lens' RevokeSecurityGroupIngress (Maybe [IpPermission])
revokeSecurityGroupIngress_ipPermissions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe [IpPermission]
ipPermissions :: Maybe [IpPermission]
$sel:ipPermissions:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [IpPermission]
ipPermissions} -> Maybe [IpPermission]
ipPermissions) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe [IpPermission]
a -> RevokeSecurityGroupIngress
s {$sel:ipPermissions:RevokeSecurityGroupIngress' :: Maybe [IpPermission]
ipPermissions = Maybe [IpPermission]
a} :: RevokeSecurityGroupIngress) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
revokeSecurityGroupIngress_ipProtocol :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_ipProtocol :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_ipProtocol = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
ipProtocol :: Maybe Text
$sel:ipProtocol:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
ipProtocol} -> Maybe Text
ipProtocol) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:ipProtocol:RevokeSecurityGroupIngress' :: Maybe Text
ipProtocol = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_securityGroupRuleIds :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe [Prelude.Text])
revokeSecurityGroupIngress_securityGroupRuleIds :: Lens' RevokeSecurityGroupIngress (Maybe [Text])
revokeSecurityGroupIngress_securityGroupRuleIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe [Text]
securityGroupRuleIds :: Maybe [Text]
$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [Text]
securityGroupRuleIds} -> Maybe [Text]
securityGroupRuleIds) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe [Text]
a -> RevokeSecurityGroupIngress
s {$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: Maybe [Text]
securityGroupRuleIds = Maybe [Text]
a} :: RevokeSecurityGroupIngress) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
revokeSecurityGroupIngress_sourceSecurityGroupName :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_sourceSecurityGroupName :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_sourceSecurityGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
sourceSecurityGroupName :: Maybe Text
$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
sourceSecurityGroupName} -> Maybe Text
sourceSecurityGroupName) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: Maybe Text
sourceSecurityGroupName = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_sourceSecurityGroupOwnerId :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Text)
revokeSecurityGroupIngress_sourceSecurityGroupOwnerId :: Lens' RevokeSecurityGroupIngress (Maybe Text)
revokeSecurityGroupIngress_sourceSecurityGroupOwnerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Text
sourceSecurityGroupOwnerId :: Maybe Text
$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
sourceSecurityGroupOwnerId} -> Maybe Text
sourceSecurityGroupOwnerId) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Text
a -> RevokeSecurityGroupIngress
s {$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: Maybe Text
sourceSecurityGroupOwnerId = Maybe Text
a} :: RevokeSecurityGroupIngress)
revokeSecurityGroupIngress_toPort :: Lens.Lens' RevokeSecurityGroupIngress (Prelude.Maybe Prelude.Int)
revokeSecurityGroupIngress_toPort :: Lens' RevokeSecurityGroupIngress (Maybe Int)
revokeSecurityGroupIngress_toPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngress' {Maybe Int
toPort :: Maybe Int
$sel:toPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
toPort} -> Maybe Int
toPort) (\s :: RevokeSecurityGroupIngress
s@RevokeSecurityGroupIngress' {} Maybe Int
a -> RevokeSecurityGroupIngress
s {$sel:toPort:RevokeSecurityGroupIngress' :: Maybe Int
toPort = Maybe Int
a} :: RevokeSecurityGroupIngress)
instance Core.AWSRequest RevokeSecurityGroupIngress where
type
AWSResponse RevokeSecurityGroupIngress =
RevokeSecurityGroupIngressResponse
request :: (Service -> Service)
-> RevokeSecurityGroupIngress -> Request RevokeSecurityGroupIngress
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy RevokeSecurityGroupIngress
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RevokeSecurityGroupIngress)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Bool
-> Maybe [IpPermission]
-> Int
-> RevokeSecurityGroupIngressResponse
RevokeSecurityGroupIngressResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"return")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"unknownIpPermissionSet"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable RevokeSecurityGroupIngress where
hashWithSalt :: Int -> RevokeSecurityGroupIngress -> Int
hashWithSalt Int
_salt RevokeSecurityGroupIngress' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [IpPermission]
Maybe Text
toPort :: Maybe Int
sourceSecurityGroupOwnerId :: Maybe Text
sourceSecurityGroupName :: Maybe Text
securityGroupRuleIds :: Maybe [Text]
ipProtocol :: Maybe Text
ipPermissions :: Maybe [IpPermission]
groupName :: Maybe Text
groupId :: Maybe Text
fromPort :: Maybe Int
dryRun :: Maybe Bool
cidrIp :: Maybe Text
$sel:toPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [Text]
$sel:ipProtocol:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:ipPermissions:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [IpPermission]
$sel:groupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:groupId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:fromPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:dryRun:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Bool
$sel:cidrIp:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
cidrIp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
fromPort
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
groupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
groupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [IpPermission]
ipPermissions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ipProtocol
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
securityGroupRuleIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceSecurityGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceSecurityGroupOwnerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
toPort
instance Prelude.NFData RevokeSecurityGroupIngress where
rnf :: RevokeSecurityGroupIngress -> ()
rnf RevokeSecurityGroupIngress' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [IpPermission]
Maybe Text
toPort :: Maybe Int
sourceSecurityGroupOwnerId :: Maybe Text
sourceSecurityGroupName :: Maybe Text
securityGroupRuleIds :: Maybe [Text]
ipProtocol :: Maybe Text
ipPermissions :: Maybe [IpPermission]
groupName :: Maybe Text
groupId :: Maybe Text
fromPort :: Maybe Int
dryRun :: Maybe Bool
cidrIp :: Maybe Text
$sel:toPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [Text]
$sel:ipProtocol:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:ipPermissions:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [IpPermission]
$sel:groupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:groupId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:fromPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:dryRun:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Bool
$sel:cidrIp:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
cidrIp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
fromPort
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
groupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
groupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [IpPermission]
ipPermissions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ipProtocol
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
securityGroupRuleIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceSecurityGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceSecurityGroupOwnerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
toPort
instance Data.ToHeaders RevokeSecurityGroupIngress where
toHeaders :: RevokeSecurityGroupIngress -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath RevokeSecurityGroupIngress where
toPath :: RevokeSecurityGroupIngress -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery RevokeSecurityGroupIngress where
toQuery :: RevokeSecurityGroupIngress -> QueryString
toQuery RevokeSecurityGroupIngress' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [IpPermission]
Maybe Text
toPort :: Maybe Int
sourceSecurityGroupOwnerId :: Maybe Text
sourceSecurityGroupName :: Maybe Text
securityGroupRuleIds :: Maybe [Text]
ipProtocol :: Maybe Text
ipPermissions :: Maybe [IpPermission]
groupName :: Maybe Text
groupId :: Maybe Text
fromPort :: Maybe Int
dryRun :: Maybe Bool
cidrIp :: Maybe Text
$sel:toPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:sourceSecurityGroupOwnerId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:sourceSecurityGroupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:securityGroupRuleIds:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [Text]
$sel:ipProtocol:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:ipPermissions:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe [IpPermission]
$sel:groupName:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:groupId:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
$sel:fromPort:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Int
$sel:dryRun:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Bool
$sel:cidrIp:RevokeSecurityGroupIngress' :: RevokeSecurityGroupIngress -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"RevokeSecurityGroupIngress" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
ByteString
"CidrIp" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
cidrIp,
ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
ByteString
"FromPort" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
fromPort,
ByteString
"GroupId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
groupId,
ByteString
"GroupName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
groupName,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"IpPermissions"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [IpPermission]
ipPermissions
),
ByteString
"IpProtocol" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
ipProtocol,
forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"SecurityGroupRuleId"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
securityGroupRuleIds
),
ByteString
"SourceSecurityGroupName"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
sourceSecurityGroupName,
ByteString
"SourceSecurityGroupOwnerId"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
sourceSecurityGroupOwnerId,
ByteString
"ToPort" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
toPort
]
data RevokeSecurityGroupIngressResponse = RevokeSecurityGroupIngressResponse'
{
RevokeSecurityGroupIngressResponse -> Maybe Bool
return' :: Prelude.Maybe Prelude.Bool,
RevokeSecurityGroupIngressResponse -> Maybe [IpPermission]
unknownIpPermissions :: Prelude.Maybe [IpPermission],
RevokeSecurityGroupIngressResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RevokeSecurityGroupIngressResponse
-> RevokeSecurityGroupIngressResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RevokeSecurityGroupIngressResponse
-> RevokeSecurityGroupIngressResponse -> Bool
$c/= :: RevokeSecurityGroupIngressResponse
-> RevokeSecurityGroupIngressResponse -> Bool
== :: RevokeSecurityGroupIngressResponse
-> RevokeSecurityGroupIngressResponse -> Bool
$c== :: RevokeSecurityGroupIngressResponse
-> RevokeSecurityGroupIngressResponse -> Bool
Prelude.Eq, ReadPrec [RevokeSecurityGroupIngressResponse]
ReadPrec RevokeSecurityGroupIngressResponse
Int -> ReadS RevokeSecurityGroupIngressResponse
ReadS [RevokeSecurityGroupIngressResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RevokeSecurityGroupIngressResponse]
$creadListPrec :: ReadPrec [RevokeSecurityGroupIngressResponse]
readPrec :: ReadPrec RevokeSecurityGroupIngressResponse
$creadPrec :: ReadPrec RevokeSecurityGroupIngressResponse
readList :: ReadS [RevokeSecurityGroupIngressResponse]
$creadList :: ReadS [RevokeSecurityGroupIngressResponse]
readsPrec :: Int -> ReadS RevokeSecurityGroupIngressResponse
$creadsPrec :: Int -> ReadS RevokeSecurityGroupIngressResponse
Prelude.Read, Int -> RevokeSecurityGroupIngressResponse -> ShowS
[RevokeSecurityGroupIngressResponse] -> ShowS
RevokeSecurityGroupIngressResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RevokeSecurityGroupIngressResponse] -> ShowS
$cshowList :: [RevokeSecurityGroupIngressResponse] -> ShowS
show :: RevokeSecurityGroupIngressResponse -> String
$cshow :: RevokeSecurityGroupIngressResponse -> String
showsPrec :: Int -> RevokeSecurityGroupIngressResponse -> ShowS
$cshowsPrec :: Int -> RevokeSecurityGroupIngressResponse -> ShowS
Prelude.Show, forall x.
Rep RevokeSecurityGroupIngressResponse x
-> RevokeSecurityGroupIngressResponse
forall x.
RevokeSecurityGroupIngressResponse
-> Rep RevokeSecurityGroupIngressResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RevokeSecurityGroupIngressResponse x
-> RevokeSecurityGroupIngressResponse
$cfrom :: forall x.
RevokeSecurityGroupIngressResponse
-> Rep RevokeSecurityGroupIngressResponse x
Prelude.Generic)
newRevokeSecurityGroupIngressResponse ::
Prelude.Int ->
RevokeSecurityGroupIngressResponse
newRevokeSecurityGroupIngressResponse :: Int -> RevokeSecurityGroupIngressResponse
newRevokeSecurityGroupIngressResponse Int
pHttpStatus_ =
RevokeSecurityGroupIngressResponse'
{ $sel:return':RevokeSecurityGroupIngressResponse' :: Maybe Bool
return' =
forall a. Maybe a
Prelude.Nothing,
$sel:unknownIpPermissions:RevokeSecurityGroupIngressResponse' :: Maybe [IpPermission]
unknownIpPermissions = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RevokeSecurityGroupIngressResponse' :: Int
httpStatus = Int
pHttpStatus_
}
revokeSecurityGroupIngressResponse_return :: Lens.Lens' RevokeSecurityGroupIngressResponse (Prelude.Maybe Prelude.Bool)
revokeSecurityGroupIngressResponse_return :: Lens' RevokeSecurityGroupIngressResponse (Maybe Bool)
revokeSecurityGroupIngressResponse_return = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngressResponse' {Maybe Bool
return' :: Maybe Bool
$sel:return':RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Maybe Bool
return'} -> Maybe Bool
return') (\s :: RevokeSecurityGroupIngressResponse
s@RevokeSecurityGroupIngressResponse' {} Maybe Bool
a -> RevokeSecurityGroupIngressResponse
s {$sel:return':RevokeSecurityGroupIngressResponse' :: Maybe Bool
return' = Maybe Bool
a} :: RevokeSecurityGroupIngressResponse)
revokeSecurityGroupIngressResponse_unknownIpPermissions :: Lens.Lens' RevokeSecurityGroupIngressResponse (Prelude.Maybe [IpPermission])
revokeSecurityGroupIngressResponse_unknownIpPermissions :: Lens' RevokeSecurityGroupIngressResponse (Maybe [IpPermission])
revokeSecurityGroupIngressResponse_unknownIpPermissions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngressResponse' {Maybe [IpPermission]
unknownIpPermissions :: Maybe [IpPermission]
$sel:unknownIpPermissions:RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Maybe [IpPermission]
unknownIpPermissions} -> Maybe [IpPermission]
unknownIpPermissions) (\s :: RevokeSecurityGroupIngressResponse
s@RevokeSecurityGroupIngressResponse' {} Maybe [IpPermission]
a -> RevokeSecurityGroupIngressResponse
s {$sel:unknownIpPermissions:RevokeSecurityGroupIngressResponse' :: Maybe [IpPermission]
unknownIpPermissions = Maybe [IpPermission]
a} :: RevokeSecurityGroupIngressResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
revokeSecurityGroupIngressResponse_httpStatus :: Lens.Lens' RevokeSecurityGroupIngressResponse Prelude.Int
revokeSecurityGroupIngressResponse_httpStatus :: Lens' RevokeSecurityGroupIngressResponse Int
revokeSecurityGroupIngressResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSecurityGroupIngressResponse' {Int
httpStatus :: Int
$sel:httpStatus:RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RevokeSecurityGroupIngressResponse
s@RevokeSecurityGroupIngressResponse' {} Int
a -> RevokeSecurityGroupIngressResponse
s {$sel:httpStatus:RevokeSecurityGroupIngressResponse' :: Int
httpStatus = Int
a} :: RevokeSecurityGroupIngressResponse)
instance
Prelude.NFData
RevokeSecurityGroupIngressResponse
where
rnf :: RevokeSecurityGroupIngressResponse -> ()
rnf RevokeSecurityGroupIngressResponse' {Int
Maybe Bool
Maybe [IpPermission]
httpStatus :: Int
unknownIpPermissions :: Maybe [IpPermission]
return' :: Maybe Bool
$sel:httpStatus:RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Int
$sel:unknownIpPermissions:RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Maybe [IpPermission]
$sel:return':RevokeSecurityGroupIngressResponse' :: RevokeSecurityGroupIngressResponse -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
return'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [IpPermission]
unknownIpPermissions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus