module Stratosphere.Batch.JobDefinition.EcsPropertiesProperty (
module Exports, EcsPropertiesProperty(..), mkEcsPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Batch.JobDefinition.EcsTaskPropertiesProperty as Exports
import Stratosphere.ResourceProperties
data EcsPropertiesProperty
=
EcsPropertiesProperty {EcsPropertiesProperty -> ()
haddock_workaround_ :: (),
EcsPropertiesProperty -> [EcsTaskPropertiesProperty]
taskProperties :: [EcsTaskPropertiesProperty]}
deriving stock (EcsPropertiesProperty -> EcsPropertiesProperty -> Bool
(EcsPropertiesProperty -> EcsPropertiesProperty -> Bool)
-> (EcsPropertiesProperty -> EcsPropertiesProperty -> Bool)
-> Eq EcsPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EcsPropertiesProperty -> EcsPropertiesProperty -> Bool
== :: EcsPropertiesProperty -> EcsPropertiesProperty -> Bool
$c/= :: EcsPropertiesProperty -> EcsPropertiesProperty -> Bool
/= :: EcsPropertiesProperty -> EcsPropertiesProperty -> Bool
Prelude.Eq, Int -> EcsPropertiesProperty -> ShowS
[EcsPropertiesProperty] -> ShowS
EcsPropertiesProperty -> String
(Int -> EcsPropertiesProperty -> ShowS)
-> (EcsPropertiesProperty -> String)
-> ([EcsPropertiesProperty] -> ShowS)
-> Show EcsPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EcsPropertiesProperty -> ShowS
showsPrec :: Int -> EcsPropertiesProperty -> ShowS
$cshow :: EcsPropertiesProperty -> String
show :: EcsPropertiesProperty -> String
$cshowList :: [EcsPropertiesProperty] -> ShowS
showList :: [EcsPropertiesProperty] -> ShowS
Prelude.Show)
mkEcsPropertiesProperty ::
[EcsTaskPropertiesProperty] -> EcsPropertiesProperty
mkEcsPropertiesProperty :: [EcsTaskPropertiesProperty] -> EcsPropertiesProperty
mkEcsPropertiesProperty [EcsTaskPropertiesProperty]
taskProperties
= EcsPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), taskProperties :: [EcsTaskPropertiesProperty]
taskProperties = [EcsTaskPropertiesProperty]
taskProperties}
instance ToResourceProperties EcsPropertiesProperty where
toResourceProperties :: EcsPropertiesProperty -> ResourceProperties
toResourceProperties EcsPropertiesProperty {[EcsTaskPropertiesProperty]
()
haddock_workaround_ :: EcsPropertiesProperty -> ()
taskProperties :: EcsPropertiesProperty -> [EcsTaskPropertiesProperty]
haddock_workaround_ :: ()
taskProperties :: [EcsTaskPropertiesProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EcsProperties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"TaskProperties" Key -> [EcsTaskPropertiesProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EcsTaskPropertiesProperty]
taskProperties]}
instance JSON.ToJSON EcsPropertiesProperty where
toJSON :: EcsPropertiesProperty -> Value
toJSON EcsPropertiesProperty {[EcsTaskPropertiesProperty]
()
haddock_workaround_ :: EcsPropertiesProperty -> ()
taskProperties :: EcsPropertiesProperty -> [EcsTaskPropertiesProperty]
haddock_workaround_ :: ()
taskProperties :: [EcsTaskPropertiesProperty]
..}
= [(Key, Value)] -> Value
JSON.object [Key
"TaskProperties" Key -> [EcsTaskPropertiesProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EcsTaskPropertiesProperty]
taskProperties]
instance Property "TaskProperties" EcsPropertiesProperty where
type PropertyType "TaskProperties" EcsPropertiesProperty = [EcsTaskPropertiesProperty]
set :: PropertyType "TaskProperties" EcsPropertiesProperty
-> EcsPropertiesProperty -> EcsPropertiesProperty
set PropertyType "TaskProperties" EcsPropertiesProperty
newValue EcsPropertiesProperty {[EcsTaskPropertiesProperty]
()
haddock_workaround_ :: EcsPropertiesProperty -> ()
taskProperties :: EcsPropertiesProperty -> [EcsTaskPropertiesProperty]
haddock_workaround_ :: ()
taskProperties :: [EcsTaskPropertiesProperty]
..}
= EcsPropertiesProperty {taskProperties :: [EcsTaskPropertiesProperty]
taskProperties = [EcsTaskPropertiesProperty]
PropertyType "TaskProperties" EcsPropertiesProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}