{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.DataQualityAppSpecification
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.DataQualityAppSpecification where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Information about the container that a data quality monitoring job runs.
--
-- /See:/ 'newDataQualityAppSpecification' smart constructor.
data DataQualityAppSpecification = DataQualityAppSpecification'
  { -- | The arguments to send to the container that the monitoring job runs.
    DataQualityAppSpecification -> Maybe (NonEmpty Text)
containerArguments :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The entrypoint for a container used to run a monitoring job.
    DataQualityAppSpecification -> Maybe (NonEmpty Text)
containerEntrypoint :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | Sets the environment variables in the container that the monitoring job
    -- runs.
    DataQualityAppSpecification -> Maybe (HashMap Text Text)
environment :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | An Amazon S3 URI to a script that is called after analysis has been
    -- performed. Applicable only for the built-in (first party) containers.
    DataQualityAppSpecification -> Maybe Text
postAnalyticsProcessorSourceUri :: Prelude.Maybe Prelude.Text,
    -- | An Amazon S3 URI to a script that is called per row prior to running
    -- analysis. It can base64 decode the payload and convert it into a flatted
    -- json so that the built-in container can use the converted data.
    -- Applicable only for the built-in (first party) containers.
    DataQualityAppSpecification -> Maybe Text
recordPreprocessorSourceUri :: Prelude.Maybe Prelude.Text,
    -- | The container image that the data quality monitoring job runs.
    DataQualityAppSpecification -> Text
imageUri :: Prelude.Text
  }
  deriving (DataQualityAppSpecification -> DataQualityAppSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataQualityAppSpecification -> DataQualityAppSpecification -> Bool
$c/= :: DataQualityAppSpecification -> DataQualityAppSpecification -> Bool
== :: DataQualityAppSpecification -> DataQualityAppSpecification -> Bool
$c== :: DataQualityAppSpecification -> DataQualityAppSpecification -> Bool
Prelude.Eq, ReadPrec [DataQualityAppSpecification]
ReadPrec DataQualityAppSpecification
Int -> ReadS DataQualityAppSpecification
ReadS [DataQualityAppSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataQualityAppSpecification]
$creadListPrec :: ReadPrec [DataQualityAppSpecification]
readPrec :: ReadPrec DataQualityAppSpecification
$creadPrec :: ReadPrec DataQualityAppSpecification
readList :: ReadS [DataQualityAppSpecification]
$creadList :: ReadS [DataQualityAppSpecification]
readsPrec :: Int -> ReadS DataQualityAppSpecification
$creadsPrec :: Int -> ReadS DataQualityAppSpecification
Prelude.Read, Int -> DataQualityAppSpecification -> ShowS
[DataQualityAppSpecification] -> ShowS
DataQualityAppSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataQualityAppSpecification] -> ShowS
$cshowList :: [DataQualityAppSpecification] -> ShowS
show :: DataQualityAppSpecification -> String
$cshow :: DataQualityAppSpecification -> String
showsPrec :: Int -> DataQualityAppSpecification -> ShowS
$cshowsPrec :: Int -> DataQualityAppSpecification -> ShowS
Prelude.Show, forall x.
Rep DataQualityAppSpecification x -> DataQualityAppSpecification
forall x.
DataQualityAppSpecification -> Rep DataQualityAppSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DataQualityAppSpecification x -> DataQualityAppSpecification
$cfrom :: forall x.
DataQualityAppSpecification -> Rep DataQualityAppSpecification x
Prelude.Generic)

-- |
-- Create a value of 'DataQualityAppSpecification' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'containerArguments', 'dataQualityAppSpecification_containerArguments' - The arguments to send to the container that the monitoring job runs.
--
-- 'containerEntrypoint', 'dataQualityAppSpecification_containerEntrypoint' - The entrypoint for a container used to run a monitoring job.
--
-- 'environment', 'dataQualityAppSpecification_environment' - Sets the environment variables in the container that the monitoring job
-- runs.
--
-- 'postAnalyticsProcessorSourceUri', 'dataQualityAppSpecification_postAnalyticsProcessorSourceUri' - An Amazon S3 URI to a script that is called after analysis has been
-- performed. Applicable only for the built-in (first party) containers.
--
-- 'recordPreprocessorSourceUri', 'dataQualityAppSpecification_recordPreprocessorSourceUri' - An Amazon S3 URI to a script that is called per row prior to running
-- analysis. It can base64 decode the payload and convert it into a flatted
-- json so that the built-in container can use the converted data.
-- Applicable only for the built-in (first party) containers.
--
-- 'imageUri', 'dataQualityAppSpecification_imageUri' - The container image that the data quality monitoring job runs.
newDataQualityAppSpecification ::
  -- | 'imageUri'
  Prelude.Text ->
  DataQualityAppSpecification
