module Stratosphere.GameLift.ContainerGroupDefinition.ContainerDependencyProperty (
        ContainerDependencyProperty(..), mkContainerDependencyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContainerDependencyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerdependency.html>
    ContainerDependencyProperty {ContainerDependencyProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerdependency.html#cfn-gamelift-containergroupdefinition-containerdependency-condition>
                                 ContainerDependencyProperty -> Value Text
condition :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containerdependency.html#cfn-gamelift-containergroupdefinition-containerdependency-containername>
                                 ContainerDependencyProperty -> Value Text
containerName :: (Value Prelude.Text)}
  deriving stock (ContainerDependencyProperty -> ContainerDependencyProperty -> Bool
(ContainerDependencyProperty
 -> ContainerDependencyProperty -> Bool)
-> (ContainerDependencyProperty
    -> ContainerDependencyProperty -> Bool)
-> Eq ContainerDependencyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContainerDependencyProperty -> ContainerDependencyProperty -> Bool
== :: ContainerDependencyProperty -> ContainerDependencyProperty -> Bool
$c/= :: ContainerDependencyProperty -> ContainerDependencyProperty -> Bool
/= :: ContainerDependencyProperty -> ContainerDependencyProperty -> Bool
Prelude.Eq, Int -> ContainerDependencyProperty -> ShowS
[ContainerDependencyProperty] -> ShowS
ContainerDependencyProperty -> String
(Int -> ContainerDependencyProperty -> ShowS)
-> (ContainerDependencyProperty -> String)
-> ([ContainerDependencyProperty] -> ShowS)
-> Show ContainerDependencyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContainerDependencyProperty -> ShowS
showsPrec :: Int -> ContainerDependencyProperty -> ShowS
$cshow :: ContainerDependencyProperty -> String
show :: ContainerDependencyProperty -> String
$cshowList :: [ContainerDependencyProperty] -> ShowS
showList :: [ContainerDependencyProperty] -> ShowS
Prelude.Show)
mkContainerDependencyProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> ContainerDependencyProperty
mkContainerDependencyProperty :: Value Text -> Value Text -> ContainerDependencyProperty
mkContainerDependencyProperty Value Text
condition Value Text
containerName
  = ContainerDependencyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), condition :: Value Text
condition = Value Text
condition,
       containerName :: Value Text
containerName = Value Text
containerName}
instance ToResourceProperties ContainerDependencyProperty where
  toResourceProperties :: ContainerDependencyProperty -> ResourceProperties
toResourceProperties ContainerDependencyProperty {()
Value Text
haddock_workaround_ :: ContainerDependencyProperty -> ()
condition :: ContainerDependencyProperty -> Value Text
containerName :: ContainerDependencyProperty -> Value Text
haddock_workaround_ :: ()
condition :: Value Text
containerName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::ContainerGroupDefinition.ContainerDependency",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Condition" 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
condition,
                       Key
"ContainerName" 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
containerName]}
instance JSON.ToJSON ContainerDependencyProperty where
  toJSON :: ContainerDependencyProperty -> Value
toJSON ContainerDependencyProperty {()
Value Text
haddock_workaround_ :: ContainerDependencyProperty -> ()
condition :: ContainerDependencyProperty -> Value Text
containerName :: ContainerDependencyProperty -> Value Text
haddock_workaround_ :: ()
condition :: Value Text
containerName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Condition" 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
condition,
         Key
"ContainerName" 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
containerName]
instance Property "Condition" ContainerDependencyProperty where
  type PropertyType "Condition" ContainerDependencyProperty = Value Prelude.Text
  set :: PropertyType "Condition" ContainerDependencyProperty
-> ContainerDependencyProperty -> ContainerDependencyProperty
set PropertyType "Condition" ContainerDependencyProperty
newValue ContainerDependencyProperty {()
Value Text
haddock_workaround_ :: ContainerDependencyProperty -> ()
condition :: ContainerDependencyProperty -> Value Text
containerName :: ContainerDependencyProperty -> Value Text
haddock_workaround_ :: ()
condition :: Value Text
containerName :: Value Text
..}
    = ContainerDependencyProperty {condition :: Value Text
condition = PropertyType "Condition" ContainerDependencyProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
containerName :: Value Text
haddock_workaround_ :: ()
containerName :: Value Text
..}
instance Property "ContainerName" ContainerDependencyProperty where
  type PropertyType "ContainerName" ContainerDependencyProperty = Value Prelude.Text
  set :: PropertyType "ContainerName" ContainerDependencyProperty
-> ContainerDependencyProperty -> ContainerDependencyProperty
set PropertyType "ContainerName" ContainerDependencyProperty
newValue ContainerDependencyProperty {()
Value Text
haddock_workaround_ :: ContainerDependencyProperty -> ()
condition :: ContainerDependencyProperty -> Value Text
containerName :: ContainerDependencyProperty -> Value Text
haddock_workaround_ :: ()
condition :: Value Text
containerName :: Value Text
..}
    = ContainerDependencyProperty {containerName :: Value Text
containerName = PropertyType "ContainerName" ContainerDependencyProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
condition :: Value Text
haddock_workaround_ :: ()
condition :: Value Text
..}