{-# 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.BatchTransformInput
-- 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.BatchTransformInput 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
import Amazonka.SageMaker.Types.MonitoringDatasetFormat
import Amazonka.SageMaker.Types.ProcessingS3DataDistributionType
import Amazonka.SageMaker.Types.ProcessingS3InputMode

-- | Input object for the batch transform job.
--
-- /See:/ 'newBatchTransformInput' smart constructor.
data BatchTransformInput = BatchTransformInput'
  { -- | If specified, monitoring jobs substract this time from the end time. For
    -- information about using offsets for scheduling monitoring jobs, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
    BatchTransformInput -> Maybe Text
endTimeOffset :: Prelude.Maybe Prelude.Text,
    -- | The attributes of the input data that are the input features.
    BatchTransformInput -> Maybe Text
featuresAttribute :: Prelude.Maybe Prelude.Text,
    -- | The attribute of the input data that represents the ground truth label.
    BatchTransformInput -> Maybe Text
inferenceAttribute :: Prelude.Maybe Prelude.Text,
    -- | In a classification problem, the attribute that represents the class
    -- probability.
    BatchTransformInput -> Maybe Text
probabilityAttribute :: Prelude.Maybe Prelude.Text,
    -- | The threshold for the class probability to be evaluated as a positive
    -- result.
    BatchTransformInput -> Maybe Double
probabilityThresholdAttribute :: Prelude.Maybe Prelude.Double,
    -- | Whether input data distributed in Amazon S3 is fully replicated or
    -- sharded by an S3 key. Defaults to @FullyReplicated@
    BatchTransformInput -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType :: Prelude.Maybe ProcessingS3DataDistributionType,
    -- | Whether the @Pipe@ or @File@ is used as the input mode for transferring
    -- data for the monitoring job. @Pipe@ mode is recommended for large
    -- datasets. @File@ mode is useful for small files that fit in memory.
    -- Defaults to @File@.
    BatchTransformInput -> Maybe ProcessingS3InputMode
s3InputMode :: Prelude.Maybe ProcessingS3InputMode,
    -- | If specified, monitoring jobs substract this time from the start time.
    -- For information about using offsets for scheduling monitoring jobs, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
    BatchTransformInput -> Maybe Text
startTimeOffset :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 location being used to capture the data.
    BatchTransformInput -> Text
dataCapturedDestinationS3Uri :: Prelude.Text,
    -- | The dataset format for your batch transform job.
    BatchTransformInput -> MonitoringDatasetFormat
datasetFormat :: MonitoringDatasetFormat,
    -- | Path to the filesystem where the batch transform data is available to
    -- the container.
    BatchTransformInput -> Text
localPath :: Prelude.Text
  }
  deriving (BatchTransformInput -> BatchTransformInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchTransformInput -> BatchTransformInput -> Bool
$c/= :: BatchTransformInput -> BatchTransformInput -> Bool
== :: BatchTransformInput -> BatchTransformInput -> Bool
$c== :: BatchTransformInput -> BatchTransformInput -> Bool
Prelude.Eq, ReadPrec [BatchTransformInput]
ReadPrec BatchTransformInput
Int -> ReadS BatchTransformInput
ReadS [BatchTransformInput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchTransformInput]
$creadListPrec :: ReadPrec [BatchTransformInput]
readPrec :: ReadPrec BatchTransformInput
$creadPrec :: ReadPrec BatchTransformInput
readList :: ReadS [BatchTransformInput]
$creadList :: ReadS [BatchTransformInput]
readsPrec :: Int -> ReadS BatchTransformInput
$creadsPrec :: Int -> ReadS BatchTransformInput
Prelude.Read, Int -> BatchTransformInput -> ShowS
[BatchTransformInput] -> ShowS
BatchTransformInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchTransformInput] -> ShowS
$cshowList :: [BatchTransformInput] -> ShowS
show :: BatchTransformInput -> String
$cshow :: BatchTransformInput -> String
showsPrec :: Int -> BatchTransformInput -> ShowS
$cshowsPrec :: Int -> BatchTransformInput -> ShowS
Prelude.Show, forall x. Rep BatchTransformInput x -> BatchTransformInput
forall x. BatchTransformInput -> Rep BatchTransformInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchTransformInput x -> BatchTransformInput
$cfrom :: forall x. BatchTransformInput -> Rep BatchTransformInput x
Prelude.Generic)

