module Stratosphere.Batch.JobDefinition.EphemeralStorageProperty (
        EphemeralStorageProperty(..), mkEphemeralStorageProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EphemeralStorageProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ephemeralstorage.html>
    EphemeralStorageProperty {EphemeralStorageProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ephemeralstorage.html#cfn-batch-jobdefinition-ephemeralstorage-sizeingib>
                              EphemeralStorageProperty -> Value Integer
sizeInGiB :: (Value Prelude.Integer)}
  deriving stock (EphemeralStorageProperty -> EphemeralStorageProperty -> Bool
(EphemeralStorageProperty -> EphemeralStorageProperty -> Bool)
-> (EphemeralStorageProperty -> EphemeralStorageProperty -> Bool)
-> Eq EphemeralStorageProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EphemeralStorageProperty -> EphemeralStorageProperty -> Bool
== :: EphemeralStorageProperty -> EphemeralStorageProperty -> Bool
$c/= :: EphemeralStorageProperty -> EphemeralStorageProperty -> Bool
/= :: EphemeralStorageProperty -> EphemeralStorageProperty -> Bool
Prelude.Eq, Int -> EphemeralStorageProperty -> ShowS
[EphemeralStorageProperty] -> ShowS
EphemeralStorageProperty -> String
(Int -> EphemeralStorageProperty -> ShowS)
-> (EphemeralStorageProperty -> String)
-> ([EphemeralStorageProperty] -> ShowS)
-> Show EphemeralStorageProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EphemeralStorageProperty -> ShowS
showsPrec :: Int -> EphemeralStorageProperty -> ShowS
$cshow :: EphemeralStorageProperty -> String
show :: EphemeralStorageProperty -> String
$cshowList :: [EphemeralStorageProperty] -> ShowS
showList :: [EphemeralStorageProperty] -> ShowS
Prelude.Show)
mkEphemeralStorageProperty ::
  Value Prelude.Integer -> EphemeralStorageProperty
mkEphemeralStorageProperty :: Value Integer -> EphemeralStorageProperty
mkEphemeralStorageProperty Value Integer
sizeInGiB
  = EphemeralStorageProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sizeInGiB :: Value Integer
sizeInGiB = Value Integer
sizeInGiB}
instance ToResourceProperties EphemeralStorageProperty where
  toResourceProperties :: EphemeralStorageProperty -> ResourceProperties
toResourceProperties EphemeralStorageProperty {()
Value Integer
haddock_workaround_ :: EphemeralStorageProperty -> ()
sizeInGiB :: EphemeralStorageProperty -> Value Integer
haddock_workaround_ :: ()
sizeInGiB :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EphemeralStorage",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"SizeInGiB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
sizeInGiB]}
instance JSON.ToJSON EphemeralStorageProperty where
  toJSON :: EphemeralStorageProperty -> Value
toJSON EphemeralStorageProperty {()
Value Integer
haddock_workaround_ :: EphemeralStorageProperty -> ()
sizeInGiB :: EphemeralStorageProperty -> Value Integer
haddock_workaround_ :: ()
sizeInGiB :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"SizeInGiB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
sizeInGiB]
instance Property "SizeInGiB" EphemeralStorageProperty where
  type PropertyType "SizeInGiB" EphemeralStorageProperty = Value Prelude.Integer
  set :: PropertyType "SizeInGiB" EphemeralStorageProperty
-> EphemeralStorageProperty -> EphemeralStorageProperty
set PropertyType "SizeInGiB" EphemeralStorageProperty
newValue EphemeralStorageProperty {()
Value Integer
haddock_workaround_ :: EphemeralStorageProperty -> ()
sizeInGiB :: EphemeralStorageProperty -> Value Integer
haddock_workaround_ :: ()
sizeInGiB :: Value Integer
..}
    = EphemeralStorageProperty {sizeInGiB :: Value Integer
sizeInGiB = PropertyType "SizeInGiB" EphemeralStorageProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}