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