{-# 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.MonitoringS3Output -- 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.MonitoringS3Output 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.ProcessingS3UploadMode -- | Information about where and how you want to store the results of a -- monitoring job. -- -- /See:/ 'newMonitoringS3Output' smart constructor. data MonitoringS3Output = MonitoringS3Output' { -- | Whether to upload the results of the monitoring job continuously or -- after the job completes. s3UploadMode :: Prelude.Maybe ProcessingS3UploadMode, -- | A URI that identifies the Amazon S3 storage location where Amazon -- SageMaker saves the results of a monitoring job. s3Uri :: Prelude.Text, -- | The local path to the Amazon S3 storage location where Amazon SageMaker -- saves the results of a monitoring job. LocalPath is an absolute path for -- the output data. localPath :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MonitoringS3Output' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 's3UploadMode', 'monitoringS3Output_s3UploadMode' - Whether to upload the results of the monitoring job continuously or -- after the job completes. -- -- 's3Uri', 'monitoringS3Output_s3Uri' - A URI that identifies the Amazon S3 storage location where Amazon -- SageMaker saves the results of a monitoring job. -- -- 'localPath', 'monitoringS3Output_localPath' - The local path to the Amazon S3 storage location where Amazon SageMaker -- saves the results of a monitoring job. LocalPath is an absolute path for -- the output data. newMonitoringS3Output :: -- | 's3Uri' Prelude.Text -> -- | 'localPath' Prelude.Text -> MonitoringS3Output newMonitoringS3Output pS3Uri_ pLocalPath_ = MonitoringS3Output' { s3UploadMode = Prelude.Nothing, s3Uri = pS3Uri_, localPath = pLocalPath_ } -- | Whether to upload the results of the monitoring job continuously or -- after the job completes. monitoringS3Output_s3UploadMode :: Lens.Lens' MonitoringS3Output (Prelude.Maybe ProcessingS3UploadMode) monitoringS3Output_s3UploadMode = Lens.lens (\MonitoringS3Output' {s3UploadMode} -> s3UploadMode) (\s@MonitoringS3Output' {} a -> s {s3UploadMode = a} :: MonitoringS3Output) -- | A URI that identifies the Amazon S3 storage location where Amazon -- SageMaker saves the results of a monitoring job. monitoringS3Output_s3Uri :: Lens.Lens' MonitoringS3Output Prelude.Text monitoringS3Output_s3Uri = Lens.lens (\MonitoringS3Output' {s3Uri} -> s3Uri) (\s@MonitoringS3Output' {} a -> s {s3Uri = a} :: MonitoringS3Output) -- | The local path to the Amazon S3 storage location where Amazon SageMaker -- saves the results of a monitoring job. LocalPath is an absolute path for -- the output data. monitoringS3Output_localPath :: Lens.Lens' MonitoringS3Output Prelude.Text monitoringS3Output_localPath = Lens.lens (\MonitoringS3Output' {localPath} -> localPath) (\s@MonitoringS3Output' {} a -> s {localPath = a} :: MonitoringS3Output) instance Data.FromJSON MonitoringS3Output where parseJSON = Data.withObject "MonitoringS3Output" ( \x -> MonitoringS3Output' Prelude.<$> (x Data..:? "S3UploadMode") Prelude.<*> (x Data..: "S3Uri") Prelude.<*> (x Data..: "LocalPath") ) instance Prelude.Hashable MonitoringS3Output where hashWithSalt _salt MonitoringS3Output' {..} = _salt `Prelude.hashWithSalt` s3UploadMode `Prelude.hashWithSalt` s3Uri `Prelude.hashWithSalt` localPath instance Prelude.NFData MonitoringS3Output where rnf MonitoringS3Output' {..} = Prelude.rnf s3UploadMode `Prelude.seq` Prelude.rnf s3Uri `Prelude.seq` Prelude.rnf localPath instance Data.ToJSON MonitoringS3Output where toJSON MonitoringS3Output' {..} = Data.object ( Prelude.catMaybes [ ("S3UploadMode" Data..=) Prelude.<$> s3UploadMode, Prelude.Just ("S3Uri" Data..= s3Uri), Prelude.Just ("LocalPath" Data..= localPath) ] )