{-# 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.MediaLive.DescribeInputSecurityGroup
(
DescribeInputSecurityGroup (..),
newDescribeInputSecurityGroup,
describeInputSecurityGroup_inputSecurityGroupId,
DescribeInputSecurityGroupResponse (..),
newDescribeInputSecurityGroupResponse,
describeInputSecurityGroupResponse_state,
describeInputSecurityGroupResponse_arn,
describeInputSecurityGroupResponse_inputs,
describeInputSecurityGroupResponse_id,
describeInputSecurityGroupResponse_whitelistRules,
describeInputSecurityGroupResponse_tags,
describeInputSecurityGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeInputSecurityGroup = DescribeInputSecurityGroup'
{
DescribeInputSecurityGroup -> Text
inputSecurityGroupId :: Prelude.Text
}
deriving (DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool
(DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool)
-> (DescribeInputSecurityGroup
-> DescribeInputSecurityGroup -> Bool)
-> Eq DescribeInputSecurityGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool
$c/= :: DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool
== :: DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool
$c== :: DescribeInputSecurityGroup -> DescribeInputSecurityGroup -> Bool
Prelude.Eq, ReadPrec [DescribeInputSecurityGroup]
ReadPrec DescribeInputSecurityGroup
Int -> ReadS DescribeInputSecurityGroup
ReadS [DescribeInputSecurityGroup]
(Int -> ReadS DescribeInputSecurityGroup)
-> ReadS [DescribeInputSecurityGroup]
-> ReadPrec DescribeInputSecurityGroup
-> ReadPrec [DescribeInputSecurityGroup]
-> Read DescribeInputSecurityGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInputSecurityGroup]
$creadListPrec :: ReadPrec [DescribeInputSecurityGroup]
readPrec :: ReadPrec DescribeInputSecurityGroup
$creadPrec :: ReadPrec DescribeInputSecurityGroup
readList :: ReadS [DescribeInputSecurityGroup]
$creadList :: ReadS [DescribeInputSecurityGroup]
readsPrec :: Int -> ReadS DescribeInputSecurityGroup
$creadsPrec :: Int -> ReadS DescribeInputSecurityGroup
Prelude.Read, Int -> DescribeInputSecurityGroup -> ShowS
[DescribeInputSecurityGroup] -> ShowS
DescribeInputSecurityGroup -> String
(Int -> DescribeInputSecurityGroup -> ShowS)
-> (DescribeInputSecurityGroup -> String)
-> ([DescribeInputSecurityGroup] -> ShowS)
-> Show DescribeInputSecurityGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputSecurityGroup] -> ShowS
$cshowList :: [DescribeInputSecurityGroup] -> ShowS
show :: DescribeInputSecurityGroup -> String
$cshow :: DescribeInputSecurityGroup -> String
showsPrec :: Int -> DescribeInputSecurityGroup -> ShowS
$cshowsPrec :: Int -> DescribeInputSecurityGroup -> ShowS
Prelude.Show, (forall x.
DescribeInputSecurityGroup -> Rep DescribeInputSecurityGroup x)
-> (forall x.
Rep DescribeInputSecurityGroup x -> DescribeInputSecurityGroup)
-> Generic DescribeInputSecurityGroup
forall x.
Rep DescribeInputSecurityGroup x -> DescribeInputSecurityGroup
forall x.
DescribeInputSecurityGroup -> Rep DescribeInputSecurityGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInputSecurityGroup x -> DescribeInputSecurityGroup
$cfrom :: forall x.
DescribeInputSecurityGroup -> Rep DescribeInputSecurityGroup x
Prelude.Generic)
newDescribeInputSecurityGroup ::
Prelude.Text ->
DescribeInputSecurityGroup
newDescribeInputSecurityGroup :: Text -> DescribeInputSecurityGroup
newDescribeInputSecurityGroup Text
pInputSecurityGroupId_ =
DescribeInputSecurityGroup' :: Text -> DescribeInputSecurityGroup
DescribeInputSecurityGroup'
{ $sel:inputSecurityGroupId:DescribeInputSecurityGroup' :: Text
inputSecurityGroupId =
Text
pInputSecurityGroupId_
}
describeInputSecurityGroup_inputSecurityGroupId :: Lens.Lens' DescribeInputSecurityGroup Prelude.Text
describeInputSecurityGroup_inputSecurityGroupId :: (Text -> f Text)
-> DescribeInputSecurityGroup -> f DescribeInputSecurityGroup
describeInputSecurityGroup_inputSecurityGroupId = (DescribeInputSecurityGroup -> Text)
-> (DescribeInputSecurityGroup
-> Text -> DescribeInputSecurityGroup)
-> Lens
DescribeInputSecurityGroup DescribeInputSecurityGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroup' {Text
inputSecurityGroupId :: Text
$sel:inputSecurityGroupId:DescribeInputSecurityGroup' :: DescribeInputSecurityGroup -> Text
inputSecurityGroupId} -> Text
inputSecurityGroupId) (\s :: DescribeInputSecurityGroup
s@DescribeInputSecurityGroup' {} Text
a -> DescribeInputSecurityGroup
s {$sel:inputSecurityGroupId:DescribeInputSecurityGroup' :: Text
inputSecurityGroupId = Text
a} :: DescribeInputSecurityGroup)
instance Core.AWSRequest DescribeInputSecurityGroup where
type
AWSResponse DescribeInputSecurityGroup =
DescribeInputSecurityGroupResponse
request :: DescribeInputSecurityGroup -> Request DescribeInputSecurityGroup
request = Service
-> DescribeInputSecurityGroup -> Request DescribeInputSecurityGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeInputSecurityGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeInputSecurityGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeInputSecurityGroup))
-> Logger
-> Service
-> Proxy DescribeInputSecurityGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeInputSecurityGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe InputSecurityGroupState
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse'
(Maybe InputSecurityGroupState
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
-> Either String (Maybe InputSecurityGroupState)
-> Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe InputSecurityGroupState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"state")
Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputs" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"id")
Either
String
(Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse)
-> Either String (Maybe [InputWhitelistRule])
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [InputWhitelistRule]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"whitelistRules" Either String (Maybe (Maybe [InputWhitelistRule]))
-> Maybe [InputWhitelistRule]
-> Either String (Maybe [InputWhitelistRule])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InputWhitelistRule]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeInputSecurityGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeInputSecurityGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeInputSecurityGroupResponse)
-> Either String Int
-> Either String DescribeInputSecurityGroupResponse
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 DescribeInputSecurityGroup
instance Prelude.NFData DescribeInputSecurityGroup
instance Core.ToHeaders DescribeInputSecurityGroup where
toHeaders :: DescribeInputSecurityGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeInputSecurityGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeInputSecurityGroup where
toPath :: DescribeInputSecurityGroup -> ByteString
toPath DescribeInputSecurityGroup' {Text
inputSecurityGroupId :: Text
$sel:inputSecurityGroupId:DescribeInputSecurityGroup' :: DescribeInputSecurityGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/prod/inputSecurityGroups/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
inputSecurityGroupId
]
instance Core.ToQuery DescribeInputSecurityGroup where
toQuery :: DescribeInputSecurityGroup -> QueryString
toQuery = QueryString -> DescribeInputSecurityGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeInputSecurityGroupResponse = DescribeInputSecurityGroupResponse'
{
DescribeInputSecurityGroupResponse -> Maybe InputSecurityGroupState
state :: Prelude.Maybe InputSecurityGroupState,
DescribeInputSecurityGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeInputSecurityGroupResponse -> Maybe [Text]
inputs :: Prelude.Maybe [Prelude.Text],
DescribeInputSecurityGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DescribeInputSecurityGroupResponse -> Maybe [InputWhitelistRule]
whitelistRules :: Prelude.Maybe [InputWhitelistRule],
DescribeInputSecurityGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeInputSecurityGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool
(DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool)
-> (DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool)
-> Eq DescribeInputSecurityGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool
$c/= :: DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool
== :: DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool
$c== :: DescribeInputSecurityGroupResponse
-> DescribeInputSecurityGroupResponse -> Bool
Prelude.Eq, ReadPrec [DescribeInputSecurityGroupResponse]
ReadPrec DescribeInputSecurityGroupResponse
Int -> ReadS DescribeInputSecurityGroupResponse
ReadS [DescribeInputSecurityGroupResponse]
(Int -> ReadS DescribeInputSecurityGroupResponse)
-> ReadS [DescribeInputSecurityGroupResponse]
-> ReadPrec DescribeInputSecurityGroupResponse
-> ReadPrec [DescribeInputSecurityGroupResponse]
-> Read DescribeInputSecurityGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInputSecurityGroupResponse]
$creadListPrec :: ReadPrec [DescribeInputSecurityGroupResponse]
readPrec :: ReadPrec DescribeInputSecurityGroupResponse
$creadPrec :: ReadPrec DescribeInputSecurityGroupResponse
readList :: ReadS [DescribeInputSecurityGroupResponse]
$creadList :: ReadS [DescribeInputSecurityGroupResponse]
readsPrec :: Int -> ReadS DescribeInputSecurityGroupResponse
$creadsPrec :: Int -> ReadS DescribeInputSecurityGroupResponse
Prelude.Read, Int -> DescribeInputSecurityGroupResponse -> ShowS
[DescribeInputSecurityGroupResponse] -> ShowS
DescribeInputSecurityGroupResponse -> String
(Int -> DescribeInputSecurityGroupResponse -> ShowS)
-> (DescribeInputSecurityGroupResponse -> String)
-> ([DescribeInputSecurityGroupResponse] -> ShowS)
-> Show DescribeInputSecurityGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputSecurityGroupResponse] -> ShowS
$cshowList :: [DescribeInputSecurityGroupResponse] -> ShowS
show :: DescribeInputSecurityGroupResponse -> String
$cshow :: DescribeInputSecurityGroupResponse -> String
showsPrec :: Int -> DescribeInputSecurityGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeInputSecurityGroupResponse -> ShowS
Prelude.Show, (forall x.
DescribeInputSecurityGroupResponse
-> Rep DescribeInputSecurityGroupResponse x)
-> (forall x.
Rep DescribeInputSecurityGroupResponse x
-> DescribeInputSecurityGroupResponse)
-> Generic DescribeInputSecurityGroupResponse
forall x.
Rep DescribeInputSecurityGroupResponse x
-> DescribeInputSecurityGroupResponse
forall x.
DescribeInputSecurityGroupResponse
-> Rep DescribeInputSecurityGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInputSecurityGroupResponse x
-> DescribeInputSecurityGroupResponse
$cfrom :: forall x.
DescribeInputSecurityGroupResponse
-> Rep DescribeInputSecurityGroupResponse x
Prelude.Generic)
newDescribeInputSecurityGroupResponse ::
Prelude.Int ->
DescribeInputSecurityGroupResponse
newDescribeInputSecurityGroupResponse :: Int -> DescribeInputSecurityGroupResponse
newDescribeInputSecurityGroupResponse Int
pHttpStatus_ =
DescribeInputSecurityGroupResponse' :: Maybe InputSecurityGroupState
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [InputWhitelistRule]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse'
{ $sel:state:DescribeInputSecurityGroupResponse' :: Maybe InputSecurityGroupState
state =
Maybe InputSecurityGroupState
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeInputSecurityGroupResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputs:DescribeInputSecurityGroupResponse' :: Maybe [Text]
inputs = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:id:DescribeInputSecurityGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:whitelistRules:DescribeInputSecurityGroupResponse' :: Maybe [InputWhitelistRule]
whitelistRules = Maybe [InputWhitelistRule]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeInputSecurityGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeInputSecurityGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeInputSecurityGroupResponse_state :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe InputSecurityGroupState)
describeInputSecurityGroupResponse_state :: (Maybe InputSecurityGroupState
-> f (Maybe InputSecurityGroupState))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_state = (DescribeInputSecurityGroupResponse
-> Maybe InputSecurityGroupState)
-> (DescribeInputSecurityGroupResponse
-> Maybe InputSecurityGroupState
-> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe InputSecurityGroupState)
(Maybe InputSecurityGroupState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe InputSecurityGroupState
state :: Maybe InputSecurityGroupState
$sel:state:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe InputSecurityGroupState
state} -> Maybe InputSecurityGroupState
state) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe InputSecurityGroupState
a -> DescribeInputSecurityGroupResponse
s {$sel:state:DescribeInputSecurityGroupResponse' :: Maybe InputSecurityGroupState
state = Maybe InputSecurityGroupState
a} :: DescribeInputSecurityGroupResponse)
describeInputSecurityGroupResponse_arn :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe Prelude.Text)
describeInputSecurityGroupResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_arn = (DescribeInputSecurityGroupResponse -> Maybe Text)
-> (DescribeInputSecurityGroupResponse
-> Maybe Text -> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe Text
a -> DescribeInputSecurityGroupResponse
s {$sel:arn:DescribeInputSecurityGroupResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeInputSecurityGroupResponse)
describeInputSecurityGroupResponse_inputs :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe [Prelude.Text])
describeInputSecurityGroupResponse_inputs :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_inputs = (DescribeInputSecurityGroupResponse -> Maybe [Text])
-> (DescribeInputSecurityGroupResponse
-> Maybe [Text] -> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe [Text]
inputs :: Maybe [Text]
$sel:inputs:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe [Text]
inputs} -> Maybe [Text]
inputs) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe [Text]
a -> DescribeInputSecurityGroupResponse
s {$sel:inputs:DescribeInputSecurityGroupResponse' :: Maybe [Text]
inputs = Maybe [Text]
a} :: DescribeInputSecurityGroupResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeInputSecurityGroupResponse_id :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe Prelude.Text)
describeInputSecurityGroupResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_id = (DescribeInputSecurityGroupResponse -> Maybe Text)
-> (DescribeInputSecurityGroupResponse
-> Maybe Text -> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe Text
a -> DescribeInputSecurityGroupResponse
s {$sel:id:DescribeInputSecurityGroupResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeInputSecurityGroupResponse)
describeInputSecurityGroupResponse_whitelistRules :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe [InputWhitelistRule])
describeInputSecurityGroupResponse_whitelistRules :: (Maybe [InputWhitelistRule] -> f (Maybe [InputWhitelistRule]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_whitelistRules = (DescribeInputSecurityGroupResponse -> Maybe [InputWhitelistRule])
-> (DescribeInputSecurityGroupResponse
-> Maybe [InputWhitelistRule]
-> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe [InputWhitelistRule])
(Maybe [InputWhitelistRule])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe [InputWhitelistRule]
whitelistRules :: Maybe [InputWhitelistRule]
$sel:whitelistRules:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe [InputWhitelistRule]
whitelistRules} -> Maybe [InputWhitelistRule]
whitelistRules) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe [InputWhitelistRule]
a -> DescribeInputSecurityGroupResponse
s {$sel:whitelistRules:DescribeInputSecurityGroupResponse' :: Maybe [InputWhitelistRule]
whitelistRules = Maybe [InputWhitelistRule]
a} :: DescribeInputSecurityGroupResponse) ((Maybe [InputWhitelistRule] -> f (Maybe [InputWhitelistRule]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse)
-> ((Maybe [InputWhitelistRule] -> f (Maybe [InputWhitelistRule]))
-> Maybe [InputWhitelistRule] -> f (Maybe [InputWhitelistRule]))
-> (Maybe [InputWhitelistRule] -> f (Maybe [InputWhitelistRule]))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InputWhitelistRule]
[InputWhitelistRule]
[InputWhitelistRule]
[InputWhitelistRule]
-> Iso
(Maybe [InputWhitelistRule])
(Maybe [InputWhitelistRule])
(Maybe [InputWhitelistRule])
(Maybe [InputWhitelistRule])
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 AnIso
[InputWhitelistRule]
[InputWhitelistRule]
[InputWhitelistRule]
[InputWhitelistRule]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeInputSecurityGroupResponse_tags :: Lens.Lens' DescribeInputSecurityGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeInputSecurityGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_tags = (DescribeInputSecurityGroupResponse -> Maybe (HashMap Text Text))
-> (DescribeInputSecurityGroupResponse
-> Maybe (HashMap Text Text) -> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Maybe (HashMap Text Text)
a -> DescribeInputSecurityGroupResponse
s {$sel:tags:DescribeInputSecurityGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeInputSecurityGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeInputSecurityGroupResponse_httpStatus :: Lens.Lens' DescribeInputSecurityGroupResponse Prelude.Int
describeInputSecurityGroupResponse_httpStatus :: (Int -> f Int)
-> DescribeInputSecurityGroupResponse
-> f DescribeInputSecurityGroupResponse
describeInputSecurityGroupResponse_httpStatus = (DescribeInputSecurityGroupResponse -> Int)
-> (DescribeInputSecurityGroupResponse
-> Int -> DescribeInputSecurityGroupResponse)
-> Lens
DescribeInputSecurityGroupResponse
DescribeInputSecurityGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputSecurityGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeInputSecurityGroupResponse' :: DescribeInputSecurityGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeInputSecurityGroupResponse
s@DescribeInputSecurityGroupResponse' {} Int
a -> DescribeInputSecurityGroupResponse
s {$sel:httpStatus:DescribeInputSecurityGroupResponse' :: Int
httpStatus = Int
a} :: DescribeInputSecurityGroupResponse)
instance
Prelude.NFData
DescribeInputSecurityGroupResponse