module Stratosphere.PCS.Cluster.SchedulerProperty (
        SchedulerProperty(..), mkSchedulerProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SchedulerProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-cluster-scheduler.html>
    SchedulerProperty {SchedulerProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-cluster-scheduler.html#cfn-pcs-cluster-scheduler-type>
                       SchedulerProperty -> Value Text
type' :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-cluster-scheduler.html#cfn-pcs-cluster-scheduler-version>
                       SchedulerProperty -> Value Text
version :: (Value Prelude.Text)}
  deriving stock (SchedulerProperty -> SchedulerProperty -> Bool
(SchedulerProperty -> SchedulerProperty -> Bool)
-> (SchedulerProperty -> SchedulerProperty -> Bool)
-> Eq SchedulerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SchedulerProperty -> SchedulerProperty -> Bool
== :: SchedulerProperty -> SchedulerProperty -> Bool
$c/= :: SchedulerProperty -> SchedulerProperty -> Bool
/= :: SchedulerProperty -> SchedulerProperty -> Bool
Prelude.Eq, Int -> SchedulerProperty -> ShowS
[SchedulerProperty] -> ShowS
SchedulerProperty -> String
(Int -> SchedulerProperty -> ShowS)
-> (SchedulerProperty -> String)
-> ([SchedulerProperty] -> ShowS)
-> Show SchedulerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SchedulerProperty -> ShowS
showsPrec :: Int -> SchedulerProperty -> ShowS
$cshow :: SchedulerProperty -> String
show :: SchedulerProperty -> String
$cshowList :: [SchedulerProperty] -> ShowS
showList :: [SchedulerProperty] -> ShowS
Prelude.Show)
mkSchedulerProperty ::
  Value Prelude.Text -> Value Prelude.Text -> SchedulerProperty
mkSchedulerProperty :: Value Text -> Value Text -> SchedulerProperty
mkSchedulerProperty Value Text
type' Value Text
version
  = SchedulerProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', version :: Value Text
version = Value Text
version}
instance ToResourceProperties SchedulerProperty where
  toResourceProperties :: SchedulerProperty -> ResourceProperties
toResourceProperties SchedulerProperty {()
Value Text
haddock_workaround_ :: SchedulerProperty -> ()
type' :: SchedulerProperty -> Value Text
version :: SchedulerProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
version :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCS::Cluster.Scheduler",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" 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
type', Key
"Version" 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
version]}
instance JSON.ToJSON SchedulerProperty where
  toJSON :: SchedulerProperty -> Value
toJSON SchedulerProperty {()
Value Text
haddock_workaround_ :: SchedulerProperty -> ()
type' :: SchedulerProperty -> Value Text
version :: SchedulerProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
version :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', Key
"Version" 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
version]
instance Property "Type" SchedulerProperty where
  type PropertyType "Type" SchedulerProperty = Value Prelude.Text
  set :: PropertyType "Type" SchedulerProperty
-> SchedulerProperty -> SchedulerProperty
set PropertyType "Type" SchedulerProperty
newValue SchedulerProperty {()
Value Text
haddock_workaround_ :: SchedulerProperty -> ()
type' :: SchedulerProperty -> Value Text
version :: SchedulerProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
version :: Value Text
..}
    = SchedulerProperty {type' :: Value Text
type' = PropertyType "Type" SchedulerProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
version :: Value Text
haddock_workaround_ :: ()
version :: Value Text
..}
instance Property "Version" SchedulerProperty where
  type PropertyType "Version" SchedulerProperty = Value Prelude.Text
  set :: PropertyType "Version" SchedulerProperty
-> SchedulerProperty -> SchedulerProperty
set PropertyType "Version" SchedulerProperty
newValue SchedulerProperty {()
Value Text
haddock_workaround_ :: SchedulerProperty -> ()
type' :: SchedulerProperty -> Value Text
version :: SchedulerProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
version :: Value Text
..}
    = SchedulerProperty {version :: Value Text
version = PropertyType "Version" SchedulerProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}