module Stratosphere.Batch.JobDefinition.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: FirelensConfigurationProperty {haddock_workaround_ :: (), -- | See: options :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))), -- | See: type' :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkFirelensConfigurationProperty :: Value Prelude.Text -> FirelensConfigurationProperty mkFirelensConfigurationProperty type' = FirelensConfigurationProperty {haddock_workaround_ = (), type' = type', options = Prelude.Nothing} instance ToResourceProperties FirelensConfigurationProperty where toResourceProperties FirelensConfigurationProperty {..} = ResourceProperties {awsType = "AWS::Batch::JobDefinition.FirelensConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Type" JSON..= type'] (Prelude.catMaybes [(JSON..=) "Options" Prelude.<$> options]))} instance JSON.ToJSON FirelensConfigurationProperty where toJSON FirelensConfigurationProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Type" JSON..= type'] (Prelude.catMaybes [(JSON..=) "Options" Prelude.<$> options]))) 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' = newValue, ..}