module Stratosphere.Bedrock.DataAutomationProject.VideoExtractionCategoryProperty (
        VideoExtractionCategoryProperty(..),
        mkVideoExtractionCategoryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VideoExtractionCategoryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-videoextractioncategory.html>
    VideoExtractionCategoryProperty {VideoExtractionCategoryProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-videoextractioncategory.html#cfn-bedrock-dataautomationproject-videoextractioncategory-state>
                                     VideoExtractionCategoryProperty -> Value Text
state :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-videoextractioncategory.html#cfn-bedrock-dataautomationproject-videoextractioncategory-types>
                                     VideoExtractionCategoryProperty -> Maybe (ValueList Text)
types :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty -> Bool
(VideoExtractionCategoryProperty
 -> VideoExtractionCategoryProperty -> Bool)
-> (VideoExtractionCategoryProperty
    -> VideoExtractionCategoryProperty -> Bool)
-> Eq VideoExtractionCategoryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty -> Bool
== :: VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty -> Bool
$c/= :: VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty -> Bool
/= :: VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty -> Bool
Prelude.Eq, Int -> VideoExtractionCategoryProperty -> ShowS
[VideoExtractionCategoryProperty] -> ShowS
VideoExtractionCategoryProperty -> String
(Int -> VideoExtractionCategoryProperty -> ShowS)
-> (VideoExtractionCategoryProperty -> String)
-> ([VideoExtractionCategoryProperty] -> ShowS)
-> Show VideoExtractionCategoryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VideoExtractionCategoryProperty -> ShowS
showsPrec :: Int -> VideoExtractionCategoryProperty -> ShowS
$cshow :: VideoExtractionCategoryProperty -> String
show :: VideoExtractionCategoryProperty -> String
$cshowList :: [VideoExtractionCategoryProperty] -> ShowS
showList :: [VideoExtractionCategoryProperty] -> ShowS
Prelude.Show)
mkVideoExtractionCategoryProperty ::
  Value Prelude.Text -> VideoExtractionCategoryProperty
mkVideoExtractionCategoryProperty :: Value Text -> VideoExtractionCategoryProperty
mkVideoExtractionCategoryProperty Value Text
state
  = VideoExtractionCategoryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), state :: Value Text
state = Value Text
state, types :: Maybe (ValueList Text)
types = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VideoExtractionCategoryProperty where
  toResourceProperties :: VideoExtractionCategoryProperty -> ResourceProperties
toResourceProperties VideoExtractionCategoryProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: VideoExtractionCategoryProperty -> ()
state :: VideoExtractionCategoryProperty -> Value Text
types :: VideoExtractionCategoryProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
state :: Value Text
types :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.VideoExtractionCategory",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [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]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types]))}
instance JSON.ToJSON VideoExtractionCategoryProperty where
  toJSON :: VideoExtractionCategoryProperty -> Value
toJSON VideoExtractionCategoryProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: VideoExtractionCategoryProperty -> ()
state :: VideoExtractionCategoryProperty -> Value Text
types :: VideoExtractionCategoryProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
state :: Value Text
types :: Maybe (ValueList Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [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]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList 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
"Types" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
types])))
instance Property "State" VideoExtractionCategoryProperty where
  type PropertyType "State" VideoExtractionCategoryProperty = Value Prelude.Text
  set :: PropertyType "State" VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty
set PropertyType "State" VideoExtractionCategoryProperty
newValue VideoExtractionCategoryProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: VideoExtractionCategoryProperty -> ()
state :: VideoExtractionCategoryProperty -> Value Text
types :: VideoExtractionCategoryProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
state :: Value Text
types :: Maybe (ValueList Text)
..}
    = VideoExtractionCategoryProperty {state :: Value Text
state = PropertyType "State" VideoExtractionCategoryProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
haddock_workaround_ :: ()
types :: Maybe (ValueList Text)
..}
instance Property "Types" VideoExtractionCategoryProperty where
  type PropertyType "Types" VideoExtractionCategoryProperty = ValueList Prelude.Text
  set :: PropertyType "Types" VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty
-> VideoExtractionCategoryProperty
set PropertyType "Types" VideoExtractionCategoryProperty
newValue VideoExtractionCategoryProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: VideoExtractionCategoryProperty -> ()
state :: VideoExtractionCategoryProperty -> Value Text
types :: VideoExtractionCategoryProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
state :: Value Text
types :: Maybe (ValueList Text)
..}
    = VideoExtractionCategoryProperty
        {types :: Maybe (ValueList Text)
types = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Types" VideoExtractionCategoryProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
state :: Value Text
haddock_workaround_ :: ()
state :: Value Text
..}