module Stratosphere.Bedrock.DataAutomationProject.VideoStandardOutputConfigurationProperty (
module Exports, VideoStandardOutputConfigurationProperty(..),
mkVideoStandardOutputConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataAutomationProject.VideoStandardExtractionProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataAutomationProject.VideoStandardGenerativeFieldProperty as Exports
import Stratosphere.ResourceProperties
data VideoStandardOutputConfigurationProperty
=
VideoStandardOutputConfigurationProperty {VideoStandardOutputConfigurationProperty -> ()
haddock_workaround_ :: (),
:: (Prelude.Maybe VideoStandardExtractionProperty),
VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardGenerativeFieldProperty
generativeField :: (Prelude.Maybe VideoStandardGenerativeFieldProperty)}
deriving stock (VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool
(VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool)
-> (VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool)
-> Eq VideoStandardOutputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool
== :: VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool
$c/= :: VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool
/= :: VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty -> Bool
Prelude.Eq, Int -> VideoStandardOutputConfigurationProperty -> ShowS
[VideoStandardOutputConfigurationProperty] -> ShowS
VideoStandardOutputConfigurationProperty -> String
(Int -> VideoStandardOutputConfigurationProperty -> ShowS)
-> (VideoStandardOutputConfigurationProperty -> String)
-> ([VideoStandardOutputConfigurationProperty] -> ShowS)
-> Show VideoStandardOutputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VideoStandardOutputConfigurationProperty -> ShowS
showsPrec :: Int -> VideoStandardOutputConfigurationProperty -> ShowS
$cshow :: VideoStandardOutputConfigurationProperty -> String
show :: VideoStandardOutputConfigurationProperty -> String
$cshowList :: [VideoStandardOutputConfigurationProperty] -> ShowS
showList :: [VideoStandardOutputConfigurationProperty] -> ShowS
Prelude.Show)
mkVideoStandardOutputConfigurationProperty ::
VideoStandardOutputConfigurationProperty
mkVideoStandardOutputConfigurationProperty :: VideoStandardOutputConfigurationProperty
mkVideoStandardOutputConfigurationProperty
= VideoStandardOutputConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), extraction :: Maybe VideoStandardExtractionProperty
extraction = Maybe VideoStandardExtractionProperty
forall a. Maybe a
Prelude.Nothing,
generativeField :: Maybe VideoStandardGenerativeFieldProperty
generativeField = Maybe VideoStandardGenerativeFieldProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VideoStandardOutputConfigurationProperty where
toResourceProperties :: VideoStandardOutputConfigurationProperty -> ResourceProperties
toResourceProperties VideoStandardOutputConfigurationProperty {Maybe VideoStandardExtractionProperty
Maybe VideoStandardGenerativeFieldProperty
()
haddock_workaround_ :: VideoStandardOutputConfigurationProperty -> ()
extraction :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardExtractionProperty
generativeField :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardGenerativeFieldProperty
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
generativeField :: Maybe VideoStandardGenerativeFieldProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.VideoStandardOutputConfiguration",
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 -> VideoStandardExtractionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Extraction" (VideoStandardExtractionProperty -> (Key, Value))
-> Maybe VideoStandardExtractionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VideoStandardExtractionProperty
extraction,
Key -> VideoStandardGenerativeFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GenerativeField" (VideoStandardGenerativeFieldProperty -> (Key, Value))
-> Maybe VideoStandardGenerativeFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VideoStandardGenerativeFieldProperty
generativeField])}
instance JSON.ToJSON VideoStandardOutputConfigurationProperty where
toJSON :: VideoStandardOutputConfigurationProperty -> Value
toJSON VideoStandardOutputConfigurationProperty {Maybe VideoStandardExtractionProperty
Maybe VideoStandardGenerativeFieldProperty
()
haddock_workaround_ :: VideoStandardOutputConfigurationProperty -> ()
extraction :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardExtractionProperty
generativeField :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardGenerativeFieldProperty
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
generativeField :: Maybe VideoStandardGenerativeFieldProperty
..}
= [(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 -> VideoStandardExtractionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Extraction" (VideoStandardExtractionProperty -> (Key, Value))
-> Maybe VideoStandardExtractionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VideoStandardExtractionProperty
extraction,
Key -> VideoStandardGenerativeFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GenerativeField" (VideoStandardGenerativeFieldProperty -> (Key, Value))
-> Maybe VideoStandardGenerativeFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VideoStandardGenerativeFieldProperty
generativeField]))
instance Property "Extraction" VideoStandardOutputConfigurationProperty where
type PropertyType "Extraction" VideoStandardOutputConfigurationProperty = VideoStandardExtractionProperty
set :: PropertyType "Extraction" VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty
set PropertyType "Extraction" VideoStandardOutputConfigurationProperty
newValue VideoStandardOutputConfigurationProperty {Maybe VideoStandardExtractionProperty
Maybe VideoStandardGenerativeFieldProperty
()
haddock_workaround_ :: VideoStandardOutputConfigurationProperty -> ()
extraction :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardExtractionProperty
generativeField :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardGenerativeFieldProperty
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
generativeField :: Maybe VideoStandardGenerativeFieldProperty
..}
= VideoStandardOutputConfigurationProperty
{extraction :: Maybe VideoStandardExtractionProperty
extraction = VideoStandardExtractionProperty
-> Maybe VideoStandardExtractionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Extraction" VideoStandardOutputConfigurationProperty
VideoStandardExtractionProperty
newValue, Maybe VideoStandardGenerativeFieldProperty
()
haddock_workaround_ :: ()
generativeField :: Maybe VideoStandardGenerativeFieldProperty
haddock_workaround_ :: ()
generativeField :: Maybe VideoStandardGenerativeFieldProperty
..}
instance Property "GenerativeField" VideoStandardOutputConfigurationProperty where
type PropertyType "GenerativeField" VideoStandardOutputConfigurationProperty = VideoStandardGenerativeFieldProperty
set :: PropertyType
"GenerativeField" VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty
-> VideoStandardOutputConfigurationProperty
set PropertyType
"GenerativeField" VideoStandardOutputConfigurationProperty
newValue VideoStandardOutputConfigurationProperty {Maybe VideoStandardExtractionProperty
Maybe VideoStandardGenerativeFieldProperty
()
haddock_workaround_ :: VideoStandardOutputConfigurationProperty -> ()
extraction :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardExtractionProperty
generativeField :: VideoStandardOutputConfigurationProperty
-> Maybe VideoStandardGenerativeFieldProperty
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
generativeField :: Maybe VideoStandardGenerativeFieldProperty
..}
= VideoStandardOutputConfigurationProperty
{generativeField :: Maybe VideoStandardGenerativeFieldProperty
generativeField = VideoStandardGenerativeFieldProperty
-> Maybe VideoStandardGenerativeFieldProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"GenerativeField" VideoStandardOutputConfigurationProperty
VideoStandardGenerativeFieldProperty
newValue, Maybe VideoStandardExtractionProperty
()
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
haddock_workaround_ :: ()
extraction :: Maybe VideoStandardExtractionProperty
..}