module Stratosphere.PCS.ComputeNodeGroup.SlurmCustomSettingProperty (
        SlurmCustomSettingProperty(..), mkSlurmCustomSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SlurmCustomSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-computenodegroup-slurmcustomsetting.html>
    SlurmCustomSettingProperty {SlurmCustomSettingProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-computenodegroup-slurmcustomsetting.html#cfn-pcs-computenodegroup-slurmcustomsetting-parametername>
                                SlurmCustomSettingProperty -> Value Text
parameterName :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcs-computenodegroup-slurmcustomsetting.html#cfn-pcs-computenodegroup-slurmcustomsetting-parametervalue>
                                SlurmCustomSettingProperty -> Value Text
parameterValue :: (Value Prelude.Text)}
  deriving stock (SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool
(SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool)
-> (SlurmCustomSettingProperty
    -> SlurmCustomSettingProperty -> Bool)
-> Eq SlurmCustomSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool
== :: SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool
$c/= :: SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool
/= :: SlurmCustomSettingProperty -> SlurmCustomSettingProperty -> Bool
Prelude.Eq, Int -> SlurmCustomSettingProperty -> ShowS
[SlurmCustomSettingProperty] -> ShowS
SlurmCustomSettingProperty -> String
(Int -> SlurmCustomSettingProperty -> ShowS)
-> (SlurmCustomSettingProperty -> String)
-> ([SlurmCustomSettingProperty] -> ShowS)
-> Show SlurmCustomSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SlurmCustomSettingProperty -> ShowS
showsPrec :: Int -> SlurmCustomSettingProperty -> ShowS
$cshow :: SlurmCustomSettingProperty -> String
show :: SlurmCustomSettingProperty -> String
$cshowList :: [SlurmCustomSettingProperty] -> ShowS
showList :: [SlurmCustomSettingProperty] -> ShowS
Prelude.Show)
mkSlurmCustomSettingProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> SlurmCustomSettingProperty
mkSlurmCustomSettingProperty :: Value Text -> Value Text -> SlurmCustomSettingProperty
mkSlurmCustomSettingProperty Value Text
parameterName Value Text
parameterValue
  = SlurmCustomSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), parameterName :: Value Text
parameterName = Value Text
parameterName,
       parameterValue :: Value Text
parameterValue = Value Text
parameterValue}
instance ToResourceProperties SlurmCustomSettingProperty where
  toResourceProperties :: SlurmCustomSettingProperty -> ResourceProperties
toResourceProperties SlurmCustomSettingProperty {()
Value Text
haddock_workaround_ :: SlurmCustomSettingProperty -> ()
parameterName :: SlurmCustomSettingProperty -> Value Text
parameterValue :: SlurmCustomSettingProperty -> Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
parameterValue :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCS::ComputeNodeGroup.SlurmCustomSetting",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ParameterName" 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
parameterName,
                       Key
"ParameterValue" 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
parameterValue]}
instance JSON.ToJSON SlurmCustomSettingProperty where
  toJSON :: SlurmCustomSettingProperty -> Value
toJSON SlurmCustomSettingProperty {()
Value Text
haddock_workaround_ :: SlurmCustomSettingProperty -> ()
parameterName :: SlurmCustomSettingProperty -> Value Text
parameterValue :: SlurmCustomSettingProperty -> Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
parameterValue :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ParameterName" 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
parameterName,
         Key
"ParameterValue" 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
parameterValue]
instance Property "ParameterName" SlurmCustomSettingProperty where
  type PropertyType "ParameterName" SlurmCustomSettingProperty = Value Prelude.Text
  set :: PropertyType "ParameterName" SlurmCustomSettingProperty
-> SlurmCustomSettingProperty -> SlurmCustomSettingProperty
set PropertyType "ParameterName" SlurmCustomSettingProperty
newValue SlurmCustomSettingProperty {()
Value Text
haddock_workaround_ :: SlurmCustomSettingProperty -> ()
parameterName :: SlurmCustomSettingProperty -> Value Text
parameterValue :: SlurmCustomSettingProperty -> Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
parameterValue :: Value Text
..}
    = SlurmCustomSettingProperty {parameterName :: Value Text
parameterName = PropertyType "ParameterName" SlurmCustomSettingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
parameterValue :: Value Text
haddock_workaround_ :: ()
parameterValue :: Value Text
..}
instance Property "ParameterValue" SlurmCustomSettingProperty where
  type PropertyType "ParameterValue" SlurmCustomSettingProperty = Value Prelude.Text
  set :: PropertyType "ParameterValue" SlurmCustomSettingProperty
-> SlurmCustomSettingProperty -> SlurmCustomSettingProperty
set PropertyType "ParameterValue" SlurmCustomSettingProperty
newValue SlurmCustomSettingProperty {()
Value Text
haddock_workaround_ :: SlurmCustomSettingProperty -> ()
parameterName :: SlurmCustomSettingProperty -> Value Text
parameterValue :: SlurmCustomSettingProperty -> Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
parameterValue :: Value Text
..}
    = SlurmCustomSettingProperty {parameterValue :: Value Text
parameterValue = PropertyType "ParameterValue" SlurmCustomSettingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
haddock_workaround_ :: ()
parameterName :: Value Text
..}