{-# 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.NetworkFirewall.UpdateSubnetChangeProtection
(
UpdateSubnetChangeProtection (..),
newUpdateSubnetChangeProtection,
updateSubnetChangeProtection_updateToken,
updateSubnetChangeProtection_firewallArn,
updateSubnetChangeProtection_firewallName,
updateSubnetChangeProtection_subnetChangeProtection,
UpdateSubnetChangeProtectionResponse (..),
newUpdateSubnetChangeProtectionResponse,
updateSubnetChangeProtectionResponse_updateToken,
updateSubnetChangeProtectionResponse_firewallArn,
updateSubnetChangeProtectionResponse_subnetChangeProtection,
updateSubnetChangeProtectionResponse_firewallName,
updateSubnetChangeProtectionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.NetworkFirewall.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateSubnetChangeProtection = UpdateSubnetChangeProtection'
{
UpdateSubnetChangeProtection -> Maybe Text
updateToken :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtection -> Maybe Text
firewallArn :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtection -> Maybe Text
firewallName :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtection -> Bool
subnetChangeProtection :: Prelude.Bool
}
deriving (UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool
(UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool)
-> (UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool)
-> Eq UpdateSubnetChangeProtection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool
$c/= :: UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool
== :: UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool
$c== :: UpdateSubnetChangeProtection
-> UpdateSubnetChangeProtection -> Bool
Prelude.Eq, ReadPrec [UpdateSubnetChangeProtection]
ReadPrec UpdateSubnetChangeProtection
Int -> ReadS UpdateSubnetChangeProtection
ReadS [UpdateSubnetChangeProtection]
(Int -> ReadS UpdateSubnetChangeProtection)
-> ReadS [UpdateSubnetChangeProtection]
-> ReadPrec UpdateSubnetChangeProtection
-> ReadPrec [UpdateSubnetChangeProtection]
-> Read UpdateSubnetChangeProtection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSubnetChangeProtection]
$creadListPrec :: ReadPrec [UpdateSubnetChangeProtection]
readPrec :: ReadPrec UpdateSubnetChangeProtection
$creadPrec :: ReadPrec UpdateSubnetChangeProtection
readList :: ReadS [UpdateSubnetChangeProtection]
$creadList :: ReadS [UpdateSubnetChangeProtection]
readsPrec :: Int -> ReadS UpdateSubnetChangeProtection
$creadsPrec :: Int -> ReadS UpdateSubnetChangeProtection
Prelude.Read, Int -> UpdateSubnetChangeProtection -> ShowS
[UpdateSubnetChangeProtection] -> ShowS
UpdateSubnetChangeProtection -> String
(Int -> UpdateSubnetChangeProtection -> ShowS)
-> (UpdateSubnetChangeProtection -> String)
-> ([UpdateSubnetChangeProtection] -> ShowS)
-> Show UpdateSubnetChangeProtection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSubnetChangeProtection] -> ShowS
$cshowList :: [UpdateSubnetChangeProtection] -> ShowS
show :: UpdateSubnetChangeProtection -> String
$cshow :: UpdateSubnetChangeProtection -> String
showsPrec :: Int -> UpdateSubnetChangeProtection -> ShowS
$cshowsPrec :: Int -> UpdateSubnetChangeProtection -> ShowS
Prelude.Show, (forall x.
UpdateSubnetChangeProtection -> Rep UpdateSubnetChangeProtection x)
-> (forall x.
Rep UpdateSubnetChangeProtection x -> UpdateSubnetChangeProtection)
-> Generic UpdateSubnetChangeProtection
forall x.
Rep UpdateSubnetChangeProtection x -> UpdateSubnetChangeProtection
forall x.
UpdateSubnetChangeProtection -> Rep UpdateSubnetChangeProtection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSubnetChangeProtection x -> UpdateSubnetChangeProtection
$cfrom :: forall x.
UpdateSubnetChangeProtection -> Rep UpdateSubnetChangeProtection x
Prelude.Generic)
newUpdateSubnetChangeProtection ::
Prelude.Bool ->
UpdateSubnetChangeProtection
newUpdateSubnetChangeProtection :: Bool -> UpdateSubnetChangeProtection
newUpdateSubnetChangeProtection
Bool
pSubnetChangeProtection_ =
UpdateSubnetChangeProtection' :: Maybe Text
-> Maybe Text -> Maybe Text -> Bool -> UpdateSubnetChangeProtection
UpdateSubnetChangeProtection'
{ $sel:updateToken:UpdateSubnetChangeProtection' :: Maybe Text
updateToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:firewallArn:UpdateSubnetChangeProtection' :: Maybe Text
firewallArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:firewallName:UpdateSubnetChangeProtection' :: Maybe Text
firewallName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:subnetChangeProtection:UpdateSubnetChangeProtection' :: Bool
subnetChangeProtection =
Bool
pSubnetChangeProtection_
}
updateSubnetChangeProtection_updateToken :: Lens.Lens' UpdateSubnetChangeProtection (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtection_updateToken :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtection -> f UpdateSubnetChangeProtection
updateSubnetChangeProtection_updateToken = (UpdateSubnetChangeProtection -> Maybe Text)
-> (UpdateSubnetChangeProtection
-> Maybe Text -> UpdateSubnetChangeProtection)
-> Lens
UpdateSubnetChangeProtection
UpdateSubnetChangeProtection
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtection' {Maybe Text
updateToken :: Maybe Text
$sel:updateToken:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
updateToken} -> Maybe Text
updateToken) (\s :: UpdateSubnetChangeProtection
s@UpdateSubnetChangeProtection' {} Maybe Text
a -> UpdateSubnetChangeProtection
s {$sel:updateToken:UpdateSubnetChangeProtection' :: Maybe Text
updateToken = Maybe Text
a} :: UpdateSubnetChangeProtection)
updateSubnetChangeProtection_firewallArn :: Lens.Lens' UpdateSubnetChangeProtection (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtection_firewallArn :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtection -> f UpdateSubnetChangeProtection
updateSubnetChangeProtection_firewallArn = (UpdateSubnetChangeProtection -> Maybe Text)
-> (UpdateSubnetChangeProtection
-> Maybe Text -> UpdateSubnetChangeProtection)
-> Lens
UpdateSubnetChangeProtection
UpdateSubnetChangeProtection
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtection' {Maybe Text
firewallArn :: Maybe Text
$sel:firewallArn:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
firewallArn} -> Maybe Text
firewallArn) (\s :: UpdateSubnetChangeProtection
s@UpdateSubnetChangeProtection' {} Maybe Text
a -> UpdateSubnetChangeProtection
s {$sel:firewallArn:UpdateSubnetChangeProtection' :: Maybe Text
firewallArn = Maybe Text
a} :: UpdateSubnetChangeProtection)
updateSubnetChangeProtection_firewallName :: Lens.Lens' UpdateSubnetChangeProtection (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtection_firewallName :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtection -> f UpdateSubnetChangeProtection
updateSubnetChangeProtection_firewallName = (UpdateSubnetChangeProtection -> Maybe Text)
-> (UpdateSubnetChangeProtection
-> Maybe Text -> UpdateSubnetChangeProtection)
-> Lens
UpdateSubnetChangeProtection
UpdateSubnetChangeProtection
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtection' {Maybe Text
firewallName :: Maybe Text
$sel:firewallName:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
firewallName} -> Maybe Text
firewallName) (\s :: UpdateSubnetChangeProtection
s@UpdateSubnetChangeProtection' {} Maybe Text
a -> UpdateSubnetChangeProtection
s {$sel:firewallName:UpdateSubnetChangeProtection' :: Maybe Text
firewallName = Maybe Text
a} :: UpdateSubnetChangeProtection)
updateSubnetChangeProtection_subnetChangeProtection :: Lens.Lens' UpdateSubnetChangeProtection Prelude.Bool
updateSubnetChangeProtection_subnetChangeProtection :: (Bool -> f Bool)
-> UpdateSubnetChangeProtection -> f UpdateSubnetChangeProtection
updateSubnetChangeProtection_subnetChangeProtection = (UpdateSubnetChangeProtection -> Bool)
-> (UpdateSubnetChangeProtection
-> Bool -> UpdateSubnetChangeProtection)
-> Lens
UpdateSubnetChangeProtection UpdateSubnetChangeProtection Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtection' {Bool
subnetChangeProtection :: Bool
$sel:subnetChangeProtection:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Bool
subnetChangeProtection} -> Bool
subnetChangeProtection) (\s :: UpdateSubnetChangeProtection
s@UpdateSubnetChangeProtection' {} Bool
a -> UpdateSubnetChangeProtection
s {$sel:subnetChangeProtection:UpdateSubnetChangeProtection' :: Bool
subnetChangeProtection = Bool
a} :: UpdateSubnetChangeProtection)
instance Core.AWSRequest UpdateSubnetChangeProtection where
type
AWSResponse UpdateSubnetChangeProtection =
UpdateSubnetChangeProtectionResponse
request :: UpdateSubnetChangeProtection
-> Request UpdateSubnetChangeProtection
request = Service
-> UpdateSubnetChangeProtection
-> Request UpdateSubnetChangeProtection
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateSubnetChangeProtection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateSubnetChangeProtection)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateSubnetChangeProtection))
-> Logger
-> Service
-> Proxy UpdateSubnetChangeProtection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateSubnetChangeProtection)))
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 Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Int
-> UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Int
-> UpdateSubnetChangeProtectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Int
-> UpdateSubnetChangeProtectionResponse)
forall (f :: * -> *) a b. Functor 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
"UpdateToken")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Int
-> UpdateSubnetChangeProtectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text -> Int -> UpdateSubnetChangeProtectionResponse)
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
"FirewallArn")
Either
String
(Maybe Bool
-> Maybe Text -> Int -> UpdateSubnetChangeProtectionResponse)
-> Either String (Maybe Bool)
-> Either
String (Maybe Text -> Int -> UpdateSubnetChangeProtectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SubnetChangeProtection")
Either
String (Maybe Text -> Int -> UpdateSubnetChangeProtectionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateSubnetChangeProtectionResponse)
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
"FirewallName")
Either String (Int -> UpdateSubnetChangeProtectionResponse)
-> Either String Int
-> Either String UpdateSubnetChangeProtectionResponse
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
UpdateSubnetChangeProtection
instance Prelude.NFData UpdateSubnetChangeProtection
instance Core.ToHeaders UpdateSubnetChangeProtection where
toHeaders :: UpdateSubnetChangeProtection -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateSubnetChangeProtection -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"NetworkFirewall_20201112.UpdateSubnetChangeProtection" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateSubnetChangeProtection where
toJSON :: UpdateSubnetChangeProtection -> Value
toJSON UpdateSubnetChangeProtection' {Bool
Maybe Text
subnetChangeProtection :: Bool
firewallName :: Maybe Text
firewallArn :: Maybe Text
updateToken :: Maybe Text
$sel:subnetChangeProtection:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Bool
$sel:firewallName:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
$sel:firewallArn:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
$sel:updateToken:UpdateSubnetChangeProtection' :: UpdateSubnetChangeProtection -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"UpdateToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
updateToken,
(Text
"FirewallArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
firewallArn,
(Text
"FirewallName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
firewallName,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"SubnetChangeProtection"
Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
subnetChangeProtection
)
]
)
instance Core.ToPath UpdateSubnetChangeProtection where
toPath :: UpdateSubnetChangeProtection -> ByteString
toPath = ByteString -> UpdateSubnetChangeProtection -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateSubnetChangeProtection where
toQuery :: UpdateSubnetChangeProtection -> QueryString
toQuery = QueryString -> UpdateSubnetChangeProtection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateSubnetChangeProtectionResponse = UpdateSubnetChangeProtectionResponse'
{
UpdateSubnetChangeProtectionResponse -> Maybe Text
updateToken :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtectionResponse -> Maybe Text
firewallArn :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtectionResponse -> Maybe Bool
subnetChangeProtection :: Prelude.Maybe Prelude.Bool,
UpdateSubnetChangeProtectionResponse -> Maybe Text
firewallName :: Prelude.Maybe Prelude.Text,
UpdateSubnetChangeProtectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool
(UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool)
-> (UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool)
-> Eq UpdateSubnetChangeProtectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool
$c/= :: UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool
== :: UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool
$c== :: UpdateSubnetChangeProtectionResponse
-> UpdateSubnetChangeProtectionResponse -> Bool
Prelude.Eq, ReadPrec [UpdateSubnetChangeProtectionResponse]
ReadPrec UpdateSubnetChangeProtectionResponse
Int -> ReadS UpdateSubnetChangeProtectionResponse
ReadS [UpdateSubnetChangeProtectionResponse]
(Int -> ReadS UpdateSubnetChangeProtectionResponse)
-> ReadS [UpdateSubnetChangeProtectionResponse]
-> ReadPrec UpdateSubnetChangeProtectionResponse
-> ReadPrec [UpdateSubnetChangeProtectionResponse]
-> Read UpdateSubnetChangeProtectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSubnetChangeProtectionResponse]
$creadListPrec :: ReadPrec [UpdateSubnetChangeProtectionResponse]
readPrec :: ReadPrec UpdateSubnetChangeProtectionResponse
$creadPrec :: ReadPrec UpdateSubnetChangeProtectionResponse
readList :: ReadS [UpdateSubnetChangeProtectionResponse]
$creadList :: ReadS [UpdateSubnetChangeProtectionResponse]
readsPrec :: Int -> ReadS UpdateSubnetChangeProtectionResponse
$creadsPrec :: Int -> ReadS UpdateSubnetChangeProtectionResponse
Prelude.Read, Int -> UpdateSubnetChangeProtectionResponse -> ShowS
[UpdateSubnetChangeProtectionResponse] -> ShowS
UpdateSubnetChangeProtectionResponse -> String
(Int -> UpdateSubnetChangeProtectionResponse -> ShowS)
-> (UpdateSubnetChangeProtectionResponse -> String)
-> ([UpdateSubnetChangeProtectionResponse] -> ShowS)
-> Show UpdateSubnetChangeProtectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSubnetChangeProtectionResponse] -> ShowS
$cshowList :: [UpdateSubnetChangeProtectionResponse] -> ShowS
show :: UpdateSubnetChangeProtectionResponse -> String
$cshow :: UpdateSubnetChangeProtectionResponse -> String
showsPrec :: Int -> UpdateSubnetChangeProtectionResponse -> ShowS
$cshowsPrec :: Int -> UpdateSubnetChangeProtectionResponse -> ShowS
Prelude.Show, (forall x.
UpdateSubnetChangeProtectionResponse
-> Rep UpdateSubnetChangeProtectionResponse x)
-> (forall x.
Rep UpdateSubnetChangeProtectionResponse x
-> UpdateSubnetChangeProtectionResponse)
-> Generic UpdateSubnetChangeProtectionResponse
forall x.
Rep UpdateSubnetChangeProtectionResponse x
-> UpdateSubnetChangeProtectionResponse
forall x.
UpdateSubnetChangeProtectionResponse
-> Rep UpdateSubnetChangeProtectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSubnetChangeProtectionResponse x
-> UpdateSubnetChangeProtectionResponse
$cfrom :: forall x.
UpdateSubnetChangeProtectionResponse
-> Rep UpdateSubnetChangeProtectionResponse x
Prelude.Generic)
newUpdateSubnetChangeProtectionResponse ::
Prelude.Int ->
UpdateSubnetChangeProtectionResponse
newUpdateSubnetChangeProtectionResponse :: Int -> UpdateSubnetChangeProtectionResponse
newUpdateSubnetChangeProtectionResponse Int
pHttpStatus_ =
UpdateSubnetChangeProtectionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Int
-> UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse'
{ $sel:updateToken:UpdateSubnetChangeProtectionResponse' :: Maybe Text
updateToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:firewallArn:UpdateSubnetChangeProtectionResponse' :: Maybe Text
firewallArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:subnetChangeProtection:UpdateSubnetChangeProtectionResponse' :: Maybe Bool
subnetChangeProtection =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:firewallName:UpdateSubnetChangeProtectionResponse' :: Maybe Text
firewallName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateSubnetChangeProtectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateSubnetChangeProtectionResponse_updateToken :: Lens.Lens' UpdateSubnetChangeProtectionResponse (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtectionResponse_updateToken :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtectionResponse
-> f UpdateSubnetChangeProtectionResponse
updateSubnetChangeProtectionResponse_updateToken = (UpdateSubnetChangeProtectionResponse -> Maybe Text)
-> (UpdateSubnetChangeProtectionResponse
-> Maybe Text -> UpdateSubnetChangeProtectionResponse)
-> Lens
UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtectionResponse' {Maybe Text
updateToken :: Maybe Text
$sel:updateToken:UpdateSubnetChangeProtectionResponse' :: UpdateSubnetChangeProtectionResponse -> Maybe Text
updateToken} -> Maybe Text
updateToken) (\s :: UpdateSubnetChangeProtectionResponse
s@UpdateSubnetChangeProtectionResponse' {} Maybe Text
a -> UpdateSubnetChangeProtectionResponse
s {$sel:updateToken:UpdateSubnetChangeProtectionResponse' :: Maybe Text
updateToken = Maybe Text
a} :: UpdateSubnetChangeProtectionResponse)
updateSubnetChangeProtectionResponse_firewallArn :: Lens.Lens' UpdateSubnetChangeProtectionResponse (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtectionResponse_firewallArn :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtectionResponse
-> f UpdateSubnetChangeProtectionResponse
updateSubnetChangeProtectionResponse_firewallArn = (UpdateSubnetChangeProtectionResponse -> Maybe Text)
-> (UpdateSubnetChangeProtectionResponse
-> Maybe Text -> UpdateSubnetChangeProtectionResponse)
-> Lens
UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtectionResponse' {Maybe Text
firewallArn :: Maybe Text
$sel:firewallArn:UpdateSubnetChangeProtectionResponse' :: UpdateSubnetChangeProtectionResponse -> Maybe Text
firewallArn} -> Maybe Text
firewallArn) (\s :: UpdateSubnetChangeProtectionResponse
s@UpdateSubnetChangeProtectionResponse' {} Maybe Text
a -> UpdateSubnetChangeProtectionResponse
s {$sel:firewallArn:UpdateSubnetChangeProtectionResponse' :: Maybe Text
firewallArn = Maybe Text
a} :: UpdateSubnetChangeProtectionResponse)
updateSubnetChangeProtectionResponse_subnetChangeProtection :: Lens.Lens' UpdateSubnetChangeProtectionResponse (Prelude.Maybe Prelude.Bool)
updateSubnetChangeProtectionResponse_subnetChangeProtection :: (Maybe Bool -> f (Maybe Bool))
-> UpdateSubnetChangeProtectionResponse
-> f UpdateSubnetChangeProtectionResponse
updateSubnetChangeProtectionResponse_subnetChangeProtection = (UpdateSubnetChangeProtectionResponse -> Maybe Bool)
-> (UpdateSubnetChangeProtectionResponse
-> Maybe Bool -> UpdateSubnetChangeProtectionResponse)
-> Lens
UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtectionResponse' {Maybe Bool
subnetChangeProtection :: Maybe Bool
$sel:subnetChangeProtection:UpdateSubnetChangeProtectionResponse' :: UpdateSubnetChangeProtectionResponse -> Maybe Bool
subnetChangeProtection} -> Maybe Bool
subnetChangeProtection) (\s :: UpdateSubnetChangeProtectionResponse
s@UpdateSubnetChangeProtectionResponse' {} Maybe Bool
a -> UpdateSubnetChangeProtectionResponse
s {$sel:subnetChangeProtection:UpdateSubnetChangeProtectionResponse' :: Maybe Bool
subnetChangeProtection = Maybe Bool
a} :: UpdateSubnetChangeProtectionResponse)
updateSubnetChangeProtectionResponse_firewallName :: Lens.Lens' UpdateSubnetChangeProtectionResponse (Prelude.Maybe Prelude.Text)
updateSubnetChangeProtectionResponse_firewallName :: (Maybe Text -> f (Maybe Text))
-> UpdateSubnetChangeProtectionResponse
-> f UpdateSubnetChangeProtectionResponse
updateSubnetChangeProtectionResponse_firewallName = (UpdateSubnetChangeProtectionResponse -> Maybe Text)
-> (UpdateSubnetChangeProtectionResponse
-> Maybe Text -> UpdateSubnetChangeProtectionResponse)
-> Lens
UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtectionResponse' {Maybe Text
firewallName :: Maybe Text
$sel:firewallName:UpdateSubnetChangeProtectionResponse' :: UpdateSubnetChangeProtectionResponse -> Maybe Text
firewallName} -> Maybe Text
firewallName) (\s :: UpdateSubnetChangeProtectionResponse
s@UpdateSubnetChangeProtectionResponse' {} Maybe Text
a -> UpdateSubnetChangeProtectionResponse
s {$sel:firewallName:UpdateSubnetChangeProtectionResponse' :: Maybe Text
firewallName = Maybe Text
a} :: UpdateSubnetChangeProtectionResponse)
updateSubnetChangeProtectionResponse_httpStatus :: Lens.Lens' UpdateSubnetChangeProtectionResponse Prelude.Int
updateSubnetChangeProtectionResponse_httpStatus :: (Int -> f Int)
-> UpdateSubnetChangeProtectionResponse
-> f UpdateSubnetChangeProtectionResponse
updateSubnetChangeProtectionResponse_httpStatus = (UpdateSubnetChangeProtectionResponse -> Int)
-> (UpdateSubnetChangeProtectionResponse
-> Int -> UpdateSubnetChangeProtectionResponse)
-> Lens
UpdateSubnetChangeProtectionResponse
UpdateSubnetChangeProtectionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSubnetChangeProtectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateSubnetChangeProtectionResponse' :: UpdateSubnetChangeProtectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateSubnetChangeProtectionResponse
s@UpdateSubnetChangeProtectionResponse' {} Int
a -> UpdateSubnetChangeProtectionResponse
s {$sel:httpStatus:UpdateSubnetChangeProtectionResponse' :: Int
httpStatus = Int
a} :: UpdateSubnetChangeProtectionResponse)
instance
Prelude.NFData
UpdateSubnetChangeProtectionResponse