{-# 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.LookoutVision.Types.OutputS3Object -- 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.LookoutVision.Types.OutputS3Object 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 -- | The S3 location where Amazon Lookout for Vision saves training output. -- -- /See:/ 'newOutputS3Object' smart constructor. data OutputS3Object = OutputS3Object' { -- | The bucket that contains the training output. bucket :: Prelude.Text, -- | The location of the training output in the bucket. key :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'OutputS3Object' 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: -- -- 'bucket', 'outputS3Object_bucket' - The bucket that contains the training output. -- -- 'key', 'outputS3Object_key' - The location of the training output in the bucket. newOutputS3Object :: -- | 'bucket' Prelude.Text -> -- | 'key' Prelude.Text -> OutputS3Object newOutputS3Object pBucket_ pKey_ = OutputS3Object' {bucket = pBucket_, key = pKey_} -- | The bucket that contains the training output. outputS3Object_bucket :: Lens.Lens' OutputS3Object Prelude.Text outputS3Object_bucket = Lens.lens (\OutputS3Object' {bucket} -> bucket) (\s@OutputS3Object' {} a -> s {bucket = a} :: OutputS3Object) -- | The location of the training output in the bucket. outputS3Object_key :: Lens.Lens' OutputS3Object Prelude.Text outputS3Object_key = Lens.lens (\OutputS3Object' {key} -> key) (\s@OutputS3Object' {} a -> s {key = a} :: OutputS3Object) instance Data.FromJSON OutputS3Object where parseJSON = Data.withObject "OutputS3Object" ( \x -> OutputS3Object' Prelude.<$> (x Data..: "Bucket") Prelude.<*> (x Data..: "Key") ) instance Prelude.Hashable OutputS3Object where hashWithSalt _salt OutputS3Object' {..} = _salt `Prelude.hashWithSalt` bucket `Prelude.hashWithSalt` key instance Prelude.NFData OutputS3Object where rnf OutputS3Object' {..} = Prelude.rnf bucket `Prelude.seq` Prelude.rnf key