module Stratosphere.ECS.TaskDefinition.TmpfsProperty (
TmpfsProperty(..), mkTmpfsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TmpfsProperty
=
TmpfsProperty {TmpfsProperty -> ()
haddock_workaround_ :: (),
TmpfsProperty -> Maybe (Value Text)
containerPath :: (Prelude.Maybe (Value Prelude.Text)),
TmpfsProperty -> Maybe (ValueList Text)
mountOptions :: (Prelude.Maybe (ValueList Prelude.Text)),
TmpfsProperty -> Value Integer
size :: (Value Prelude.Integer)}
deriving stock (TmpfsProperty -> TmpfsProperty -> Bool
(TmpfsProperty -> TmpfsProperty -> Bool)
-> (TmpfsProperty -> TmpfsProperty -> Bool) -> Eq TmpfsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TmpfsProperty -> TmpfsProperty -> Bool
== :: TmpfsProperty -> TmpfsProperty -> Bool
$c/= :: TmpfsProperty -> TmpfsProperty -> Bool
/= :: TmpfsProperty -> TmpfsProperty -> Bool
Prelude.Eq, Int -> TmpfsProperty -> ShowS
[TmpfsProperty] -> ShowS
TmpfsProperty -> String
(Int -> TmpfsProperty -> ShowS)
-> (TmpfsProperty -> String)
-> ([TmpfsProperty] -> ShowS)
-> Show TmpfsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TmpfsProperty -> ShowS
showsPrec :: Int -> TmpfsProperty -> ShowS
$cshow :: TmpfsProperty -> String
show :: TmpfsProperty -> String
$cshowList :: [TmpfsProperty] -> ShowS
showList :: [TmpfsProperty] -> ShowS
Prelude.Show)
mkTmpfsProperty :: Value Prelude.Integer -> TmpfsProperty
mkTmpfsProperty :: Value Integer -> TmpfsProperty
mkTmpfsProperty Value Integer
size
= TmpfsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), size :: Value Integer
size = Value Integer
size,
containerPath :: Maybe (Value Text)
containerPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, mountOptions :: Maybe (ValueList Text)
mountOptions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TmpfsProperty where
toResourceProperties :: TmpfsProperty -> ResourceProperties
toResourceProperties TmpfsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: TmpfsProperty -> ()
containerPath :: TmpfsProperty -> Maybe (Value Text)
mountOptions :: TmpfsProperty -> Maybe (ValueList Text)
size :: TmpfsProperty -> Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.Tmpfs",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Size" 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
size]
([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
"ContainerPath" (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)
containerPath,
Key -> ValueList 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
"MountOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
mountOptions]))}
instance JSON.ToJSON TmpfsProperty where
toJSON :: TmpfsProperty -> Value
toJSON TmpfsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: TmpfsProperty -> ()
containerPath :: TmpfsProperty -> Maybe (Value Text)
mountOptions :: TmpfsProperty -> Maybe (ValueList Text)
size :: TmpfsProperty -> Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Size" 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
size]
([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
"ContainerPath" (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)
containerPath,
Key -> ValueList 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
"MountOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
mountOptions])))
instance Property "ContainerPath" TmpfsProperty where
type PropertyType "ContainerPath" TmpfsProperty = Value Prelude.Text
set :: PropertyType "ContainerPath" TmpfsProperty
-> TmpfsProperty -> TmpfsProperty
set PropertyType "ContainerPath" TmpfsProperty
newValue TmpfsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: TmpfsProperty -> ()
containerPath :: TmpfsProperty -> Maybe (Value Text)
mountOptions :: TmpfsProperty -> Maybe (ValueList Text)
size :: TmpfsProperty -> Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
= TmpfsProperty {containerPath :: Maybe (Value Text)
containerPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerPath" TmpfsProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Integer
haddock_workaround_ :: ()
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
haddock_workaround_ :: ()
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
instance Property "MountOptions" TmpfsProperty where
type PropertyType "MountOptions" TmpfsProperty = ValueList Prelude.Text
set :: PropertyType "MountOptions" TmpfsProperty
-> TmpfsProperty -> TmpfsProperty
set PropertyType "MountOptions" TmpfsProperty
newValue TmpfsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: TmpfsProperty -> ()
containerPath :: TmpfsProperty -> Maybe (Value Text)
mountOptions :: TmpfsProperty -> Maybe (ValueList Text)
size :: TmpfsProperty -> Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
= TmpfsProperty {mountOptions :: Maybe (ValueList Text)
mountOptions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MountOptions" TmpfsProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
size :: Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
size :: Value Integer
..}
instance Property "Size" TmpfsProperty where
type PropertyType "Size" TmpfsProperty = Value Prelude.Integer
set :: PropertyType "Size" TmpfsProperty -> TmpfsProperty -> TmpfsProperty
set PropertyType "Size" TmpfsProperty
newValue TmpfsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: TmpfsProperty -> ()
containerPath :: TmpfsProperty -> Maybe (Value Text)
mountOptions :: TmpfsProperty -> Maybe (ValueList Text)
size :: TmpfsProperty -> Value Integer
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
size :: Value Integer
..}
= TmpfsProperty {size :: Value Integer
size = PropertyType "Size" TmpfsProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
mountOptions :: Maybe (ValueList Text)
..}