module Stratosphere.AppSync.Resolver.AppSyncRuntimeProperty (
        AppSyncRuntimeProperty(..), mkAppSyncRuntimeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AppSyncRuntimeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-appsyncruntime.html>
    AppSyncRuntimeProperty {AppSyncRuntimeProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-appsyncruntime.html#cfn-appsync-resolver-appsyncruntime-name>
                            AppSyncRuntimeProperty -> Value Text
name :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-appsyncruntime.html#cfn-appsync-resolver-appsyncruntime-runtimeversion>
                            AppSyncRuntimeProperty -> Value Text
runtimeVersion :: (Value Prelude.Text)}
  deriving stock (AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool
(AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool)
-> (AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool)
-> Eq AppSyncRuntimeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool
== :: AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool
$c/= :: AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool
/= :: AppSyncRuntimeProperty -> AppSyncRuntimeProperty -> Bool
Prelude.Eq, Int -> AppSyncRuntimeProperty -> ShowS
[AppSyncRuntimeProperty] -> ShowS
AppSyncRuntimeProperty -> String
(Int -> AppSyncRuntimeProperty -> ShowS)
-> (AppSyncRuntimeProperty -> String)
-> ([AppSyncRuntimeProperty] -> ShowS)
-> Show AppSyncRuntimeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AppSyncRuntimeProperty -> ShowS
showsPrec :: Int -> AppSyncRuntimeProperty -> ShowS
$cshow :: AppSyncRuntimeProperty -> String
show :: AppSyncRuntimeProperty -> String
$cshowList :: [AppSyncRuntimeProperty] -> ShowS
showList :: [AppSyncRuntimeProperty] -> ShowS
Prelude.Show)
mkAppSyncRuntimeProperty ::
  Value Prelude.Text -> Value Prelude.Text -> AppSyncRuntimeProperty
mkAppSyncRuntimeProperty :: Value Text -> Value Text -> AppSyncRuntimeProperty
mkAppSyncRuntimeProperty Value Text
name Value Text
runtimeVersion
  = AppSyncRuntimeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       runtimeVersion :: Value Text
runtimeVersion = Value Text
runtimeVersion}
instance ToResourceProperties AppSyncRuntimeProperty where
  toResourceProperties :: AppSyncRuntimeProperty -> ResourceProperties
toResourceProperties AppSyncRuntimeProperty {()
Value Text
haddock_workaround_ :: AppSyncRuntimeProperty -> ()
name :: AppSyncRuntimeProperty -> Value Text
runtimeVersion :: AppSyncRuntimeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
runtimeVersion :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppSync::Resolver.AppSyncRuntime",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Name" 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
name,
                       Key
"RuntimeVersion" 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
runtimeVersion]}
instance JSON.ToJSON AppSyncRuntimeProperty where
  toJSON :: AppSyncRuntimeProperty -> Value
toJSON AppSyncRuntimeProperty {()
Value Text
haddock_workaround_ :: AppSyncRuntimeProperty -> ()
name :: AppSyncRuntimeProperty -> Value Text
runtimeVersion :: AppSyncRuntimeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
runtimeVersion :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Name" 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
name, Key
"RuntimeVersion" 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
runtimeVersion]
instance Property "Name" AppSyncRuntimeProperty where
  type PropertyType "Name" AppSyncRuntimeProperty = Value Prelude.Text
  set :: PropertyType "Name" AppSyncRuntimeProperty
-> AppSyncRuntimeProperty -> AppSyncRuntimeProperty
set PropertyType "Name" AppSyncRuntimeProperty
newValue AppSyncRuntimeProperty {()
Value Text
haddock_workaround_ :: AppSyncRuntimeProperty -> ()
name :: AppSyncRuntimeProperty -> Value Text
runtimeVersion :: AppSyncRuntimeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
runtimeVersion :: Value Text
..}
    = AppSyncRuntimeProperty {name :: Value Text
name = PropertyType "Name" AppSyncRuntimeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
runtimeVersion :: Value Text
haddock_workaround_ :: ()
runtimeVersion :: Value Text
..}
instance Property "RuntimeVersion" AppSyncRuntimeProperty where
  type PropertyType "RuntimeVersion" AppSyncRuntimeProperty = Value Prelude.Text
  set :: PropertyType "RuntimeVersion" AppSyncRuntimeProperty
-> AppSyncRuntimeProperty -> AppSyncRuntimeProperty
set PropertyType "RuntimeVersion" AppSyncRuntimeProperty
newValue AppSyncRuntimeProperty {()
Value Text
haddock_workaround_ :: AppSyncRuntimeProperty -> ()
name :: AppSyncRuntimeProperty -> Value Text
runtimeVersion :: AppSyncRuntimeProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
runtimeVersion :: Value Text
..}
    = AppSyncRuntimeProperty {runtimeVersion :: Value Text
runtimeVersion = PropertyType "RuntimeVersion" AppSyncRuntimeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}