module Stratosphere.AppMesh.VirtualNode.TlsValidationContextFileTrustProperty (
        TlsValidationContextFileTrustProperty(..),
        mkTlsValidationContextFileTrustProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TlsValidationContextFileTrustProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextfiletrust.html>
    TlsValidationContextFileTrustProperty {TlsValidationContextFileTrustProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextfiletrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextfiletrust-certificatechain>
                                           TlsValidationContextFileTrustProperty -> Value Text
certificateChain :: (Value Prelude.Text)}
  deriving stock (TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty -> Bool
(TlsValidationContextFileTrustProperty
 -> TlsValidationContextFileTrustProperty -> Bool)
-> (TlsValidationContextFileTrustProperty
    -> TlsValidationContextFileTrustProperty -> Bool)
-> Eq TlsValidationContextFileTrustProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty -> Bool
== :: TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty -> Bool
$c/= :: TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty -> Bool
/= :: TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty -> Bool
Prelude.Eq, Int -> TlsValidationContextFileTrustProperty -> ShowS
[TlsValidationContextFileTrustProperty] -> ShowS
TlsValidationContextFileTrustProperty -> String
(Int -> TlsValidationContextFileTrustProperty -> ShowS)
-> (TlsValidationContextFileTrustProperty -> String)
-> ([TlsValidationContextFileTrustProperty] -> ShowS)
-> Show TlsValidationContextFileTrustProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TlsValidationContextFileTrustProperty -> ShowS
showsPrec :: Int -> TlsValidationContextFileTrustProperty -> ShowS
$cshow :: TlsValidationContextFileTrustProperty -> String
show :: TlsValidationContextFileTrustProperty -> String
$cshowList :: [TlsValidationContextFileTrustProperty] -> ShowS
showList :: [TlsValidationContextFileTrustProperty] -> ShowS
Prelude.Show)
mkTlsValidationContextFileTrustProperty ::
  Value Prelude.Text -> TlsValidationContextFileTrustProperty
mkTlsValidationContextFileTrustProperty :: Value Text -> TlsValidationContextFileTrustProperty
mkTlsValidationContextFileTrustProperty Value Text
certificateChain
  = TlsValidationContextFileTrustProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), certificateChain :: Value Text
certificateChain = Value Text
certificateChain}
instance ToResourceProperties TlsValidationContextFileTrustProperty where
  toResourceProperties :: TlsValidationContextFileTrustProperty -> ResourceProperties
toResourceProperties TlsValidationContextFileTrustProperty {()
Value Text
haddock_workaround_ :: TlsValidationContextFileTrustProperty -> ()
certificateChain :: TlsValidationContextFileTrustProperty -> Value Text
haddock_workaround_ :: ()
certificateChain :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualNode.TlsValidationContextFileTrust",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"CertificateChain" 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
certificateChain]}
instance JSON.ToJSON TlsValidationContextFileTrustProperty where
  toJSON :: TlsValidationContextFileTrustProperty -> Value
toJSON TlsValidationContextFileTrustProperty {()
Value Text
haddock_workaround_ :: TlsValidationContextFileTrustProperty -> ()
certificateChain :: TlsValidationContextFileTrustProperty -> Value Text
haddock_workaround_ :: ()
certificateChain :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"CertificateChain" 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
certificateChain]
instance Property "CertificateChain" TlsValidationContextFileTrustProperty where
  type PropertyType "CertificateChain" TlsValidationContextFileTrustProperty = Value Prelude.Text
  set :: PropertyType
  "CertificateChain" TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty
-> TlsValidationContextFileTrustProperty
set PropertyType
  "CertificateChain" TlsValidationContextFileTrustProperty
newValue TlsValidationContextFileTrustProperty {()
Value Text
haddock_workaround_ :: TlsValidationContextFileTrustProperty -> ()
certificateChain :: TlsValidationContextFileTrustProperty -> Value Text
haddock_workaround_ :: ()
certificateChain :: Value Text
..}
    = TlsValidationContextFileTrustProperty
        {certificateChain :: Value Text
certificateChain = PropertyType
  "CertificateChain" TlsValidationContextFileTrustProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}