module Stratosphere.NetworkFirewall.TLSInspectionConfiguration (
module Exports, TLSInspectionConfiguration(..),
mkTLSInspectionConfiguration
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.NetworkFirewall.TLSInspectionConfiguration.TLSInspectionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data TLSInspectionConfiguration
=
TLSInspectionConfiguration {TLSInspectionConfiguration -> ()
haddock_workaround_ :: (),
TLSInspectionConfiguration -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty,
TLSInspectionConfiguration -> Value Text
tLSInspectionConfigurationName :: (Value Prelude.Text),
TLSInspectionConfiguration -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool
(TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool)
-> (TLSInspectionConfiguration
-> TLSInspectionConfiguration -> Bool)
-> Eq TLSInspectionConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool
== :: TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool
$c/= :: TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool
/= :: TLSInspectionConfiguration -> TLSInspectionConfiguration -> Bool
Prelude.Eq, Int -> TLSInspectionConfiguration -> ShowS
[TLSInspectionConfiguration] -> ShowS
TLSInspectionConfiguration -> String
(Int -> TLSInspectionConfiguration -> ShowS)
-> (TLSInspectionConfiguration -> String)
-> ([TLSInspectionConfiguration] -> ShowS)
-> Show TLSInspectionConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TLSInspectionConfiguration -> ShowS
showsPrec :: Int -> TLSInspectionConfiguration -> ShowS
$cshow :: TLSInspectionConfiguration -> String
show :: TLSInspectionConfiguration -> String
$cshowList :: [TLSInspectionConfiguration] -> ShowS
showList :: [TLSInspectionConfiguration] -> ShowS
Prelude.Show)
mkTLSInspectionConfiguration ::
TLSInspectionConfigurationProperty
-> Value Prelude.Text -> TLSInspectionConfiguration
mkTLSInspectionConfiguration :: TLSInspectionConfigurationProperty
-> Value Text -> TLSInspectionConfiguration
mkTLSInspectionConfiguration
TLSInspectionConfigurationProperty
tLSInspectionConfiguration
Value Text
tLSInspectionConfigurationName
= TLSInspectionConfiguration
{haddock_workaround_ :: ()
haddock_workaround_ = (),
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfiguration = TLSInspectionConfigurationProperty
tLSInspectionConfiguration,
tLSInspectionConfigurationName :: Value Text
tLSInspectionConfigurationName = Value Text
tLSInspectionConfigurationName,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TLSInspectionConfiguration where
toResourceProperties :: TLSInspectionConfiguration -> ResourceProperties
toResourceProperties TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkFirewall::TLSInspectionConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"TLSInspectionConfiguration" Key -> TLSInspectionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TLSInspectionConfigurationProperty
tLSInspectionConfiguration,
Key
"TLSInspectionConfigurationName"
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
tLSInspectionConfigurationName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON TLSInspectionConfiguration where
toJSON :: TLSInspectionConfiguration -> Value
toJSON TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"TLSInspectionConfiguration" Key -> TLSInspectionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TLSInspectionConfigurationProperty
tLSInspectionConfiguration,
Key
"TLSInspectionConfigurationName"
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
tLSInspectionConfigurationName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Description" TLSInspectionConfiguration where
type PropertyType "Description" TLSInspectionConfiguration = Value Prelude.Text
set :: PropertyType "Description" TLSInspectionConfiguration
-> TLSInspectionConfiguration -> TLSInspectionConfiguration
set PropertyType "Description" TLSInspectionConfiguration
newValue TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= TLSInspectionConfiguration
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" TLSInspectionConfiguration
Value Text
newValue, Maybe [Tag]
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: ()
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "TLSInspectionConfiguration" TLSInspectionConfiguration where
type PropertyType "TLSInspectionConfiguration" TLSInspectionConfiguration = TLSInspectionConfigurationProperty
set :: PropertyType
"TLSInspectionConfiguration" TLSInspectionConfiguration
-> TLSInspectionConfiguration -> TLSInspectionConfiguration
set PropertyType
"TLSInspectionConfiguration" TLSInspectionConfiguration
newValue TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= TLSInspectionConfiguration
{tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfiguration = PropertyType
"TLSInspectionConfiguration" TLSInspectionConfiguration
TLSInspectionConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "TLSInspectionConfigurationName" TLSInspectionConfiguration where
type PropertyType "TLSInspectionConfigurationName" TLSInspectionConfiguration = Value Prelude.Text
set :: PropertyType
"TLSInspectionConfigurationName" TLSInspectionConfiguration
-> TLSInspectionConfiguration -> TLSInspectionConfiguration
set PropertyType
"TLSInspectionConfigurationName" TLSInspectionConfiguration
newValue TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= TLSInspectionConfiguration
{tLSInspectionConfigurationName :: Value Text
tLSInspectionConfigurationName = PropertyType
"TLSInspectionConfigurationName" TLSInspectionConfiguration
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
TLSInspectionConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" TLSInspectionConfiguration where
type PropertyType "Tags" TLSInspectionConfiguration = [Tag]
set :: PropertyType "Tags" TLSInspectionConfiguration
-> TLSInspectionConfiguration -> TLSInspectionConfiguration
set PropertyType "Tags" TLSInspectionConfiguration
newValue TLSInspectionConfiguration {Maybe [Tag]
Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: TLSInspectionConfiguration -> ()
description :: TLSInspectionConfiguration -> Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfiguration -> TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: TLSInspectionConfiguration -> Value Text
tags :: TLSInspectionConfiguration -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
tags :: Maybe [Tag]
..}
= TLSInspectionConfiguration {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" TLSInspectionConfiguration
newValue, Maybe (Value Text)
()
Value Text
TLSInspectionConfigurationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
tLSInspectionConfiguration :: TLSInspectionConfigurationProperty
tLSInspectionConfigurationName :: Value Text
..}