module Stratosphere.Backup.RestoreTestingSelection.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
=
KeyValueProperty {KeyValueProperty -> ()
haddock_workaround_ :: (),
KeyValueProperty -> Value Text
key :: (Value Prelude.Text),
KeyValueProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (KeyValueProperty -> KeyValueProperty -> Bool
(KeyValueProperty -> KeyValueProperty -> Bool)
-> (KeyValueProperty -> KeyValueProperty -> Bool)
-> Eq KeyValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KeyValueProperty -> KeyValueProperty -> Bool
== :: KeyValueProperty -> KeyValueProperty -> Bool
$c/= :: KeyValueProperty -> KeyValueProperty -> Bool
/= :: KeyValueProperty -> KeyValueProperty -> Bool
Prelude.Eq, Int -> KeyValueProperty -> ShowS
[KeyValueProperty] -> ShowS
KeyValueProperty -> String
(Int -> KeyValueProperty -> ShowS)
-> (KeyValueProperty -> String)
-> ([KeyValueProperty] -> ShowS)
-> Show KeyValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KeyValueProperty -> ShowS
showsPrec :: Int -> KeyValueProperty -> ShowS
$cshow :: KeyValueProperty -> String
show :: KeyValueProperty -> String
$cshowList :: [KeyValueProperty] -> ShowS
showList :: [KeyValueProperty] -> ShowS
Prelude.Show)
mkKeyValueProperty ::
Value Prelude.Text -> Value Prelude.Text -> KeyValueProperty
mkKeyValueProperty :: Value Text -> Value Text -> KeyValueProperty
mkKeyValueProperty Value Text
key Value Text
value
= KeyValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties KeyValueProperty where
toResourceProperties :: KeyValueProperty -> ResourceProperties
toResourceProperties KeyValueProperty {()
Value Text
haddock_workaround_ :: KeyValueProperty -> ()
key :: KeyValueProperty -> Value Text
value :: KeyValueProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Backup::RestoreTestingSelection.KeyValue",
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 KeyValueProperty where
toJSON :: KeyValueProperty -> Value
toJSON KeyValueProperty {()
Value Text
haddock_workaround_ :: KeyValueProperty -> ()
key :: KeyValueProperty -> Value Text
value :: KeyValueProperty -> 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" KeyValueProperty where
type PropertyType "Key" KeyValueProperty = Value Prelude.Text
set :: PropertyType "Key" KeyValueProperty
-> KeyValueProperty -> KeyValueProperty
set PropertyType "Key" KeyValueProperty
newValue KeyValueProperty {()
Value Text
haddock_workaround_ :: KeyValueProperty -> ()
key :: KeyValueProperty -> Value Text
value :: KeyValueProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= KeyValueProperty {key :: Value Text
key = PropertyType "Key" KeyValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" KeyValueProperty where
type PropertyType "Value" KeyValueProperty = Value Prelude.Text
set :: PropertyType "Value" KeyValueProperty
-> KeyValueProperty -> KeyValueProperty
set PropertyType "Value" KeyValueProperty
newValue KeyValueProperty {()
Value Text
haddock_workaround_ :: KeyValueProperty -> ()
key :: KeyValueProperty -> Value Text
value :: KeyValueProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= KeyValueProperty {value :: Value Text
value = PropertyType "Value" KeyValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}