{-# 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.TransformDataSource -- 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.TransformDataSource 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.TransformS3DataSource -- | Describes the location of the channel data. -- -- /See:/ 'newTransformDataSource' smart constructor. data TransformDataSource = TransformDataSource' { -- | The S3 location of the data source that is associated with a channel. s3DataSource :: TransformS3DataSource } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TransformDataSource' 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: -- -- 's3DataSource', 'transformDataSource_s3DataSource' - The S3 location of the data source that is associated with a channel. newTransformDataSource :: -- | 's3DataSource' TransformS3DataSource -> TransformDataSource newTransformDataSource pS3DataSource_ = TransformDataSource' {s3DataSource = pS3DataSource_} -- | The S3 location of the data source that is associated with a channel. transformDataSource_s3DataSource :: Lens.Lens' TransformDataSource TransformS3DataSource transformDataSource_s3DataSource = Lens.lens (\TransformDataSource' {s3DataSource} -> s3DataSource) (\s@TransformDataSource' {} a -> s {s3DataSource = a} :: TransformDataSource) instance Data.FromJSON TransformDataSource where parseJSON = Data.withObject "TransformDataSource" ( \x -> TransformDataSource' Prelude.<$> (x Data..: "S3DataSource") ) instance Prelude.Hashable TransformDataSource where hashWithSalt _salt TransformDataSource' {..} = _salt `Prelude.hashWithSalt` s3DataSource instance Prelude.NFData TransformDataSource where rnf TransformDataSource' {..} = Prelude.rnf s3DataSource instance Data.ToJSON TransformDataSource where toJSON TransformDataSource' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("S3DataSource" Data..= s3DataSource)] )