{-# 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.ModelPackageSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.ModelPackageSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.ModelApprovalStatus
import Amazonka.SageMaker.Types.ModelPackageStatus

-- | Provides summary information about a model package.
--
-- /See:/ 'newModelPackageSummary' smart constructor.
data ModelPackageSummary = ModelPackageSummary'
  { -- | The approval status of the model. This can be one of the following
    -- values.
    --
    -- -   @APPROVED@ - The model is approved
    --
    -- -   @REJECTED@ - The model is rejected.
    --
    -- -   @PENDING_MANUAL_APPROVAL@ - The model is waiting for manual
    --     approval.
    ModelPackageSummary -> Maybe ModelApprovalStatus
modelApprovalStatus :: Prelude.Maybe ModelApprovalStatus,
    -- | A brief description of the model package.
    ModelPackageSummary -> Maybe Text
modelPackageDescription :: Prelude.Maybe Prelude.Text,
    -- | If the model package is a versioned model, the version of the model.
    ModelPackageSummary -> Maybe Natural
modelPackageVersion :: Prelude.Maybe Prelude.Natural,
    -- | If the model package is a versioned model, the model group that the
    -- versioned model belongs to.
    ModelPackageSummary -> Maybe Text
modelPackageGroupName :: Prelude.Maybe Prelude.Text,
    -- | The name of the model package.
    ModelPackageSummary -> Text
modelPackageName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the model package.
    ModelPackageSummary -> Text
modelPackageArn :: Prelude.Text,
    -- | A timestamp that shows when the model package was created.
    ModelPackageSummary -> POSIX
creationTime :: Core.POSIX,
    -- | The overall status of the model package.
    ModelPackageSummary -> ModelPackageStatus
modelPackageStatus :: ModelPackageStatus
  }
  deriving (ModelPackageSummary -> ModelPackageSummary -> Bool
(ModelPackageSummary -> ModelPackageSummary -> Bool)
-> (ModelPackageSummary -> ModelPackageSummary -> Bool)
-> Eq ModelPackageSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelPackageSummary -> ModelPackageSummary -> Bool
$c/= :: ModelPackageSummary -> ModelPackageSummary -> Bool
== :: ModelPackageSummary -> ModelPackageSummary -> Bool
$c== :: ModelPackageSummary -> ModelPackageSummary -> Bool
Prelude.Eq, ReadPrec [ModelPackageSummary]
ReadPrec ModelPackageSummary
Int -> ReadS ModelPackageSummary
ReadS [ModelPackageSummary]
(Int -> ReadS ModelPackageSummary)
-> ReadS [ModelPackageSummary]
-> ReadPrec ModelPackageSummary
-> ReadPrec [ModelPackageSummary]
-> Read ModelPackageSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelPackageSummary]
$creadListPrec :: ReadPrec [ModelPackageSummary]
readPrec :: ReadPrec ModelPackageSummary
$creadPrec :: ReadPrec ModelPackageSummary
readList :: ReadS [ModelPackageSummary]
$creadList :: ReadS [ModelPackageSummary]
readsPrec :: Int -> ReadS ModelPackageSummary
$creadsPrec :: Int -> ReadS ModelPackageSummary
Prelude.Read, Int -> ModelPackageSummary -> ShowS
[ModelPackageSummary] -> ShowS
ModelPackageSummary -> String
(Int -> ModelPackageSummary -> ShowS)
-> (ModelPackageSummary -> String)
-> ([ModelPackageSummary] -> ShowS)
-> Show ModelPackageSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelPackageSummary] -> ShowS
$cshowList :: [ModelPackageSummary] -> ShowS
show :: ModelPackageSummary -> String
$cshow :: ModelPackageSummary -> String
showsPrec :: Int -> ModelPackageSummary -> ShowS
$cshowsPrec :: Int -> ModelPackageSummary -> ShowS
Prelude.Show, (forall x. ModelPackageSummary -> Rep ModelPackageSummary x)
-> (forall x. Rep ModelPackageSummary x -> ModelPackageSummary)
-> Generic ModelPackageSummary
forall x. Rep ModelPackageSummary x -> ModelPackageSummary
forall x. ModelPackageSummary -> Rep ModelPackageSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModelPackageSummary x -> ModelPackageSummary
$cfrom :: forall x. ModelPackageSummary -> Rep ModelPackageSummary x
Prelude.Generic)

