module Stratosphere.Bedrock.DataAutomationProject.DocumentStandardGenerativeFieldProperty (
DocumentStandardGenerativeFieldProperty(..),
mkDocumentStandardGenerativeFieldProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentStandardGenerativeFieldProperty
=
DocumentStandardGenerativeFieldProperty {DocumentStandardGenerativeFieldProperty -> ()
haddock_workaround_ :: (),
DocumentStandardGenerativeFieldProperty -> Value Text
state :: (Value Prelude.Text)}
deriving stock (DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool
(DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool)
-> (DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool)
-> Eq DocumentStandardGenerativeFieldProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool
== :: DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool
$c/= :: DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool
/= :: DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty -> Bool
Prelude.Eq, Int -> DocumentStandardGenerativeFieldProperty -> ShowS
[DocumentStandardGenerativeFieldProperty] -> ShowS
DocumentStandardGenerativeFieldProperty -> String
(Int -> DocumentStandardGenerativeFieldProperty -> ShowS)
-> (DocumentStandardGenerativeFieldProperty -> String)
-> ([DocumentStandardGenerativeFieldProperty] -> ShowS)
-> Show DocumentStandardGenerativeFieldProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentStandardGenerativeFieldProperty -> ShowS
showsPrec :: Int -> DocumentStandardGenerativeFieldProperty -> ShowS
$cshow :: DocumentStandardGenerativeFieldProperty -> String
show :: DocumentStandardGenerativeFieldProperty -> String
$cshowList :: [DocumentStandardGenerativeFieldProperty] -> ShowS
showList :: [DocumentStandardGenerativeFieldProperty] -> ShowS
Prelude.Show)
mkDocumentStandardGenerativeFieldProperty ::
Value Prelude.Text -> DocumentStandardGenerativeFieldProperty
mkDocumentStandardGenerativeFieldProperty :: Value Text -> DocumentStandardGenerativeFieldProperty
mkDocumentStandardGenerativeFieldProperty Value Text
state
= DocumentStandardGenerativeFieldProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), state :: Value Text
state = Value Text
state}
instance ToResourceProperties DocumentStandardGenerativeFieldProperty where
toResourceProperties :: DocumentStandardGenerativeFieldProperty -> ResourceProperties
toResourceProperties DocumentStandardGenerativeFieldProperty {()
Value Text
haddock_workaround_ :: DocumentStandardGenerativeFieldProperty -> ()
state :: DocumentStandardGenerativeFieldProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.DocumentStandardGenerativeField",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"State" 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
state]}
instance JSON.ToJSON DocumentStandardGenerativeFieldProperty where
toJSON :: DocumentStandardGenerativeFieldProperty -> Value
toJSON DocumentStandardGenerativeFieldProperty {()
Value Text
haddock_workaround_ :: DocumentStandardGenerativeFieldProperty -> ()
state :: DocumentStandardGenerativeFieldProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"State" 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
state]
instance Property "State" DocumentStandardGenerativeFieldProperty where
type PropertyType "State" DocumentStandardGenerativeFieldProperty = Value Prelude.Text
set :: PropertyType "State" DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty
-> DocumentStandardGenerativeFieldProperty
set PropertyType "State" DocumentStandardGenerativeFieldProperty
newValue DocumentStandardGenerativeFieldProperty {()
Value Text
haddock_workaround_ :: DocumentStandardGenerativeFieldProperty -> ()
state :: DocumentStandardGenerativeFieldProperty -> Value Text
haddock_workaround_ :: ()
state :: Value Text
..}
= DocumentStandardGenerativeFieldProperty {state :: Value Text
state = PropertyType "State" DocumentStandardGenerativeFieldProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}