module Stratosphere.Rekognition.StreamProcessor.FaceSearchSettingsProperty (
        FaceSearchSettingsProperty(..), mkFaceSearchSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FaceSearchSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rekognition-streamprocessor-facesearchsettings.html>
    FaceSearchSettingsProperty {FaceSearchSettingsProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rekognition-streamprocessor-facesearchsettings.html#cfn-rekognition-streamprocessor-facesearchsettings-collectionid>
                                FaceSearchSettingsProperty -> Value Text
collectionId :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rekognition-streamprocessor-facesearchsettings.html#cfn-rekognition-streamprocessor-facesearchsettings-facematchthreshold>
                                FaceSearchSettingsProperty -> Maybe (Value Double)
faceMatchThreshold :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool
(FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool)
-> (FaceSearchSettingsProperty
    -> FaceSearchSettingsProperty -> Bool)
-> Eq FaceSearchSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool
== :: FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool
$c/= :: FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool
/= :: FaceSearchSettingsProperty -> FaceSearchSettingsProperty -> Bool
Prelude.Eq, Int -> FaceSearchSettingsProperty -> ShowS
[FaceSearchSettingsProperty] -> ShowS
FaceSearchSettingsProperty -> String
(Int -> FaceSearchSettingsProperty -> ShowS)
-> (FaceSearchSettingsProperty -> String)
-> ([FaceSearchSettingsProperty] -> ShowS)
-> Show FaceSearchSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FaceSearchSettingsProperty -> ShowS
showsPrec :: Int -> FaceSearchSettingsProperty -> ShowS
$cshow :: FaceSearchSettingsProperty -> String
show :: FaceSearchSettingsProperty -> String
$cshowList :: [FaceSearchSettingsProperty] -> ShowS
showList :: [FaceSearchSettingsProperty] -> ShowS
Prelude.Show)
mkFaceSearchSettingsProperty ::
  Value Prelude.Text -> FaceSearchSettingsProperty
mkFaceSearchSettingsProperty :: Value Text -> FaceSearchSettingsProperty
mkFaceSearchSettingsProperty Value Text
collectionId
  = FaceSearchSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), collectionId :: Value Text
collectionId = Value Text
collectionId,
       faceMatchThreshold :: Maybe (Value Double)
faceMatchThreshold = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FaceSearchSettingsProperty where
  toResourceProperties :: FaceSearchSettingsProperty -> ResourceProperties
toResourceProperties FaceSearchSettingsProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FaceSearchSettingsProperty -> ()
collectionId :: FaceSearchSettingsProperty -> Value Text
faceMatchThreshold :: FaceSearchSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
collectionId :: Value Text
faceMatchThreshold :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Rekognition::StreamProcessor.FaceSearchSettings",
         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
"CollectionId" 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
collectionId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FaceMatchThreshold" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
faceMatchThreshold]))}
instance JSON.ToJSON FaceSearchSettingsProperty where
  toJSON :: FaceSearchSettingsProperty -> Value
toJSON FaceSearchSettingsProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FaceSearchSettingsProperty -> ()
collectionId :: FaceSearchSettingsProperty -> Value Text
faceMatchThreshold :: FaceSearchSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
collectionId :: Value Text
faceMatchThreshold :: Maybe (Value Double)
..}
    = [(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
"CollectionId" 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
collectionId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FaceMatchThreshold" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
faceMatchThreshold])))
instance Property "CollectionId" FaceSearchSettingsProperty where
  type PropertyType "CollectionId" FaceSearchSettingsProperty = Value Prelude.Text
  set :: PropertyType "CollectionId" FaceSearchSettingsProperty
-> FaceSearchSettingsProperty -> FaceSearchSettingsProperty
set PropertyType "CollectionId" FaceSearchSettingsProperty
newValue FaceSearchSettingsProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FaceSearchSettingsProperty -> ()
collectionId :: FaceSearchSettingsProperty -> Value Text
faceMatchThreshold :: FaceSearchSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
collectionId :: Value Text
faceMatchThreshold :: Maybe (Value Double)
..}
    = FaceSearchSettingsProperty {collectionId :: Value Text
collectionId = PropertyType "CollectionId" FaceSearchSettingsProperty
Value Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
faceMatchThreshold :: Maybe (Value Double)
haddock_workaround_ :: ()
faceMatchThreshold :: Maybe (Value Double)
..}
instance Property "FaceMatchThreshold" FaceSearchSettingsProperty where
  type PropertyType "FaceMatchThreshold" FaceSearchSettingsProperty = Value Prelude.Double
  set :: PropertyType "FaceMatchThreshold" FaceSearchSettingsProperty
-> FaceSearchSettingsProperty -> FaceSearchSettingsProperty
set PropertyType "FaceMatchThreshold" FaceSearchSettingsProperty
newValue FaceSearchSettingsProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FaceSearchSettingsProperty -> ()
collectionId :: FaceSearchSettingsProperty -> Value Text
faceMatchThreshold :: FaceSearchSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
collectionId :: Value Text
faceMatchThreshold :: Maybe (Value Double)
..}
    = FaceSearchSettingsProperty
        {faceMatchThreshold :: Maybe (Value Double)
faceMatchThreshold = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FaceMatchThreshold" FaceSearchSettingsProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
haddock_workaround_ :: ()
collectionId :: Value Text
..}