{-# 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.NetworkFirewallMissingSubnetViolation where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data NetworkFirewallMissingSubnetViolation = NetworkFirewallMissingSubnetViolation'
{
NetworkFirewallMissingSubnetViolation -> Maybe Text
targetViolationReason :: Prelude.Maybe Prelude.Text,
NetworkFirewallMissingSubnetViolation -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
NetworkFirewallMissingSubnetViolation -> Maybe Text
vpc :: Prelude.Maybe Prelude.Text,
NetworkFirewallMissingSubnetViolation -> Maybe Text
violationTarget :: Prelude.Maybe Prelude.Text
}
deriving (NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool
(NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool)
-> (NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool)
-> Eq NetworkFirewallMissingSubnetViolation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool
$c/= :: NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool
== :: NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool
$c== :: NetworkFirewallMissingSubnetViolation
-> NetworkFirewallMissingSubnetViolation -> Bool
Prelude.Eq, ReadPrec [NetworkFirewallMissingSubnetViolation]
ReadPrec NetworkFirewallMissingSubnetViolation
Int -> ReadS NetworkFirewallMissingSubnetViolation
ReadS [NetworkFirewallMissingSubnetViolation]
(Int -> ReadS NetworkFirewallMissingSubnetViolation)
-> ReadS [NetworkFirewallMissingSubnetViolation]
-> ReadPrec NetworkFirewallMissingSubnetViolation
-> ReadPrec [NetworkFirewallMissingSubnetViolation]
-> Read NetworkFirewallMissingSubnetViolation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkFirewallMissingSubnetViolation]
$creadListPrec :: ReadPrec [NetworkFirewallMissingSubnetViolation]
readPrec :: ReadPrec NetworkFirewallMissingSubnetViolation
$creadPrec :: ReadPrec NetworkFirewallMissingSubnetViolation
readList :: ReadS [NetworkFirewallMissingSubnetViolation]
$creadList :: ReadS [NetworkFirewallMissingSubnetViolation]
readsPrec :: Int -> ReadS NetworkFirewallMissingSubnetViolation
$creadsPrec :: Int -> ReadS NetworkFirewallMissingSubnetViolation
Prelude.Read, Int -> NetworkFirewallMissingSubnetViolation -> ShowS
[NetworkFirewallMissingSubnetViolation] -> ShowS
NetworkFirewallMissingSubnetViolation -> String
(Int -> NetworkFirewallMissingSubnetViolation -> ShowS)
-> (NetworkFirewallMissingSubnetViolation -> String)
-> ([NetworkFirewallMissingSubnetViolation] -> ShowS)
-> Show NetworkFirewallMissingSubnetViolation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkFirewallMissingSubnetViolation] -> ShowS
$cshowList :: [NetworkFirewallMissingSubnetViolation] -> ShowS
show :: NetworkFirewallMissingSubnetViolation -> String
$cshow :: NetworkFirewallMissingSubnetViolation -> String
showsPrec :: Int -> NetworkFirewallMissingSubnetViolation -> ShowS
$cshowsPrec :: Int -> NetworkFirewallMissingSubnetViolation -> ShowS
Prelude.Show, (forall x.
NetworkFirewallMissingSubnetViolation
-> Rep NetworkFirewallMissingSubnetViolation x)
-> (forall x.
Rep NetworkFirewallMissingSubnetViolation x
-> NetworkFirewallMissingSubnetViolation)
-> Generic NetworkFirewallMissingSubnetViolation
forall x.
Rep NetworkFirewallMissingSubnetViolation x
-> NetworkFirewallMissingSubnetViolation
forall x.
NetworkFirewallMissingSubnetViolation
-> Rep NetworkFirewallMissingSubnetViolation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NetworkFirewallMissingSubnetViolation x
-> NetworkFirewallMissingSubnetViolation
$cfrom :: forall x.
NetworkFirewallMissingSubnetViolation
-> Rep NetworkFirewallMissingSubnetViolation x
Prelude.Generic)
newNetworkFirewallMissingSubnetViolation ::
NetworkFirewallMissingSubnetViolation
newNetworkFirewallMissingSubnetViolation :: NetworkFirewallMissingSubnetViolation
newNetworkFirewallMissingSubnetViolation =
NetworkFirewallMissingSubnetViolation' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation'
{ $sel:targetViolationReason:NetworkFirewallMissingSubnetViolation' :: Maybe Text
targetViolationReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:NetworkFirewallMissingSubnetViolation' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpc:NetworkFirewallMissingSubnetViolation' :: Maybe Text
vpc = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:violationTarget:NetworkFirewallMissingSubnetViolation' :: Maybe Text
violationTarget = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
networkFirewallMissingSubnetViolation_targetViolationReason :: Lens.Lens' NetworkFirewallMissingSubnetViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingSubnetViolation_targetViolationReason :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingSubnetViolation
-> f NetworkFirewallMissingSubnetViolation
networkFirewallMissingSubnetViolation_targetViolationReason = (NetworkFirewallMissingSubnetViolation -> Maybe Text)
-> (NetworkFirewallMissingSubnetViolation
-> Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Lens
NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingSubnetViolation' {Maybe Text
targetViolationReason :: Maybe Text
$sel:targetViolationReason:NetworkFirewallMissingSubnetViolation' :: NetworkFirewallMissingSubnetViolation -> Maybe Text
targetViolationReason} -> Maybe Text
targetViolationReason) (\s :: NetworkFirewallMissingSubnetViolation
s@NetworkFirewallMissingSubnetViolation' {} Maybe Text
a -> NetworkFirewallMissingSubnetViolation
s {$sel:targetViolationReason:NetworkFirewallMissingSubnetViolation' :: Maybe Text
targetViolationReason = Maybe Text
a} :: NetworkFirewallMissingSubnetViolation)
networkFirewallMissingSubnetViolation_availabilityZone :: Lens.Lens' NetworkFirewallMissingSubnetViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingSubnetViolation_availabilityZone :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingSubnetViolation
-> f NetworkFirewallMissingSubnetViolation
networkFirewallMissingSubnetViolation_availabilityZone = (NetworkFirewallMissingSubnetViolation -> Maybe Text)
-> (NetworkFirewallMissingSubnetViolation
-> Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Lens
NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingSubnetViolation' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:NetworkFirewallMissingSubnetViolation' :: NetworkFirewallMissingSubnetViolation -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: NetworkFirewallMissingSubnetViolation
s@NetworkFirewallMissingSubnetViolation' {} Maybe Text
a -> NetworkFirewallMissingSubnetViolation
s {$sel:availabilityZone:NetworkFirewallMissingSubnetViolation' :: Maybe Text
availabilityZone = Maybe Text
a} :: NetworkFirewallMissingSubnetViolation)
networkFirewallMissingSubnetViolation_vpc :: Lens.Lens' NetworkFirewallMissingSubnetViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingSubnetViolation_vpc :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingSubnetViolation
-> f NetworkFirewallMissingSubnetViolation
networkFirewallMissingSubnetViolation_vpc = (NetworkFirewallMissingSubnetViolation -> Maybe Text)
-> (NetworkFirewallMissingSubnetViolation
-> Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Lens
NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingSubnetViolation' {Maybe Text
vpc :: Maybe Text
$sel:vpc:NetworkFirewallMissingSubnetViolation' :: NetworkFirewallMissingSubnetViolation -> Maybe Text
vpc} -> Maybe Text
vpc) (\s :: NetworkFirewallMissingSubnetViolation
s@NetworkFirewallMissingSubnetViolation' {} Maybe Text
a -> NetworkFirewallMissingSubnetViolation
s {$sel:vpc:NetworkFirewallMissingSubnetViolation' :: Maybe Text
vpc = Maybe Text
a} :: NetworkFirewallMissingSubnetViolation)
networkFirewallMissingSubnetViolation_violationTarget :: Lens.Lens' NetworkFirewallMissingSubnetViolation (Prelude.Maybe Prelude.Text)
networkFirewallMissingSubnetViolation_violationTarget :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallMissingSubnetViolation
-> f NetworkFirewallMissingSubnetViolation
networkFirewallMissingSubnetViolation_violationTarget = (NetworkFirewallMissingSubnetViolation -> Maybe Text)
-> (NetworkFirewallMissingSubnetViolation
-> Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Lens
NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallMissingSubnetViolation' {Maybe Text
violationTarget :: Maybe Text
$sel:violationTarget:NetworkFirewallMissingSubnetViolation' :: NetworkFirewallMissingSubnetViolation -> Maybe Text
violationTarget} -> Maybe Text
violationTarget) (\s :: NetworkFirewallMissingSubnetViolation
s@NetworkFirewallMissingSubnetViolation' {} Maybe Text
a -> NetworkFirewallMissingSubnetViolation
s {$sel:violationTarget:NetworkFirewallMissingSubnetViolation' :: Maybe Text
violationTarget = Maybe Text
a} :: NetworkFirewallMissingSubnetViolation)
instance
Core.FromJSON
NetworkFirewallMissingSubnetViolation
where
parseJSON :: Value -> Parser NetworkFirewallMissingSubnetViolation
parseJSON =
String
-> (Object -> Parser NetworkFirewallMissingSubnetViolation)
-> Value
-> Parser NetworkFirewallMissingSubnetViolation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"NetworkFirewallMissingSubnetViolation"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingSubnetViolation
NetworkFirewallMissingSubnetViolation'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingSubnetViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingSubnetViolation)
forall (f :: * -> *) a b. Functor 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
"TargetViolationReason")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> NetworkFirewallMissingSubnetViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> NetworkFirewallMissingSubnetViolation)
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
"AvailabilityZone")
Parser
(Maybe Text -> Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> NetworkFirewallMissingSubnetViolation)
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
"VPC")
Parser (Maybe Text -> NetworkFirewallMissingSubnetViolation)
-> Parser (Maybe Text)
-> Parser NetworkFirewallMissingSubnetViolation
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
NetworkFirewallMissingSubnetViolation
instance
Prelude.NFData
NetworkFirewallMissingSubnetViolation