{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.DescribeModelPackage
-- 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)
--
-- Returns a description of the specified model package, which is used to
-- create Amazon SageMaker models or list them on Amazon Web Services
-- Marketplace.
--
-- To create models in Amazon SageMaker, buyers can subscribe to model
-- packages listed on Amazon Web Services Marketplace.
module Amazonka.SageMaker.DescribeModelPackage
  ( -- * Creating a Request
    DescribeModelPackage (..),
    newDescribeModelPackage,

    -- * Request Lenses
    describeModelPackage_modelPackageName,

    -- * Destructuring the Response
    DescribeModelPackageResponse (..),
    newDescribeModelPackageResponse,

    -- * Response Lenses
    describeModelPackageResponse_metadataProperties,
    describeModelPackageResponse_modelApprovalStatus,
    describeModelPackageResponse_sourceAlgorithmSpecification,
    describeModelPackageResponse_modelMetrics,
    describeModelPackageResponse_modelPackageDescription,
    describeModelPackageResponse_createdBy,
    describeModelPackageResponse_lastModifiedTime,
    describeModelPackageResponse_validationSpecification,
    describeModelPackageResponse_inferenceSpecification,
    describeModelPackageResponse_approvalDescription,
    describeModelPackageResponse_modelPackageVersion,
    describeModelPackageResponse_certifyForMarketplace,
    describeModelPackageResponse_modelPackageGroupName,
    describeModelPackageResponse_lastModifiedBy,
    describeModelPackageResponse_httpStatus,
    describeModelPackageResponse_modelPackageName,
    describeModelPackageResponse_modelPackageArn,
    describeModelPackageResponse_creationTime,
    describeModelPackageResponse_modelPackageStatus,
    describeModelPackageResponse_modelPackageStatusDetails,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

-- | /See:/ 'newDescribeModelPackage' smart constructor.
data DescribeModelPackage = DescribeModelPackage'
  { -- | The name or Amazon Resource Name (ARN) of the model package to describe.
    --
    -- When you specify a name, the name must have 1 to 63 characters. Valid
    -- characters are a-z, A-Z, 0-9, and - (hyphen).
    DescribeModelPackage -> Text
modelPackageName :: Prelude.Text
  }
  deriving (DescribeModelPackage -> DescribeModelPackage -> Bool
(DescribeModelPackage -> DescribeModelPackage -> Bool)
-> (DescribeModelPackage -> DescribeModelPackage -> Bool)
-> Eq DescribeModelPackage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelPackage -> DescribeModelPackage -> Bool
$c/= :: DescribeModelPackage -> DescribeModelPackage -> Bool
== :: DescribeModelPackage -> DescribeModelPackage -> Bool
$c== :: DescribeModelPackage -> DescribeModelPackage -> Bool
Prelude.Eq, ReadPrec [DescribeModelPackage]
ReadPrec DescribeModelPackage
Int -> ReadS DescribeModelPackage
ReadS [DescribeModelPackage]
(Int -> ReadS DescribeModelPackage)
-> ReadS [DescribeModelPackage]
-> ReadPrec DescribeModelPackage
-> ReadPrec [DescribeModelPackage]
-> Read DescribeModelPackage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelPackage]
$creadListPrec :: ReadPrec [DescribeModelPackage]
readPrec :: ReadPrec DescribeModelPackage
$creadPrec :: ReadPrec DescribeModelPackage
readList :: ReadS [DescribeModelPackage]
$creadList :: ReadS [DescribeModelPackage]
readsPrec :: Int -> ReadS DescribeModelPackage
$creadsPrec :: Int -> ReadS DescribeModelPackage
Prelude.Read, Int -> DescribeModelPackage -> ShowS
[DescribeModelPackage] -> ShowS
DescribeModelPackage -> String
(Int -> DescribeModelPackage -> ShowS)
-> (DescribeModelPackage -> String)
-> ([DescribeModelPackage] -> ShowS)
-> Show DescribeModelPackage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelPackage] -> ShowS
$cshowList :: [DescribeModelPackage] -> ShowS
show :: DescribeModelPackage -> String
$cshow :: DescribeModelPackage -> String
showsPrec :: Int -> DescribeModelPackage -> ShowS
$cshowsPrec :: Int -> DescribeModelPackage -> ShowS
Prelude.Show, (forall x. DescribeModelPackage -> Rep DescribeModelPackage x)
-> (forall x. Rep DescribeModelPackage x -> DescribeModelPackage)
-> Generic DescribeModelPackage
forall x. Rep DescribeModelPackage x -> DescribeModelPackage
forall x. DescribeModelPackage -> Rep DescribeModelPackage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeModelPackage x -> DescribeModelPackage
$cfrom :: forall x. DescribeModelPackage -> Rep DescribeModelPackage x
Prelude.Generic)

