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