-- |
-- Create a value of 'BatchTransformInput' 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:
--
-- 'endTimeOffset', 'batchTransformInput_endTimeOffset' - If specified, monitoring jobs substract this time from the end time. For
-- information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
--
-- 'featuresAttribute', 'batchTransformInput_featuresAttribute' - The attributes of the input data that are the input features.
--
-- 'inferenceAttribute', 'batchTransformInput_inferenceAttribute' - The attribute of the input data that represents the ground truth label.
--
-- 'probabilityAttribute', 'batchTransformInput_probabilityAttribute' - In a classification problem, the attribute that represents the class
-- probability.
--
-- 'probabilityThresholdAttribute', 'batchTransformInput_probabilityThresholdAttribute' - The threshold for the class probability to be evaluated as a positive
-- result.
--
-- 's3DataDistributionType', 'batchTransformInput_s3DataDistributionType' - Whether input data distributed in Amazon S3 is fully replicated or
-- sharded by an S3 key. Defaults to @FullyReplicated@
--
-- 's3InputMode', 'batchTransformInput_s3InputMode' - Whether the @Pipe@ or @File@ is used as the input mode for transferring
-- data for the monitoring job. @Pipe@ mode is recommended for large
-- datasets. @File@ mode is useful for small files that fit in memory.
-- Defaults to @File@.
--
-- 'startTimeOffset', 'batchTransformInput_startTimeOffset' - If specified, monitoring jobs substract this time from the start time.
-- For information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
--
-- 'dataCapturedDestinationS3Uri', 'batchTransformInput_dataCapturedDestinationS3Uri' - The Amazon S3 location being used to capture the data.
--
-- 'datasetFormat', 'batchTransformInput_datasetFormat' - The dataset format for your batch transform job.
--
-- 'localPath', 'batchTransformInput_localPath' - Path to the filesystem where the batch transform data is available to
-- the container.
newBatchTransformInput ::
  -- | 'dataCapturedDestinationS3Uri'
  Prelude.Text ->
  -- | 'datasetFormat'
  MonitoringDatasetFormat ->
  -- | 'localPath'
  Prelude.Text ->
  BatchTransformInput
newBatchTransformInput :: Text -> MonitoringDatasetFormat -> Text -> BatchTransformInput
newBatchTransformInput
  Text
pDataCapturedDestinationS3Uri_
  MonitoringDatasetFormat
pDatasetFormat_
  Text
pLocalPath_ =
    BatchTransformInput'
      { $sel:endTimeOffset:BatchTransformInput' :: Maybe Text
endTimeOffset =
          forall a. Maybe a
Prelude.Nothing,
        $sel:featuresAttribute:BatchTransformInput' :: Maybe Text
featuresAttribute = forall a. Maybe a
Prelude.Nothing,
        $sel:inferenceAttribute:BatchTransformInput' :: Maybe Text
inferenceAttribute = forall a. Maybe a
Prelude.Nothing,
        $sel:probabilityAttribute:BatchTransformInput' :: Maybe Text
probabilityAttribute = forall a. Maybe a
Prelude.Nothing,
        $sel:probabilityThresholdAttribute:BatchTransformInput' :: Maybe Double
probabilityThresholdAttribute = forall a. Maybe a
Prelude.Nothing,
        $sel:s3DataDistributionType:BatchTransformInput' :: Maybe ProcessingS3DataDistributionType
s3DataDistributionType = forall a. Maybe a
Prelude.Nothing,
        $sel:s3InputMode:BatchTransformInput' :: Maybe ProcessingS3InputMode
s3InputMode = forall a. Maybe a
Prelude.Nothing,
        $sel:startTimeOffset:BatchTransformInput' :: Maybe Text
startTimeOffset = forall a. Maybe a
Prelude.Nothing,
        $sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: Text
dataCapturedDestinationS3Uri =
          Text
pDataCapturedDestinationS3Uri_,
        $sel:datasetFormat:BatchTransformInput' :: MonitoringDatasetFormat
datasetFormat = MonitoringDatasetFormat
pDatasetFormat_,
        $sel:localPath:BatchTransformInput' :: Text
localPath = Text
pLocalPath_
      }