-- |
-- Create a value of 'DescribeModelPackage' 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:
--
-- 'modelPackageName', 'describeModelPackage_modelPackageName' - The name or Amazon Resource Name (ARN) of the model package to describe.
--
-- When you specify a name, the name must have 1 to 63 characters. Valid
-- characters are a-z, A-Z, 0-9, and - (hyphen).
newDescribeModelPackage ::
  -- | 'modelPackageName'
  Prelude.Text ->
  DescribeModelPackage
newDescribeModelPackage :: Text -> DescribeModelPackage
newDescribeModelPackage Text
pModelPackageName_ =
  DescribeModelPackage' :: Text -> DescribeModelPackage
DescribeModelPackage'
    { $sel:modelPackageName:DescribeModelPackage' :: Text
modelPackageName =
        Text
pModelPackageName_
    }

-- | The name or Amazon Resource Name (ARN) of the model package to describe.
--
-- When you specify a name, the name must have 1 to 63 characters. Valid
-- characters are a-z, A-Z, 0-9, and - (hyphen).
describeModelPackage_modelPackageName :: Lens.Lens' DescribeModelPackage Prelude.Text
describeModelPackage_modelPackageName :: (Text -> f Text) -> DescribeModelPackage -> f DescribeModelPackage
describeModelPackage_modelPackageName = (DescribeModelPackage -> Text)
-> (DescribeModelPackage -> Text -> DescribeModelPackage)
-> Lens DescribeModelPackage DescribeModelPackage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackage' {Text
modelPackageName :: Text
$sel:modelPackageName:DescribeModelPackage' :: DescribeModelPackage -> Text
modelPackageName} -> Text
modelPackageName) (\s :: DescribeModelPackage
s@DescribeModelPackage' {} Text
a -> DescribeModelPackage
s {$sel:modelPackageName:DescribeModelPackage' :: Text
modelPackageName = Text
a} :: DescribeModelPackage)

instance Core.AWSRequest DescribeModelPackage where
  type
    AWSResponse DescribeModelPackage =
      DescribeModelPackageResponse
  request :: DescribeModelPackage -> Request DescribeModelPackage
request = Service -> DescribeModelPackage -> Request DescribeModelPackage
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeModelPackage
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeModelPackage)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeModelPackage))
-> Logger
-> Service
-> Proxy DescribeModelPackage
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeModelPackage)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe MetadataProperties
-> Maybe ModelApprovalStatus
-> Maybe SourceAlgorithmSpecification
-> Maybe ModelMetrics
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe ModelPackageValidationSpecification
-> Maybe InferenceSpecification
-> Maybe Text
-> Maybe Natural
-> Maybe Bool
-> Maybe Text
-> Maybe UserContext
-> Int
-> Text
-> Text
-> POSIX
-> ModelPackageStatus
-> ModelPackageStatusDetails
-> DescribeModelPackageResponse
DescribeModelPackageResponse'
            (Maybe MetadataProperties
 -> Maybe ModelApprovalStatus
 -> Maybe SourceAlgorithmSpecification
 -> Maybe ModelMetrics
 -> Maybe Text
 -> Maybe UserContext
 -> Maybe POSIX
 -> Maybe ModelPackageValidationSpecification
 -> Maybe InferenceSpecification
 -> Maybe Text
 -> Maybe Natural
 -> Maybe Bool
 -> Maybe Text
 -> Maybe UserContext
 -> Int
 -> Text
 -> Text
 -> POSIX
 -> ModelPackageStatus
 -> ModelPackageStatusDetails
 -> DescribeModelPackageResponse)
