{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.FMS.Types.NetworkFirewallMissingExpectedRoutesViolation where
import qualified Amazonka.Core as Core
import Amazonka.FMS.Types.ExpectedRoute
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data NetworkFirewallMissingExpectedRoutesViolation = NetworkFirewallMissingExpectedRoutesViolation'
{
NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
expectedRoutes :: Prelude.Maybe [ExpectedRoute],
NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
violationTarget :: Prelude.Maybe Prelude.Text
}
deriving (NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
(NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool)
-> (NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool)
-> Eq NetworkFirewallMissingExpectedRoutesViolation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
$c/= :: NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
== :: NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
$c== :: NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
Prelude.Eq, ReadPrec [NetworkFirewallMissingExpectedRoutesViolation]
ReadPrec NetworkFirewallMissingExpectedRoutesViolation
Int -> ReadS NetworkFirewallMissingExpectedRoutesViolation
ReadS [NetworkFirewallMissingExpectedRoutesViolation]
(Int -> ReadS NetworkFirewallMissingExpectedRoutesViolation)
-> ReadS [NetworkFirewallMissingExpectedRoutesViolation]
-> ReadPrec NetworkFirewallMissingExpectedRoutesViolation
-> ReadPrec [NetworkFirewallMissingExpectedRoutesViolation]
-> Read NetworkFirewallMissingExpectedRoutesViolation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkFirewallMissingExpectedRoutesViolation]
$creadListPrec :: ReadPrec [NetworkFirewallMissingExpectedRoutesViolation]
readPrec :: ReadPrec NetworkFirewallMissingExpectedRoutesViolation
$creadPrec :: ReadPrec NetworkFirewallMissingExpectedRoutesViolation
readList :: ReadS [NetworkFirewallMissingExpectedRoutesViolation]
$creadList :: ReadS [NetworkFirewallMissingExpectedRoutesViolation]
readsPrec :: Int -> ReadS NetworkFirewallMissingExpectedRoutesViolation
$creadsPrec :: Int -> ReadS NetworkFirewallMissingExpectedRoutesViolation
Prelude.Read, Int -> NetworkFirewallMissingExpectedRoutesViolation -> ShowS
[NetworkFirewallMissingExpectedRoutesViolation] -> ShowS
NetworkFirewallMissingExpectedRoutesViolation -> String
(Int -> NetworkFirewallMissingExpectedRoutesViolation -> ShowS)
-> (NetworkFirewallMissingExpectedRoutesViolation -> String)
-> ([NetworkFirewallMissingExpectedRoutesViolation] -> ShowS)
-> Show NetworkFirewallMissingExpectedRoutesViolation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkFirewallMissingExpectedRoutesViolation] -> ShowS
$cshowList :: [NetworkFirewallMissingExpectedRoutesViolation] -> ShowS
show :: NetworkFirewallMissingExpectedRoutesViolation -> String
$cshow :: NetworkFirewallMissingExpectedRoutesViolation -> String
showsPrec :: Int -> NetworkFirewallMissingExpectedRoutesViolation -> ShowS
$cshowsPrec :: Int -> NetworkFirewallMissingExpectedRoutesViolation -> ShowS
Prelude.Show, (forall x.
NetworkFirewallMissingExpectedRoutesViolation
-> Rep NetworkFirewallMissingExpectedRoutesViolation x)
-> (forall x.
Rep NetworkFirewallMissingExpectedRoutesViolation x
-> NetworkFirewallMissingExpectedRoutesViolation)
-> Generic NetworkFirewallMissingExpectedRoutesViolation
forall x.
Rep NetworkFirewallMissingExpectedRoutesViolation x
-> NetworkFirewallMissingExpectedRoutesViolation
forall x.
NetworkFirewallMissingExpectedRoutesViolation
-> Rep NetworkFirewallMissingExpectedRoutesViolation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NetworkFirewallMissingExpectedRoutesViolation x
-> NetworkFirewallMissingExpectedRoutesViolation
$cfrom :: forall x.
NetworkFirewallMissingExpectedRoutesViolation
-> Rep NetworkFirewallMissingExpectedRoutesViolation x
Prelude.Generic)
newNetworkFirewallMissingExpectedRoutesViolation ::
NetworkFirewallMissingExpectedRoutesViolation
newNetworkFirewallMissingExpectedRoutesViolation :: NetworkFirewallMissingExpectedRoutesViolation
newNetworkFirewallMissingExpectedRoutesViolation =
NetworkFirewallMissingExpectedRoutesViolation' :: Maybe [ExpectedRoute]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation'
{ $sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe [ExpectedRoute]
expectedRoutes =
Maybe [ExpectedRoute]
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
violationTarget =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
networkFirewallMissingExpectedRoutesViolation_expectedRoutes :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe [ExpectedRoute])
networkFirewallMissingExpectedRoutesViolation_expectedRoutes :: (Maybe [ExpectedRoute] -> f (Maybe [ExpectedRoute]))
-> NetworkFirewallMissingExpectedRoutesViolation
-> f NetworkFirewallMissingExpectedRoutesViolation
networkFirewallMissingExpectedRoutesViolation_expectedRoutes = (NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute])
-> (NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
-> NetworkFirewallMissingExpectedRoutesViolation)
-> Lens
NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation
(Maybe [ExpectedRoute])
(Maybe [ExpectedRoute])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingExpectedRoutesViolation' {Maybe [ExpectedRoute]
expectedRoutes :: Maybe [ExpectedRoute]
$sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
expectedRoutes} -> Maybe [ExpectedRoute]
expectedRoutes) (\s :: NetworkFirewallMissingExpectedRoutesViolation
s@NetworkFirewallMissingExpectedRoutesViolation' {} Maybe [ExpectedRoute]
a -> NetworkFirewallMissingExpectedRoutesViolation
s {$sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe [ExpectedRoute]
expectedRoutes = Maybe [ExpectedRoute]
a} :: NetworkFirewallMissingExpectedRoutesViolation) ((Maybe [ExpectedRoute] -> f (Maybe [ExpectedRoute]))
-> NetworkFirewallMissingExpectedRoutesViolation
-> f NetworkFirewallMissingExpectedRoutesViolation)
-> ((Maybe [ExpectedRoute] -> f (Maybe [ExpectedRoute]))
-> Maybe [ExpectedRoute] -> f (Maybe [ExpectedRoute]))
-> (Maybe [ExpectedRoute] -> f (Maybe [ExpectedRoute]))
-> NetworkFirewallMissingExpectedRoutesViolation
-> f NetworkFirewallMissingExpectedRoutesViolation
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ExpectedRoute] [ExpectedRoute] [ExpectedRoute] [ExpectedRoute]
-> Iso
(Maybe [ExpectedRoute])
(Maybe [ExpectedRoute])
(Maybe [ExpectedRoute])
(Maybe [ExpectedRoute])
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
[ExpectedRoute] [ExpectedRoute] [ExpectedRoute] [ExpectedRoute]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
networkFirewallMissingExpectedRoutesViolation_vpcId :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingExpectedRoutesViolation_vpcId :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingExpectedRoutesViolation
-> f NetworkFirewallMissingExpectedRoutesViolation
networkFirewallMissingExpectedRoutesViolation_vpcId = (NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text)
-> (NetworkFirewallMissingExpectedRoutesViolation
-> Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
-> Lens
NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingExpectedRoutesViolation' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: NetworkFirewallMissingExpectedRoutesViolation
s@NetworkFirewallMissingExpectedRoutesViolation' {} Maybe Text
a -> NetworkFirewallMissingExpectedRoutesViolation
s {$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
vpcId = Maybe Text
a} :: NetworkFirewallMissingExpectedRoutesViolation)
networkFirewallMissingExpectedRoutesViolation_violationTarget :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingExpectedRoutesViolation_violationTarget :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingExpectedRoutesViolation
-> f NetworkFirewallMissingExpectedRoutesViolation
networkFirewallMissingExpectedRoutesViolation_violationTarget = (NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text)
-> (NetworkFirewallMissingExpectedRoutesViolation
-> Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
-> Lens
NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingExpectedRoutesViolation' {Maybe Text
violationTarget :: Maybe Text
$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
violationTarget} -> Maybe Text
violationTarget) (\s :: NetworkFirewallMissingExpectedRoutesViolation
s@NetworkFirewallMissingExpectedRoutesViolation' {} Maybe Text
a -> NetworkFirewallMissingExpectedRoutesViolation
s {$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
violationTarget = Maybe Text
a} :: NetworkFirewallMissingExpectedRoutesViolation)
instance
Core.FromJSON
NetworkFirewallMissingExpectedRoutesViolation
where
parseJSON :: Value -> Parser NetworkFirewallMissingExpectedRoutesViolation
parseJSON =
String
-> (Object -> Parser NetworkFirewallMissingExpectedRoutesViolation)
-> Value
-> Parser NetworkFirewallMissingExpectedRoutesViolation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"NetworkFirewallMissingExpectedRoutesViolation"
( \Object
x ->
Maybe [ExpectedRoute]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation'
(Maybe [ExpectedRoute]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingExpectedRoutesViolation)
-> Parser (Maybe [ExpectedRoute])
-> Parser
(Maybe Text
-> Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Maybe [ExpectedRoute]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExpectedRoutes" Parser (Maybe (Maybe [ExpectedRoute]))
-> Maybe [ExpectedRoute] -> Parser (Maybe [ExpectedRoute])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ExpectedRoute]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcId")
Parser
(Maybe Text -> NetworkFirewallMissingExpectedRoutesViolation)
-> Parser (Maybe Text)
-> Parser NetworkFirewallMissingExpectedRoutesViolation
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ViolationTarget")
)
instance
Prelude.Hashable
NetworkFirewallMissingExpectedRoutesViolation
instance
Prelude.NFData
NetworkFirewallMissingExpectedRoutesViolation