module Stratosphere.Batch.JobDefinition.EksEmptyDirProperty (
        EksEmptyDirProperty(..), mkEksEmptyDirProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EksEmptyDirProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-eksemptydir.html>
    EksEmptyDirProperty {EksEmptyDirProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-eksemptydir.html#cfn-batch-jobdefinition-eksemptydir-medium>
                         EksEmptyDirProperty -> Maybe (Value Text)
medium :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-eksemptydir.html#cfn-batch-jobdefinition-eksemptydir-sizelimit>
                         EksEmptyDirProperty -> Maybe (Value Text)
sizeLimit :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EksEmptyDirProperty -> EksEmptyDirProperty -> Bool
(EksEmptyDirProperty -> EksEmptyDirProperty -> Bool)
-> (EksEmptyDirProperty -> EksEmptyDirProperty -> Bool)
-> Eq EksEmptyDirProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EksEmptyDirProperty -> EksEmptyDirProperty -> Bool
== :: EksEmptyDirProperty -> EksEmptyDirProperty -> Bool
$c/= :: EksEmptyDirProperty -> EksEmptyDirProperty -> Bool
/= :: EksEmptyDirProperty -> EksEmptyDirProperty -> Bool
Prelude.Eq, Int -> EksEmptyDirProperty -> ShowS
[EksEmptyDirProperty] -> ShowS
EksEmptyDirProperty -> String
(Int -> EksEmptyDirProperty -> ShowS)
-> (EksEmptyDirProperty -> String)
-> ([EksEmptyDirProperty] -> ShowS)
-> Show EksEmptyDirProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EksEmptyDirProperty -> ShowS
showsPrec :: Int -> EksEmptyDirProperty -> ShowS
$cshow :: EksEmptyDirProperty -> String
show :: EksEmptyDirProperty -> String
$cshowList :: [EksEmptyDirProperty] -> ShowS
showList :: [EksEmptyDirProperty] -> ShowS
Prelude.Show)
mkEksEmptyDirProperty :: EksEmptyDirProperty
mkEksEmptyDirProperty :: EksEmptyDirProperty
mkEksEmptyDirProperty
  = EksEmptyDirProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), medium :: Maybe (Value Text)
medium = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       sizeLimit :: Maybe (Value Text)
sizeLimit = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EksEmptyDirProperty where
  toResourceProperties :: EksEmptyDirProperty -> ResourceProperties
toResourceProperties EksEmptyDirProperty {Maybe (Value Text)
()
haddock_workaround_ :: EksEmptyDirProperty -> ()
medium :: EksEmptyDirProperty -> Maybe (Value Text)
sizeLimit :: EksEmptyDirProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
sizeLimit :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EksEmptyDir",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"Medium" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
medium,
                            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..=) Key
"SizeLimit" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
sizeLimit])}
instance JSON.ToJSON EksEmptyDirProperty where
  toJSON :: EksEmptyDirProperty -> Value
toJSON EksEmptyDirProperty {Maybe (Value Text)
()
haddock_workaround_ :: EksEmptyDirProperty -> ()
medium :: EksEmptyDirProperty -> Maybe (Value Text)
sizeLimit :: EksEmptyDirProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
sizeLimit :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"Medium" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
medium,
               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..=) Key
"SizeLimit" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
sizeLimit]))
instance Property "Medium" EksEmptyDirProperty where
  type PropertyType "Medium" EksEmptyDirProperty = Value Prelude.Text
  set :: PropertyType "Medium" EksEmptyDirProperty
-> EksEmptyDirProperty -> EksEmptyDirProperty
set PropertyType "Medium" EksEmptyDirProperty
newValue EksEmptyDirProperty {Maybe (Value Text)
()
haddock_workaround_ :: EksEmptyDirProperty -> ()
medium :: EksEmptyDirProperty -> Maybe (Value Text)
sizeLimit :: EksEmptyDirProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
sizeLimit :: Maybe (Value Text)
..}
    = EksEmptyDirProperty {medium :: Maybe (Value Text)
medium = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Medium" EksEmptyDirProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
sizeLimit :: Maybe (Value Text)
haddock_workaround_ :: ()
sizeLimit :: Maybe (Value Text)
..}
instance Property "SizeLimit" EksEmptyDirProperty where
  type PropertyType "SizeLimit" EksEmptyDirProperty = Value Prelude.Text
  set :: PropertyType "SizeLimit" EksEmptyDirProperty
-> EksEmptyDirProperty -> EksEmptyDirProperty
set PropertyType "SizeLimit" EksEmptyDirProperty
newValue EksEmptyDirProperty {Maybe (Value Text)
()
haddock_workaround_ :: EksEmptyDirProperty -> ()
medium :: EksEmptyDirProperty -> Maybe (Value Text)
sizeLimit :: EksEmptyDirProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
sizeLimit :: Maybe (Value Text)
..}
    = EksEmptyDirProperty {sizeLimit :: Maybe (Value Text)
sizeLimit = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SizeLimit" EksEmptyDirProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
haddock_workaround_ :: ()
medium :: Maybe (Value Text)
..}