-- |
-- Create a value of 'ModelPackageSummary' 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:
--
-- 'modelApprovalStatus', 'modelPackageSummary_modelApprovalStatus' - The approval status of the model. This can be one of the following
-- values.
--
-- -   @APPROVED@ - The model is approved
--
-- -   @REJECTED@ - The model is rejected.
--
-- -   @PENDING_MANUAL_APPROVAL@ - The model is waiting for manual
--     approval.
--
-- 'modelPackageDescription', 'modelPackageSummary_modelPackageDescription' - A brief description of the model package.
--
-- 'modelPackageVersion', 'modelPackageSummary_modelPackageVersion' - If the model package is a versioned model, the version of the model.
--
-- 'modelPackageGroupName', 'modelPackageSummary_modelPackageGroupName' - If the model package is a versioned model, the model group that the
-- versioned model belongs to.
--
-- 'modelPackageName', 'modelPackageSummary_modelPackageName' - The name of the model package.
--
-- 'modelPackageArn', 'modelPackageSummary_modelPackageArn' - The Amazon Resource Name (ARN) of the model package.
--
-- 'creationTime', 'modelPackageSummary_creationTime' - A timestamp that shows when the model package was created.
--
-- 'modelPackageStatus', 'modelPackageSummary_modelPackageStatus' - The overall status of the model package.
newModelPackageSummary ::
  -- | 'modelPackageName'
  Prelude.Text ->
  -- | 'modelPackageArn'
  Prelude.Text ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'modelPackageStatus'
  ModelPackageStatus ->
  ModelPackageSummary
newModelPackageSummary :: Text
-> Text -> UTCTime -> ModelPackageStatus -> ModelPackageSummary
newModelPackageSummary
  Text
pModelPackageName_
  Text
pModelPackageArn_
  UTCTime
pCreationTime_
  ModelPackageStatus
pModelPackageStatus_ =
    ModelPackageSummary' :: Maybe ModelApprovalStatus
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Text
-> Text
-> POSIX
-> ModelPackageStatus
-> ModelPackageSummary
ModelPackageSummary'
      { $sel:modelApprovalStatus:ModelPackageSummary' :: Maybe ModelApprovalStatus
modelApprovalStatus =
          Maybe ModelApprovalStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageDescription:ModelPackageSummary' :: Maybe Text
modelPackageDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageVersion:ModelPackageSummary' :: Maybe Natural
modelPackageVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageGroupName:ModelPackageSummary' :: Maybe Text
modelPackageGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageName:ModelPackageSummary' :: Text
modelPackageName = Text
pModelPackageName_,
        $sel:modelPackageArn:ModelPackageSummary' :: Text
modelPackageArn = Text
pModelPackageArn_,
        $sel:creationTime:ModelPackageSummary' :: POSIX
creationTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
        $sel:modelPackageStatus:ModelPackageSummary' :: ModelPackageStatus
modelPackageStatus = ModelPackageStatus
pModelPackageStatus_
      }

-- | The approval status of the model. This can be one of the following
-- values.
--
-- -   @APPROVED@ - The model is approved
--
-- -   @REJECTED@ - The model is rejected.
--
-- -   @PENDING_MANUAL_APPROVAL@ - The model is waiting for manual
--     approval.
modelPackageSummary_modelApprovalStatus :: Lens.Lens' ModelPackageSummary (Prelude.Maybe ModelApprovalStatus)
modelPackageSummary_modelApprovalStatus :: (Maybe ModelApprovalStatus -> f (Maybe ModelApprovalStatus))
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelApprovalStatus = (ModelPackageSummary -> Maybe ModelApprovalStatus)
-> (ModelPackageSummary
    -> Maybe ModelApprovalStatus -> ModelPackageSummary)
-> Lens
     ModelPackageSummary
     ModelPackageSummary
     (Maybe ModelApprovalStatus)
     (Maybe ModelApprovalStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Maybe ModelApprovalStatus
modelApprovalStatus :: Maybe ModelApprovalStatus
$sel:modelApprovalStatus:ModelPackageSummary' :: ModelPackageSummary -> Maybe ModelApprovalStatus
modelApprovalStatus} -> Maybe ModelApprovalStatus
modelApprovalStatus) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Maybe ModelApprovalStatus
a -> ModelPackageSummary
s {$sel:modelApprovalStatus:ModelPackageSummary' :: Maybe ModelApprovalStatus
modelApprovalStatus = Maybe ModelApprovalStatus
a} :: ModelPackageSummary)

