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