packages feed

stratosphere-ecs-1.0.0: gen/Stratosphere/ECS/TaskDefinition/FirelensConfigurationProperty.hs

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 {haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-firelensconfiguration.html#cfn-ecs-taskdefinition-firelensconfiguration-options>
                                   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>
                                   type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkFirelensConfigurationProperty :: FirelensConfigurationProperty
mkFirelensConfigurationProperty
  = FirelensConfigurationProperty
      {haddock_workaround_ = (), options = Prelude.Nothing,
       type' = Prelude.Nothing}
instance ToResourceProperties FirelensConfigurationProperty where
  toResourceProperties FirelensConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::ECS::TaskDefinition.FirelensConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "Options" Prelude.<$> options,
                            (JSON..=) "Type" Prelude.<$> type'])}
instance JSON.ToJSON FirelensConfigurationProperty where
  toJSON FirelensConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "Options" Prelude.<$> options,
               (JSON..=) "Type" Prelude.<$> type']))
instance Property "Options" FirelensConfigurationProperty where
  type PropertyType "Options" FirelensConfigurationProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set newValue FirelensConfigurationProperty {..}
    = FirelensConfigurationProperty
        {options = Prelude.pure newValue, ..}
instance Property "Type" FirelensConfigurationProperty where
  type PropertyType "Type" FirelensConfigurationProperty = Value Prelude.Text
  set newValue FirelensConfigurationProperty {..}
    = FirelensConfigurationProperty {type' = Prelude.pure newValue, ..}