{-# 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.ThirdPartyFirewallMissingExpectedRouteTableViolation where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ThirdPartyFirewallMissingExpectedRouteTableViolation = ThirdPartyFirewallMissingExpectedRouteTableViolation'
{
ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
currentRouteTable :: Prelude.Maybe Prelude.Text,
ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
expectedRouteTable :: Prelude.Maybe Prelude.Text,
ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
vpc :: Prelude.Maybe Prelude.Text,
ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
violationTarget :: Prelude.Maybe Prelude.Text
}
deriving (ThirdPartyFirewallMissingExpectedRouteTableViolation
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ThirdPartyFirewallMissingExpectedRouteTableViolation
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Bool
$c/= :: ThirdPartyFirewallMissingExpectedRouteTableViolation
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Bool
== :: ThirdPartyFirewallMissingExpectedRouteTableViolation
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Bool
$c== :: ThirdPartyFirewallMissingExpectedRouteTableViolation
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Bool
Prelude.Eq, ReadPrec [ThirdPartyFirewallMissingExpectedRouteTableViolation]
ReadPrec ThirdPartyFirewallMissingExpectedRouteTableViolation
Int -> ReadS ThirdPartyFirewallMissingExpectedRouteTableViolation
ReadS [ThirdPartyFirewallMissingExpectedRouteTableViolation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ThirdPartyFirewallMissingExpectedRouteTableViolation]
$creadListPrec :: ReadPrec [ThirdPartyFirewallMissingExpectedRouteTableViolation]
readPrec :: ReadPrec ThirdPartyFirewallMissingExpectedRouteTableViolation
$creadPrec :: ReadPrec ThirdPartyFirewallMissingExpectedRouteTableViolation
readList :: ReadS [ThirdPartyFirewallMissingExpectedRouteTableViolation]
$creadList :: ReadS [ThirdPartyFirewallMissingExpectedRouteTableViolation]
readsPrec :: Int -> ReadS ThirdPartyFirewallMissingExpectedRouteTableViolation
$creadsPrec :: Int -> ReadS ThirdPartyFirewallMissingExpectedRouteTableViolation
Prelude.Read, Int
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> ShowS
[ThirdPartyFirewallMissingExpectedRouteTableViolation] -> ShowS
ThirdPartyFirewallMissingExpectedRouteTableViolation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ThirdPartyFirewallMissingExpectedRouteTableViolation] -> ShowS
$cshowList :: [ThirdPartyFirewallMissingExpectedRouteTableViolation] -> ShowS
show :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> String
$cshow :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> String
showsPrec :: Int
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> ShowS
$cshowsPrec :: Int
-> ThirdPartyFirewallMissingExpectedRouteTableViolation -> ShowS
Prelude.Show, forall x.
Rep ThirdPartyFirewallMissingExpectedRouteTableViolation x
-> ThirdPartyFirewallMissingExpectedRouteTableViolation
forall x.
ThirdPartyFirewallMissingExpectedRouteTableViolation
-> Rep ThirdPartyFirewallMissingExpectedRouteTableViolation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ThirdPartyFirewallMissingExpectedRouteTableViolation x
-> ThirdPartyFirewallMissingExpectedRouteTableViolation
$cfrom :: forall x.
ThirdPartyFirewallMissingExpectedRouteTableViolation
-> Rep ThirdPartyFirewallMissingExpectedRouteTableViolation x
Prelude.Generic)
newThirdPartyFirewallMissingExpectedRouteTableViolation ::
ThirdPartyFirewallMissingExpectedRouteTableViolation
newThirdPartyFirewallMissingExpectedRouteTableViolation :: ThirdPartyFirewallMissingExpectedRouteTableViolation
newThirdPartyFirewallMissingExpectedRouteTableViolation =
ThirdPartyFirewallMissingExpectedRouteTableViolation'
{ $sel:availabilityZone:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
availabilityZone =
forall a. Maybe a
Prelude.Nothing,
$sel:currentRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
currentRouteTable =
forall a. Maybe a
Prelude.Nothing,
$sel:expectedRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
expectedRouteTable =
forall a. Maybe a
Prelude.Nothing,
$sel:vpc:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
vpc = forall a. Maybe a
Prelude.Nothing,
$sel:violationTarget:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
violationTarget =
forall a. Maybe a
Prelude.Nothing
}
thirdPartyFirewallMissingExpectedRouteTableViolation_availabilityZone :: Lens.Lens' ThirdPartyFirewallMissingExpectedRouteTableViolation (Prelude.Maybe Prelude.Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_availabilityZone :: Lens'
ThirdPartyFirewallMissingExpectedRouteTableViolation (Maybe Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_availabilityZone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: ThirdPartyFirewallMissingExpectedRouteTableViolation
s@ThirdPartyFirewallMissingExpectedRouteTableViolation' {} Maybe Text
a -> ThirdPartyFirewallMissingExpectedRouteTableViolation
s {$sel:availabilityZone:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
availabilityZone = Maybe Text
a} :: ThirdPartyFirewallMissingExpectedRouteTableViolation)
thirdPartyFirewallMissingExpectedRouteTableViolation_currentRouteTable :: Lens.Lens' ThirdPartyFirewallMissingExpectedRouteTableViolation (Prelude.Maybe Prelude.Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_currentRouteTable :: Lens'
ThirdPartyFirewallMissingExpectedRouteTableViolation (Maybe Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_currentRouteTable = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
currentRouteTable :: Maybe Text
$sel:currentRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
currentRouteTable} -> Maybe Text
currentRouteTable) (\s :: ThirdPartyFirewallMissingExpectedRouteTableViolation
s@ThirdPartyFirewallMissingExpectedRouteTableViolation' {} Maybe Text
a -> ThirdPartyFirewallMissingExpectedRouteTableViolation
s {$sel:currentRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
currentRouteTable = Maybe Text
a} :: ThirdPartyFirewallMissingExpectedRouteTableViolation)
thirdPartyFirewallMissingExpectedRouteTableViolation_expectedRouteTable :: Lens.Lens' ThirdPartyFirewallMissingExpectedRouteTableViolation (Prelude.Maybe Prelude.Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_expectedRouteTable :: Lens'
ThirdPartyFirewallMissingExpectedRouteTableViolation (Maybe Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_expectedRouteTable = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
expectedRouteTable :: Maybe Text
$sel:expectedRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
expectedRouteTable} -> Maybe Text
expectedRouteTable) (\s :: ThirdPartyFirewallMissingExpectedRouteTableViolation
s@ThirdPartyFirewallMissingExpectedRouteTableViolation' {} Maybe Text
a -> ThirdPartyFirewallMissingExpectedRouteTableViolation
s {$sel:expectedRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
expectedRouteTable = Maybe Text
a} :: ThirdPartyFirewallMissingExpectedRouteTableViolation)
thirdPartyFirewallMissingExpectedRouteTableViolation_vpc :: Lens.Lens' ThirdPartyFirewallMissingExpectedRouteTableViolation (Prelude.Maybe Prelude.Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_vpc :: Lens'
ThirdPartyFirewallMissingExpectedRouteTableViolation (Maybe Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_vpc = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
vpc :: Maybe Text
$sel:vpc:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
vpc} -> Maybe Text
vpc) (\s :: ThirdPartyFirewallMissingExpectedRouteTableViolation
s@ThirdPartyFirewallMissingExpectedRouteTableViolation' {} Maybe Text
a -> ThirdPartyFirewallMissingExpectedRouteTableViolation
s {$sel:vpc:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
vpc = Maybe Text
a} :: ThirdPartyFirewallMissingExpectedRouteTableViolation)
thirdPartyFirewallMissingExpectedRouteTableViolation_violationTarget :: Lens.Lens' ThirdPartyFirewallMissingExpectedRouteTableViolation (Prelude.Maybe Prelude.Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_violationTarget :: Lens'
ThirdPartyFirewallMissingExpectedRouteTableViolation (Maybe Text)
thirdPartyFirewallMissingExpectedRouteTableViolation_violationTarget = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
violationTarget :: Maybe Text
$sel:violationTarget:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
violationTarget} -> Maybe Text
violationTarget) (\s :: ThirdPartyFirewallMissingExpectedRouteTableViolation
s@ThirdPartyFirewallMissingExpectedRouteTableViolation' {} Maybe Text
a -> ThirdPartyFirewallMissingExpectedRouteTableViolation
s {$sel:violationTarget:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: Maybe Text
violationTarget = Maybe Text
a} :: ThirdPartyFirewallMissingExpectedRouteTableViolation)
instance
Data.FromJSON
ThirdPartyFirewallMissingExpectedRouteTableViolation
where
parseJSON :: Value
-> Parser ThirdPartyFirewallMissingExpectedRouteTableViolation
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ThirdPartyFirewallMissingExpectedRouteTableViolation"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ThirdPartyFirewallMissingExpectedRouteTableViolation
ThirdPartyFirewallMissingExpectedRouteTableViolation'
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
"AvailabilityZone")
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
"CurrentRouteTable")
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
"ExpectedRouteTable")
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
"VPC")
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")
)
instance
Prelude.Hashable
ThirdPartyFirewallMissingExpectedRouteTableViolation
where
hashWithSalt :: Int -> ThirdPartyFirewallMissingExpectedRouteTableViolation -> Int
hashWithSalt
Int
_salt
ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
violationTarget :: Maybe Text
vpc :: Maybe Text
expectedRouteTable :: Maybe Text
currentRouteTable :: Maybe Text
availabilityZone :: Maybe Text
$sel:violationTarget:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:vpc:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:expectedRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:currentRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:availabilityZone:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
availabilityZone
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
currentRouteTable
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
expectedRouteTable
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpc
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
violationTarget
instance
Prelude.NFData
ThirdPartyFirewallMissingExpectedRouteTableViolation
where
rnf :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> ()
rnf
ThirdPartyFirewallMissingExpectedRouteTableViolation' {Maybe Text
violationTarget :: Maybe Text
vpc :: Maybe Text
expectedRouteTable :: Maybe Text
currentRouteTable :: Maybe Text
availabilityZone :: Maybe Text
$sel:violationTarget:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:vpc:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:expectedRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:currentRouteTable:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
$sel:availabilityZone:ThirdPartyFirewallMissingExpectedRouteTableViolation' :: ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
availabilityZone
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
currentRouteTable
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
expectedRouteTable
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpc
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
violationTarget