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