{-# 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.MonitoringAppSpecification
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.MonitoringAppSpecification where

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

-- | Container image configuration object for the monitoring job.
--
-- /See:/ 'newMonitoringAppSpecification' smart constructor.
data MonitoringAppSpecification = MonitoringAppSpecification'
  { -- | An array of arguments for the container used to run the monitoring job.
    MonitoringAppSpecification -> Maybe (NonEmpty Text)
containerArguments :: Prelude.Maybe (Prelude.NonEmpty 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.
    MonitoringAppSpecification -> Maybe Text
recordPreprocessorSourceUri :: Prelude.Maybe Prelude.Text,
    -- | Specifies the entrypoint for a container used to run the monitoring job.
    MonitoringAppSpecification -> Maybe (NonEmpty Text)
containerEntrypoint :: Prelude.Maybe (Prelude.NonEmpty 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.
    MonitoringAppSpecification -> Maybe Text
postAnalyticsProcessorSourceUri :: Prelude.Maybe Prelude.Text,
    -- | The container image to be run by the monitoring job.
    MonitoringAppSpecification -> Text
imageUri :: Prelude.Text
  }
  deriving (MonitoringAppSpecification -> MonitoringAppSpecification -> Bool
(MonitoringAppSpecification -> MonitoringAppSpecification -> Bool)
-> (MonitoringAppSpecification
    -> MonitoringAppSpecification -> Bool)
-> Eq MonitoringAppSpecification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MonitoringAppSpecification -> MonitoringAppSpecification -> Bool
$c/= :: MonitoringAppSpecification -> MonitoringAppSpecification -> Bool
== :: MonitoringAppSpecification -> MonitoringAppSpecification -> Bool
$c== :: MonitoringAppSpecification -> MonitoringAppSpecification -> Bool
Prelude.Eq, ReadPrec [MonitoringAppSpecification]
ReadPrec MonitoringAppSpecification
Int -> ReadS MonitoringAppSpecification
ReadS [MonitoringAppSpecification]
(Int -> ReadS MonitoringAppSpecification)
-> ReadS [MonitoringAppSpecification]
-> ReadPrec MonitoringAppSpecification
-> ReadPrec [MonitoringAppSpecification]
-> Read MonitoringAppSpecification
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MonitoringAppSpecification]
$creadListPrec :: ReadPrec [MonitoringAppSpecification]
readPrec :: ReadPrec MonitoringAppSpecification
$creadPrec :: ReadPrec MonitoringAppSpecification
readList :: ReadS [MonitoringAppSpecification]
$creadList :: ReadS [MonitoringAppSpecification]
readsPrec :: Int -> ReadS MonitoringAppSpecification
$creadsPrec :: Int -> ReadS MonitoringAppSpecification
Prelude.Read, Int -> MonitoringAppSpecification -> ShowS
[MonitoringAppSpecification] -> ShowS
MonitoringAppSpecification -> String
(Int -> MonitoringAppSpecification -> ShowS)
-> (MonitoringAppSpecification -> String)
-> ([MonitoringAppSpecification] -> ShowS)
-> Show MonitoringAppSpecification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MonitoringAppSpecification] -> ShowS
$cshowList :: [MonitoringAppSpecification] -> ShowS
show :: MonitoringAppSpecification -> String
$cshow :: MonitoringAppSpecification -> String
showsPrec :: Int -> MonitoringAppSpecification -> ShowS
$cshowsPrec :: Int -> MonitoringAppSpecification -> ShowS
Prelude.Show, (forall x.
 MonitoringAppSpecification -> Rep MonitoringAppSpecification x)
-> (forall x.
    Rep MonitoringAppSpecification x -> MonitoringAppSpecification)
-> Generic MonitoringAppSpecification
forall x.
Rep MonitoringAppSpecification x -> MonitoringAppSpecification
forall x.
MonitoringAppSpecification -> Rep MonitoringAppSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MonitoringAppSpecification x -> MonitoringAppSpecification
$cfrom :: forall x.
MonitoringAppSpecification -> Rep MonitoringAppSpecification x
Prelude.Generic)

-- |
-- Create a value of 'MonitoringAppSpecification' 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', 'monitoringAppSpecification_containerArguments' - An array of arguments for the container used to run the monitoring job.
--
-- 'recordPreprocessorSourceUri', 'monitoringAppSpecification_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.
--
-- 'containerEntrypoint', 'monitoringAppSpecification_containerEntrypoint' - Specifies the entrypoint for a container used to run the monitoring job.
--
-- 'postAnalyticsProcessorSourceUri', 'monitoringAppSpecification_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.
--
-- 'imageUri', 'monitoringAppSpecification_imageUri' - The container image to be run by the monitoring job.
newMonitoringAppSpecification ::
  -- | 'imageUri'
  Prelude.Text ->
  MonitoringAppSpecification
newMonitoringAppSpecification :: Text -> MonitoringAppSpecification
newMonitoringAppSpecification Text
pImageUri_ =
  MonitoringAppSpecification' :: Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Text
-> MonitoringAppSpecification
MonitoringAppSpecification'
    { $sel:containerArguments:MonitoringAppSpecification' :: Maybe (NonEmpty Text)
containerArguments =
        Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:recordPreprocessorSourceUri:MonitoringAppSpecification' :: Maybe Text
recordPreprocessorSourceUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:containerEntrypoint:MonitoringAppSpecification' :: Maybe (NonEmpty Text)
containerEntrypoint = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:postAnalyticsProcessorSourceUri:MonitoringAppSpecification' :: Maybe Text
postAnalyticsProcessorSourceUri =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:imageUri:MonitoringAppSpecification' :: Text
imageUri = Text
pImageUri_
    }

-- | An array of arguments for the container used to run the monitoring job.
monitoringAppSpecification_containerArguments :: Lens.Lens' MonitoringAppSpecification (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
monitoringAppSpecification_containerArguments :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> MonitoringAppSpecification -> f MonitoringAppSpecification
monitoringAppSpecification_containerArguments = (MonitoringAppSpecification -> Maybe (NonEmpty Text))
-> (MonitoringAppSpecification
    -> Maybe (NonEmpty Text) -> MonitoringAppSpecification)
-> Lens
     MonitoringAppSpecification
     MonitoringAppSpecification
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringAppSpecification' {Maybe (NonEmpty Text)
containerArguments :: Maybe (NonEmpty Text)
$sel:containerArguments:MonitoringAppSpecification' :: MonitoringAppSpecification -> Maybe (NonEmpty Text)
containerArguments} -> Maybe (NonEmpty Text)
containerArguments) (\s :: MonitoringAppSpecification
s@MonitoringAppSpecification' {} Maybe (NonEmpty Text)
a -> MonitoringAppSpecification
s {$sel:containerArguments:MonitoringAppSpecification' :: Maybe (NonEmpty Text)
containerArguments = Maybe (NonEmpty Text)
a} :: MonitoringAppSpecification) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> MonitoringAppSpecification -> f MonitoringAppSpecification)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> MonitoringAppSpecification
-> f MonitoringAppSpecification
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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 AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
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 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.
monitoringAppSpecification_recordPreprocessorSourceUri :: Lens.Lens' MonitoringAppSpecification (Prelude.Maybe Prelude.Text)
monitoringAppSpecification_recordPreprocessorSourceUri :: (Maybe Text -> f (Maybe Text))
-> MonitoringAppSpecification -> f MonitoringAppSpecification
monitoringAppSpecification_recordPreprocessorSourceUri = (MonitoringAppSpecification -> Maybe Text)
-> (MonitoringAppSpecification
    -> Maybe Text -> MonitoringAppSpecification)
