module Stratosphere.Bedrock.DataAutomationProject.TranscriptConfigurationProperty (
        module Exports, TranscriptConfigurationProperty(..),
        mkTranscriptConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataAutomationProject.ChannelLabelingConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataAutomationProject.SpeakerLabelingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data TranscriptConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-transcriptconfiguration.html>
    TranscriptConfigurationProperty {TranscriptConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-transcriptconfiguration.html#cfn-bedrock-dataautomationproject-transcriptconfiguration-channellabeling>
                                     TranscriptConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
channelLabeling :: (Prelude.Maybe ChannelLabelingConfigurationProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-transcriptconfiguration.html#cfn-bedrock-dataautomationproject-transcriptconfiguration-speakerlabeling>
                                     TranscriptConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
speakerLabeling :: (Prelude.Maybe SpeakerLabelingConfigurationProperty)}
  deriving stock (TranscriptConfigurationProperty
-> TranscriptConfigurationProperty -> Bool
(TranscriptConfigurationProperty
 -> TranscriptConfigurationProperty -> Bool)
-> (TranscriptConfigurationProperty
    -> TranscriptConfigurationProperty -> Bool)
-> Eq TranscriptConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TranscriptConfigurationProperty
-> TranscriptConfigurationProperty -> Bool
== :: TranscriptConfigurationProperty
-> TranscriptConfigurationProperty -> Bool
$c/= :: TranscriptConfigurationProperty
-> TranscriptConfigurationProperty -> Bool
/= :: TranscriptConfigurationProperty
-> TranscriptConfigurationProperty -> Bool
Prelude.Eq, Int -> TranscriptConfigurationProperty -> ShowS
[TranscriptConfigurationProperty] -> ShowS
TranscriptConfigurationProperty -> String
(Int -> TranscriptConfigurationProperty -> ShowS)
-> (TranscriptConfigurationProperty -> String)
-> ([TranscriptConfigurationProperty] -> ShowS)
-> Show TranscriptConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TranscriptConfigurationProperty -> ShowS
showsPrec :: Int -> TranscriptConfigurationProperty -> ShowS
$cshow :: TranscriptConfigurationProperty -> String
show :: TranscriptConfigurationProperty -> String
$cshowList :: [TranscriptConfigurationProperty] -> ShowS
showList :: [TranscriptConfigurationProperty] -> ShowS
Prelude.Show)
mkTranscriptConfigurationProperty ::
  TranscriptConfigurationProperty
mkTranscriptConfigurationProperty :: TranscriptConfigurationProperty
mkTranscriptConfigurationProperty
  = TranscriptConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), channelLabeling :: Maybe ChannelLabelingConfigurationProperty
channelLabeling = Maybe ChannelLabelingConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
speakerLabeling = Maybe SpeakerLabelingConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TranscriptConfigurationProperty where
  toResourceProperties :: TranscriptConfigurationProperty -> ResourceProperties
toResourceProperties TranscriptConfigurationProperty {Maybe ChannelLabelingConfigurationProperty
Maybe SpeakerLabelingConfigurationProperty
()
haddock_workaround_ :: TranscriptConfigurationProperty -> ()
channelLabeling :: TranscriptConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: TranscriptConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.TranscriptConfiguration",
         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 -> ChannelLabelingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChannelLabeling" (ChannelLabelingConfigurationProperty -> (Key, Value))
-> Maybe ChannelLabelingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChannelLabelingConfigurationProperty
channelLabeling,
                            Key -> SpeakerLabelingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SpeakerLabeling" (SpeakerLabelingConfigurationProperty -> (Key, Value))
-> Maybe SpeakerLabelingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SpeakerLabelingConfigurationProperty
speakerLabeling])}
instance JSON.ToJSON TranscriptConfigurationProperty where
  toJSON :: TranscriptConfigurationProperty -> Value
toJSON TranscriptConfigurationProperty {Maybe ChannelLabelingConfigurationProperty
Maybe SpeakerLabelingConfigurationProperty
()
haddock_workaround_ :: TranscriptConfigurationProperty -> ()
channelLabeling :: TranscriptConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: TranscriptConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
..}
    = [(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 -> ChannelLabelingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChannelLabeling" (ChannelLabelingConfigurationProperty -> (Key, Value))
-> Maybe ChannelLabelingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChannelLabelingConfigurationProperty
channelLabeling,
               Key -> SpeakerLabelingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SpeakerLabeling" (SpeakerLabelingConfigurationProperty -> (Key, Value))
-> Maybe SpeakerLabelingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SpeakerLabelingConfigurationProperty
speakerLabeling]))
instance Property "ChannelLabeling" TranscriptConfigurationProperty where
  type PropertyType "ChannelLabeling" TranscriptConfigurationProperty = ChannelLabelingConfigurationProperty
  set :: PropertyType "ChannelLabeling" TranscriptConfigurationProperty
-> TranscriptConfigurationProperty
-> TranscriptConfigurationProperty
set PropertyType "ChannelLabeling" TranscriptConfigurationProperty
newValue TranscriptConfigurationProperty {Maybe ChannelLabelingConfigurationProperty
Maybe SpeakerLabelingConfigurationProperty
()
haddock_workaround_ :: TranscriptConfigurationProperty -> ()
channelLabeling :: TranscriptConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: TranscriptConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
..}
    = TranscriptConfigurationProperty
        {channelLabeling :: Maybe ChannelLabelingConfigurationProperty
channelLabeling = ChannelLabelingConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ChannelLabeling" TranscriptConfigurationProperty
ChannelLabelingConfigurationProperty
newValue, Maybe SpeakerLabelingConfigurationProperty
()
haddock_workaround_ :: ()
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
haddock_workaround_ :: ()
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
..}
instance Property "SpeakerLabeling" TranscriptConfigurationProperty where
  type PropertyType "SpeakerLabeling" TranscriptConfigurationProperty = SpeakerLabelingConfigurationProperty
  set :: PropertyType "SpeakerLabeling" TranscriptConfigurationProperty
-> TranscriptConfigurationProperty
-> TranscriptConfigurationProperty
set PropertyType "SpeakerLabeling" TranscriptConfigurationProperty
newValue TranscriptConfigurationProperty {Maybe ChannelLabelingConfigurationProperty
Maybe SpeakerLabelingConfigurationProperty
()
haddock_workaround_ :: TranscriptConfigurationProperty -> ()
channelLabeling :: TranscriptConfigurationProperty
-> Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: TranscriptConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
..}
    = TranscriptConfigurationProperty
        {speakerLabeling :: Maybe SpeakerLabelingConfigurationProperty
speakerLabeling = SpeakerLabelingConfigurationProperty
-> Maybe SpeakerLabelingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SpeakerLabeling" TranscriptConfigurationProperty
SpeakerLabelingConfigurationProperty
newValue, Maybe ChannelLabelingConfigurationProperty
()
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
haddock_workaround_ :: ()
channelLabeling :: Maybe ChannelLabelingConfigurationProperty
..}