module Stratosphere.Amplify.App.JobConfigProperty (
JobConfigProperty(..), mkJobConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data JobConfigProperty
=
JobConfigProperty {JobConfigProperty -> ()
haddock_workaround_ :: (),
JobConfigProperty -> Value Text
buildComputeType :: (Value Prelude.Text)}
deriving stock (JobConfigProperty -> JobConfigProperty -> Bool
(JobConfigProperty -> JobConfigProperty -> Bool)
-> (JobConfigProperty -> JobConfigProperty -> Bool)
-> Eq JobConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: JobConfigProperty -> JobConfigProperty -> Bool
== :: JobConfigProperty -> JobConfigProperty -> Bool
$c/= :: JobConfigProperty -> JobConfigProperty -> Bool
/= :: JobConfigProperty -> JobConfigProperty -> Bool
Prelude.Eq, Int -> JobConfigProperty -> ShowS
[JobConfigProperty] -> ShowS
JobConfigProperty -> String
(Int -> JobConfigProperty -> ShowS)
-> (JobConfigProperty -> String)
-> ([JobConfigProperty] -> ShowS)
-> Show JobConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> JobConfigProperty -> ShowS
showsPrec :: Int -> JobConfigProperty -> ShowS
$cshow :: JobConfigProperty -> String
show :: JobConfigProperty -> String
$cshowList :: [JobConfigProperty] -> ShowS
showList :: [JobConfigProperty] -> ShowS
Prelude.Show)
mkJobConfigProperty :: Value Prelude.Text -> JobConfigProperty
mkJobConfigProperty :: Value Text -> JobConfigProperty
mkJobConfigProperty Value Text
buildComputeType
= JobConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), buildComputeType :: Value Text
buildComputeType = Value Text
buildComputeType}
instance ToResourceProperties JobConfigProperty where
toResourceProperties :: JobConfigProperty -> ResourceProperties
toResourceProperties JobConfigProperty {()
Value Text
haddock_workaround_ :: JobConfigProperty -> ()
buildComputeType :: JobConfigProperty -> Value Text
haddock_workaround_ :: ()
buildComputeType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Amplify::App.JobConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"BuildComputeType" 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
buildComputeType]}
instance JSON.ToJSON JobConfigProperty where
toJSON :: JobConfigProperty -> Value
toJSON JobConfigProperty {()
Value Text
haddock_workaround_ :: JobConfigProperty -> ()
buildComputeType :: JobConfigProperty -> Value Text
haddock_workaround_ :: ()
buildComputeType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"BuildComputeType" 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
buildComputeType]
instance Property "BuildComputeType" JobConfigProperty where
type PropertyType "BuildComputeType" JobConfigProperty = Value Prelude.Text
set :: PropertyType "BuildComputeType" JobConfigProperty
-> JobConfigProperty -> JobConfigProperty
set PropertyType "BuildComputeType" JobConfigProperty
newValue JobConfigProperty {()
Value Text
haddock_workaround_ :: JobConfigProperty -> ()
buildComputeType :: JobConfigProperty -> Value Text
haddock_workaround_ :: ()
buildComputeType :: Value Text
..}
= JobConfigProperty {buildComputeType :: Value Text
buildComputeType = PropertyType "BuildComputeType" JobConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}