-> Lens
     MonitoringAppSpecification
     MonitoringAppSpecification
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringAppSpecification' {Maybe Text
recordPreprocessorSourceUri :: Maybe Text
$sel:recordPreprocessorSourceUri:MonitoringAppSpecification' :: MonitoringAppSpecification -> Maybe Text
recordPreprocessorSourceUri} -> Maybe Text
recordPreprocessorSourceUri) (\s :: MonitoringAppSpecification
s@MonitoringAppSpecification' {} Maybe Text
a -> MonitoringAppSpecification
s {$sel:recordPreprocessorSourceUri:MonitoringAppSpecification' :: Maybe Text
recordPreprocessorSourceUri = Maybe Text
a} :: MonitoringAppSpecification)

-- | Specifies the entrypoint for a container used to run the monitoring job.
monitoringAppSpecification_containerEntrypoint :: Lens.Lens' MonitoringAppSpecification (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
monitoringAppSpecification_containerEntrypoint :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> MonitoringAppSpecification -> f MonitoringAppSpecification
monitoringAppSpecification_containerEntrypoint = (MonitoringAppSpecification -> Maybe (NonEmpty Text))
-> (MonitoringAppSpecification
    -> Maybe (NonEmpty Text) -> MonitoringAppSpecification)
-> Lens
     MonitoringAppSpecification
     MonitoringAppSpecification
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringAppSpecification' {Maybe (NonEmpty Text)
containerEntrypoint :: Maybe (NonEmpty Text)
$sel:containerEntrypoint:MonitoringAppSpecification' :: MonitoringAppSpecification -> Maybe (NonEmpty Text)
containerEntrypoint} -> Maybe (NonEmpty Text)
containerEntrypoint) (\s :: MonitoringAppSpecification
s@MonitoringAppSpecification' {} Maybe (NonEmpty Text)
a -> MonitoringAppSpecification
s {$sel:containerEntrypoint:MonitoringAppSpecification' :: Maybe (NonEmpty Text)
containerEntrypoint = Maybe (NonEmpty Text)
a} :: MonitoringAppSpecification) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> MonitoringAppSpecification -> f MonitoringAppSpecification)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> MonitoringAppSpecification
-> f MonitoringAppSpecification
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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 AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
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.
monitoringAppSpecification_postAnalyticsProcessorSourceUri :: Lens.Lens' MonitoringAppSpecification (Prelude.Maybe Prelude.Text)
monitoringAppSpecification_postAnalyticsProcessorSourceUri :: (Maybe Text -> f (Maybe Text))
-> MonitoringAppSpecification -> f MonitoringAppSpecification
monitoringAppSpecification_postAnalyticsProcessorSourceUri = (MonitoringAppSpecification -> Maybe Text)
-> (MonitoringAppSpecification
    -> Maybe Text -> MonitoringAppSpecification)