newDataQualityAppSpecification :: Text -> DataQualityAppSpecification
newDataQualityAppSpecification Text
pImageUri_ =
  DataQualityAppSpecification'
    { $sel:containerArguments:DataQualityAppSpecification' :: Maybe (NonEmpty Text)
containerArguments =
        forall a. Maybe a
Prelude.Nothing,
      $sel:containerEntrypoint:DataQualityAppSpecification' :: Maybe (NonEmpty Text)
containerEntrypoint = forall a. Maybe a
Prelude.Nothing,
      $sel:environment:DataQualityAppSpecification' :: Maybe (HashMap Text Text)
environment = forall a. Maybe a
Prelude.Nothing,
      $sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: Maybe Text
postAnalyticsProcessorSourceUri =
        forall a. Maybe a
Prelude.Nothing,
      $sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: Maybe Text
recordPreprocessorSourceUri = forall a. Maybe a
Prelude.Nothing,
      $sel:imageUri:DataQualityAppSpecification' :: Text
imageUri = Text
pImageUri_
    }

-- | The arguments to send to the container that the monitoring job runs.
dataQualityAppSpecification_containerArguments :: Lens.Lens' DataQualityAppSpecification (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
dataQualityAppSpecification_containerArguments :: Lens' DataQualityAppSpecification (Maybe (NonEmpty Text))
dataQualityAppSpecification_containerArguments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Maybe (NonEmpty Text)
containerArguments :: Maybe (NonEmpty Text)
$sel:containerArguments:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
containerArguments} -> Maybe (NonEmpty Text)
containerArguments) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Maybe (NonEmpty Text)
a -> DataQualityAppSpecification
s {$sel:containerArguments:DataQualityAppSpecification' :: Maybe (NonEmpty Text)
containerArguments = Maybe (NonEmpty Text)
a} :: DataQualityAppSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The entrypoint for a container used to run a monitoring job.
dataQualityAppSpecification_containerEntrypoint :: Lens.Lens' DataQualityAppSpecification (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
dataQualityAppSpecification_containerEntrypoint :: Lens' DataQualityAppSpecification (Maybe (NonEmpty Text))
dataQualityAppSpecification_containerEntrypoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Maybe (NonEmpty Text)
containerEntrypoint :: Maybe (NonEmpty Text)
$sel:containerEntrypoint:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
containerEntrypoint} -> Maybe (NonEmpty Text)
containerEntrypoint) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Maybe (NonEmpty Text)
a -> DataQualityAppSpecification
s {$sel:containerEntrypoint:DataQualityAppSpecification' :: Maybe (NonEmpty Text)
containerEntrypoint = Maybe (NonEmpty Text)
a} :: DataQualityAppSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Sets the environment variables in the container that the monitoring job
-- runs.
dataQualityAppSpecification_environment :: Lens.Lens' DataQualityAppSpecification (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
dataQualityAppSpecification_environment :: Lens' DataQualityAppSpecification (Maybe (HashMap Text Text))
dataQualityAppSpecification_environment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Maybe (HashMap Text Text)
environment :: Maybe (HashMap Text Text)
$sel:environment:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (HashMap Text Text)
environment} -> Maybe (HashMap Text Text)
environment) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Maybe (HashMap Text Text)
a -> DataQualityAppSpecification
s {$sel:environment:DataQualityAppSpecification' :: Maybe (HashMap Text Text)
environment = Maybe (HashMap Text Text)
a} :: DataQualityAppSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An Amazon S3 URI to a script that is called after analysis has been
-- performed. Applicable only for the built-in (first party) containers.
dataQualityAppSpecification_postAnalyticsProcessorSourceUri :: Lens.Lens' DataQualityAppSpecification (Prelude.Maybe Prelude.Text)
dataQualityAppSpecification_postAnalyticsProcessorSourceUri :: Lens' DataQualityAppSpecification (Maybe Text)
dataQualityAppSpecification_postAnalyticsProcessorSourceUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Maybe Text
postAnalyticsProcessorSourceUri :: Maybe Text
$sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
postAnalyticsProcessorSourceUri} -> Maybe Text
postAnalyticsProcessorSourceUri) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Maybe Text
a -> DataQualityAppSpecification
s {$sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: Maybe Text
postAnalyticsProcessorSourceUri = Maybe Text
a} :: DataQualityAppSpecification)