-> Either String (Maybe MetadataProperties)
-> Either
     String
     (Maybe ModelApprovalStatus
      -> Maybe SourceAlgorithmSpecification
      -> Maybe ModelMetrics
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe MetadataProperties)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MetadataProperties")
            Either
  String
  (Maybe ModelApprovalStatus
   -> Maybe SourceAlgorithmSpecification
   -> Maybe ModelMetrics
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe ModelApprovalStatus)
-> Either
     String
     (Maybe SourceAlgorithmSpecification
      -> Maybe ModelMetrics
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ModelApprovalStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelApprovalStatus")
            Either
  String
  (Maybe SourceAlgorithmSpecification
   -> Maybe ModelMetrics
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe SourceAlgorithmSpecification)
-> Either
     String
     (Maybe ModelMetrics
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe SourceAlgorithmSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SourceAlgorithmSpecification")
            Either
  String
  (Maybe ModelMetrics
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe ModelMetrics)
-> Either
     String
     (Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ModelMetrics)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelMetrics")
            Either
  String
  (Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe UserContext
      -> Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelPackageDescription")
            Either
  String
  (Maybe UserContext
   -> Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe UserContext)
-> Either
     String
     (Maybe POSIX
      -> Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedBy")
            Either
  String
  (Maybe POSIX
   -> Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe ModelPackageValidationSpecification
      -> Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
            Either
  String
  (Maybe ModelPackageValidationSpecification
   -> Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe ModelPackageValidationSpecification)
-> Either
     String
     (Maybe InferenceSpecification
      -> Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe ModelPackageValidationSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ValidationSpecification")
            Either
  String
  (Maybe InferenceSpecification
   -> Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe InferenceSpecification)
-> Either
     String
     (Maybe Text
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InferenceSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InferenceSpecification")
            Either
  String
  (Maybe Text
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Natural
      -> Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApprovalDescription")
            Either
  String
  (Maybe Natural
   -> Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Bool
      -> Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelPackageVersion")
            Either
  String
  (Maybe Bool
   -> Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CertifyForMarketplace")
            Either
  String
  (Maybe Text
   -> Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe UserContext
      -> Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelPackageGroupName")
            Either
  String
  (Maybe UserContext
   -> Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String (Maybe UserContext)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedBy")
            Either
  String
  (Int
   -> Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either
  String
  (Text
   -> Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String Text
-> Either
     String
     (Text
      -> POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ModelPackageName")
            Either
  String
  (Text
   -> POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String Text
-> Either
     String
     (POSIX
      -> ModelPackageStatus
      -> ModelPackageStatusDetails
      -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ModelPackageArn")
            Either
  String
  (POSIX
   -> ModelPackageStatus
   -> ModelPackageStatusDetails
   -> DescribeModelPackageResponse)
-> Either String POSIX
-> Either
     String
     (ModelPackageStatus
      -> ModelPackageStatusDetails -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreationTime")
            Either
  String
  (ModelPackageStatus
   -> ModelPackageStatusDetails -> DescribeModelPackageResponse)
-> Either String ModelPackageStatus
-> Either
     String (ModelPackageStatusDetails -> DescribeModelPackageResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ModelPackageStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ModelPackageStatus")
            Either
  String (ModelPackageStatusDetails -> DescribeModelPackageResponse)
-> Either String ModelPackageStatusDetails
-> Either String DescribeModelPackageResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ModelPackageStatusDetails
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ModelPackageStatusDetails")
      )

instance Prelude.Hashable DescribeModelPackage

instance Prelude.NFData DescribeModelPackage

instance Core.ToHeaders DescribeModelPackage where
  toHeaders :: DescribeModelPackage -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeModelPackage -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.DescribeModelPackage" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DescribeModelPackage where
  toJSON :: DescribeModelPackage -> Value
toJSON DescribeModelPackage' {Text
modelPackageName :: Text
$sel:modelPackageName:DescribeModelPackage' :: DescribeModelPackage -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ModelPackageName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
modelPackageName)
          ]
      )

instance Core.ToPath DescribeModelPackage where
  toPath :: DescribeModelPackage -> ByteString
toPath = ByteString -> DescribeModelPackage -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeModelPackage where
  toQuery :: DescribeModelPackage -> QueryString
toQuery = QueryString -> DescribeModelPackage -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeModelPackageResponse' smart constructor.
data DescribeModelPackageResponse = DescribeModelPackageResponse'
  { DescribeModelPackageResponse -> Maybe MetadataProperties
metadataProperties :: Prelude.Maybe MetadataProperties,
    -- | The approval status of the model package.
    DescribeModelPackageResponse -> Maybe ModelApprovalStatus
modelApprovalStatus :: Prelude.Maybe ModelApprovalStatus,
    -- | Details about the algorithm that was used to create the model package.
    DescribeModelPackageResponse -> Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification :: Prelude.Maybe SourceAlgorithmSpecification,
    -- | Metrics for the model.
    DescribeModelPackageResponse -> Maybe ModelMetrics
modelMetrics :: Prelude.Maybe ModelMetrics,
    -- | A brief summary of the model package.
    DescribeModelPackageResponse -> Maybe Text
modelPackageDescription :: Prelude.Maybe Prelude.Text,
    DescribeModelPackageResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
    -- | The last time the model package was modified.
    DescribeModelPackageResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | Configurations for one or more transform jobs that Amazon SageMaker runs
    -- to test the model package.
    DescribeModelPackageResponse
-> Maybe ModelPackageValidationSpecification
validationSpecification :: Prelude.Maybe ModelPackageValidationSpecification,
    -- | Details about inference jobs that can be run with models based on this
    -- model package.
    DescribeModelPackageResponse -> Maybe InferenceSpecification
inferenceSpecification :: Prelude.Maybe InferenceSpecification,
    -- | A description provided for the model approval.
    DescribeModelPackageResponse -> Maybe Text
approvalDescription :: Prelude.Maybe Prelude.Text,
    -- | The version of the model package.
    DescribeModelPackageResponse -> Maybe Natural
modelPackageVersion :: Prelude.Maybe Prelude.Natural,
    -- | Whether the model package is certified for listing on Amazon Web
    -- Services Marketplace.
    DescribeModelPackageResponse -> Maybe Bool
certifyForMarketplace :: Prelude.Maybe Prelude.Bool,
    -- | If the model is a versioned model, the name of the model group that the
    -- versioned model belongs to.
    DescribeModelPackageResponse -> Maybe Text
modelPackageGroupName :: Prelude.Maybe Prelude.Text,
    DescribeModelPackageResponse -> Maybe UserContext
lastModifiedBy :: Prelude.Maybe UserContext,
    -- | The response's http status code.
    DescribeModelPackageResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the model package being described.
    DescribeModelPackageResponse -> Text
modelPackageName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the model package.
    DescribeModelPackageResponse -> Text
modelPackageArn :: Prelude.Text,
    -- | A timestamp specifying when the model package was created.
    DescribeModelPackageResponse -> POSIX
creationTime :: Core.POSIX,
    -- | The current status of the model package.
    DescribeModelPackageResponse -> ModelPackageStatus
modelPackageStatus :: ModelPackageStatus,
    -- | Details about the current status of the model package.
    DescribeModelPackageResponse -> ModelPackageStatusDetails
modelPackageStatusDetails :: ModelPackageStatusDetails
  }
  deriving (DescribeModelPackageResponse
-> DescribeModelPackageResponse -> Bool
(DescribeModelPackageResponse
 -> DescribeModelPackageResponse -> Bool)
-> (DescribeModelPackageResponse
    -> DescribeModelPackageResponse -> Bool)
-> Eq DescribeModelPackageResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelPackageResponse
-> DescribeModelPackageResponse -> Bool
$c/= :: DescribeModelPackageResponse
-> DescribeModelPackageResponse -> Bool
== :: DescribeModelPackageResponse
-> DescribeModelPackageResponse -> Bool
$c== :: DescribeModelPackageResponse
-> DescribeModelPackageResponse -> Bool
Prelude.Eq, ReadPrec [DescribeModelPackageResponse]
ReadPrec DescribeModelPackageResponse
Int -> ReadS DescribeModelPackageResponse
ReadS [DescribeModelPackageResponse]
(Int -> ReadS DescribeModelPackageResponse)
-> ReadS [DescribeModelPackageResponse]
-> ReadPrec DescribeModelPackageResponse
-> ReadPrec [DescribeModelPackageResponse]
-> Read DescribeModelPackageResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelPackageResponse]
$creadListPrec :: ReadPrec [DescribeModelPackageResponse]
readPrec :: ReadPrec DescribeModelPackageResponse
$creadPrec :: ReadPrec DescribeModelPackageResponse
readList :: ReadS [DescribeModelPackageResponse]
$creadList :: ReadS [DescribeModelPackageResponse]
readsPrec :: Int -> ReadS DescribeModelPackageResponse
$creadsPrec :: Int -> ReadS DescribeModelPackageResponse
Prelude.Read, Int -> DescribeModelPackageResponse -> ShowS
[DescribeModelPackageResponse] -> ShowS
DescribeModelPackageResponse -> String
(Int -> DescribeModelPackageResponse -> ShowS)
-> (DescribeModelPackageResponse -> String)
-> ([DescribeModelPackageResponse] -> ShowS)
-> Show DescribeModelPackageResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelPackageResponse] -> ShowS
$cshowList :: [DescribeModelPackageResponse] -> ShowS
show :: DescribeModelPackageResponse -> String
$cshow :: DescribeModelPackageResponse -> String
showsPrec :: Int -> DescribeModelPackageResponse -> ShowS
$cshowsPrec :: Int -> DescribeModelPackageResponse -> ShowS
Prelude.Show, (forall x.
 DescribeModelPackageResponse -> Rep DescribeModelPackageResponse x)
-> (forall x.
    Rep DescribeModelPackageResponse x -> DescribeModelPackageResponse)
-> Generic DescribeModelPackageResponse
forall x.
Rep DescribeModelPackageResponse x -> DescribeModelPackageResponse
forall x.
DescribeModelPackageResponse -> Rep DescribeModelPackageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeModelPackageResponse x -> DescribeModelPackageResponse
$cfrom :: forall x.
DescribeModelPackageResponse -> Rep DescribeModelPackageResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeModelPackageResponse' 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:
--
-- 'metadataProperties', 'describeModelPackageResponse_metadataProperties' - Undocumented member.
--
-- 'modelApprovalStatus', 'describeModelPackageResponse_modelApprovalStatus' - The approval status of the model package.
--
-- 'sourceAlgorithmSpecification', 'describeModelPackageResponse_sourceAlgorithmSpecification' - Details about the algorithm that was used to create the model package.
--
-- 'modelMetrics', 'describeModelPackageResponse_modelMetrics' - Metrics for the model.
--
-- 'modelPackageDescription', 'describeModelPackageResponse_modelPackageDescription' - A brief summary of the model package.
--
-- 'createdBy', 'describeModelPackageResponse_createdBy' - Undocumented member.
--
-- 'lastModifiedTime', 'describeModelPackageResponse_lastModifiedTime' - The last time the model package was modified.
--
-- 'validationSpecification', 'describeModelPackageResponse_validationSpecification' - Configurations for one or more transform jobs that Amazon SageMaker runs
-- to test the model package.
--
-- 'inferenceSpecification', 'describeModelPackageResponse_inferenceSpecification' - Details about inference jobs that can be run with models based on this
-- model package.
--
-- 'approvalDescription', 'describeModelPackageResponse_approvalDescription' - A description provided for the model approval.
--
-- 'modelPackageVersion', 'describeModelPackageResponse_modelPackageVersion' - The version of the model package.
--
-- 'certifyForMarketplace', 'describeModelPackageResponse_certifyForMarketplace' - Whether the model package is certified for listing on Amazon Web
-- Services Marketplace.
--
-- 'modelPackageGroupName', 'describeModelPackageResponse_modelPackageGroupName' - If the model is a versioned model, the name of the model group that the
-- versioned model belongs to.
--
-- 'lastModifiedBy', 'describeModelPackageResponse_lastModifiedBy' - Undocumented member.
--
-- 'httpStatus', 'describeModelPackageResponse_httpStatus' - The response's http status code.
--
-- 'modelPackageName', 'describeModelPackageResponse_modelPackageName' - The name of the model package being described.
--
-- 'modelPackageArn', 'describeModelPackageResponse_modelPackageArn' - The Amazon Resource Name (ARN) of the model package.
--
-- 'creationTime', 'describeModelPackageResponse_creationTime' - A timestamp specifying when the model package was created.
--
-- 'modelPackageStatus', 'describeModelPackageResponse_modelPackageStatus' - The current status of the model package.
--
-- 'modelPackageStatusDetails', 'describeModelPackageResponse_modelPackageStatusDetails' - Details about the current status of the model package.
newDescribeModelPackageResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'modelPackageName'
  Prelude.Text ->
  -- | 'modelPackageArn'
  Prelude.Text ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'modelPackageStatus'
  ModelPackageStatus ->
  -- | 'modelPackageStatusDetails'
  ModelPackageStatusDetails ->
  DescribeModelPackageResponse
newDescribeModelPackageResponse :: Int
-> Text
-> Text
-> UTCTime
-> ModelPackageStatus
-> ModelPackageStatusDetails
-> DescribeModelPackageResponse
newDescribeModelPackageResponse
  Int
pHttpStatus_
  Text
pModelPackageName_
  Text
pModelPackageArn_
  UTCTime
pCreationTime_
  ModelPackageStatus
pModelPackageStatus_
  ModelPackageStatusDetails
pModelPackageStatusDetails_ =
    DescribeModelPackageResponse' :: Maybe MetadataProperties
-> Maybe ModelApprovalStatus
-> Maybe SourceAlgorithmSpecification
-> Maybe ModelMetrics
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe ModelPackageValidationSpecification
-> Maybe InferenceSpecification
-> Maybe Text
-> Maybe Natural
-> Maybe Bool
-> Maybe Text
-> Maybe UserContext
-> Int
-> Text
-> Text
-> POSIX
-> ModelPackageStatus
-> ModelPackageStatusDetails
-> DescribeModelPackageResponse
DescribeModelPackageResponse'
      { $sel:metadataProperties:DescribeModelPackageResponse' :: Maybe MetadataProperties
metadataProperties =
          Maybe MetadataProperties
forall a. Maybe a
Prelude.Nothing,
        $sel:modelApprovalStatus:DescribeModelPackageResponse' :: Maybe ModelApprovalStatus
modelApprovalStatus = Maybe ModelApprovalStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:sourceAlgorithmSpecification:DescribeModelPackageResponse' :: Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification =
          Maybe SourceAlgorithmSpecification
forall a. Maybe a
Prelude.Nothing,
        $sel:modelMetrics:DescribeModelPackageResponse' :: Maybe ModelMetrics
modelMetrics = Maybe ModelMetrics
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageDescription:DescribeModelPackageResponse' :: Maybe Text
modelPackageDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:createdBy:DescribeModelPackageResponse' :: Maybe UserContext
createdBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:DescribeModelPackageResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:validationSpecification:DescribeModelPackageResponse' :: Maybe ModelPackageValidationSpecification
validationSpecification = Maybe ModelPackageValidationSpecification
forall a. Maybe a
Prelude.Nothing,
        $sel:inferenceSpecification:DescribeModelPackageResponse' :: Maybe InferenceSpecification
inferenceSpecification = Maybe InferenceSpecification
forall a. Maybe a
Prelude.Nothing,
        $sel:approvalDescription:DescribeModelPackageResponse' :: Maybe Text
approvalDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageVersion:DescribeModelPackageResponse' :: Maybe Natural
modelPackageVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:certifyForMarketplace:DescribeModelPackageResponse' :: Maybe Bool
certifyForMarketplace = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:modelPackageGroupName:DescribeModelPackageResponse' :: Maybe Text
modelPackageGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedBy:DescribeModelPackageResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeModelPackageResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:modelPackageName:DescribeModelPackageResponse' :: Text
modelPackageName = Text
pModelPackageName_,
        $sel:modelPackageArn:DescribeModelPackageResponse' :: Text
modelPackageArn = Text
pModelPackageArn_,
        $sel:creationTime:DescribeModelPackageResponse' :: 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:DescribeModelPackageResponse' :: ModelPackageStatus
modelPackageStatus = ModelPackageStatus
pModelPackageStatus_,
        $sel:modelPackageStatusDetails:DescribeModelPackageResponse' :: ModelPackageStatusDetails
modelPackageStatusDetails =
          ModelPackageStatusDetails
pModelPackageStatusDetails_
      }

-- | Undocumented member.
describeModelPackageResponse_metadataProperties :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe MetadataProperties)
describeModelPackageResponse_metadataProperties :: (Maybe MetadataProperties -> f (Maybe MetadataProperties))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_metadataProperties = (DescribeModelPackageResponse -> Maybe MetadataProperties)
-> (DescribeModelPackageResponse
    -> Maybe MetadataProperties -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe MetadataProperties)
     (Maybe MetadataProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe MetadataProperties
metadataProperties :: Maybe MetadataProperties
$sel:metadataProperties:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe MetadataProperties
metadataProperties} -> Maybe MetadataProperties
metadataProperties) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe MetadataProperties
a -> DescribeModelPackageResponse
s {$sel:metadataProperties:DescribeModelPackageResponse' :: Maybe MetadataProperties
metadataProperties = Maybe MetadataProperties
a} :: DescribeModelPackageResponse)

-- | The approval status of the model package.
describeModelPackageResponse_modelApprovalStatus :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe ModelApprovalStatus)
describeModelPackageResponse_modelApprovalStatus :: (Maybe ModelApprovalStatus -> f (Maybe ModelApprovalStatus))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_modelApprovalStatus = (DescribeModelPackageResponse -> Maybe ModelApprovalStatus)
-> (DescribeModelPackageResponse
    -> Maybe ModelApprovalStatus -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe ModelApprovalStatus)
     (Maybe ModelApprovalStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe ModelApprovalStatus
modelApprovalStatus :: Maybe ModelApprovalStatus
$sel:modelApprovalStatus:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe ModelApprovalStatus
modelApprovalStatus} -> Maybe ModelApprovalStatus
modelApprovalStatus) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe ModelApprovalStatus
a -> DescribeModelPackageResponse
s {$sel:modelApprovalStatus:DescribeModelPackageResponse' :: Maybe ModelApprovalStatus
modelApprovalStatus = Maybe ModelApprovalStatus
a} :: DescribeModelPackageResponse)

-- | Details about the algorithm that was used to create the model package.
describeModelPackageResponse_sourceAlgorithmSpecification :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe SourceAlgorithmSpecification)
describeModelPackageResponse_sourceAlgorithmSpecification :: (Maybe SourceAlgorithmSpecification
 -> f (Maybe SourceAlgorithmSpecification))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_sourceAlgorithmSpecification = (DescribeModelPackageResponse
 -> Maybe SourceAlgorithmSpecification)
-> (DescribeModelPackageResponse
    -> Maybe SourceAlgorithmSpecification
    -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe SourceAlgorithmSpecification)
     (Maybe SourceAlgorithmSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification :: Maybe SourceAlgorithmSpecification
$sel:sourceAlgorithmSpecification:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification} -> Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe SourceAlgorithmSpecification
a -> DescribeModelPackageResponse
s {$sel:sourceAlgorithmSpecification:DescribeModelPackageResponse' :: Maybe SourceAlgorithmSpecification
sourceAlgorithmSpecification = Maybe SourceAlgorithmSpecification
a} :: DescribeModelPackageResponse)

-- | Metrics for the model.
describeModelPackageResponse_modelMetrics :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe ModelMetrics)
describeModelPackageResponse_modelMetrics :: (Maybe ModelMetrics -> f (Maybe ModelMetrics))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_modelMetrics = (DescribeModelPackageResponse -> Maybe ModelMetrics)
-> (DescribeModelPackageResponse
    -> Maybe ModelMetrics -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe ModelMetrics)
     (Maybe ModelMetrics)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe ModelMetrics
modelMetrics :: Maybe ModelMetrics
$sel:modelMetrics:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe ModelMetrics
modelMetrics} -> Maybe ModelMetrics
modelMetrics) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe ModelMetrics
a -> DescribeModelPackageResponse
s {$sel:modelMetrics:DescribeModelPackageResponse' :: Maybe ModelMetrics
modelMetrics = Maybe ModelMetrics
a} :: DescribeModelPackageResponse)

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

-- | Undocumented member.
describeModelPackageResponse_createdBy :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe UserContext)
describeModelPackageResponse_createdBy :: (Maybe UserContext -> f (Maybe UserContext))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_createdBy = (DescribeModelPackageResponse -> Maybe UserContext)
-> (DescribeModelPackageResponse
    -> Maybe UserContext -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe UserContext)
     (Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe UserContext
a -> DescribeModelPackageResponse
s {$sel:createdBy:DescribeModelPackageResponse' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: DescribeModelPackageResponse)

-- | The last time the model package was modified.
describeModelPackageResponse_lastModifiedTime :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe Prelude.UTCTime)
describeModelPackageResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_lastModifiedTime = (DescribeModelPackageResponse -> Maybe POSIX)
-> (DescribeModelPackageResponse
    -> Maybe POSIX -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe POSIX
a -> DescribeModelPackageResponse
s {$sel:lastModifiedTime:DescribeModelPackageResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeModelPackageResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeModelPackageResponse -> f DescribeModelPackageResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeModelPackageResponse
-> f DescribeModelPackageResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Configurations for one or more transform jobs that Amazon SageMaker runs
-- to test the model package.
describeModelPackageResponse_validationSpecification :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe ModelPackageValidationSpecification)
describeModelPackageResponse_validationSpecification :: (Maybe ModelPackageValidationSpecification
 -> f (Maybe ModelPackageValidationSpecification))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_validationSpecification = (DescribeModelPackageResponse
 -> Maybe ModelPackageValidationSpecification)
-> (DescribeModelPackageResponse
    -> Maybe ModelPackageValidationSpecification
    -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe ModelPackageValidationSpecification)
     (Maybe ModelPackageValidationSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe ModelPackageValidationSpecification
validationSpecification :: Maybe ModelPackageValidationSpecification
$sel:validationSpecification:DescribeModelPackageResponse' :: DescribeModelPackageResponse
-> Maybe ModelPackageValidationSpecification
validationSpecification} -> Maybe ModelPackageValidationSpecification
validationSpecification) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe ModelPackageValidationSpecification
a -> DescribeModelPackageResponse
s {$sel:validationSpecification:DescribeModelPackageResponse' :: Maybe ModelPackageValidationSpecification
validationSpecification = Maybe ModelPackageValidationSpecification
a} :: DescribeModelPackageResponse)

-- | Details about inference jobs that can be run with models based on this
-- model package.
describeModelPackageResponse_inferenceSpecification :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe InferenceSpecification)
describeModelPackageResponse_inferenceSpecification :: (Maybe InferenceSpecification -> f (Maybe InferenceSpecification))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_inferenceSpecification = (DescribeModelPackageResponse -> Maybe InferenceSpecification)
-> (DescribeModelPackageResponse
    -> Maybe InferenceSpecification -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe InferenceSpecification)
     (Maybe InferenceSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe InferenceSpecification
inferenceSpecification :: Maybe InferenceSpecification
$sel:inferenceSpecification:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe InferenceSpecification
inferenceSpecification} -> Maybe InferenceSpecification
inferenceSpecification) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe InferenceSpecification
a -> DescribeModelPackageResponse
s {$sel:inferenceSpecification:DescribeModelPackageResponse' :: Maybe InferenceSpecification
inferenceSpecification = Maybe InferenceSpecification
a} :: DescribeModelPackageResponse)