-- | A brief description of the model package.
modelPackageSummary_modelPackageDescription :: Lens.Lens' ModelPackageSummary (Prelude.Maybe Prelude.Text)
modelPackageSummary_modelPackageDescription :: (Maybe Text -> f (Maybe Text))
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageDescription = (ModelPackageSummary -> Maybe Text)
-> (ModelPackageSummary -> Maybe Text -> ModelPackageSummary)
-> Lens
     ModelPackageSummary ModelPackageSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Maybe Text
modelPackageDescription :: Maybe Text
$sel:modelPackageDescription:ModelPackageSummary' :: ModelPackageSummary -> Maybe Text
modelPackageDescription} -> Maybe Text
modelPackageDescription) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Maybe Text
a -> ModelPackageSummary
s {$sel:modelPackageDescription:ModelPackageSummary' :: Maybe Text
modelPackageDescription = Maybe Text
a} :: ModelPackageSummary)

-- | If the model package is a versioned model, the version of the model.
modelPackageSummary_modelPackageVersion :: Lens.Lens' ModelPackageSummary (Prelude.Maybe Prelude.Natural)
modelPackageSummary_modelPackageVersion :: (Maybe Natural -> f (Maybe Natural))
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageVersion = (ModelPackageSummary -> Maybe Natural)
-> (ModelPackageSummary -> Maybe Natural -> ModelPackageSummary)
-> Lens
     ModelPackageSummary
     ModelPackageSummary
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Maybe Natural
modelPackageVersion :: Maybe Natural
$sel:modelPackageVersion:ModelPackageSummary' :: ModelPackageSummary -> Maybe Natural
modelPackageVersion} -> Maybe Natural
modelPackageVersion) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Maybe Natural
a -> ModelPackageSummary
s {$sel:modelPackageVersion:ModelPackageSummary' :: Maybe Natural
modelPackageVersion = Maybe Natural
a} :: ModelPackageSummary)

-- | If the model package is a versioned model, the model group that the
-- versioned model belongs to.
modelPackageSummary_modelPackageGroupName :: Lens.Lens' ModelPackageSummary (Prelude.Maybe Prelude.Text)
modelPackageSummary_modelPackageGroupName :: (Maybe Text -> f (Maybe Text))
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageGroupName = (ModelPackageSummary -> Maybe Text)
-> (ModelPackageSummary -> Maybe Text -> ModelPackageSummary)
-> Lens
     ModelPackageSummary ModelPackageSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Maybe Text
modelPackageGroupName :: Maybe Text
$sel:modelPackageGroupName:ModelPackageSummary' :: ModelPackageSummary -> Maybe Text
modelPackageGroupName} -> Maybe Text
modelPackageGroupName) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Maybe Text
a -> ModelPackageSummary
s {$sel:modelPackageGroupName:ModelPackageSummary' :: Maybe Text
modelPackageGroupName = Maybe Text
a} :: ModelPackageSummary)

-- | The name of the model package.
modelPackageSummary_modelPackageName :: Lens.Lens' ModelPackageSummary Prelude.Text
modelPackageSummary_modelPackageName :: (Text -> f Text) -> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageName = (ModelPackageSummary -> Text)
-> (ModelPackageSummary -> Text -> ModelPackageSummary)
-> Lens ModelPackageSummary ModelPackageSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Text
modelPackageName :: Text
$sel:modelPackageName:ModelPackageSummary' :: ModelPackageSummary -> Text
modelPackageName} -> Text
modelPackageName) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Text
a -> ModelPackageSummary
s {$sel:modelPackageName:ModelPackageSummary' :: Text
modelPackageName = Text
a} :: ModelPackageSummary)

-- | The Amazon Resource Name (ARN) of the model package.
modelPackageSummary_modelPackageArn :: Lens.Lens' ModelPackageSummary Prelude.Text
modelPackageSummary_modelPackageArn :: (Text -> f Text) -> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageArn = (ModelPackageSummary -> Text)
-> (ModelPackageSummary -> Text -> ModelPackageSummary)
-> Lens ModelPackageSummary ModelPackageSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {Text
modelPackageArn :: Text
$sel:modelPackageArn:ModelPackageSummary' :: ModelPackageSummary -> Text
modelPackageArn} -> Text
modelPackageArn) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} Text
a -> ModelPackageSummary
s {$sel:modelPackageArn:ModelPackageSummary' :: Text
modelPackageArn = Text
a} :: ModelPackageSummary)