-- | If specified, monitoring jobs substract this time from the end time. For
-- information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
batchTransformInput_endTimeOffset :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Text)
batchTransformInput_endTimeOffset :: Lens' BatchTransformInput (Maybe Text)
batchTransformInput_endTimeOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Text
endTimeOffset :: Maybe Text
$sel:endTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
endTimeOffset} -> Maybe Text
endTimeOffset) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Text
a -> BatchTransformInput
s {$sel:endTimeOffset:BatchTransformInput' :: Maybe Text
endTimeOffset = Maybe Text
a} :: BatchTransformInput)

-- | The attributes of the input data that are the input features.
batchTransformInput_featuresAttribute :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Text)
batchTransformInput_featuresAttribute :: Lens' BatchTransformInput (Maybe Text)
batchTransformInput_featuresAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Text
featuresAttribute :: Maybe Text
$sel:featuresAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
featuresAttribute} -> Maybe Text
featuresAttribute) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Text
a -> BatchTransformInput
s {$sel:featuresAttribute:BatchTransformInput' :: Maybe Text
featuresAttribute = Maybe Text
a} :: BatchTransformInput)

-- | The attribute of the input data that represents the ground truth label.
batchTransformInput_inferenceAttribute :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Text)
batchTransformInput_inferenceAttribute :: Lens' BatchTransformInput (Maybe Text)
batchTransformInput_inferenceAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Text
inferenceAttribute :: Maybe Text
$sel:inferenceAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
inferenceAttribute} -> Maybe Text
inferenceAttribute) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Text
a -> BatchTransformInput
s {$sel:inferenceAttribute:BatchTransformInput' :: Maybe Text
inferenceAttribute = Maybe Text
a} :: BatchTransformInput)

-- | In a classification problem, the attribute that represents the class
-- probability.
batchTransformInput_probabilityAttribute :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Text)
batchTransformInput_probabilityAttribute :: Lens' BatchTransformInput (Maybe Text)
batchTransformInput_probabilityAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Text
probabilityAttribute :: Maybe Text
$sel:probabilityAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
probabilityAttribute} -> Maybe Text
probabilityAttribute) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Text
a -> BatchTransformInput
s {$sel:probabilityAttribute:BatchTransformInput' :: Maybe Text
probabilityAttribute = Maybe Text
a} :: BatchTransformInput)

-- | The threshold for the class probability to be evaluated as a positive
-- result.
batchTransformInput_probabilityThresholdAttribute :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Double)
batchTransformInput_probabilityThresholdAttribute :: Lens' BatchTransformInput (Maybe Double)
batchTransformInput_probabilityThresholdAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Double
probabilityThresholdAttribute :: Maybe Double
$sel:probabilityThresholdAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Double
probabilityThresholdAttribute} -> Maybe Double
probabilityThresholdAttribute) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Double
a -> BatchTransformInput
s {$sel:probabilityThresholdAttribute:BatchTransformInput' :: Maybe Double
probabilityThresholdAttribute = Maybe Double
a} :: BatchTransformInput)

-- | Whether input data distributed in Amazon S3 is fully replicated or
-- sharded by an S3 key. Defaults to @FullyReplicated@
batchTransformInput_s3DataDistributionType :: Lens.Lens' BatchTransformInput (Prelude.Maybe ProcessingS3DataDistributionType)
batchTransformInput_s3DataDistributionType :: Lens' BatchTransformInput (Maybe ProcessingS3DataDistributionType)
batchTransformInput_s3DataDistributionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe ProcessingS3DataDistributionType
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
$sel:s3DataDistributionType:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType} -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe ProcessingS3DataDistributionType
a -> BatchTransformInput
s {$sel:s3DataDistributionType:BatchTransformInput' :: Maybe ProcessingS3DataDistributionType
s3DataDistributionType = Maybe ProcessingS3DataDistributionType
a} :: BatchTransformInput)