-- | A description provided for the model approval.
describeModelPackageResponse_approvalDescription :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe Prelude.Text)
describeModelPackageResponse_approvalDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_approvalDescription = (DescribeModelPackageResponse -> Maybe Text)
-> (DescribeModelPackageResponse
    -> Maybe Text -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe Text
approvalDescription :: Maybe Text
$sel:approvalDescription:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe Text
approvalDescription} -> Maybe Text
approvalDescription) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe Text
a -> DescribeModelPackageResponse
s {$sel:approvalDescription:DescribeModelPackageResponse' :: Maybe Text
approvalDescription = Maybe Text
a} :: DescribeModelPackageResponse)

-- | The version of the model package.
describeModelPackageResponse_modelPackageVersion :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe Prelude.Natural)
describeModelPackageResponse_modelPackageVersion :: (Maybe Natural -> f (Maybe Natural))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_modelPackageVersion = (DescribeModelPackageResponse -> Maybe Natural)
-> (DescribeModelPackageResponse
    -> Maybe Natural -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe Natural
modelPackageVersion :: Maybe Natural
$sel:modelPackageVersion:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe Natural
modelPackageVersion} -> Maybe Natural
modelPackageVersion) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe Natural
a -> DescribeModelPackageResponse
s {$sel:modelPackageVersion:DescribeModelPackageResponse' :: Maybe Natural
modelPackageVersion = Maybe Natural
a} :: DescribeModelPackageResponse)

