module Stratosphere.ECS.TaskDefinition.RuntimePlatformProperty (
        RuntimePlatformProperty(..), mkRuntimePlatformProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuntimePlatformProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html>
    RuntimePlatformProperty {RuntimePlatformProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-cpuarchitecture>
                             RuntimePlatformProperty -> Maybe (Value Text)
cpuArchitecture :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-operatingsystemfamily>
                             RuntimePlatformProperty -> Maybe (Value Text)
operatingSystemFamily :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RuntimePlatformProperty -> RuntimePlatformProperty -> Bool
(RuntimePlatformProperty -> RuntimePlatformProperty -> Bool)
-> (RuntimePlatformProperty -> RuntimePlatformProperty -> Bool)
-> Eq RuntimePlatformProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuntimePlatformProperty -> RuntimePlatformProperty -> Bool
== :: RuntimePlatformProperty -> RuntimePlatformProperty -> Bool
$c/= :: RuntimePlatformProperty -> RuntimePlatformProperty -> Bool
/= :: RuntimePlatformProperty -> RuntimePlatformProperty -> Bool
Prelude.Eq, Int -> RuntimePlatformProperty -> ShowS
[RuntimePlatformProperty] -> ShowS
RuntimePlatformProperty -> String
(Int -> RuntimePlatformProperty -> ShowS)
-> (RuntimePlatformProperty -> String)
-> ([RuntimePlatformProperty] -> ShowS)
-> Show RuntimePlatformProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuntimePlatformProperty -> ShowS
showsPrec :: Int -> RuntimePlatformProperty -> ShowS
$cshow :: RuntimePlatformProperty -> String
show :: RuntimePlatformProperty -> String
$cshowList :: [RuntimePlatformProperty] -> ShowS
showList :: [RuntimePlatformProperty] -> ShowS
Prelude.Show)
mkRuntimePlatformProperty :: RuntimePlatformProperty
mkRuntimePlatformProperty :: RuntimePlatformProperty
mkRuntimePlatformProperty
  = RuntimePlatformProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cpuArchitecture :: Maybe (Value Text)
cpuArchitecture = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       operatingSystemFamily :: Maybe (Value Text)
operatingSystemFamily = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuntimePlatformProperty where
  toResourceProperties :: RuntimePlatformProperty -> ResourceProperties
toResourceProperties RuntimePlatformProperty {Maybe (Value Text)
()
haddock_workaround_ :: RuntimePlatformProperty -> ()
cpuArchitecture :: RuntimePlatformProperty -> Maybe (Value Text)
operatingSystemFamily :: RuntimePlatformProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
operatingSystemFamily :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.RuntimePlatform",
         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
"CpuArchitecture" (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)
cpuArchitecture,
                            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
"OperatingSystemFamily"
                              (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)
operatingSystemFamily])}
instance JSON.ToJSON RuntimePlatformProperty where
  toJSON :: RuntimePlatformProperty -> Value
toJSON RuntimePlatformProperty {Maybe (Value Text)
()
haddock_workaround_ :: RuntimePlatformProperty -> ()
cpuArchitecture :: RuntimePlatformProperty -> Maybe (Value Text)
operatingSystemFamily :: RuntimePlatformProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
operatingSystemFamily :: 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
"CpuArchitecture" (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)
cpuArchitecture,
               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
"OperatingSystemFamily"
                 (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)
operatingSystemFamily]))
instance Property "CpuArchitecture" RuntimePlatformProperty where
  type PropertyType "CpuArchitecture" RuntimePlatformProperty = Value Prelude.Text
  set :: PropertyType "CpuArchitecture" RuntimePlatformProperty
-> RuntimePlatformProperty -> RuntimePlatformProperty
set PropertyType "CpuArchitecture" RuntimePlatformProperty
newValue RuntimePlatformProperty {Maybe (Value Text)
()
haddock_workaround_ :: RuntimePlatformProperty -> ()
cpuArchitecture :: RuntimePlatformProperty -> Maybe (Value Text)
operatingSystemFamily :: RuntimePlatformProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
operatingSystemFamily :: Maybe (Value Text)
..}
    = RuntimePlatformProperty
        {cpuArchitecture :: Maybe (Value Text)
cpuArchitecture = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CpuArchitecture" RuntimePlatformProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
operatingSystemFamily :: Maybe (Value Text)
haddock_workaround_ :: ()
operatingSystemFamily :: Maybe (Value Text)
..}
instance Property "OperatingSystemFamily" RuntimePlatformProperty where
  type PropertyType "OperatingSystemFamily" RuntimePlatformProperty = Value Prelude.Text
  set :: PropertyType "OperatingSystemFamily" RuntimePlatformProperty
-> RuntimePlatformProperty -> RuntimePlatformProperty
set PropertyType "OperatingSystemFamily" RuntimePlatformProperty
newValue RuntimePlatformProperty {Maybe (Value Text)
()
haddock_workaround_ :: RuntimePlatformProperty -> ()
cpuArchitecture :: RuntimePlatformProperty -> Maybe (Value Text)
operatingSystemFamily :: RuntimePlatformProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
operatingSystemFamily :: Maybe (Value Text)
..}
    = RuntimePlatformProperty
        {operatingSystemFamily :: Maybe (Value Text)
operatingSystemFamily = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OperatingSystemFamily" RuntimePlatformProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
haddock_workaround_ :: ()
cpuArchitecture :: Maybe (Value Text)
..}