module Stratosphere.AmplifyUIBuilder.Form.FormStyleConfigProperty (
FormStyleConfigProperty(..), mkFormStyleConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FormStyleConfigProperty
=
FormStyleConfigProperty {FormStyleConfigProperty -> ()
haddock_workaround_ :: (),
FormStyleConfigProperty -> Maybe (Value Text)
tokenReference :: (Prelude.Maybe (Value Prelude.Text)),
FormStyleConfigProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (FormStyleConfigProperty -> FormStyleConfigProperty -> Bool
(FormStyleConfigProperty -> FormStyleConfigProperty -> Bool)
-> (FormStyleConfigProperty -> FormStyleConfigProperty -> Bool)
-> Eq FormStyleConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FormStyleConfigProperty -> FormStyleConfigProperty -> Bool
== :: FormStyleConfigProperty -> FormStyleConfigProperty -> Bool
$c/= :: FormStyleConfigProperty -> FormStyleConfigProperty -> Bool
/= :: FormStyleConfigProperty -> FormStyleConfigProperty -> Bool
Prelude.Eq, Int -> FormStyleConfigProperty -> ShowS
[FormStyleConfigProperty] -> ShowS
FormStyleConfigProperty -> String
(Int -> FormStyleConfigProperty -> ShowS)
-> (FormStyleConfigProperty -> String)
-> ([FormStyleConfigProperty] -> ShowS)
-> Show FormStyleConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FormStyleConfigProperty -> ShowS
showsPrec :: Int -> FormStyleConfigProperty -> ShowS
$cshow :: FormStyleConfigProperty -> String
show :: FormStyleConfigProperty -> String
$cshowList :: [FormStyleConfigProperty] -> ShowS
showList :: [FormStyleConfigProperty] -> ShowS
Prelude.Show)
mkFormStyleConfigProperty :: FormStyleConfigProperty
mkFormStyleConfigProperty :: FormStyleConfigProperty
mkFormStyleConfigProperty
= FormStyleConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), tokenReference :: Maybe (Value Text)
tokenReference = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FormStyleConfigProperty where
toResourceProperties :: FormStyleConfigProperty -> ResourceProperties
toResourceProperties FormStyleConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormStyleConfigProperty -> ()
tokenReference :: FormStyleConfigProperty -> Maybe (Value Text)
value :: FormStyleConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Form.FormStyleConfig",
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 -> 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
"TokenReference" (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)
tokenReference,
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
"Value" (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)
value])}
instance JSON.ToJSON FormStyleConfigProperty where
toJSON :: FormStyleConfigProperty -> Value
toJSON FormStyleConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormStyleConfigProperty -> ()
tokenReference :: FormStyleConfigProperty -> Maybe (Value Text)
value :: FormStyleConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
value :: 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 -> 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
"TokenReference" (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)
tokenReference,
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
"Value" (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)
value]))
instance Property "TokenReference" FormStyleConfigProperty where
type PropertyType "TokenReference" FormStyleConfigProperty = Value Prelude.Text
set :: PropertyType "TokenReference" FormStyleConfigProperty
-> FormStyleConfigProperty -> FormStyleConfigProperty
set PropertyType "TokenReference" FormStyleConfigProperty
newValue FormStyleConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormStyleConfigProperty -> ()
tokenReference :: FormStyleConfigProperty -> Maybe (Value Text)
value :: FormStyleConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= FormStyleConfigProperty
{tokenReference :: Maybe (Value Text)
tokenReference = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TokenReference" FormStyleConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" FormStyleConfigProperty where
type PropertyType "Value" FormStyleConfigProperty = Value Prelude.Text
set :: PropertyType "Value" FormStyleConfigProperty
-> FormStyleConfigProperty -> FormStyleConfigProperty
set PropertyType "Value" FormStyleConfigProperty
newValue FormStyleConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormStyleConfigProperty -> ()
tokenReference :: FormStyleConfigProperty -> Maybe (Value Text)
value :: FormStyleConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= FormStyleConfigProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" FormStyleConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
haddock_workaround_ :: ()
tokenReference :: Maybe (Value Text)
..}