{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FMS.Types.NetworkFirewallUnexpectedFirewallRoutesViolation
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FMS.Types.NetworkFirewallUnexpectedFirewallRoutesViolation where

import qualified Amazonka.Core as Core
import Amazonka.FMS.Types.Route
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Violation detail for an unexpected route that\'s present in a route
-- table.
--
-- /See:/ 'newNetworkFirewallUnexpectedFirewallRoutesViolation' smart constructor.
data NetworkFirewallUnexpectedFirewallRoutesViolation = NetworkFirewallUnexpectedFirewallRoutesViolation'
  { -- | The ID of the route table.
    NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
routeTableId :: Prelude.Maybe Prelude.Text,
    -- | Information about the VPC ID.
    NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | The routes that are in violation.
    NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe [Route]
violatingRoutes :: Prelude.Maybe [Route],
    -- | The endpoint of the firewall.
    NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
firewallEndpoint :: Prelude.Maybe Prelude.Text,
    -- | The subnet ID for the firewall.
    NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
firewallSubnetId :: Prelude.Maybe Prelude.Text
  }
  deriving (NetworkFirewallUnexpectedFirewallRoutesViolation
-> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool
(NetworkFirewallUnexpectedFirewallRoutesViolation
 -> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool)
-> Eq NetworkFirewallUnexpectedFirewallRoutesViolation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkFirewallUnexpectedFirewallRoutesViolation
-> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool
$c/= :: NetworkFirewallUnexpectedFirewallRoutesViolation
-> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool
== :: NetworkFirewallUnexpectedFirewallRoutesViolation
-> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool
$c== :: NetworkFirewallUnexpectedFirewallRoutesViolation
-> NetworkFirewallUnexpectedFirewallRoutesViolation -> Bool
Prelude.Eq, ReadPrec [NetworkFirewallUnexpectedFirewallRoutesViolation]
ReadPrec NetworkFirewallUnexpectedFirewallRoutesViolation
Int -> ReadS NetworkFirewallUnexpectedFirewallRoutesViolation
ReadS [NetworkFirewallUnexpectedFirewallRoutesViolation]
(Int -> ReadS NetworkFirewallUnexpectedFirewallRoutesViolation)
-> ReadS [NetworkFirewallUnexpectedFirewallRoutesViolation]
-> ReadPrec NetworkFirewallUnexpectedFirewallRoutesViolation
-> ReadPrec [NetworkFirewallUnexpectedFirewallRoutesViolation]
-> Read NetworkFirewallUnexpectedFirewallRoutesViolation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkFirewallUnexpectedFirewallRoutesViolation]
$creadListPrec :: ReadPrec [NetworkFirewallUnexpectedFirewallRoutesViolation]
readPrec :: ReadPrec NetworkFirewallUnexpectedFirewallRoutesViolation
$creadPrec :: ReadPrec NetworkFirewallUnexpectedFirewallRoutesViolation
readList :: ReadS [NetworkFirewallUnexpectedFirewallRoutesViolation]
$creadList :: ReadS [NetworkFirewallUnexpectedFirewallRoutesViolation]
readsPrec :: Int -> ReadS NetworkFirewallUnexpectedFirewallRoutesViolation
$creadsPrec :: Int -> ReadS NetworkFirewallUnexpectedFirewallRoutesViolation
Prelude.Read, Int -> NetworkFirewallUnexpectedFirewallRoutesViolation -> ShowS
[NetworkFirewallUnexpectedFirewallRoutesViolation] -> ShowS
NetworkFirewallUnexpectedFirewallRoutesViolation -> String
(Int -> NetworkFirewallUnexpectedFirewallRoutesViolation -> ShowS)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation -> String)
-> ([NetworkFirewallUnexpectedFirewallRoutesViolation] -> ShowS)
-> Show NetworkFirewallUnexpectedFirewallRoutesViolation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkFirewallUnexpectedFirewallRoutesViolation] -> ShowS
$cshowList :: [NetworkFirewallUnexpectedFirewallRoutesViolation] -> ShowS
show :: NetworkFirewallUnexpectedFirewallRoutesViolation -> String
$cshow :: NetworkFirewallUnexpectedFirewallRoutesViolation -> String
showsPrec :: Int -> NetworkFirewallUnexpectedFirewallRoutesViolation -> ShowS
$cshowsPrec :: Int -> NetworkFirewallUnexpectedFirewallRoutesViolation -> ShowS
Prelude.Show, (forall x.
 NetworkFirewallUnexpectedFirewallRoutesViolation
 -> Rep NetworkFirewallUnexpectedFirewallRoutesViolation x)
