module Stratosphere.AppMesh.VirtualNode.ListenerTlsValidationContextProperty (
module Exports, ListenerTlsValidationContextProperty(..),
mkListenerTlsValidationContextProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualNode.ListenerTlsValidationContextTrustProperty as Exports
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualNode.SubjectAlternativeNamesProperty as Exports
import Stratosphere.ResourceProperties
data ListenerTlsValidationContextProperty
=
ListenerTlsValidationContextProperty {ListenerTlsValidationContextProperty -> ()
haddock_workaround_ :: (),
ListenerTlsValidationContextProperty
-> Maybe SubjectAlternativeNamesProperty
subjectAlternativeNames :: (Prelude.Maybe SubjectAlternativeNamesProperty),
ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextTrustProperty
trust :: ListenerTlsValidationContextTrustProperty}
deriving stock (ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool
(ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool)
-> (ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool)
-> Eq ListenerTlsValidationContextProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool
== :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool
$c/= :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool
/= :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty -> Bool
Prelude.Eq, Int -> ListenerTlsValidationContextProperty -> ShowS
[ListenerTlsValidationContextProperty] -> ShowS
ListenerTlsValidationContextProperty -> String
(Int -> ListenerTlsValidationContextProperty -> ShowS)
-> (ListenerTlsValidationContextProperty -> String)
-> ([ListenerTlsValidationContextProperty] -> ShowS)
-> Show ListenerTlsValidationContextProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ListenerTlsValidationContextProperty -> ShowS
showsPrec :: Int -> ListenerTlsValidationContextProperty -> ShowS
$cshow :: ListenerTlsValidationContextProperty -> String
show :: ListenerTlsValidationContextProperty -> String
$cshowList :: [ListenerTlsValidationContextProperty] -> ShowS
showList :: [ListenerTlsValidationContextProperty] -> ShowS
Prelude.Show)
mkListenerTlsValidationContextProperty ::
ListenerTlsValidationContextTrustProperty
-> ListenerTlsValidationContextProperty
mkListenerTlsValidationContextProperty :: ListenerTlsValidationContextTrustProperty
-> ListenerTlsValidationContextProperty
mkListenerTlsValidationContextProperty ListenerTlsValidationContextTrustProperty
trust
= ListenerTlsValidationContextProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), trust :: ListenerTlsValidationContextTrustProperty
trust = ListenerTlsValidationContextTrustProperty
trust,
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
subjectAlternativeNames = Maybe SubjectAlternativeNamesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ListenerTlsValidationContextProperty where
toResourceProperties :: ListenerTlsValidationContextProperty -> ResourceProperties
toResourceProperties ListenerTlsValidationContextProperty {Maybe SubjectAlternativeNamesProperty
()
ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ListenerTlsValidationContextProperty -> ()
subjectAlternativeNames :: ListenerTlsValidationContextProperty
-> Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextTrustProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualNode.ListenerTlsValidationContext",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"Trust" Key -> ListenerTlsValidationContextTrustProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ListenerTlsValidationContextTrustProperty
trust]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> SubjectAlternativeNamesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SubjectAlternativeNames"
(SubjectAlternativeNamesProperty -> (Key, Value))
-> Maybe SubjectAlternativeNamesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SubjectAlternativeNamesProperty
subjectAlternativeNames]))}
instance JSON.ToJSON ListenerTlsValidationContextProperty where
toJSON :: ListenerTlsValidationContextProperty -> Value
toJSON ListenerTlsValidationContextProperty {Maybe SubjectAlternativeNamesProperty
()
ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ListenerTlsValidationContextProperty -> ()
subjectAlternativeNames :: ListenerTlsValidationContextProperty
-> Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextTrustProperty
..}
= [(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
"Trust" Key -> ListenerTlsValidationContextTrustProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ListenerTlsValidationContextTrustProperty
trust]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> SubjectAlternativeNamesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SubjectAlternativeNames"
(SubjectAlternativeNamesProperty -> (Key, Value))
-> Maybe SubjectAlternativeNamesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SubjectAlternativeNamesProperty
subjectAlternativeNames])))
instance Property "SubjectAlternativeNames" ListenerTlsValidationContextProperty where
type PropertyType "SubjectAlternativeNames" ListenerTlsValidationContextProperty = SubjectAlternativeNamesProperty
set :: PropertyType
"SubjectAlternativeNames" ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty
set PropertyType
"SubjectAlternativeNames" ListenerTlsValidationContextProperty
newValue ListenerTlsValidationContextProperty {Maybe SubjectAlternativeNamesProperty
()
ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ListenerTlsValidationContextProperty -> ()
subjectAlternativeNames :: ListenerTlsValidationContextProperty
-> Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextTrustProperty
..}
= ListenerTlsValidationContextProperty
{subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
subjectAlternativeNames = SubjectAlternativeNamesProperty
-> Maybe SubjectAlternativeNamesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SubjectAlternativeNames" ListenerTlsValidationContextProperty
SubjectAlternativeNamesProperty
newValue, ()
ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
trust :: ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
trust :: ListenerTlsValidationContextTrustProperty
..}
instance Property "Trust" ListenerTlsValidationContextProperty where
type PropertyType "Trust" ListenerTlsValidationContextProperty = ListenerTlsValidationContextTrustProperty
set :: PropertyType "Trust" ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextProperty
set PropertyType "Trust" ListenerTlsValidationContextProperty
newValue ListenerTlsValidationContextProperty {Maybe SubjectAlternativeNamesProperty
()
ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ListenerTlsValidationContextProperty -> ()
subjectAlternativeNames :: ListenerTlsValidationContextProperty
-> Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextProperty
-> ListenerTlsValidationContextTrustProperty
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
trust :: ListenerTlsValidationContextTrustProperty
..}
= ListenerTlsValidationContextProperty {trust :: ListenerTlsValidationContextTrustProperty
trust = PropertyType "Trust" ListenerTlsValidationContextProperty
ListenerTlsValidationContextTrustProperty
newValue, Maybe SubjectAlternativeNamesProperty
()
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
haddock_workaround_ :: ()
subjectAlternativeNames :: Maybe SubjectAlternativeNamesProperty
..}