module Stratosphere.Logs.Transformer.AddKeyEntryProperty ( AddKeyEntryProperty(..), mkAddKeyEntryProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data AddKeyEntryProperty = -- | See: AddKeyEntryProperty {haddock_workaround_ :: (), -- | See: key :: (Value Prelude.Text), -- | See: overwriteIfExists :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: value :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkAddKeyEntryProperty :: Value Prelude.Text -> Value Prelude.Text -> AddKeyEntryProperty mkAddKeyEntryProperty key value = AddKeyEntryProperty {haddock_workaround_ = (), key = key, value = value, overwriteIfExists = Prelude.Nothing} instance ToResourceProperties AddKeyEntryProperty where toResourceProperties AddKeyEntryProperty {..} = ResourceProperties {awsType = "AWS::Logs::Transformer.AddKeyEntry", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Key" JSON..= key, "Value" JSON..= value] (Prelude.catMaybes [(JSON..=) "OverwriteIfExists" Prelude.<$> overwriteIfExists]))} instance JSON.ToJSON AddKeyEntryProperty where toJSON AddKeyEntryProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Key" JSON..= key, "Value" JSON..= value] (Prelude.catMaybes [(JSON..=) "OverwriteIfExists" Prelude.<$> overwriteIfExists]))) instance Property "Key" AddKeyEntryProperty where type PropertyType "Key" AddKeyEntryProperty = Value Prelude.Text set newValue AddKeyEntryProperty {..} = AddKeyEntryProperty {key = newValue, ..} instance Property "OverwriteIfExists" AddKeyEntryProperty where type PropertyType "OverwriteIfExists" AddKeyEntryProperty = Value Prelude.Bool set newValue AddKeyEntryProperty {..} = AddKeyEntryProperty {overwriteIfExists = Prelude.pure newValue, ..} instance Property "Value" AddKeyEntryProperty where type PropertyType "Value" AddKeyEntryProperty = Value Prelude.Text set newValue AddKeyEntryProperty {..} = AddKeyEntryProperty {value = newValue, ..}