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