-- | Whether the model package is certified for listing on Amazon Web
-- Services Marketplace.
describeModelPackageResponse_certifyForMarketplace :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe Prelude.Bool)
describeModelPackageResponse_certifyForMarketplace :: (Maybe Bool -> f (Maybe Bool))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_certifyForMarketplace = (DescribeModelPackageResponse -> Maybe Bool)
-> (DescribeModelPackageResponse
    -> Maybe Bool -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe Bool
certifyForMarketplace :: Maybe Bool
$sel:certifyForMarketplace:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe Bool
certifyForMarketplace} -> Maybe Bool
certifyForMarketplace) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe Bool
a -> DescribeModelPackageResponse
s {$sel:certifyForMarketplace:DescribeModelPackageResponse' :: Maybe Bool
certifyForMarketplace = Maybe Bool
a} :: DescribeModelPackageResponse)

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

-- | Undocumented member.
describeModelPackageResponse_lastModifiedBy :: Lens.Lens' DescribeModelPackageResponse (Prelude.Maybe UserContext)
describeModelPackageResponse_lastModifiedBy :: (Maybe UserContext -> f (Maybe UserContext))
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_lastModifiedBy = (DescribeModelPackageResponse -> Maybe UserContext)
-> (DescribeModelPackageResponse
    -> Maybe UserContext -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     (Maybe UserContext)
     (Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Maybe UserContext
lastModifiedBy :: Maybe UserContext
$sel:lastModifiedBy:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Maybe UserContext
lastModifiedBy} -> Maybe UserContext
lastModifiedBy) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Maybe UserContext
a -> DescribeModelPackageResponse
s {$sel:lastModifiedBy:DescribeModelPackageResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
a} :: DescribeModelPackageResponse)