-- | Whether the @Pipe@ or @File@ is used as the input mode for transferring
-- data for the monitoring job. @Pipe@ mode is recommended for large
-- datasets. @File@ mode is useful for small files that fit in memory.
-- Defaults to @File@.
batchTransformInput_s3InputMode :: Lens.Lens' BatchTransformInput (Prelude.Maybe ProcessingS3InputMode)
batchTransformInput_s3InputMode :: Lens' BatchTransformInput (Maybe ProcessingS3InputMode)
batchTransformInput_s3InputMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe ProcessingS3InputMode
s3InputMode :: Maybe ProcessingS3InputMode
$sel:s3InputMode:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3InputMode
s3InputMode} -> Maybe ProcessingS3InputMode
s3InputMode) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe ProcessingS3InputMode
a -> BatchTransformInput
s {$sel:s3InputMode:BatchTransformInput' :: Maybe ProcessingS3InputMode
s3InputMode = Maybe ProcessingS3InputMode
a} :: BatchTransformInput)

-- | If specified, monitoring jobs substract this time from the start time.
-- For information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
batchTransformInput_startTimeOffset :: Lens.Lens' BatchTransformInput (Prelude.Maybe Prelude.Text)
batchTransformInput_startTimeOffset :: Lens' BatchTransformInput (Maybe Text)
batchTransformInput_startTimeOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Maybe Text
startTimeOffset :: Maybe Text
$sel:startTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
startTimeOffset} -> Maybe Text
startTimeOffset) (\s :: BatchTransformInput
s@BatchTransformInput' {} Maybe Text
a -> BatchTransformInput
s {$sel:startTimeOffset:BatchTransformInput' :: Maybe Text
startTimeOffset = Maybe Text
a} :: BatchTransformInput)

-- | The Amazon S3 location being used to capture the data.
batchTransformInput_dataCapturedDestinationS3Uri :: Lens.Lens' BatchTransformInput Prelude.Text
batchTransformInput_dataCapturedDestinationS3Uri :: Lens' BatchTransformInput Text
batchTransformInput_dataCapturedDestinationS3Uri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Text
dataCapturedDestinationS3Uri :: Text
$sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: BatchTransformInput -> Text
dataCapturedDestinationS3Uri} -> Text
dataCapturedDestinationS3Uri) (\s :: BatchTransformInput
s@BatchTransformInput' {} Text
a -> BatchTransformInput
s {$sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: Text
dataCapturedDestinationS3Uri = Text
a} :: BatchTransformInput)

-- | The dataset format for your batch transform job.
batchTransformInput_datasetFormat :: Lens.Lens' BatchTransformInput MonitoringDatasetFormat
batchTransformInput_datasetFormat :: Lens' BatchTransformInput MonitoringDatasetFormat
batchTransformInput_datasetFormat = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {MonitoringDatasetFormat
datasetFormat :: MonitoringDatasetFormat
$sel:datasetFormat:BatchTransformInput' :: BatchTransformInput -> MonitoringDatasetFormat
datasetFormat} -> MonitoringDatasetFormat
datasetFormat) (\s :: BatchTransformInput
s@BatchTransformInput' {} MonitoringDatasetFormat
a -> BatchTransformInput
s {$sel:datasetFormat:BatchTransformInput' :: MonitoringDatasetFormat
datasetFormat = MonitoringDatasetFormat
a} :: BatchTransformInput)

-- | Path to the filesystem where the batch transform data is available to
-- the container.
batchTransformInput_localPath :: Lens.Lens' BatchTransformInput Prelude.Text
batchTransformInput_localPath :: Lens' BatchTransformInput Text
batchTransformInput_localPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchTransformInput' {Text
localPath :: Text
$sel:localPath:BatchTransformInput' :: BatchTransformInput -> Text
localPath} -> Text
localPath) (\s :: BatchTransformInput
s@BatchTransformInput' {} Text
a -> BatchTransformInput
s {$sel:localPath:BatchTransformInput' :: Text
localPath = Text
a} :: BatchTransformInput)

instance Data.FromJSON BatchTransformInput where
  parseJSON :: Value -> Parser BatchTransformInput
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"BatchTransformInput"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe ProcessingS3DataDistributionType
-> Maybe ProcessingS3InputMode
-> Maybe Text
-> Text
-> MonitoringDatasetFormat
-> Text
-> BatchTransformInput
BatchTransformInput'
            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
