module Stratosphere.DataZone.DataSource.FormInputProperty (
FormInputProperty(..), mkFormInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FormInputProperty
=
FormInputProperty {FormInputProperty -> ()
haddock_workaround_ :: (),
FormInputProperty -> Maybe (Value Text)
content :: (Prelude.Maybe (Value Prelude.Text)),
FormInputProperty -> Value Text
formName :: (Value Prelude.Text),
FormInputProperty -> Maybe (Value Text)
typeIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
FormInputProperty -> Maybe (Value Text)
typeRevision :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (FormInputProperty -> FormInputProperty -> Bool
(FormInputProperty -> FormInputProperty -> Bool)
-> (FormInputProperty -> FormInputProperty -> Bool)
-> Eq FormInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FormInputProperty -> FormInputProperty -> Bool
== :: FormInputProperty -> FormInputProperty -> Bool
$c/= :: FormInputProperty -> FormInputProperty -> Bool
/= :: FormInputProperty -> FormInputProperty -> Bool
Prelude.Eq, Int -> FormInputProperty -> ShowS
[FormInputProperty] -> ShowS
FormInputProperty -> String
(Int -> FormInputProperty -> ShowS)
-> (FormInputProperty -> String)
-> ([FormInputProperty] -> ShowS)
-> Show FormInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FormInputProperty -> ShowS
showsPrec :: Int -> FormInputProperty -> ShowS
$cshow :: FormInputProperty -> String
show :: FormInputProperty -> String
$cshowList :: [FormInputProperty] -> ShowS
showList :: [FormInputProperty] -> ShowS
Prelude.Show)
mkFormInputProperty :: Value Prelude.Text -> FormInputProperty
mkFormInputProperty :: Value Text -> FormInputProperty
mkFormInputProperty Value Text
formName
= FormInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), formName :: Value Text
formName = Value Text
formName,
content :: Maybe (Value Text)
content = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, typeIdentifier :: Maybe (Value Text)
typeIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
typeRevision :: Maybe (Value Text)
typeRevision = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FormInputProperty where
toResourceProperties :: FormInputProperty -> ResourceProperties
toResourceProperties FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::DataSource.FormInput",
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
"FormName" 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
formName]
([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
"Content" (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)
content,
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
"TypeIdentifier" (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)
typeIdentifier,
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
"TypeRevision" (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)
typeRevision]))}
instance JSON.ToJSON FormInputProperty where
toJSON :: FormInputProperty -> Value
toJSON FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (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
"FormName" 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
formName]
([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
"Content" (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)
content,
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
"TypeIdentifier" (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)
typeIdentifier,
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
"TypeRevision" (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)
typeRevision])))
instance Property "Content" FormInputProperty where
type PropertyType "Content" FormInputProperty = Value Prelude.Text
set :: PropertyType "Content" FormInputProperty
-> FormInputProperty -> FormInputProperty
set PropertyType "Content" FormInputProperty
newValue FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
= FormInputProperty {content :: Maybe (Value Text)
content = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Content" FormInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
haddock_workaround_ :: ()
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
instance Property "FormName" FormInputProperty where
type PropertyType "FormName" FormInputProperty = Value Prelude.Text
set :: PropertyType "FormName" FormInputProperty
-> FormInputProperty -> FormInputProperty
set PropertyType "FormName" FormInputProperty
newValue FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
= FormInputProperty {formName :: Value Text
formName = PropertyType "FormName" FormInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
content :: Maybe (Value Text)
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
instance Property "TypeIdentifier" FormInputProperty where
type PropertyType "TypeIdentifier" FormInputProperty = Value Prelude.Text
set :: PropertyType "TypeIdentifier" FormInputProperty
-> FormInputProperty -> FormInputProperty
set PropertyType "TypeIdentifier" FormInputProperty
newValue FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
= FormInputProperty {typeIdentifier :: Maybe (Value Text)
typeIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TypeIdentifier" FormInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeRevision :: Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeRevision :: Maybe (Value Text)
..}
instance Property "TypeRevision" FormInputProperty where
type PropertyType "TypeRevision" FormInputProperty = Value Prelude.Text
set :: PropertyType "TypeRevision" FormInputProperty
-> FormInputProperty -> FormInputProperty
set PropertyType "TypeRevision" FormInputProperty
newValue FormInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FormInputProperty -> ()
content :: FormInputProperty -> Maybe (Value Text)
formName :: FormInputProperty -> Value Text
typeIdentifier :: FormInputProperty -> Maybe (Value Text)
typeRevision :: FormInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
typeRevision :: Maybe (Value Text)
..}
= FormInputProperty {typeRevision :: Maybe (Value Text)
typeRevision = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TypeRevision" FormInputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
formName :: Value Text
typeIdentifier :: Maybe (Value Text)
..}