-- | A timestamp that shows when the model package was created.
modelPackageSummary_creationTime :: Lens.Lens' ModelPackageSummary Prelude.UTCTime
modelPackageSummary_creationTime :: (UTCTime -> f UTCTime)
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_creationTime = (ModelPackageSummary -> POSIX)
-> (ModelPackageSummary -> POSIX -> ModelPackageSummary)
-> Lens ModelPackageSummary ModelPackageSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:ModelPackageSummary' :: ModelPackageSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} POSIX
a -> ModelPackageSummary
s {$sel:creationTime:ModelPackageSummary' :: POSIX
creationTime = POSIX
a} :: ModelPackageSummary) ((POSIX -> f POSIX)
 -> ModelPackageSummary -> f ModelPackageSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ModelPackageSummary
-> f ModelPackageSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The overall status of the model package.
modelPackageSummary_modelPackageStatus :: Lens.Lens' ModelPackageSummary ModelPackageStatus
modelPackageSummary_modelPackageStatus :: (ModelPackageStatus -> f ModelPackageStatus)
-> ModelPackageSummary -> f ModelPackageSummary
modelPackageSummary_modelPackageStatus = (ModelPackageSummary -> ModelPackageStatus)
-> (ModelPackageSummary
    -> ModelPackageStatus -> ModelPackageSummary)
-> Lens
     ModelPackageSummary
     ModelPackageSummary
     ModelPackageStatus
     ModelPackageStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageSummary' {ModelPackageStatus
modelPackageStatus :: ModelPackageStatus
$sel:modelPackageStatus:ModelPackageSummary' :: ModelPackageSummary -> ModelPackageStatus
modelPackageStatus} -> ModelPackageStatus
modelPackageStatus) (\s :: ModelPackageSummary
s@ModelPackageSummary' {} ModelPackageStatus
a -> ModelPackageSummary
s {$sel:modelPackageStatus:ModelPackageSummary' :: ModelPackageStatus
modelPackageStatus = ModelPackageStatus
a} :: ModelPackageSummary)

instance Core.FromJSON ModelPackageSummary where
  parseJSON :: Value -> Parser ModelPackageSummary
parseJSON =
    String
-> (Object -> Parser ModelPackageSummary)
-> Value
-> Parser ModelPackageSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ModelPackageSummary"
      ( \Object
x ->
          Maybe ModelApprovalStatus
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Text
-> Text
-> POSIX
-> ModelPackageStatus
-> ModelPackageSummary
ModelPackageSummary'
            (Maybe ModelApprovalStatus
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Text
 -> Text
 -> Text
 -> POSIX
 -> ModelPackageStatus
 -> ModelPackageSummary)
-> Parser (Maybe ModelApprovalStatus)
-> Parser
     (Maybe Text
      -> Maybe Natural
      -> Maybe Text
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ModelApprovalStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModelApprovalStatus")
            Parser
  (Maybe Text
   -> Maybe Natural
   -> Maybe Text
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Natural
      -> Maybe Text
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModelPackageDescription")
            Parser
  (Maybe Natural
   -> Maybe Text
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageSummary)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Text
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModelPackageVersion")
            Parser
  (Maybe Text
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageSummary)
-> Parser (Maybe Text)
-> Parser
     (Text
      -> Text -> POSIX -> ModelPackageStatus -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModelPackageGroupName")
            Parser
  (Text
   -> Text -> POSIX -> ModelPackageStatus -> ModelPackageSummary)
-> Parser Text
-> Parser
     (Text -> POSIX -> ModelPackageStatus -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ModelPackageName")
            Parser (Text -> POSIX -> ModelPackageStatus -> ModelPackageSummary)
-> Parser Text
-> Parser (POSIX -> ModelPackageStatus -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ModelPackageArn")
            Parser (POSIX -> ModelPackageStatus -> ModelPackageSummary)
-> Parser POSIX
-> Parser (ModelPackageStatus -> ModelPackageSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreationTime")
            Parser (ModelPackageStatus -> ModelPackageSummary)
-> Parser ModelPackageStatus -> Parser ModelPackageSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser ModelPackageStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ModelPackageStatus")
      )

instance Prelude.Hashable ModelPackageSummary

instance Prelude.NFData ModelPackageSummary