module Stratosphere.ECS.TaskDefinition.UlimitProperty (
UlimitProperty(..), mkUlimitProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UlimitProperty
=
UlimitProperty {UlimitProperty -> ()
haddock_workaround_ :: (),
UlimitProperty -> Value Integer
hardLimit :: (Value Prelude.Integer),
UlimitProperty -> Value Text
name :: (Value Prelude.Text),
UlimitProperty -> Value Integer
softLimit :: (Value Prelude.Integer)}
deriving stock (UlimitProperty -> UlimitProperty -> Bool
(UlimitProperty -> UlimitProperty -> Bool)
-> (UlimitProperty -> UlimitProperty -> Bool) -> Eq UlimitProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UlimitProperty -> UlimitProperty -> Bool
== :: UlimitProperty -> UlimitProperty -> Bool
$c/= :: UlimitProperty -> UlimitProperty -> Bool
/= :: UlimitProperty -> UlimitProperty -> Bool
Prelude.Eq, Int -> UlimitProperty -> ShowS
[UlimitProperty] -> ShowS
UlimitProperty -> String
(Int -> UlimitProperty -> ShowS)
-> (UlimitProperty -> String)
-> ([UlimitProperty] -> ShowS)
-> Show UlimitProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UlimitProperty -> ShowS
showsPrec :: Int -> UlimitProperty -> ShowS
$cshow :: UlimitProperty -> String
show :: UlimitProperty -> String
$cshowList :: [UlimitProperty] -> ShowS
showList :: [UlimitProperty] -> ShowS
Prelude.Show)
mkUlimitProperty ::
Value Prelude.Integer
-> Value Prelude.Text -> Value Prelude.Integer -> UlimitProperty
mkUlimitProperty :: Value Integer -> Value Text -> Value Integer -> UlimitProperty
mkUlimitProperty Value Integer
hardLimit Value Text
name Value Integer
softLimit
= UlimitProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), hardLimit :: Value Integer
hardLimit = Value Integer
hardLimit, name :: Value Text
name = Value Text
name,
softLimit :: Value Integer
softLimit = Value Integer
softLimit}
instance ToResourceProperties UlimitProperty where
toResourceProperties :: UlimitProperty -> ResourceProperties
toResourceProperties UlimitProperty {()
Value Integer
Value Text
haddock_workaround_ :: UlimitProperty -> ()
hardLimit :: UlimitProperty -> Value Integer
name :: UlimitProperty -> Value Text
softLimit :: UlimitProperty -> Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
softLimit :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.Ulimit",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"HardLimit" 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
hardLimit, Key
"Name" 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
name,
Key
"SoftLimit" 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
softLimit]}
instance JSON.ToJSON UlimitProperty where
toJSON :: UlimitProperty -> Value
toJSON UlimitProperty {()
Value Integer
Value Text
haddock_workaround_ :: UlimitProperty -> ()
hardLimit :: UlimitProperty -> Value Integer
name :: UlimitProperty -> Value Text
softLimit :: UlimitProperty -> Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
softLimit :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"HardLimit" 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
hardLimit, Key
"Name" 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
name,
Key
"SoftLimit" 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
softLimit]
instance Property "HardLimit" UlimitProperty where
type PropertyType "HardLimit" UlimitProperty = Value Prelude.Integer
set :: PropertyType "HardLimit" UlimitProperty
-> UlimitProperty -> UlimitProperty
set PropertyType "HardLimit" UlimitProperty
newValue UlimitProperty {()
Value Integer
Value Text
haddock_workaround_ :: UlimitProperty -> ()
hardLimit :: UlimitProperty -> Value Integer
name :: UlimitProperty -> Value Text
softLimit :: UlimitProperty -> Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
softLimit :: Value Integer
..}
= UlimitProperty {hardLimit :: Value Integer
hardLimit = PropertyType "HardLimit" UlimitProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
name :: Value Text
softLimit :: Value Integer
haddock_workaround_ :: ()
name :: Value Text
softLimit :: Value Integer
..}
instance Property "Name" UlimitProperty where
type PropertyType "Name" UlimitProperty = Value Prelude.Text
set :: PropertyType "Name" UlimitProperty
-> UlimitProperty -> UlimitProperty
set PropertyType "Name" UlimitProperty
newValue UlimitProperty {()
Value Integer
Value Text
haddock_workaround_ :: UlimitProperty -> ()
hardLimit :: UlimitProperty -> Value Integer
name :: UlimitProperty -> Value Text
softLimit :: UlimitProperty -> Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
softLimit :: Value Integer
..}
= UlimitProperty {name :: Value Text
name = PropertyType "Name" UlimitProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
softLimit :: Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
softLimit :: Value Integer
..}
instance Property "SoftLimit" UlimitProperty where
type PropertyType "SoftLimit" UlimitProperty = Value Prelude.Integer
set :: PropertyType "SoftLimit" UlimitProperty
-> UlimitProperty -> UlimitProperty
set PropertyType "SoftLimit" UlimitProperty
newValue UlimitProperty {()
Value Integer
Value Text
haddock_workaround_ :: UlimitProperty -> ()
hardLimit :: UlimitProperty -> Value Integer
name :: UlimitProperty -> Value Text
softLimit :: UlimitProperty -> Value Integer
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
softLimit :: Value Integer
..}
= UlimitProperty {softLimit :: Value Integer
softLimit = PropertyType "SoftLimit" UlimitProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
haddock_workaround_ :: ()
hardLimit :: Value Integer
name :: Value Text
..}