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