module Stratosphere.EventSchemas.Registry.TagsEntryProperty (
TagsEntryProperty(..), mkTagsEntryProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagsEntryProperty
=
TagsEntryProperty {TagsEntryProperty -> ()
haddock_workaround_ :: (),
TagsEntryProperty -> Value Text
key :: (Value Prelude.Text),
TagsEntryProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (TagsEntryProperty -> TagsEntryProperty -> Bool
(TagsEntryProperty -> TagsEntryProperty -> Bool)
-> (TagsEntryProperty -> TagsEntryProperty -> Bool)
-> Eq TagsEntryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagsEntryProperty -> TagsEntryProperty -> Bool
== :: TagsEntryProperty -> TagsEntryProperty -> Bool
$c/= :: TagsEntryProperty -> TagsEntryProperty -> Bool
/= :: TagsEntryProperty -> TagsEntryProperty -> Bool
Prelude.Eq, Int -> TagsEntryProperty -> ShowS
[TagsEntryProperty] -> ShowS
TagsEntryProperty -> String
(Int -> TagsEntryProperty -> ShowS)
-> (TagsEntryProperty -> String)
-> ([TagsEntryProperty] -> ShowS)
-> Show TagsEntryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagsEntryProperty -> ShowS
showsPrec :: Int -> TagsEntryProperty -> ShowS
$cshow :: TagsEntryProperty -> String
show :: TagsEntryProperty -> String
$cshowList :: [TagsEntryProperty] -> ShowS
showList :: [TagsEntryProperty] -> ShowS
Prelude.Show)
mkTagsEntryProperty ::
Value Prelude.Text -> Value Prelude.Text -> TagsEntryProperty
mkTagsEntryProperty :: Value Text -> Value Text -> TagsEntryProperty
mkTagsEntryProperty Value Text
key Value Text
value
= TagsEntryProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties TagsEntryProperty where
toResourceProperties :: TagsEntryProperty -> ResourceProperties
toResourceProperties TagsEntryProperty {()
Value Text
haddock_workaround_ :: TagsEntryProperty -> ()
key :: TagsEntryProperty -> Value Text
value :: TagsEntryProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EventSchemas::Registry.TagsEntry",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Key" 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..= Value Text
key, Key
"Value" 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..= Value Text
value]}
instance JSON.ToJSON TagsEntryProperty where
toJSON :: TagsEntryProperty -> Value
toJSON TagsEntryProperty {()
Value Text
haddock_workaround_ :: TagsEntryProperty -> ()
key :: TagsEntryProperty -> Value Text
value :: TagsEntryProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Key" 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..= Value Text
key, Key
"Value" 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..= Value Text
value]
instance Property "Key" TagsEntryProperty where
type PropertyType "Key" TagsEntryProperty = Value Prelude.Text
set :: PropertyType "Key" TagsEntryProperty
-> TagsEntryProperty -> TagsEntryProperty
set PropertyType "Key" TagsEntryProperty
newValue TagsEntryProperty {()
Value Text
haddock_workaround_ :: TagsEntryProperty -> ()
key :: TagsEntryProperty -> Value Text
value :: TagsEntryProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= TagsEntryProperty {key :: Value Text
key = PropertyType "Key" TagsEntryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" TagsEntryProperty where
type PropertyType "Value" TagsEntryProperty = Value Prelude.Text
set :: PropertyType "Value" TagsEntryProperty
-> TagsEntryProperty -> TagsEntryProperty
set PropertyType "Value" TagsEntryProperty
newValue TagsEntryProperty {()
Value Text
haddock_workaround_ :: TagsEntryProperty -> ()
key :: TagsEntryProperty -> Value Text
value :: TagsEntryProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= TagsEntryProperty {value :: Value Text
value = PropertyType "Value" TagsEntryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}