-> (forall x.
    Rep NetworkFirewallUnexpectedFirewallRoutesViolation x
    -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Generic NetworkFirewallUnexpectedFirewallRoutesViolation
forall x.
Rep NetworkFirewallUnexpectedFirewallRoutesViolation x
-> NetworkFirewallUnexpectedFirewallRoutesViolation
forall x.
NetworkFirewallUnexpectedFirewallRoutesViolation
-> Rep NetworkFirewallUnexpectedFirewallRoutesViolation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NetworkFirewallUnexpectedFirewallRoutesViolation x
-> NetworkFirewallUnexpectedFirewallRoutesViolation
$cfrom :: forall x.
NetworkFirewallUnexpectedFirewallRoutesViolation
-> Rep NetworkFirewallUnexpectedFirewallRoutesViolation x
Prelude.Generic)

-- |
-- Create a value of 'NetworkFirewallUnexpectedFirewallRoutesViolation' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'routeTableId', 'networkFirewallUnexpectedFirewallRoutesViolation_routeTableId' - The ID of the route table.
--
-- 'vpcId', 'networkFirewallUnexpectedFirewallRoutesViolation_vpcId' - Information about the VPC ID.
--
-- 'violatingRoutes', 'networkFirewallUnexpectedFirewallRoutesViolation_violatingRoutes' - The routes that are in violation.
--
-- 'firewallEndpoint', 'networkFirewallUnexpectedFirewallRoutesViolation_firewallEndpoint' - The endpoint of the firewall.
--
-- 'firewallSubnetId', 'networkFirewallUnexpectedFirewallRoutesViolation_firewallSubnetId' - The subnet ID for the firewall.
newNetworkFirewallUnexpectedFirewallRoutesViolation ::
  NetworkFirewallUnexpectedFirewallRoutesViolation
newNetworkFirewallUnexpectedFirewallRoutesViolation :: NetworkFirewallUnexpectedFirewallRoutesViolation
newNetworkFirewallUnexpectedFirewallRoutesViolation =
  NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
-> Maybe Text
-> Maybe [Route]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallUnexpectedFirewallRoutesViolation
NetworkFirewallUnexpectedFirewallRoutesViolation'
    { $sel:routeTableId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
routeTableId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:violatingRoutes:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe [Route]
violatingRoutes =
        Maybe [Route]
forall a. Maybe a
Prelude.Nothing,
      $sel:firewallEndpoint:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
firewallEndpoint =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:firewallSubnetId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
firewallSubnetId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The ID of the route table.
networkFirewallUnexpectedFirewallRoutesViolation_routeTableId :: Lens.Lens' NetworkFirewallUnexpectedFirewallRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallUnexpectedFirewallRoutesViolation_routeTableId :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
networkFirewallUnexpectedFirewallRoutesViolation_routeTableId = (NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Lens
     NetworkFirewallUnexpectedFirewallRoutesViolation
     NetworkFirewallUnexpectedFirewallRoutesViolation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallUnexpectedFirewallRoutesViolation' {Maybe Text
routeTableId :: Maybe Text
$sel:routeTableId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
routeTableId} -> Maybe Text
routeTableId) (\s :: NetworkFirewallUnexpectedFirewallRoutesViolation
s@NetworkFirewallUnexpectedFirewallRoutesViolation' {} Maybe Text
a -> NetworkFirewallUnexpectedFirewallRoutesViolation
s {$sel:routeTableId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
routeTableId = Maybe Text
a} :: NetworkFirewallUnexpectedFirewallRoutesViolation)

-- | Information about the VPC ID.
networkFirewallUnexpectedFirewallRoutesViolation_vpcId :: Lens.Lens' NetworkFirewallUnexpectedFirewallRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallUnexpectedFirewallRoutesViolation_vpcId :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
networkFirewallUnexpectedFirewallRoutesViolation_vpcId = (NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Lens
     NetworkFirewallUnexpectedFirewallRoutesViolation
     NetworkFirewallUnexpectedFirewallRoutesViolation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallUnexpectedFirewallRoutesViolation' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: NetworkFirewallUnexpectedFirewallRoutesViolation
s@NetworkFirewallUnexpectedFirewallRoutesViolation' {} Maybe Text
a -> NetworkFirewallUnexpectedFirewallRoutesViolation
s {$sel:vpcId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
vpcId = Maybe Text
a} :: NetworkFirewallUnexpectedFirewallRoutesViolation)

-- | The routes that are in violation.
networkFirewallUnexpectedFirewallRoutesViolation_violatingRoutes :: Lens.Lens' NetworkFirewallUnexpectedFirewallRoutesViolation (Prelude.Maybe [Route])
networkFirewallUnexpectedFirewallRoutesViolation_violatingRoutes :: (Maybe [Route] -> f (Maybe [Route]))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
networkFirewallUnexpectedFirewallRoutesViolation_violatingRoutes = (NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe [Route])
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> Maybe [Route]
    -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Lens
     NetworkFirewallUnexpectedFirewallRoutesViolation
     NetworkFirewallUnexpectedFirewallRoutesViolation
     (Maybe [Route])
     (Maybe [Route])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallUnexpectedFirewallRoutesViolation' {Maybe [Route]
violatingRoutes :: Maybe [Route]
$sel:violatingRoutes:NetworkFirewallUnexpectedFirewallRoutesViolation' :: NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe [Route]
violatingRoutes} -> Maybe [Route]
violatingRoutes) (\s :: NetworkFirewallUnexpectedFirewallRoutesViolation
s@NetworkFirewallUnexpectedFirewallRoutesViolation' {} Maybe [Route]
a -> NetworkFirewallUnexpectedFirewallRoutesViolation
s {$sel:violatingRoutes:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe [Route]
violatingRoutes = Maybe [Route]
a} :: NetworkFirewallUnexpectedFirewallRoutesViolation) ((Maybe [Route] -> f (Maybe [Route]))
 -> NetworkFirewallUnexpectedFirewallRoutesViolation
 -> f NetworkFirewallUnexpectedFirewallRoutesViolation)
-> ((Maybe [Route] -> f (Maybe [Route]))
    -> Maybe [Route] -> f (Maybe [Route]))
-> (Maybe [Route] -> f (Maybe [Route]))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Route] [Route] [Route] [Route]
-> Iso
     (Maybe [Route]) (Maybe [Route]) (Maybe [Route]) (Maybe [Route])
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 [Route] [Route] [Route] [Route]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The endpoint of the firewall.
networkFirewallUnexpectedFirewallRoutesViolation_firewallEndpoint :: Lens.Lens' NetworkFirewallUnexpectedFirewallRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallUnexpectedFirewallRoutesViolation_firewallEndpoint :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
networkFirewallUnexpectedFirewallRoutesViolation_firewallEndpoint = (NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Lens
     NetworkFirewallUnexpectedFirewallRoutesViolation
     NetworkFirewallUnexpectedFirewallRoutesViolation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallUnexpectedFirewallRoutesViolation' {Maybe Text
firewallEndpoint :: Maybe Text
$sel:firewallEndpoint:NetworkFirewallUnexpectedFirewallRoutesViolation' :: NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
firewallEndpoint} -> Maybe Text
firewallEndpoint) (\s :: NetworkFirewallUnexpectedFirewallRoutesViolation
s@NetworkFirewallUnexpectedFirewallRoutesViolation' {} Maybe Text
a -> NetworkFirewallUnexpectedFirewallRoutesViolation
s {$sel:firewallEndpoint:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
firewallEndpoint = Maybe Text
a} :: NetworkFirewallUnexpectedFirewallRoutesViolation)

-- | The subnet ID for the firewall.
networkFirewallUnexpectedFirewallRoutesViolation_firewallSubnetId :: Lens.Lens' NetworkFirewallUnexpectedFirewallRoutesViolation (Prelude.Maybe Prelude.Text)
networkFirewallUnexpectedFirewallRoutesViolation_firewallSubnetId :: (Maybe Text -> f (Maybe Text))
-> NetworkFirewallUnexpectedFirewallRoutesViolation
-> f NetworkFirewallUnexpectedFirewallRoutesViolation
networkFirewallUnexpectedFirewallRoutesViolation_firewallSubnetId = (NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text)
-> (NetworkFirewallUnexpectedFirewallRoutesViolation
    -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Lens
     NetworkFirewallUnexpectedFirewallRoutesViolation
     NetworkFirewallUnexpectedFirewallRoutesViolation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFirewallUnexpectedFirewallRoutesViolation' {Maybe Text
firewallSubnetId :: Maybe Text
$sel:firewallSubnetId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: NetworkFirewallUnexpectedFirewallRoutesViolation -> Maybe Text
firewallSubnetId} -> Maybe Text
firewallSubnetId) (\s :: NetworkFirewallUnexpectedFirewallRoutesViolation
s@NetworkFirewallUnexpectedFirewallRoutesViolation' {} Maybe Text
a -> NetworkFirewallUnexpectedFirewallRoutesViolation
s {$sel:firewallSubnetId:NetworkFirewallUnexpectedFirewallRoutesViolation' :: Maybe Text
firewallSubnetId = Maybe Text
a} :: NetworkFirewallUnexpectedFirewallRoutesViolation)

instance
  Core.FromJSON
    NetworkFirewallUnexpectedFirewallRoutesViolation
  where
  parseJSON :: Value -> Parser NetworkFirewallUnexpectedFirewallRoutesViolation
parseJSON =
    String
-> (Object
    -> Parser NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Value
-> Parser NetworkFirewallUnexpectedFirewallRoutesViolation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"NetworkFirewallUnexpectedFirewallRoutesViolation"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe [Route]
-> Maybe Text
-> Maybe Text
-> NetworkFirewallUnexpectedFirewallRoutesViolation
NetworkFirewallUnexpectedFirewallRoutesViolation'
            (Maybe Text
 -> Maybe Text
 -> Maybe [Route]
 -> Maybe Text
 -> Maybe Text
 -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [Route]
      -> Maybe Text
      -> Maybe Text
      -> NetworkFirewallUnexpectedFirewallRoutesViolation)
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
"RouteTableId")
              Parser
  (Maybe Text
   -> Maybe [Route]
   -> Maybe Text
   -> Maybe Text
   -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Route]
      -> Maybe Text
      -> Maybe Text
      -> NetworkFirewallUnexpectedFirewallRoutesViolation)
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 [Route]
   -> Maybe Text
   -> Maybe Text
   -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Parser (Maybe [Route])
-> Parser
     (Maybe Text
      -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Route]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ViolatingRoutes"
                              Parser (Maybe (Maybe [Route]))
-> Maybe [Route] -> Parser (Maybe [Route])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Route]
forall a. Monoid a => a
Prelude.mempty
                          )
              Parser
  (Maybe Text
   -> Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
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
"FirewallEndpoint")
              Parser
  (Maybe Text -> NetworkFirewallUnexpectedFirewallRoutesViolation)
-> Parser (Maybe Text)
-> Parser NetworkFirewallUnexpectedFirewallRoutesViolation
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
"FirewallSubnetId")
      )

instance
  Prelude.Hashable
    NetworkFirewallUnexpectedFirewallRoutesViolation

instance
  Prelude.NFData
    NetworkFirewallUnexpectedFirewallRoutesViolation