{-# 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.UpdateInputSecurityGroup
(
UpdateInputSecurityGroup (..),
newUpdateInputSecurityGroup,
updateInputSecurityGroup_whitelistRules,
updateInputSecurityGroup_tags,
updateInputSecurityGroup_inputSecurityGroupId,
UpdateInputSecurityGroupResponse (..),
newUpdateInputSecurityGroupResponse,
updateInputSecurityGroupResponse_securityGroup,
updateInputSecurityGroupResponse_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 UpdateInputSecurityGroup = UpdateInputSecurityGroup'
{
UpdateInputSecurityGroup -> Maybe [InputWhitelistRuleCidr]
whitelistRules :: Prelude.Maybe [InputWhitelistRuleCidr],
UpdateInputSecurityGroup -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateInputSecurityGroup -> Text
inputSecurityGroupId :: Prelude.Text
}
deriving (UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool
(UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool)
-> (UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool)
-> Eq UpdateInputSecurityGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool
$c/= :: UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool
== :: UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool
$c== :: UpdateInputSecurityGroup -> UpdateInputSecurityGroup -> Bool
Prelude.Eq, ReadPrec [UpdateInputSecurityGroup]
ReadPrec UpdateInputSecurityGroup
Int -> ReadS UpdateInputSecurityGroup
ReadS [UpdateInputSecurityGroup]
(Int -> ReadS UpdateInputSecurityGroup)
-> ReadS [UpdateInputSecurityGroup]
-> ReadPrec UpdateInputSecurityGroup
-> ReadPrec [UpdateInputSecurityGroup]
-> Read UpdateInputSecurityGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateInputSecurityGroup]
$creadListPrec :: ReadPrec [UpdateInputSecurityGroup]
readPrec :: ReadPrec UpdateInputSecurityGroup
$creadPrec :: ReadPrec UpdateInputSecurityGroup
readList :: ReadS [UpdateInputSecurityGroup]
$creadList :: ReadS [UpdateInputSecurityGroup]
readsPrec :: Int -> ReadS UpdateInputSecurityGroup
$creadsPrec :: Int -> ReadS UpdateInputSecurityGroup
Prelude.Read, Int -> UpdateInputSecurityGroup -> ShowS
[UpdateInputSecurityGroup] -> ShowS
UpdateInputSecurityGroup -> String
(Int -> UpdateInputSecurityGroup -> ShowS)
-> (UpdateInputSecurityGroup -> String)
-> ([UpdateInputSecurityGroup] -> ShowS)
-> Show UpdateInputSecurityGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateInputSecurityGroup] -> ShowS
$cshowList :: [UpdateInputSecurityGroup] -> ShowS
show :: UpdateInputSecurityGroup -> String
$cshow :: UpdateInputSecurityGroup -> String
showsPrec :: Int -> UpdateInputSecurityGroup -> ShowS
$cshowsPrec :: Int -> UpdateInputSecurityGroup -> ShowS
Prelude.Show, (forall x.
UpdateInputSecurityGroup -> Rep UpdateInputSecurityGroup x)
-> (forall x.
Rep UpdateInputSecurityGroup x -> UpdateInputSecurityGroup)
-> Generic UpdateInputSecurityGroup
forall x.
Rep UpdateInputSecurityGroup x -> UpdateInputSecurityGroup
forall x.
UpdateInputSecurityGroup -> Rep UpdateInputSecurityGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateInputSecurityGroup x -> UpdateInputSecurityGroup
$cfrom :: forall x.
UpdateInputSecurityGroup -> Rep UpdateInputSecurityGroup x
Prelude.Generic)
newUpdateInputSecurityGroup ::
Prelude.Text ->
UpdateInputSecurityGroup
newUpdateInputSecurityGroup :: Text -> UpdateInputSecurityGroup
newUpdateInputSecurityGroup Text
pInputSecurityGroupId_ =
UpdateInputSecurityGroup' :: Maybe [InputWhitelistRuleCidr]
-> Maybe (HashMap Text Text) -> Text -> UpdateInputSecurityGroup
UpdateInputSecurityGroup'
{ $sel:whitelistRules:UpdateInputSecurityGroup' :: Maybe [InputWhitelistRuleCidr]
whitelistRules =
Maybe [InputWhitelistRuleCidr]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdateInputSecurityGroup' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:inputSecurityGroupId:UpdateInputSecurityGroup' :: Text
inputSecurityGroupId = Text
pInputSecurityGroupId_
}
updateInputSecurityGroup_whitelistRules :: Lens.Lens' UpdateInputSecurityGroup (Prelude.Maybe [InputWhitelistRuleCidr])
updateInputSecurityGroup_whitelistRules :: (Maybe [InputWhitelistRuleCidr]
-> f (Maybe [InputWhitelistRuleCidr]))
-> UpdateInputSecurityGroup -> f UpdateInputSecurityGroup
updateInputSecurityGroup_whitelistRules = (UpdateInputSecurityGroup -> Maybe [InputWhitelistRuleCidr])
-> (UpdateInputSecurityGroup
-> Maybe [InputWhitelistRuleCidr] -> UpdateInputSecurityGroup)
-> Lens
UpdateInputSecurityGroup
UpdateInputSecurityGroup
(Maybe [InputWhitelistRuleCidr])
(Maybe [InputWhitelistRuleCidr])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputSecurityGroup' {Maybe [InputWhitelistRuleCidr]
whitelistRules :: Maybe [InputWhitelistRuleCidr]
$sel:whitelistRules:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe [InputWhitelistRuleCidr]
whitelistRules} -> Maybe [InputWhitelistRuleCidr]
whitelistRules) (\s :: UpdateInputSecurityGroup
s@UpdateInputSecurityGroup' {} Maybe [InputWhitelistRuleCidr]
a -> UpdateInputSecurityGroup
s {$sel:whitelistRules:UpdateInputSecurityGroup' :: Maybe [InputWhitelistRuleCidr]
whitelistRules = Maybe [InputWhitelistRuleCidr]
a} :: UpdateInputSecurityGroup) ((Maybe [InputWhitelistRuleCidr]
-> f (Maybe [InputWhitelistRuleCidr]))
-> UpdateInputSecurityGroup -> f UpdateInputSecurityGroup)
-> ((Maybe [InputWhitelistRuleCidr]
-> f (Maybe [InputWhitelistRuleCidr]))
-> Maybe [InputWhitelistRuleCidr]
-> f (Maybe [InputWhitelistRuleCidr]))
-> (Maybe [InputWhitelistRuleCidr]
-> f (Maybe [InputWhitelistRuleCidr]))
-> UpdateInputSecurityGroup
-> f UpdateInputSecurityGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
-> Iso
(Maybe [InputWhitelistRuleCidr])
(Maybe [InputWhitelistRuleCidr])
(Maybe [InputWhitelistRuleCidr])
(Maybe [InputWhitelistRuleCidr])
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
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
[InputWhitelistRuleCidr]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateInputSecurityGroup_tags :: Lens.Lens' UpdateInputSecurityGroup (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateInputSecurityGroup_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateInputSecurityGroup -> f UpdateInputSecurityGroup
updateInputSecurityGroup_tags = (UpdateInputSecurityGroup -> Maybe (HashMap Text Text))
-> (UpdateInputSecurityGroup
-> Maybe (HashMap Text Text) -> UpdateInputSecurityGroup)
-> Lens
UpdateInputSecurityGroup
UpdateInputSecurityGroup
(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 (\UpdateInputSecurityGroup' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateInputSecurityGroup
s@UpdateInputSecurityGroup' {} Maybe (HashMap Text Text)
a -> UpdateInputSecurityGroup
s {$sel:tags:UpdateInputSecurityGroup' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateInputSecurityGroup) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateInputSecurityGroup -> f UpdateInputSecurityGroup)
-> ((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)))
-> UpdateInputSecurityGroup
-> f UpdateInputSecurityGroup
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
updateInputSecurityGroup_inputSecurityGroupId :: Lens.Lens' UpdateInputSecurityGroup Prelude.Text
updateInputSecurityGroup_inputSecurityGroupId :: (Text -> f Text)
-> UpdateInputSecurityGroup -> f UpdateInputSecurityGroup
updateInputSecurityGroup_inputSecurityGroupId = (UpdateInputSecurityGroup -> Text)
-> (UpdateInputSecurityGroup -> Text -> UpdateInputSecurityGroup)
-> Lens UpdateInputSecurityGroup UpdateInputSecurityGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputSecurityGroup' {Text
inputSecurityGroupId :: Text
$sel:inputSecurityGroupId:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Text
inputSecurityGroupId} -> Text
inputSecurityGroupId) (\s :: UpdateInputSecurityGroup
s@UpdateInputSecurityGroup' {} Text
a -> UpdateInputSecurityGroup
s {$sel:inputSecurityGroupId:UpdateInputSecurityGroup' :: Text
inputSecurityGroupId = Text
a} :: UpdateInputSecurityGroup)
instance Core.AWSRequest UpdateInputSecurityGroup where
type
AWSResponse UpdateInputSecurityGroup =
UpdateInputSecurityGroupResponse
request :: UpdateInputSecurityGroup -> Request UpdateInputSecurityGroup
request = Service
-> UpdateInputSecurityGroup -> Request UpdateInputSecurityGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateInputSecurityGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateInputSecurityGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateInputSecurityGroup))
-> Logger
-> Service
-> Proxy UpdateInputSecurityGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateInputSecurityGroup)))
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 InputSecurityGroup -> Int -> UpdateInputSecurityGroupResponse
UpdateInputSecurityGroupResponse'
(Maybe InputSecurityGroup
-> Int -> UpdateInputSecurityGroupResponse)
-> Either String (Maybe InputSecurityGroup)
-> Either String (Int -> UpdateInputSecurityGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe InputSecurityGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"securityGroup")
Either String (Int -> UpdateInputSecurityGroupResponse)
-> Either String Int
-> Either String UpdateInputSecurityGroupResponse
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 UpdateInputSecurityGroup
instance Prelude.NFData UpdateInputSecurityGroup
instance Core.ToHeaders UpdateInputSecurityGroup where
toHeaders :: UpdateInputSecurityGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateInputSecurityGroup -> 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.ToJSON UpdateInputSecurityGroup where
toJSON :: UpdateInputSecurityGroup -> Value
toJSON UpdateInputSecurityGroup' {Maybe [InputWhitelistRuleCidr]
Maybe (HashMap Text Text)
Text
inputSecurityGroupId :: Text
tags :: Maybe (HashMap Text Text)
whitelistRules :: Maybe [InputWhitelistRuleCidr]
$sel:inputSecurityGroupId:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Text
$sel:tags:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe (HashMap Text Text)
$sel:whitelistRules:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe [InputWhitelistRuleCidr]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"whitelistRules" Text -> [InputWhitelistRuleCidr] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([InputWhitelistRuleCidr] -> Pair)
-> Maybe [InputWhitelistRuleCidr] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputWhitelistRuleCidr]
whitelistRules,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags
]
)
instance Core.ToPath UpdateInputSecurityGroup where
toPath :: UpdateInputSecurityGroup -> ByteString
toPath UpdateInputSecurityGroup' {Maybe [InputWhitelistRuleCidr]
Maybe (HashMap Text Text)
Text
inputSecurityGroupId :: Text
tags :: Maybe (HashMap Text Text)
whitelistRules :: Maybe [InputWhitelistRuleCidr]
$sel:inputSecurityGroupId:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Text
$sel:tags:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe (HashMap Text Text)
$sel:whitelistRules:UpdateInputSecurityGroup' :: UpdateInputSecurityGroup -> Maybe [InputWhitelistRuleCidr]
..} =
[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 UpdateInputSecurityGroup where
toQuery :: UpdateInputSecurityGroup -> QueryString
toQuery = QueryString -> UpdateInputSecurityGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateInputSecurityGroupResponse = UpdateInputSecurityGroupResponse'
{ UpdateInputSecurityGroupResponse -> Maybe InputSecurityGroup
securityGroup :: Prelude.Maybe InputSecurityGroup,
UpdateInputSecurityGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool
(UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool)
-> (UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool)
-> Eq UpdateInputSecurityGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool
$c/= :: UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool
== :: UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool
$c== :: UpdateInputSecurityGroupResponse
-> UpdateInputSecurityGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateInputSecurityGroupResponse]
ReadPrec UpdateInputSecurityGroupResponse
Int -> ReadS UpdateInputSecurityGroupResponse
ReadS [UpdateInputSecurityGroupResponse]
(Int -> ReadS UpdateInputSecurityGroupResponse)
-> ReadS [UpdateInputSecurityGroupResponse]
-> ReadPrec UpdateInputSecurityGroupResponse
-> ReadPrec [UpdateInputSecurityGroupResponse]
-> Read UpdateInputSecurityGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateInputSecurityGroupResponse]
$creadListPrec :: ReadPrec [UpdateInputSecurityGroupResponse]
readPrec :: ReadPrec UpdateInputSecurityGroupResponse
$creadPrec :: ReadPrec UpdateInputSecurityGroupResponse
readList :: ReadS [UpdateInputSecurityGroupResponse]
$creadList :: ReadS [UpdateInputSecurityGroupResponse]
readsPrec :: Int -> ReadS UpdateInputSecurityGroupResponse
$creadsPrec :: Int -> ReadS UpdateInputSecurityGroupResponse
Prelude.Read, Int -> UpdateInputSecurityGroupResponse -> ShowS
[UpdateInputSecurityGroupResponse] -> ShowS
UpdateInputSecurityGroupResponse -> String
(Int -> UpdateInputSecurityGroupResponse -> ShowS)
-> (UpdateInputSecurityGroupResponse -> String)
-> ([UpdateInputSecurityGroupResponse] -> ShowS)
-> Show UpdateInputSecurityGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateInputSecurityGroupResponse] -> ShowS
$cshowList :: [UpdateInputSecurityGroupResponse] -> ShowS
show :: UpdateInputSecurityGroupResponse -> String
$cshow :: UpdateInputSecurityGroupResponse -> String
showsPrec :: Int -> UpdateInputSecurityGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateInputSecurityGroupResponse -> ShowS
Prelude.Show, (forall x.
UpdateInputSecurityGroupResponse
-> Rep UpdateInputSecurityGroupResponse x)
-> (forall x.
Rep UpdateInputSecurityGroupResponse x
-> UpdateInputSecurityGroupResponse)
-> Generic UpdateInputSecurityGroupResponse
forall x.
Rep UpdateInputSecurityGroupResponse x
-> UpdateInputSecurityGroupResponse
forall x.
UpdateInputSecurityGroupResponse
-> Rep UpdateInputSecurityGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateInputSecurityGroupResponse x
-> UpdateInputSecurityGroupResponse
$cfrom :: forall x.
UpdateInputSecurityGroupResponse
-> Rep UpdateInputSecurityGroupResponse x
Prelude.Generic)
newUpdateInputSecurityGroupResponse ::
Prelude.Int ->
UpdateInputSecurityGroupResponse
newUpdateInputSecurityGroupResponse :: Int -> UpdateInputSecurityGroupResponse
newUpdateInputSecurityGroupResponse Int
pHttpStatus_ =
UpdateInputSecurityGroupResponse' :: Maybe InputSecurityGroup -> Int -> UpdateInputSecurityGroupResponse
UpdateInputSecurityGroupResponse'
{ $sel:securityGroup:UpdateInputSecurityGroupResponse' :: Maybe InputSecurityGroup
securityGroup =
Maybe InputSecurityGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateInputSecurityGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateInputSecurityGroupResponse_securityGroup :: Lens.Lens' UpdateInputSecurityGroupResponse (Prelude.Maybe InputSecurityGroup)
updateInputSecurityGroupResponse_securityGroup :: (Maybe InputSecurityGroup -> f (Maybe InputSecurityGroup))
-> UpdateInputSecurityGroupResponse
-> f UpdateInputSecurityGroupResponse
updateInputSecurityGroupResponse_securityGroup = (UpdateInputSecurityGroupResponse -> Maybe InputSecurityGroup)
-> (UpdateInputSecurityGroupResponse
-> Maybe InputSecurityGroup -> UpdateInputSecurityGroupResponse)
-> Lens
UpdateInputSecurityGroupResponse
UpdateInputSecurityGroupResponse
(Maybe InputSecurityGroup)
(Maybe InputSecurityGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputSecurityGroupResponse' {Maybe InputSecurityGroup
securityGroup :: Maybe InputSecurityGroup
$sel:securityGroup:UpdateInputSecurityGroupResponse' :: UpdateInputSecurityGroupResponse -> Maybe InputSecurityGroup
securityGroup} -> Maybe InputSecurityGroup
securityGroup) (\s :: UpdateInputSecurityGroupResponse
s@UpdateInputSecurityGroupResponse' {} Maybe InputSecurityGroup
a -> UpdateInputSecurityGroupResponse
s {$sel:securityGroup:UpdateInputSecurityGroupResponse' :: Maybe InputSecurityGroup
securityGroup = Maybe InputSecurityGroup
a} :: UpdateInputSecurityGroupResponse)
updateInputSecurityGroupResponse_httpStatus :: Lens.Lens' UpdateInputSecurityGroupResponse Prelude.Int
updateInputSecurityGroupResponse_httpStatus :: (Int -> f Int)
-> UpdateInputSecurityGroupResponse
-> f UpdateInputSecurityGroupResponse
updateInputSecurityGroupResponse_httpStatus = (UpdateInputSecurityGroupResponse -> Int)
-> (UpdateInputSecurityGroupResponse
-> Int -> UpdateInputSecurityGroupResponse)
-> Lens
UpdateInputSecurityGroupResponse
UpdateInputSecurityGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputSecurityGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateInputSecurityGroupResponse' :: UpdateInputSecurityGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateInputSecurityGroupResponse
s@UpdateInputSecurityGroupResponse' {} Int
a -> UpdateInputSecurityGroupResponse
s {$sel:httpStatus:UpdateInputSecurityGroupResponse' :: Int
httpStatus = Int
a} :: UpdateInputSecurityGroupResponse)
instance
Prelude.NFData
UpdateInputSecurityGroupResponse