module Stratosphere.Bedrock.DataAutomationProject.DocumentOutputTextFormatProperty (
DocumentOutputTextFormatProperty(..),
mkDocumentOutputTextFormatProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentOutputTextFormatProperty
=
DocumentOutputTextFormatProperty {DocumentOutputTextFormatProperty -> ()
haddock_workaround_ :: (),
DocumentOutputTextFormatProperty -> Maybe (ValueList Text)
types :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool
(DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool)
-> (DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool)
-> Eq DocumentOutputTextFormatProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool
== :: DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool
$c/= :: DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool
/= :: DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty -> Bool
Prelude.Eq, Int -> DocumentOutputTextFormatProperty -> ShowS
[DocumentOutputTextFormatProperty] -> ShowS
DocumentOutputTextFormatProperty -> String
(Int -> DocumentOutputTextFormatProperty -> ShowS)
-> (DocumentOutputTextFormatProperty -> String)
-> ([DocumentOutputTextFormatProperty] -> ShowS)
-> Show DocumentOutputTextFormatProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentOutputTextFormatProperty -> ShowS
showsPrec :: Int -> DocumentOutputTextFormatProperty -> ShowS
$cshow :: DocumentOutputTextFormatProperty -> String
show :: DocumentOutputTextFormatProperty -> String
$cshowList :: [DocumentOutputTextFormatProperty] -> ShowS
showList :: [DocumentOutputTextFormatProperty] -> ShowS
Prelude.Show)
mkDocumentOutputTextFormatProperty ::
DocumentOutputTextFormatProperty
mkDocumentOutputTextFormatProperty :: DocumentOutputTextFormatProperty
mkDocumentOutputTextFormatProperty
= DocumentOutputTextFormatProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), types :: Maybe (ValueList Text)
types = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentOutputTextFormatProperty where
toResourceProperties :: DocumentOutputTextFormatProperty -> ResourceProperties
toResourceProperties DocumentOutputTextFormatProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DocumentOutputTextFormatProperty -> ()
types :: DocumentOutputTextFormatProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.DocumentOutputTextFormat",
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 -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types])}
instance JSON.ToJSON DocumentOutputTextFormatProperty where
toJSON :: DocumentOutputTextFormatProperty -> Value
toJSON DocumentOutputTextFormatProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DocumentOutputTextFormatProperty -> ()
types :: DocumentOutputTextFormatProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList 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 -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types]))
instance Property "Types" DocumentOutputTextFormatProperty where
type PropertyType "Types" DocumentOutputTextFormatProperty = ValueList Prelude.Text
set :: PropertyType "Types" DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty
-> DocumentOutputTextFormatProperty
set PropertyType "Types" DocumentOutputTextFormatProperty
newValue DocumentOutputTextFormatProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: DocumentOutputTextFormatProperty -> ()
types :: DocumentOutputTextFormatProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
..}
= DocumentOutputTextFormatProperty
{types :: Maybe (ValueList Text)
types = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Types" DocumentOutputTextFormatProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}