module Stratosphere.Bedrock.DataAutomationProject.ModalityProcessingConfigurationProperty (
        ModalityProcessingConfigurationProperty(..),
        mkModalityProcessingConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ModalityProcessingConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-modalityprocessingconfiguration.html>
    ModalityProcessingConfigurationProperty {ModalityProcessingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-modalityprocessingconfiguration.html#cfn-bedrock-dataautomationproject-modalityprocessingconfiguration-state>
                                             ModalityProcessingConfigurationProperty -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty -> Bool
(ModalityProcessingConfigurationProperty
 -> ModalityProcessingConfigurationProperty -> Bool)
-> (ModalityProcessingConfigurationProperty
    -> ModalityProcessingConfigurationProperty -> Bool)
-> Eq ModalityProcessingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty -> Bool
== :: ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty -> Bool
$c/= :: ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty -> Bool
/= :: ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty -> Bool
Prelude.Eq, Int -> ModalityProcessingConfigurationProperty -> ShowS
[ModalityProcessingConfigurationProperty] -> ShowS
ModalityProcessingConfigurationProperty -> String
(Int -> ModalityProcessingConfigurationProperty -> ShowS)
-> (ModalityProcessingConfigurationProperty -> String)
-> ([ModalityProcessingConfigurationProperty] -> ShowS)
-> Show ModalityProcessingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ModalityProcessingConfigurationProperty -> ShowS
showsPrec :: Int -> ModalityProcessingConfigurationProperty -> ShowS
$cshow :: ModalityProcessingConfigurationProperty -> String
show :: ModalityProcessingConfigurationProperty -> String
$cshowList :: [ModalityProcessingConfigurationProperty] -> ShowS
showList :: [ModalityProcessingConfigurationProperty] -> ShowS
Prelude.Show)
mkModalityProcessingConfigurationProperty ::
  ModalityProcessingConfigurationProperty
mkModalityProcessingConfigurationProperty :: ModalityProcessingConfigurationProperty
mkModalityProcessingConfigurationProperty
  = ModalityProcessingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), state :: Maybe (Value Text)
state = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ModalityProcessingConfigurationProperty where
  toResourceProperties :: ModalityProcessingConfigurationProperty -> ResourceProperties
toResourceProperties ModalityProcessingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ModalityProcessingConfigurationProperty -> ()
state :: ModalityProcessingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.ModalityProcessingConfiguration",
         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
"State" (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)
state])}
instance JSON.ToJSON ModalityProcessingConfigurationProperty where
  toJSON :: ModalityProcessingConfigurationProperty -> Value
toJSON ModalityProcessingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ModalityProcessingConfigurationProperty -> ()
state :: ModalityProcessingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: 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
"State" (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)
state]))
instance Property "State" ModalityProcessingConfigurationProperty where
  type PropertyType "State" ModalityProcessingConfigurationProperty = Value Prelude.Text
  set :: PropertyType "State" ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty
-> ModalityProcessingConfigurationProperty
set PropertyType "State" ModalityProcessingConfigurationProperty
newValue ModalityProcessingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ModalityProcessingConfigurationProperty -> ()
state :: ModalityProcessingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
    = ModalityProcessingConfigurationProperty
        {state :: Maybe (Value Text)
state = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "State" ModalityProcessingConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}