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