module Stratosphere.AmplifyUIBuilder.Form.FormInputValuePropertyBindingPropertiesProperty (
        FormInputValuePropertyBindingPropertiesProperty(..),
        mkFormInputValuePropertyBindingPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FormInputValuePropertyBindingPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-forminputvaluepropertybindingproperties.html>
    FormInputValuePropertyBindingPropertiesProperty {FormInputValuePropertyBindingPropertiesProperty -> ()
haddock_workaround_ :: (),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-forminputvaluepropertybindingproperties.html#cfn-amplifyuibuilder-form-forminputvaluepropertybindingproperties-field>
                                                     FormInputValuePropertyBindingPropertiesProperty
-> Maybe (Value Text)
field :: (Prelude.Maybe (Value Prelude.Text)),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-forminputvaluepropertybindingproperties.html#cfn-amplifyuibuilder-form-forminputvaluepropertybindingproperties-property>
                                                     FormInputValuePropertyBindingPropertiesProperty -> Value Text
property :: (Value Prelude.Text)}
  deriving stock (FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty -> Bool
(FormInputValuePropertyBindingPropertiesProperty
 -> FormInputValuePropertyBindingPropertiesProperty -> Bool)
-> (FormInputValuePropertyBindingPropertiesProperty
    -> FormInputValuePropertyBindingPropertiesProperty -> Bool)
-> Eq FormInputValuePropertyBindingPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty -> Bool
== :: FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty -> Bool
$c/= :: FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty -> Bool
/= :: FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty -> Bool
Prelude.Eq, Int -> FormInputValuePropertyBindingPropertiesProperty -> ShowS
[FormInputValuePropertyBindingPropertiesProperty] -> ShowS
FormInputValuePropertyBindingPropertiesProperty -> String
(Int -> FormInputValuePropertyBindingPropertiesProperty -> ShowS)
-> (FormInputValuePropertyBindingPropertiesProperty -> String)
-> ([FormInputValuePropertyBindingPropertiesProperty] -> ShowS)
-> Show FormInputValuePropertyBindingPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FormInputValuePropertyBindingPropertiesProperty -> ShowS
showsPrec :: Int -> FormInputValuePropertyBindingPropertiesProperty -> ShowS
$cshow :: FormInputValuePropertyBindingPropertiesProperty -> String
show :: FormInputValuePropertyBindingPropertiesProperty -> String
$cshowList :: [FormInputValuePropertyBindingPropertiesProperty] -> ShowS
showList :: [FormInputValuePropertyBindingPropertiesProperty] -> ShowS
Prelude.Show)
mkFormInputValuePropertyBindingPropertiesProperty ::
  Value Prelude.Text
  -> FormInputValuePropertyBindingPropertiesProperty
mkFormInputValuePropertyBindingPropertiesProperty :: Value Text -> FormInputValuePropertyBindingPropertiesProperty
mkFormInputValuePropertyBindingPropertiesProperty Value Text
property
  = FormInputValuePropertyBindingPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), property :: Value Text
property = Value Text
property,
       field :: Maybe (Value Text)
field = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FormInputValuePropertyBindingPropertiesProperty where
  toResourceProperties :: FormInputValuePropertyBindingPropertiesProperty
-> ResourceProperties
toResourceProperties
    FormInputValuePropertyBindingPropertiesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputValuePropertyBindingPropertiesProperty -> ()
field :: FormInputValuePropertyBindingPropertiesProperty
-> Maybe (Value Text)
property :: FormInputValuePropertyBindingPropertiesProperty -> Value Text
haddock_workaround_ :: ()
field :: Maybe (Value Text)
property :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Form.FormInputValuePropertyBindingProperties",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Property" 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
property]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Field" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
field]))}
instance JSON.ToJSON FormInputValuePropertyBindingPropertiesProperty where
  toJSON :: FormInputValuePropertyBindingPropertiesProperty -> Value
toJSON FormInputValuePropertyBindingPropertiesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputValuePropertyBindingPropertiesProperty -> ()
field :: FormInputValuePropertyBindingPropertiesProperty
-> Maybe (Value Text)
property :: FormInputValuePropertyBindingPropertiesProperty -> Value Text
haddock_workaround_ :: ()
field :: Maybe (Value Text)
property :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Property" 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
property]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Field" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
field])))
instance Property "Field" FormInputValuePropertyBindingPropertiesProperty where
  type PropertyType "Field" FormInputValuePropertyBindingPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "Field" FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty
set PropertyType
  "Field" FormInputValuePropertyBindingPropertiesProperty
newValue FormInputValuePropertyBindingPropertiesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputValuePropertyBindingPropertiesProperty -> ()
field :: FormInputValuePropertyBindingPropertiesProperty
-> Maybe (Value Text)
property :: FormInputValuePropertyBindingPropertiesProperty -> Value Text
haddock_workaround_ :: ()
field :: Maybe (Value Text)
property :: Value Text
..}
    = FormInputValuePropertyBindingPropertiesProperty
        {field :: Maybe (Value Text)
field = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "Field" FormInputValuePropertyBindingPropertiesProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
property :: Value Text
haddock_workaround_ :: ()
property :: Value Text
..}
instance Property "Property" FormInputValuePropertyBindingPropertiesProperty where
  type PropertyType "Property" FormInputValuePropertyBindingPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "Property" FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty
-> FormInputValuePropertyBindingPropertiesProperty
set PropertyType
  "Property" FormInputValuePropertyBindingPropertiesProperty
newValue FormInputValuePropertyBindingPropertiesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputValuePropertyBindingPropertiesProperty -> ()
field :: FormInputValuePropertyBindingPropertiesProperty
-> Maybe (Value Text)
property :: FormInputValuePropertyBindingPropertiesProperty -> Value Text
haddock_workaround_ :: ()
field :: Maybe (Value Text)
property :: Value Text
..}
    = FormInputValuePropertyBindingPropertiesProperty
        {property :: Value Text
property = PropertyType
  "Property" FormInputValuePropertyBindingPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
field :: Maybe (Value Text)
haddock_workaround_ :: ()
field :: Maybe (Value Text)
..}