-- | The response's http status code.
describeModelPackageResponse_httpStatus :: Lens.Lens' DescribeModelPackageResponse Prelude.Int
describeModelPackageResponse_httpStatus :: (Int -> f Int)
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_httpStatus = (DescribeModelPackageResponse -> Int)
-> (DescribeModelPackageResponse
    -> Int -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse DescribeModelPackageResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} Int
a -> DescribeModelPackageResponse
s {$sel:httpStatus:DescribeModelPackageResponse' :: Int
httpStatus = Int
a} :: DescribeModelPackageResponse)

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

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

-- | A timestamp specifying when the model package was created.
describeModelPackageResponse_creationTime :: Lens.Lens' DescribeModelPackageResponse Prelude.UTCTime
describeModelPackageResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_creationTime = (DescribeModelPackageResponse -> POSIX)
-> (DescribeModelPackageResponse
    -> POSIX -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} POSIX
a -> DescribeModelPackageResponse
s {$sel:creationTime:DescribeModelPackageResponse' :: POSIX
creationTime = POSIX
a} :: DescribeModelPackageResponse) ((POSIX -> f POSIX)
 -> DescribeModelPackageResponse -> f DescribeModelPackageResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeModelPackageResponse
-> f DescribeModelPackageResponse
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 current status of the model package.
describeModelPackageResponse_modelPackageStatus :: Lens.Lens' DescribeModelPackageResponse ModelPackageStatus
describeModelPackageResponse_modelPackageStatus :: (ModelPackageStatus -> f ModelPackageStatus)
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_modelPackageStatus = (DescribeModelPackageResponse -> ModelPackageStatus)
-> (DescribeModelPackageResponse
    -> ModelPackageStatus -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     ModelPackageStatus
     ModelPackageStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {ModelPackageStatus
modelPackageStatus :: ModelPackageStatus
$sel:modelPackageStatus:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> ModelPackageStatus
modelPackageStatus} -> ModelPackageStatus
modelPackageStatus) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} ModelPackageStatus
a -> DescribeModelPackageResponse
s {$sel:modelPackageStatus:DescribeModelPackageResponse' :: ModelPackageStatus
modelPackageStatus = ModelPackageStatus
a} :: DescribeModelPackageResponse)

