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