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