"EndTimeOffset")
            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
"FeaturesAttribute")
            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
"InferenceAttribute")
            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
"ProbabilityAttribute")
            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
"ProbabilityThresholdAttribute")
            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
"S3DataDistributionType")
            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
"S3InputMode")
            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
"StartTimeOffset")
            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
"DataCapturedDestinationS3Uri")
            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
"DatasetFormat")
            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
"LocalPath")
      )

instance Prelude.Hashable BatchTransformInput where
  hashWithSalt :: Int -> BatchTransformInput -> Int
hashWithSalt Int
_salt BatchTransformInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
MonitoringDatasetFormat
localPath :: Text
datasetFormat :: MonitoringDatasetFormat
dataCapturedDestinationS3Uri :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:BatchTransformInput' :: BatchTransformInput -> Text
$sel:datasetFormat:BatchTransformInput' :: BatchTransformInput -> MonitoringDatasetFormat
$sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: BatchTransformInput -> Text
$sel:startTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:s3InputMode:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Double
$sel:probabilityAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:inferenceAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:featuresAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:endTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endTimeOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
featuresAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
inferenceAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
probabilityAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
probabilityThresholdAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingS3DataDistributionType
s3DataDistributionType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingS3InputMode
s3InputMode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startTimeOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataCapturedDestinationS3Uri
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` MonitoringDatasetFormat
datasetFormat
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
localPath

instance Prelude.NFData BatchTransformInput where
  rnf :: BatchTransformInput -> ()
rnf BatchTransformInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
MonitoringDatasetFormat
localPath :: Text
datasetFormat :: MonitoringDatasetFormat
dataCapturedDestinationS3Uri :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:BatchTransformInput' :: BatchTransformInput -> Text
$sel:datasetFormat:BatchTransformInput' :: BatchTransformInput -> MonitoringDatasetFormat
$sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: BatchTransformInput -> Text
$sel:startTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:s3InputMode:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Double
$sel:probabilityAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:inferenceAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:featuresAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:endTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endTimeOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
featuresAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
inferenceAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
probabilityAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
probabilityThresholdAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingS3DataDistributionType
s3DataDistributionType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingS3InputMode
s3InputMode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startTimeOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataCapturedDestinationS3Uri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf MonitoringDatasetFormat
datasetFormat
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
localPath

instance Data.ToJSON BatchTransformInput where
  toJSON :: BatchTransformInput -> Value
toJSON BatchTransformInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
MonitoringDatasetFormat
localPath :: Text
datasetFormat :: MonitoringDatasetFormat
dataCapturedDestinationS3Uri :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:BatchTransformInput' :: BatchTransformInput -> Text
$sel:datasetFormat:BatchTransformInput' :: BatchTransformInput -> MonitoringDatasetFormat
$sel:dataCapturedDestinationS3Uri:BatchTransformInput' :: BatchTransformInput -> Text
$sel:startTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:s3InputMode:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:BatchTransformInput' :: BatchTransformInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Double
$sel:probabilityAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:inferenceAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:featuresAttribute:BatchTransformInput' :: BatchTransformInput -> Maybe Text
$sel:endTimeOffset:BatchTransformInput' :: BatchTransformInput -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"EndTimeOffset" 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
endTimeOffset,
            (Key
"FeaturesAttribute" 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
featuresAttribute,
            (Key
"InferenceAttribute" 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
inferenceAttribute,
            (Key
"ProbabilityAttribute" 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
probabilityAttribute,
            (Key
"ProbabilityThresholdAttribute" 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 Double
probabilityThresholdAttribute,
            (Key
"S3DataDistributionType" 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 ProcessingS3DataDistributionType
s3DataDistributionType,
            (Key
"S3InputMode" 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 ProcessingS3InputMode
s3InputMode,
            (Key
"StartTimeOffset" 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
startTimeOffset,
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"DataCapturedDestinationS3Uri"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
dataCapturedDestinationS3Uri
              ),
            forall a. a -> Maybe a
Prelude.Just (Key
"DatasetFormat" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= MonitoringDatasetFormat
datasetFormat),
            forall a. a -> Maybe a
Prelude.Just (Key
"LocalPath" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
localPath)
          ]
      )