{-# 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.RDS.AuthorizeDBSecurityGroupIngress
(
AuthorizeDBSecurityGroupIngress (..),
newAuthorizeDBSecurityGroupIngress,
authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId,
authorizeDBSecurityGroupIngress_eC2SecurityGroupName,
authorizeDBSecurityGroupIngress_cidrip,
authorizeDBSecurityGroupIngress_eC2SecurityGroupId,
authorizeDBSecurityGroupIngress_dbSecurityGroupName,
AuthorizeDBSecurityGroupIngressResponse (..),
newAuthorizeDBSecurityGroupIngressResponse,
authorizeDBSecurityGroupIngressResponse_dbSecurityGroup,
authorizeDBSecurityGroupIngressResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AuthorizeDBSecurityGroupIngress = AuthorizeDBSecurityGroupIngress'
{
AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupOwnerId :: Prelude.Maybe Prelude.Text,
AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupName :: Prelude.Maybe Prelude.Text,
AuthorizeDBSecurityGroupIngress -> Maybe Text
cidrip :: Prelude.Maybe Prelude.Text,
AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupId :: Prelude.Maybe Prelude.Text,
AuthorizeDBSecurityGroupIngress -> Text
dbSecurityGroupName :: Prelude.Text
}
deriving (AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool
(AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool)
-> (AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool)
-> Eq AuthorizeDBSecurityGroupIngress
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool
$c/= :: AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool
== :: AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool
$c== :: AuthorizeDBSecurityGroupIngress
-> AuthorizeDBSecurityGroupIngress -> Bool
Prelude.Eq, ReadPrec [AuthorizeDBSecurityGroupIngress]
ReadPrec AuthorizeDBSecurityGroupIngress
Int -> ReadS AuthorizeDBSecurityGroupIngress
ReadS [AuthorizeDBSecurityGroupIngress]
(Int -> ReadS AuthorizeDBSecurityGroupIngress)
-> ReadS [AuthorizeDBSecurityGroupIngress]
-> ReadPrec AuthorizeDBSecurityGroupIngress
-> ReadPrec [AuthorizeDBSecurityGroupIngress]
-> Read AuthorizeDBSecurityGroupIngress
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthorizeDBSecurityGroupIngress]
$creadListPrec :: ReadPrec [AuthorizeDBSecurityGroupIngress]
readPrec :: ReadPrec AuthorizeDBSecurityGroupIngress
$creadPrec :: ReadPrec AuthorizeDBSecurityGroupIngress
readList :: ReadS [AuthorizeDBSecurityGroupIngress]
$creadList :: ReadS [AuthorizeDBSecurityGroupIngress]
readsPrec :: Int -> ReadS AuthorizeDBSecurityGroupIngress
$creadsPrec :: Int -> ReadS AuthorizeDBSecurityGroupIngress
Prelude.Read, Int -> AuthorizeDBSecurityGroupIngress -> ShowS
[AuthorizeDBSecurityGroupIngress] -> ShowS
AuthorizeDBSecurityGroupIngress -> String
(Int -> AuthorizeDBSecurityGroupIngress -> ShowS)
-> (AuthorizeDBSecurityGroupIngress -> String)
-> ([AuthorizeDBSecurityGroupIngress] -> ShowS)
-> Show AuthorizeDBSecurityGroupIngress
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthorizeDBSecurityGroupIngress] -> ShowS
$cshowList :: [AuthorizeDBSecurityGroupIngress] -> ShowS
show :: AuthorizeDBSecurityGroupIngress -> String
$cshow :: AuthorizeDBSecurityGroupIngress -> String
showsPrec :: Int -> AuthorizeDBSecurityGroupIngress -> ShowS
$cshowsPrec :: Int -> AuthorizeDBSecurityGroupIngress -> ShowS
Prelude.Show, (forall x.
AuthorizeDBSecurityGroupIngress
-> Rep AuthorizeDBSecurityGroupIngress x)
-> (forall x.
Rep AuthorizeDBSecurityGroupIngress x
-> AuthorizeDBSecurityGroupIngress)
-> Generic AuthorizeDBSecurityGroupIngress
forall x.
Rep AuthorizeDBSecurityGroupIngress x
-> AuthorizeDBSecurityGroupIngress
forall x.
AuthorizeDBSecurityGroupIngress
-> Rep AuthorizeDBSecurityGroupIngress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AuthorizeDBSecurityGroupIngress x
-> AuthorizeDBSecurityGroupIngress
$cfrom :: forall x.
AuthorizeDBSecurityGroupIngress
-> Rep AuthorizeDBSecurityGroupIngress x
Prelude.Generic)
newAuthorizeDBSecurityGroupIngress ::
Prelude.Text ->
AuthorizeDBSecurityGroupIngress
newAuthorizeDBSecurityGroupIngress :: Text -> AuthorizeDBSecurityGroupIngress
newAuthorizeDBSecurityGroupIngress
Text
pDBSecurityGroupName_ =
AuthorizeDBSecurityGroupIngress' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress'
{ $sel:eC2SecurityGroupOwnerId:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupOwnerId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eC2SecurityGroupName:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cidrip:AuthorizeDBSecurityGroupIngress' :: Maybe Text
cidrip = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eC2SecurityGroupId:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbSecurityGroupName:AuthorizeDBSecurityGroupIngress' :: Text
dbSecurityGroupName =
Text
pDBSecurityGroupName_
}
authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens.Lens' AuthorizeDBSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: (Maybe Text -> f (Maybe Text))
-> AuthorizeDBSecurityGroupIngress
-> f AuthorizeDBSecurityGroupIngress
authorizeDBSecurityGroupIngress_eC2SecurityGroupOwnerId = (AuthorizeDBSecurityGroupIngress -> Maybe Text)
-> (AuthorizeDBSecurityGroupIngress
-> Maybe Text -> AuthorizeDBSecurityGroupIngress)
-> Lens
AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngress' {Maybe Text
eC2SecurityGroupOwnerId :: Maybe Text
$sel:eC2SecurityGroupOwnerId:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupOwnerId} -> Maybe Text
eC2SecurityGroupOwnerId) (\s :: AuthorizeDBSecurityGroupIngress
s@AuthorizeDBSecurityGroupIngress' {} Maybe Text
a -> AuthorizeDBSecurityGroupIngress
s {$sel:eC2SecurityGroupOwnerId:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupOwnerId = Maybe Text
a} :: AuthorizeDBSecurityGroupIngress)
authorizeDBSecurityGroupIngress_eC2SecurityGroupName :: Lens.Lens' AuthorizeDBSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeDBSecurityGroupIngress_eC2SecurityGroupName :: (Maybe Text -> f (Maybe Text))
-> AuthorizeDBSecurityGroupIngress
-> f AuthorizeDBSecurityGroupIngress
authorizeDBSecurityGroupIngress_eC2SecurityGroupName = (AuthorizeDBSecurityGroupIngress -> Maybe Text)
-> (AuthorizeDBSecurityGroupIngress
-> Maybe Text -> AuthorizeDBSecurityGroupIngress)
-> Lens
AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngress' {Maybe Text
eC2SecurityGroupName :: Maybe Text
$sel:eC2SecurityGroupName:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupName} -> Maybe Text
eC2SecurityGroupName) (\s :: AuthorizeDBSecurityGroupIngress
s@AuthorizeDBSecurityGroupIngress' {} Maybe Text
a -> AuthorizeDBSecurityGroupIngress
s {$sel:eC2SecurityGroupName:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupName = Maybe Text
a} :: AuthorizeDBSecurityGroupIngress)
authorizeDBSecurityGroupIngress_cidrip :: Lens.Lens' AuthorizeDBSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeDBSecurityGroupIngress_cidrip :: (Maybe Text -> f (Maybe Text))
-> AuthorizeDBSecurityGroupIngress
-> f AuthorizeDBSecurityGroupIngress
authorizeDBSecurityGroupIngress_cidrip = (AuthorizeDBSecurityGroupIngress -> Maybe Text)
-> (AuthorizeDBSecurityGroupIngress
-> Maybe Text -> AuthorizeDBSecurityGroupIngress)
-> Lens
AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngress' {Maybe Text
cidrip :: Maybe Text
$sel:cidrip:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
cidrip} -> Maybe Text
cidrip) (\s :: AuthorizeDBSecurityGroupIngress
s@AuthorizeDBSecurityGroupIngress' {} Maybe Text
a -> AuthorizeDBSecurityGroupIngress
s {$sel:cidrip:AuthorizeDBSecurityGroupIngress' :: Maybe Text
cidrip = Maybe Text
a} :: AuthorizeDBSecurityGroupIngress)
authorizeDBSecurityGroupIngress_eC2SecurityGroupId :: Lens.Lens' AuthorizeDBSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeDBSecurityGroupIngress_eC2SecurityGroupId :: (Maybe Text -> f (Maybe Text))
-> AuthorizeDBSecurityGroupIngress
-> f AuthorizeDBSecurityGroupIngress
authorizeDBSecurityGroupIngress_eC2SecurityGroupId = (AuthorizeDBSecurityGroupIngress -> Maybe Text)
-> (AuthorizeDBSecurityGroupIngress
-> Maybe Text -> AuthorizeDBSecurityGroupIngress)
-> Lens
AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngress' {Maybe Text
eC2SecurityGroupId :: Maybe Text
$sel:eC2SecurityGroupId:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
eC2SecurityGroupId} -> Maybe Text
eC2SecurityGroupId) (\s :: AuthorizeDBSecurityGroupIngress
s@AuthorizeDBSecurityGroupIngress' {} Maybe Text
a -> AuthorizeDBSecurityGroupIngress
s {$sel:eC2SecurityGroupId:AuthorizeDBSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupId = Maybe Text
a} :: AuthorizeDBSecurityGroupIngress)
authorizeDBSecurityGroupIngress_dbSecurityGroupName :: Lens.Lens' AuthorizeDBSecurityGroupIngress Prelude.Text
authorizeDBSecurityGroupIngress_dbSecurityGroupName :: (Text -> f Text)
-> AuthorizeDBSecurityGroupIngress
-> f AuthorizeDBSecurityGroupIngress
authorizeDBSecurityGroupIngress_dbSecurityGroupName = (AuthorizeDBSecurityGroupIngress -> Text)
-> (AuthorizeDBSecurityGroupIngress
-> Text -> AuthorizeDBSecurityGroupIngress)
-> Lens
AuthorizeDBSecurityGroupIngress
AuthorizeDBSecurityGroupIngress
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngress' {Text
dbSecurityGroupName :: Text
$sel:dbSecurityGroupName:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Text
dbSecurityGroupName} -> Text
dbSecurityGroupName) (\s :: AuthorizeDBSecurityGroupIngress
s@AuthorizeDBSecurityGroupIngress' {} Text
a -> AuthorizeDBSecurityGroupIngress
s {$sel:dbSecurityGroupName:AuthorizeDBSecurityGroupIngress' :: Text
dbSecurityGroupName = Text
a} :: AuthorizeDBSecurityGroupIngress)
instance
Core.AWSRequest
AuthorizeDBSecurityGroupIngress
where
type
AWSResponse AuthorizeDBSecurityGroupIngress =
AuthorizeDBSecurityGroupIngressResponse
request :: AuthorizeDBSecurityGroupIngress
-> Request AuthorizeDBSecurityGroupIngress
request = Service
-> AuthorizeDBSecurityGroupIngress
-> Request AuthorizeDBSecurityGroupIngress
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy AuthorizeDBSecurityGroupIngress
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse AuthorizeDBSecurityGroupIngress)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse AuthorizeDBSecurityGroupIngress))
-> Logger
-> Service
-> Proxy AuthorizeDBSecurityGroupIngress
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse AuthorizeDBSecurityGroupIngress)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"AuthorizeDBSecurityGroupIngressResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DBSecurityGroup
-> Int -> AuthorizeDBSecurityGroupIngressResponse
AuthorizeDBSecurityGroupIngressResponse'
(Maybe DBSecurityGroup
-> Int -> AuthorizeDBSecurityGroupIngressResponse)
-> Either String (Maybe DBSecurityGroup)
-> Either String (Int -> AuthorizeDBSecurityGroupIngressResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBSecurityGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBSecurityGroup")
Either String (Int -> AuthorizeDBSecurityGroupIngressResponse)
-> Either String Int
-> Either String AuthorizeDBSecurityGroupIngressResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
AuthorizeDBSecurityGroupIngress
instance
Prelude.NFData
AuthorizeDBSecurityGroupIngress
instance
Core.ToHeaders
AuthorizeDBSecurityGroupIngress
where
toHeaders :: AuthorizeDBSecurityGroupIngress -> ResponseHeaders
toHeaders = ResponseHeaders
-> AuthorizeDBSecurityGroupIngress -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath AuthorizeDBSecurityGroupIngress where
toPath :: AuthorizeDBSecurityGroupIngress -> ByteString
toPath = ByteString -> AuthorizeDBSecurityGroupIngress -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery AuthorizeDBSecurityGroupIngress where
toQuery :: AuthorizeDBSecurityGroupIngress -> QueryString
toQuery AuthorizeDBSecurityGroupIngress' {Maybe Text
Text
dbSecurityGroupName :: Text
eC2SecurityGroupId :: Maybe Text
cidrip :: Maybe Text
eC2SecurityGroupName :: Maybe Text
eC2SecurityGroupOwnerId :: Maybe Text
$sel:dbSecurityGroupName:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Text
$sel:eC2SecurityGroupId:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
$sel:cidrip:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
$sel:eC2SecurityGroupName:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
$sel:eC2SecurityGroupOwnerId:AuthorizeDBSecurityGroupIngress' :: AuthorizeDBSecurityGroupIngress -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"AuthorizeDBSecurityGroupIngress" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"EC2SecurityGroupOwnerId"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eC2SecurityGroupOwnerId,
ByteString
"EC2SecurityGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eC2SecurityGroupName,
ByteString
"CIDRIP" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cidrip,
ByteString
"EC2SecurityGroupId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eC2SecurityGroupId,
ByteString
"DBSecurityGroupName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbSecurityGroupName
]
data AuthorizeDBSecurityGroupIngressResponse = AuthorizeDBSecurityGroupIngressResponse'
{ AuthorizeDBSecurityGroupIngressResponse -> Maybe DBSecurityGroup
dbSecurityGroup :: Prelude.Maybe DBSecurityGroup,
AuthorizeDBSecurityGroupIngressResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool
(AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool)
-> (AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool)
-> Eq AuthorizeDBSecurityGroupIngressResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool
$c/= :: AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool
== :: AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool
$c== :: AuthorizeDBSecurityGroupIngressResponse
-> AuthorizeDBSecurityGroupIngressResponse -> Bool
Prelude.Eq, ReadPrec [AuthorizeDBSecurityGroupIngressResponse]
ReadPrec AuthorizeDBSecurityGroupIngressResponse
Int -> ReadS AuthorizeDBSecurityGroupIngressResponse
ReadS [AuthorizeDBSecurityGroupIngressResponse]
(Int -> ReadS AuthorizeDBSecurityGroupIngressResponse)
-> ReadS [AuthorizeDBSecurityGroupIngressResponse]
-> ReadPrec AuthorizeDBSecurityGroupIngressResponse
-> ReadPrec [AuthorizeDBSecurityGroupIngressResponse]
-> Read AuthorizeDBSecurityGroupIngressResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthorizeDBSecurityGroupIngressResponse]
$creadListPrec :: ReadPrec [AuthorizeDBSecurityGroupIngressResponse]
readPrec :: ReadPrec AuthorizeDBSecurityGroupIngressResponse
$creadPrec :: ReadPrec AuthorizeDBSecurityGroupIngressResponse
readList :: ReadS [AuthorizeDBSecurityGroupIngressResponse]
$creadList :: ReadS [AuthorizeDBSecurityGroupIngressResponse]
readsPrec :: Int -> ReadS AuthorizeDBSecurityGroupIngressResponse
$creadsPrec :: Int -> ReadS AuthorizeDBSecurityGroupIngressResponse
Prelude.Read, Int -> AuthorizeDBSecurityGroupIngressResponse -> ShowS
[AuthorizeDBSecurityGroupIngressResponse] -> ShowS
AuthorizeDBSecurityGroupIngressResponse -> String
(Int -> AuthorizeDBSecurityGroupIngressResponse -> ShowS)
-> (AuthorizeDBSecurityGroupIngressResponse -> String)
-> ([AuthorizeDBSecurityGroupIngressResponse] -> ShowS)
-> Show AuthorizeDBSecurityGroupIngressResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthorizeDBSecurityGroupIngressResponse] -> ShowS
$cshowList :: [AuthorizeDBSecurityGroupIngressResponse] -> ShowS
show :: AuthorizeDBSecurityGroupIngressResponse -> String
$cshow :: AuthorizeDBSecurityGroupIngressResponse -> String
showsPrec :: Int -> AuthorizeDBSecurityGroupIngressResponse -> ShowS
$cshowsPrec :: Int -> AuthorizeDBSecurityGroupIngressResponse -> ShowS
Prelude.Show, (forall x.
AuthorizeDBSecurityGroupIngressResponse
-> Rep AuthorizeDBSecurityGroupIngressResponse x)
-> (forall x.
Rep AuthorizeDBSecurityGroupIngressResponse x
-> AuthorizeDBSecurityGroupIngressResponse)
-> Generic AuthorizeDBSecurityGroupIngressResponse
forall x.
Rep AuthorizeDBSecurityGroupIngressResponse x
-> AuthorizeDBSecurityGroupIngressResponse
forall x.
AuthorizeDBSecurityGroupIngressResponse
-> Rep AuthorizeDBSecurityGroupIngressResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AuthorizeDBSecurityGroupIngressResponse x
-> AuthorizeDBSecurityGroupIngressResponse
$cfrom :: forall x.
AuthorizeDBSecurityGroupIngressResponse
-> Rep AuthorizeDBSecurityGroupIngressResponse x
Prelude.Generic)
newAuthorizeDBSecurityGroupIngressResponse ::
Prelude.Int ->
AuthorizeDBSecurityGroupIngressResponse
newAuthorizeDBSecurityGroupIngressResponse :: Int -> AuthorizeDBSecurityGroupIngressResponse
newAuthorizeDBSecurityGroupIngressResponse
Int
pHttpStatus_ =
AuthorizeDBSecurityGroupIngressResponse' :: Maybe DBSecurityGroup
-> Int -> AuthorizeDBSecurityGroupIngressResponse
AuthorizeDBSecurityGroupIngressResponse'
{ $sel:dbSecurityGroup:AuthorizeDBSecurityGroupIngressResponse' :: Maybe DBSecurityGroup
dbSecurityGroup =
Maybe DBSecurityGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AuthorizeDBSecurityGroupIngressResponse' :: Int
httpStatus = Int
pHttpStatus_
}
authorizeDBSecurityGroupIngressResponse_dbSecurityGroup :: Lens.Lens' AuthorizeDBSecurityGroupIngressResponse (Prelude.Maybe DBSecurityGroup)
authorizeDBSecurityGroupIngressResponse_dbSecurityGroup :: (Maybe DBSecurityGroup -> f (Maybe DBSecurityGroup))
-> AuthorizeDBSecurityGroupIngressResponse
-> f AuthorizeDBSecurityGroupIngressResponse
authorizeDBSecurityGroupIngressResponse_dbSecurityGroup = (AuthorizeDBSecurityGroupIngressResponse -> Maybe DBSecurityGroup)
-> (AuthorizeDBSecurityGroupIngressResponse
-> Maybe DBSecurityGroup
-> AuthorizeDBSecurityGroupIngressResponse)
-> Lens
AuthorizeDBSecurityGroupIngressResponse
AuthorizeDBSecurityGroupIngressResponse
(Maybe DBSecurityGroup)
(Maybe DBSecurityGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngressResponse' {Maybe DBSecurityGroup
dbSecurityGroup :: Maybe DBSecurityGroup
$sel:dbSecurityGroup:AuthorizeDBSecurityGroupIngressResponse' :: AuthorizeDBSecurityGroupIngressResponse -> Maybe DBSecurityGroup
dbSecurityGroup} -> Maybe DBSecurityGroup
dbSecurityGroup) (\s :: AuthorizeDBSecurityGroupIngressResponse
s@AuthorizeDBSecurityGroupIngressResponse' {} Maybe DBSecurityGroup
a -> AuthorizeDBSecurityGroupIngressResponse
s {$sel:dbSecurityGroup:AuthorizeDBSecurityGroupIngressResponse' :: Maybe DBSecurityGroup
dbSecurityGroup = Maybe DBSecurityGroup
a} :: AuthorizeDBSecurityGroupIngressResponse)
authorizeDBSecurityGroupIngressResponse_httpStatus :: Lens.Lens' AuthorizeDBSecurityGroupIngressResponse Prelude.Int
authorizeDBSecurityGroupIngressResponse_httpStatus :: (Int -> f Int)
-> AuthorizeDBSecurityGroupIngressResponse
-> f AuthorizeDBSecurityGroupIngressResponse
authorizeDBSecurityGroupIngressResponse_httpStatus = (AuthorizeDBSecurityGroupIngressResponse -> Int)
-> (AuthorizeDBSecurityGroupIngressResponse
-> Int -> AuthorizeDBSecurityGroupIngressResponse)
-> Lens
AuthorizeDBSecurityGroupIngressResponse
AuthorizeDBSecurityGroupIngressResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeDBSecurityGroupIngressResponse' {Int
httpStatus :: Int
$sel:httpStatus:AuthorizeDBSecurityGroupIngressResponse' :: AuthorizeDBSecurityGroupIngressResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AuthorizeDBSecurityGroupIngressResponse
s@AuthorizeDBSecurityGroupIngressResponse' {} Int
a -> AuthorizeDBSecurityGroupIngressResponse
s {$sel:httpStatus:AuthorizeDBSecurityGroupIngressResponse' :: Int
httpStatus = Int
a} :: AuthorizeDBSecurityGroupIngressResponse)
instance
Prelude.NFData
AuthorizeDBSecurityGroupIngressResponse