{-# 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 qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FMS.Types.ExpectedRoute
import qualified Amazonka.Prelude as Prelude
data NetworkFirewallMissingExpectedRoutesViolation = NetworkFirewallMissingExpectedRoutesViolation'
{
NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
expectedRoutes :: Prelude.Maybe [ExpectedRoute],
NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
violationTarget :: Prelude.Maybe Prelude.Text,
NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
}
deriving (NetworkFirewallMissingExpectedRoutesViolation
-> NetworkFirewallMissingExpectedRoutesViolation -> Bool
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]
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
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.
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'
{ $sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe [ExpectedRoute]
expectedRoutes =
forall a. Maybe a
Prelude.Nothing,
$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
violationTarget =
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
}
networkFirewallMissingExpectedRoutesViolation_expectedRoutes :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe [ExpectedRoute])
networkFirewallMissingExpectedRoutesViolation_expectedRoutes :: Lens'
NetworkFirewallMissingExpectedRoutesViolation
(Maybe [ExpectedRoute])
networkFirewallMissingExpectedRoutesViolation_expectedRoutes = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
networkFirewallMissingExpectedRoutesViolation_violationTarget :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingExpectedRoutesViolation_violationTarget :: Lens' NetworkFirewallMissingExpectedRoutesViolation (Maybe Text)
networkFirewallMissingExpectedRoutesViolation_violationTarget = 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)
networkFirewallMissingExpectedRoutesViolation_vpcId :: Lens.Lens' NetworkFirewallMissingExpectedRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingExpectedRoutesViolation_vpcId :: Lens' NetworkFirewallMissingExpectedRoutesViolation (Maybe Text)
networkFirewallMissingExpectedRoutesViolation_vpcId = 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)
instance
Data.FromJSON
NetworkFirewallMissingExpectedRoutesViolation
where
parseJSON :: Value -> Parser NetworkFirewallMissingExpectedRoutesViolation
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"NetworkFirewallMissingExpectedRoutesViolation"
( \Object
x ->
Maybe [ExpectedRoute]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingExpectedRoutesViolation
NetworkFirewallMissingExpectedRoutesViolation'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExpectedRoutes" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ViolationTarget")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VpcId")
)
instance
Prelude.Hashable
NetworkFirewallMissingExpectedRoutesViolation
where
hashWithSalt :: Int -> NetworkFirewallMissingExpectedRoutesViolation -> Int
hashWithSalt
Int
_salt
NetworkFirewallMissingExpectedRoutesViolation' {Maybe [ExpectedRoute]
Maybe Text
vpcId :: Maybe Text
violationTarget :: Maybe Text
expectedRoutes :: Maybe [ExpectedRoute]
$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
$sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ExpectedRoute]
expectedRoutes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
violationTarget
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId
instance
Prelude.NFData
NetworkFirewallMissingExpectedRoutesViolation
where
rnf :: NetworkFirewallMissingExpectedRoutesViolation -> ()
rnf
NetworkFirewallMissingExpectedRoutesViolation' {Maybe [ExpectedRoute]
Maybe Text
vpcId :: Maybe Text
violationTarget :: Maybe Text
expectedRoutes :: Maybe [ExpectedRoute]
$sel:vpcId:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
$sel:violationTarget:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation -> Maybe Text
$sel:expectedRoutes:NetworkFirewallMissingExpectedRoutesViolation' :: NetworkFirewallMissingExpectedRoutesViolation
-> Maybe [ExpectedRoute]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ExpectedRoute]
expectedRoutes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
violationTarget
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId