{-# 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.ThirdPartyFirewallMissingExpectedRouteTableViolation
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | The violation details for a third-party firewall that\'s not associated
-- with an Firewall Manager managed route table.
--
-- /See:/ 'newThirdPartyFirewallMissingExpectedRouteTableViolation' smart constructor.
data ThirdPartyFirewallMissingExpectedRouteTableViolation = ThirdPartyFirewallMissingExpectedRouteTableViolation'
  { -- | The Availability Zone of the firewall subnet that\'s causing the
    -- violation.
    ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
    -- | The resource ID of the current route table that\'s associated with the
    -- subnet, if one is available.
    ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
currentRouteTable :: Prelude.Maybe Prelude.Text,
    -- | The resource ID of the route table that should be associated with the
    -- subnet.
    ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
expectedRouteTable :: Prelude.Maybe Prelude.Text,
    -- | The resource ID of the VPC associated with a fireawll subnet that\'s
    -- causing the violation.
    ThirdPartyFirewallMissingExpectedRouteTableViolation -> Maybe Text
vpc :: Prelude.Maybe Prelude.Text,
    -- | The ID of the third-party firewall or VPC resource that\'s causing the
    -- violation.
    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)

-- |
-- Create a value of 'ThirdPartyFirewallMissingExpectedRouteTableViolation' 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:
--
-- 'availabilityZone', 'thirdPartyFirewallMissingExpectedRouteTableViolation_availabilityZone' - The Availability Zone of the firewall subnet that\'s causing the
-- violation.
--
-- 'currentRouteTable', 'thirdPartyFirewallMissingExpectedRouteTableViolation_currentRouteTable' - The resource ID of the current route table that\'s associated with the
-- subnet, if one is available.
--
-- 'expectedRouteTable', 'thirdPartyFirewallMissingExpectedRouteTableViolation_expectedRouteTable' - The resource ID of the route table that should be associated with the
-- subnet.
--
-- 'vpc', 'thirdPartyFirewallMissingExpectedRouteTableViolation_vpc' - The resource ID of the VPC associated with a fireawll subnet that\'s
-- causing the violation.
--
-- 'violationTarget', 'thirdPartyFirewallMissingExpectedRouteTableViolation_violationTarget' - The ID of the third-party firewall or VPC resource that\'s causing the
-- violation.
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
    }

-- | The Availability Zone of the firewall subnet that\'s causing the
-- violation.
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)

-- | The resource ID of the current route table that\'s associated with the
-- subnet, if one is available.
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)

-- | The resource ID of the route table that should be associated with the
-- subnet.
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)

-- | The resource ID of the VPC associated with a fireawll subnet that\'s
-- causing the violation.
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)

-- | The ID of the third-party firewall or VPC resource that\'s causing the
-- violation.
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