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