module Stratosphere.AmplifyUIBuilder.Component.ComponentBindingPropertiesValueProperty (
module Exports, ComponentBindingPropertiesValueProperty(..),
mkComponentBindingPropertiesValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AmplifyUIBuilder.Component.ComponentBindingPropertiesValuePropertiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ComponentBindingPropertiesValueProperty
=
ComponentBindingPropertiesValueProperty {ComponentBindingPropertiesValueProperty -> ()
haddock_workaround_ :: (),
ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
bindingProperties :: (Prelude.Maybe ComponentBindingPropertiesValuePropertiesProperty),
ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
defaultValue :: (Prelude.Maybe (Value Prelude.Text)),
ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool
(ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool)
-> (ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool)
-> Eq ComponentBindingPropertiesValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool
== :: ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool
$c/= :: ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool
/= :: ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty -> Bool
Prelude.Eq, Int -> ComponentBindingPropertiesValueProperty -> ShowS
[ComponentBindingPropertiesValueProperty] -> ShowS
ComponentBindingPropertiesValueProperty -> String
(Int -> ComponentBindingPropertiesValueProperty -> ShowS)
-> (ComponentBindingPropertiesValueProperty -> String)
-> ([ComponentBindingPropertiesValueProperty] -> ShowS)
-> Show ComponentBindingPropertiesValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ComponentBindingPropertiesValueProperty -> ShowS
showsPrec :: Int -> ComponentBindingPropertiesValueProperty -> ShowS
$cshow :: ComponentBindingPropertiesValueProperty -> String
show :: ComponentBindingPropertiesValueProperty -> String
$cshowList :: [ComponentBindingPropertiesValueProperty] -> ShowS
showList :: [ComponentBindingPropertiesValueProperty] -> ShowS
Prelude.Show)
mkComponentBindingPropertiesValueProperty ::
ComponentBindingPropertiesValueProperty
mkComponentBindingPropertiesValueProperty :: ComponentBindingPropertiesValueProperty
mkComponentBindingPropertiesValueProperty
= ComponentBindingPropertiesValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
bindingProperties = Maybe ComponentBindingPropertiesValuePropertiesProperty
forall a. Maybe a
Prelude.Nothing,
defaultValue :: Maybe (Value Text)
defaultValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ComponentBindingPropertiesValueProperty where
toResourceProperties :: ComponentBindingPropertiesValueProperty -> ResourceProperties
toResourceProperties ComponentBindingPropertiesValueProperty {Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ComponentBindingPropertiesValueProperty -> ()
bindingProperties :: ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Component.ComponentBindingPropertiesValue",
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
-> ComponentBindingPropertiesValuePropertiesProperty
-> (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" (ComponentBindingPropertiesValuePropertiesProperty -> (Key, Value))
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ComponentBindingPropertiesValuePropertiesProperty
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
"DefaultValue" (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)
defaultValue,
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 ComponentBindingPropertiesValueProperty where
toJSON :: ComponentBindingPropertiesValueProperty -> Value
toJSON ComponentBindingPropertiesValueProperty {Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ComponentBindingPropertiesValueProperty -> ()
bindingProperties :: ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
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
-> ComponentBindingPropertiesValuePropertiesProperty
-> (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" (ComponentBindingPropertiesValuePropertiesProperty -> (Key, Value))
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ComponentBindingPropertiesValuePropertiesProperty
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
"DefaultValue" (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)
defaultValue,
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" ComponentBindingPropertiesValueProperty where
type PropertyType "BindingProperties" ComponentBindingPropertiesValueProperty = ComponentBindingPropertiesValuePropertiesProperty
set :: PropertyType
"BindingProperties" ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
set PropertyType
"BindingProperties" ComponentBindingPropertiesValueProperty
newValue ComponentBindingPropertiesValueProperty {Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ComponentBindingPropertiesValueProperty -> ()
bindingProperties :: ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ComponentBindingPropertiesValueProperty
{bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
bindingProperties = ComponentBindingPropertiesValuePropertiesProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BindingProperties" ComponentBindingPropertiesValueProperty
ComponentBindingPropertiesValuePropertiesProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "DefaultValue" ComponentBindingPropertiesValueProperty where
type PropertyType "DefaultValue" ComponentBindingPropertiesValueProperty = Value Prelude.Text
set :: PropertyType "DefaultValue" ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
set PropertyType "DefaultValue" ComponentBindingPropertiesValueProperty
newValue ComponentBindingPropertiesValueProperty {Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ComponentBindingPropertiesValueProperty -> ()
bindingProperties :: ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ComponentBindingPropertiesValueProperty
{defaultValue :: Maybe (Value Text)
defaultValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultValue" ComponentBindingPropertiesValueProperty
Value Text
newValue, Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
type' :: Maybe (Value Text)
..}
instance Property "Type" ComponentBindingPropertiesValueProperty where
type PropertyType "Type" ComponentBindingPropertiesValueProperty = Value Prelude.Text
set :: PropertyType "Type" ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
-> ComponentBindingPropertiesValueProperty
set PropertyType "Type" ComponentBindingPropertiesValueProperty
newValue ComponentBindingPropertiesValueProperty {Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ComponentBindingPropertiesValueProperty -> ()
bindingProperties :: ComponentBindingPropertiesValueProperty
-> Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
type' :: ComponentBindingPropertiesValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ComponentBindingPropertiesValueProperty
{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" ComponentBindingPropertiesValueProperty
Value Text
newValue, Maybe (Value Text)
Maybe ComponentBindingPropertiesValuePropertiesProperty
()
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
haddock_workaround_ :: ()
bindingProperties :: Maybe ComponentBindingPropertiesValuePropertiesProperty
defaultValue :: Maybe (Value Text)
..}