-- | An Amazon S3 URI to a script that is called per row prior to running
-- analysis. It can base64 decode the payload and convert it into a flatted
-- json so that the built-in container can use the converted data.
-- Applicable only for the built-in (first party) containers.
dataQualityAppSpecification_recordPreprocessorSourceUri :: Lens.Lens' DataQualityAppSpecification (Prelude.Maybe Prelude.Text)
dataQualityAppSpecification_recordPreprocessorSourceUri :: Lens' DataQualityAppSpecification (Maybe Text)
dataQualityAppSpecification_recordPreprocessorSourceUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Maybe Text
recordPreprocessorSourceUri :: Maybe Text
$sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
recordPreprocessorSourceUri} -> Maybe Text
recordPreprocessorSourceUri) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Maybe Text
a -> DataQualityAppSpecification
s {$sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: Maybe Text
recordPreprocessorSourceUri = Maybe Text
a} :: DataQualityAppSpecification)

-- | The container image that the data quality monitoring job runs.
dataQualityAppSpecification_imageUri :: Lens.Lens' DataQualityAppSpecification Prelude.Text
dataQualityAppSpecification_imageUri :: Lens' DataQualityAppSpecification Text
dataQualityAppSpecification_imageUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataQualityAppSpecification' {Text
imageUri :: Text
$sel:imageUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Text
imageUri} -> Text
imageUri) (\s :: DataQualityAppSpecification
s@DataQualityAppSpecification' {} Text
a -> DataQualityAppSpecification
s {$sel:imageUri:DataQualityAppSpecification' :: Text
imageUri = Text
a} :: DataQualityAppSpecification)

instance Data.FromJSON DataQualityAppSpecification where
  parseJSON :: Value -> Parser DataQualityAppSpecification
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DataQualityAppSpecification"
      ( \Object
x ->
          Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Text
-> DataQualityAppSpecification
DataQualityAppSpecification'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ContainerArguments")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ContainerEntrypoint")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Environment" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PostAnalyticsProcessorSourceUri")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecordPreprocessorSourceUri")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ImageUri")
      )

instance Prelude.Hashable DataQualityAppSpecification where
  hashWithSalt :: Int -> DataQualityAppSpecification -> Int
hashWithSalt Int
_salt DataQualityAppSpecification' {Maybe (NonEmpty Text)
Maybe Text
Maybe (HashMap Text Text)
Text
imageUri :: Text
recordPreprocessorSourceUri :: Maybe Text
postAnalyticsProcessorSourceUri :: Maybe Text
environment :: Maybe (HashMap Text Text)
containerEntrypoint :: Maybe (NonEmpty Text)
containerArguments :: Maybe (NonEmpty Text)
$sel:imageUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Text
$sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:environment:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (HashMap Text Text)
$sel:containerEntrypoint:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
$sel:containerArguments:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
containerArguments
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
containerEntrypoint
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
environment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
postAnalyticsProcessorSourceUri
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recordPreprocessorSourceUri
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
imageUri

instance Prelude.NFData DataQualityAppSpecification where
  rnf :: DataQualityAppSpecification -> ()
rnf DataQualityAppSpecification' {Maybe (NonEmpty Text)
Maybe Text
Maybe (HashMap Text Text)
Text
imageUri :: Text
recordPreprocessorSourceUri :: Maybe Text
postAnalyticsProcessorSourceUri :: Maybe Text
environment :: Maybe (HashMap Text Text)
containerEntrypoint :: Maybe (NonEmpty Text)
containerArguments :: Maybe (NonEmpty Text)
$sel:imageUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Text
$sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:environment:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (HashMap Text Text)
$sel:containerEntrypoint:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
$sel:containerArguments:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
containerArguments
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
containerEntrypoint
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
environment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
postAnalyticsProcessorSourceUri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recordPreprocessorSourceUri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
imageUri

instance Data.ToJSON DataQualityAppSpecification where
  toJSON :: DataQualityAppSpecification -> Value
toJSON DataQualityAppSpecification' {Maybe (NonEmpty Text)
Maybe Text
Maybe (HashMap Text Text)
Text
imageUri :: Text
recordPreprocessorSourceUri :: Maybe Text
postAnalyticsProcessorSourceUri :: Maybe Text
environment :: Maybe (HashMap Text Text)
containerEntrypoint :: Maybe (NonEmpty Text)
containerArguments :: Maybe (NonEmpty Text)
$sel:imageUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Text
$sel:recordPreprocessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:postAnalyticsProcessorSourceUri:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe Text
$sel:environment:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (HashMap Text Text)
$sel:containerEntrypoint:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
$sel:containerArguments:DataQualityAppSpecification' :: DataQualityAppSpecification -> Maybe (NonEmpty Text)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"ContainerArguments" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
containerArguments,
            (Key
"ContainerEntrypoint" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
containerEntrypoint,
            (Key
"Environment" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
environment,
            (Key
"PostAnalyticsProcessorSourceUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
postAnalyticsProcessorSourceUri,
            (Key
"RecordPreprocessorSourceUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
recordPreprocessorSourceUri,
            forall a. a -> Maybe a
Prelude.Just (Key
"ImageUri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
imageUri)
          ]
      )