{-# 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.ArtifactSummary -- 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.ArtifactSummary 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.ArtifactSource -- | Lists a summary of the properties of an artifact. An artifact represents -- a URI addressable object or data. Some examples are a dataset and a -- model. -- -- /See:/ 'newArtifactSummary' smart constructor. data ArtifactSummary = ArtifactSummary' { -- | The Amazon Resource Name (ARN) of the artifact. artifactArn :: Prelude.Maybe Prelude.Text, -- | The name of the artifact. artifactName :: Prelude.Maybe Prelude.Text, -- | The type of the artifact. artifactType :: Prelude.Maybe Prelude.Text, -- | When the artifact was created. creationTime :: Prelude.Maybe Data.POSIX, -- | When the artifact was last modified. lastModifiedTime :: Prelude.Maybe Data.POSIX, -- | The source of the artifact. source :: Prelude.Maybe ArtifactSource } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ArtifactSummary' 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: -- -- 'artifactArn', 'artifactSummary_artifactArn' - The Amazon Resource Name (ARN) of the artifact. -- -- 'artifactName', 'artifactSummary_artifactName' - The name of the artifact. -- -- 'artifactType', 'artifactSummary_artifactType' - The type of the artifact. -- -- 'creationTime', 'artifactSummary_creationTime' - When the artifact was created. -- -- 'lastModifiedTime', 'artifactSummary_lastModifiedTime' - When the artifact was last modified. -- -- 'source', 'artifactSummary_source' - The source of the artifact. newArtifactSummary :: ArtifactSummary newArtifactSummary = ArtifactSummary' { artifactArn = Prelude.Nothing, artifactName = Prelude.Nothing, artifactType = Prelude.Nothing, creationTime = Prelude.Nothing, lastModifiedTime = Prelude.Nothing, source = Prelude.Nothing } -- | The Amazon Resource Name (ARN) of the artifact. artifactSummary_artifactArn :: Lens.Lens' ArtifactSummary (Prelude.Maybe Prelude.Text) artifactSummary_artifactArn = Lens.lens (\ArtifactSummary' {artifactArn} -> artifactArn) (\s@ArtifactSummary' {} a -> s {artifactArn = a} :: ArtifactSummary) -- | The name of the artifact. artifactSummary_artifactName :: Lens.Lens' ArtifactSummary (Prelude.Maybe Prelude.Text) artifactSummary_artifactName = Lens.lens (\ArtifactSummary' {artifactName} -> artifactName) (\s@ArtifactSummary' {} a -> s {artifactName = a} :: ArtifactSummary) -- | The type of the artifact. artifactSummary_artifactType :: Lens.Lens' ArtifactSummary (Prelude.Maybe Prelude.Text) artifactSummary_artifactType = Lens.lens (\ArtifactSummary' {artifactType} -> artifactType) (\s@ArtifactSummary' {} a -> s {artifactType = a} :: ArtifactSummary) -- | When the artifact was created. artifactSummary_creationTime :: Lens.Lens' ArtifactSummary (Prelude.Maybe Prelude.UTCTime) artifactSummary_creationTime = Lens.lens (\ArtifactSummary' {creationTime} -> creationTime) (\s@ArtifactSummary' {} a -> s {creationTime = a} :: ArtifactSummary) Prelude.. Lens.mapping Data._Time -- | When the artifact was last modified. artifactSummary_lastModifiedTime :: Lens.Lens' ArtifactSummary (Prelude.Maybe Prelude.UTCTime) artifactSummary_lastModifiedTime = Lens.lens (\ArtifactSummary' {lastModifiedTime} -> lastModifiedTime) (\s@ArtifactSummary' {} a -> s {lastModifiedTime = a} :: ArtifactSummary) Prelude.. Lens.mapping Data._Time -- | The source of the artifact. artifactSummary_source :: Lens.Lens' ArtifactSummary (Prelude.Maybe ArtifactSource) artifactSummary_source = Lens.lens (\ArtifactSummary' {source} -> source) (\s@ArtifactSummary' {} a -> s {source = a} :: ArtifactSummary) instance Data.FromJSON ArtifactSummary where parseJSON = Data.withObject "ArtifactSummary" ( \x -> ArtifactSummary' Prelude.<$> (x Data..:? "ArtifactArn") Prelude.<*> (x Data..:? "ArtifactName") Prelude.<*> (x Data..:? "ArtifactType") Prelude.<*> (x Data..:? "CreationTime") Prelude.<*> (x Data..:? "LastModifiedTime") Prelude.<*> (x Data..:? "Source") ) instance Prelude.Hashable ArtifactSummary where hashWithSalt _salt ArtifactSummary' {..} = _salt `Prelude.hashWithSalt` artifactArn `Prelude.hashWithSalt` artifactName `Prelude.hashWithSalt` artifactType `Prelude.hashWithSalt` creationTime `Prelude.hashWithSalt` lastModifiedTime `Prelude.hashWithSalt` source instance Prelude.NFData ArtifactSummary where rnf ArtifactSummary' {..} = Prelude.rnf artifactArn `Prelude.seq` Prelude.rnf artifactName `Prelude.seq` Prelude.rnf artifactType `Prelude.seq` Prelude.rnf creationTime `Prelude.seq` Prelude.rnf lastModifiedTime `Prelude.seq` Prelude.rnf source