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