-- | Details about the current status of the model package.
describeModelPackageResponse_modelPackageStatusDetails :: Lens.Lens' DescribeModelPackageResponse ModelPackageStatusDetails
describeModelPackageResponse_modelPackageStatusDetails :: (ModelPackageStatusDetails -> f ModelPackageStatusDetails)
-> DescribeModelPackageResponse -> f DescribeModelPackageResponse
describeModelPackageResponse_modelPackageStatusDetails = (DescribeModelPackageResponse -> ModelPackageStatusDetails)
-> (DescribeModelPackageResponse
    -> ModelPackageStatusDetails -> DescribeModelPackageResponse)
-> Lens
     DescribeModelPackageResponse
     DescribeModelPackageResponse
     ModelPackageStatusDetails
     ModelPackageStatusDetails
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageResponse' {ModelPackageStatusDetails
modelPackageStatusDetails :: ModelPackageStatusDetails
$sel:modelPackageStatusDetails:DescribeModelPackageResponse' :: DescribeModelPackageResponse -> ModelPackageStatusDetails
modelPackageStatusDetails} -> ModelPackageStatusDetails
modelPackageStatusDetails) (\s :: DescribeModelPackageResponse
s@DescribeModelPackageResponse' {} ModelPackageStatusDetails
a -> DescribeModelPackageResponse
s {$sel:modelPackageStatusDetails:DescribeModelPackageResponse' :: ModelPackageStatusDetails
modelPackageStatusDetails = ModelPackageStatusDetails
a} :: DescribeModelPackageResponse)

instance Prelude.NFData DescribeModelPackageResponse