-> Lens
     MonitoringAppSpecification
     MonitoringAppSpecification
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringAppSpecification' {Maybe Text
postAnalyticsProcessorSourceUri :: Maybe Text
$sel:postAnalyticsProcessorSourceUri:MonitoringAppSpecification' :: MonitoringAppSpecification -> Maybe Text
postAnalyticsProcessorSourceUri} -> Maybe Text
postAnalyticsProcessorSourceUri) (\s :: MonitoringAppSpecification
s@MonitoringAppSpecification' {} Maybe Text
a -> MonitoringAppSpecification
s {$sel:postAnalyticsProcessorSourceUri:MonitoringAppSpecification' :: Maybe Text
postAnalyticsProcessorSourceUri = Maybe Text
a} :: MonitoringAppSpecification)

-- | The container image to be run by the monitoring job.
monitoringAppSpecification_imageUri :: Lens.Lens' MonitoringAppSpecification Prelude.Text
monitoringAppSpecification_imageUri :: (Text -> f Text)
-> MonitoringAppSpecification -> f MonitoringAppSpecification
monitoringAppSpecification_imageUri = (MonitoringAppSpecification -> Text)
-> (MonitoringAppSpecification
    -> Text -> MonitoringAppSpecification)
-> Lens
     MonitoringAppSpecification MonitoringAppSpecification Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringAppSpecification' {Text
imageUri :: Text
$sel:imageUri:MonitoringAppSpecification' :: MonitoringAppSpecification -> Text
imageUri} -> Text
imageUri) (\s :: MonitoringAppSpecification
s@MonitoringAppSpecification' {} Text
a -> MonitoringAppSpecification
s {$sel:imageUri:MonitoringAppSpecification' :: Text
imageUri = Text
a} :: MonitoringAppSpecification)

instance Core.FromJSON MonitoringAppSpecification where
  parseJSON :: Value -> Parser MonitoringAppSpecification
parseJSON =
    String
-> (Object -> Parser MonitoringAppSpecification)
-> Value
-> Parser MonitoringAppSpecification
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MonitoringAppSpecification"
      ( \Object
x ->
          Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Text
-> MonitoringAppSpecification
MonitoringAppSpecification'
            (Maybe (NonEmpty Text)
 -> Maybe Text
 -> Maybe (NonEmpty Text)
 -> Maybe Text
 -> Text
 -> MonitoringAppSpecification)
-> Parser (Maybe (NonEmpty Text))
-> Parser
     (Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Text
      -> Text
      -> MonitoringAppSpecification)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ContainerArguments")
            Parser
  (Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Text
   -> Text
   -> MonitoringAppSpecification)
-> Parser (Maybe Text)
-> Parser
     (Maybe (NonEmpty Text)
      -> Maybe Text -> Text -> MonitoringAppSpecification)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RecordPreprocessorSourceUri")
            Parser
  (Maybe (NonEmpty Text)
   -> Maybe Text -> Text -> MonitoringAppSpecification)
-> Parser (Maybe (NonEmpty Text))
-> Parser (Maybe Text -> Text -> MonitoringAppSpecification)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ContainerEntrypoint")
            Parser (Maybe Text -> Text -> MonitoringAppSpecification)
-> Parser (Maybe Text)
-> Parser (Text -> MonitoringAppSpecification)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PostAnalyticsProcessorSourceUri")
            Parser (Text -> MonitoringAppSpecification)
-> Parser Text -> Parser MonitoringAppSpecification
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ImageUri")
      )

instance Prelude.Hashable MonitoringAppSpecification

instance Prelude.NFData MonitoringAppSpecification

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