{-# 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.DescribeModelPackageGroup
-- 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)
--
-- Gets a description for the specified model group.
module Amazonka.SageMaker.DescribeModelPackageGroup
  ( -- * Creating a Request
    DescribeModelPackageGroup (..),
    newDescribeModelPackageGroup,

    -- * Request Lenses
    describeModelPackageGroup_modelPackageGroupName,

    -- * Destructuring the Response
    DescribeModelPackageGroupResponse (..),
    newDescribeModelPackageGroupResponse,

    -- * Response Lenses
    describeModelPackageGroupResponse_modelPackageGroupDescription,
    describeModelPackageGroupResponse_httpStatus,
    describeModelPackageGroupResponse_modelPackageGroupName,
    describeModelPackageGroupResponse_modelPackageGroupArn,
    describeModelPackageGroupResponse_creationTime,
    describeModelPackageGroupResponse_createdBy,
    describeModelPackageGroupResponse_modelPackageGroupStatus,
  )
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:/ 'newDescribeModelPackageGroup' smart constructor.
data DescribeModelPackageGroup = DescribeModelPackageGroup'
  { -- | The name of the model group to describe.
    DescribeModelPackageGroup -> Text
modelPackageGroupName :: Prelude.Text
  }
  deriving (DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool
(DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool)
-> (DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool)
-> Eq DescribeModelPackageGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool
$c/= :: DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool
== :: DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool
$c== :: DescribeModelPackageGroup -> DescribeModelPackageGroup -> Bool
Prelude.Eq, ReadPrec [DescribeModelPackageGroup]
ReadPrec DescribeModelPackageGroup
Int -> ReadS DescribeModelPackageGroup
ReadS [DescribeModelPackageGroup]
(Int -> ReadS DescribeModelPackageGroup)
-> ReadS [DescribeModelPackageGroup]
-> ReadPrec DescribeModelPackageGroup
-> ReadPrec [DescribeModelPackageGroup]
-> Read DescribeModelPackageGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelPackageGroup]
$creadListPrec :: ReadPrec [DescribeModelPackageGroup]
readPrec :: ReadPrec DescribeModelPackageGroup
$creadPrec :: ReadPrec DescribeModelPackageGroup
readList :: ReadS [DescribeModelPackageGroup]
$creadList :: ReadS [DescribeModelPackageGroup]
readsPrec :: Int -> ReadS DescribeModelPackageGroup
$creadsPrec :: Int -> ReadS DescribeModelPackageGroup
Prelude.Read, Int -> DescribeModelPackageGroup -> ShowS
[DescribeModelPackageGroup] -> ShowS
DescribeModelPackageGroup -> String
(Int -> DescribeModelPackageGroup -> ShowS)
-> (DescribeModelPackageGroup -> String)
-> ([DescribeModelPackageGroup] -> ShowS)
-> Show DescribeModelPackageGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelPackageGroup] -> ShowS
$cshowList :: [DescribeModelPackageGroup] -> ShowS
show :: DescribeModelPackageGroup -> String
$cshow :: DescribeModelPackageGroup -> String
showsPrec :: Int -> DescribeModelPackageGroup -> ShowS
$cshowsPrec :: Int -> DescribeModelPackageGroup -> ShowS
Prelude.Show, (forall x.
 DescribeModelPackageGroup -> Rep DescribeModelPackageGroup x)
-> (forall x.
    Rep DescribeModelPackageGroup x -> DescribeModelPackageGroup)
-> Generic DescribeModelPackageGroup
forall x.
Rep DescribeModelPackageGroup x -> DescribeModelPackageGroup
forall x.
DescribeModelPackageGroup -> Rep DescribeModelPackageGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeModelPackageGroup x -> DescribeModelPackageGroup
$cfrom :: forall x.
DescribeModelPackageGroup -> Rep DescribeModelPackageGroup x
Prelude.Generic)

-- |
-- Create a value of 'DescribeModelPackageGroup' 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:
--
-- 'modelPackageGroupName', 'describeModelPackageGroup_modelPackageGroupName' - The name of the model group to describe.
newDescribeModelPackageGroup ::
  -- | 'modelPackageGroupName'
  Prelude.Text ->
  DescribeModelPackageGroup
newDescribeModelPackageGroup :: Text -> DescribeModelPackageGroup
newDescribeModelPackageGroup Text
pModelPackageGroupName_ =
  DescribeModelPackageGroup' :: Text -> DescribeModelPackageGroup
DescribeModelPackageGroup'
    { $sel:modelPackageGroupName:DescribeModelPackageGroup' :: Text
modelPackageGroupName =
        Text
pModelPackageGroupName_
    }

-- | The name of the model group to describe.
describeModelPackageGroup_modelPackageGroupName :: Lens.Lens' DescribeModelPackageGroup Prelude.Text
describeModelPackageGroup_modelPackageGroupName :: (Text -> f Text)
-> DescribeModelPackageGroup -> f DescribeModelPackageGroup
describeModelPackageGroup_modelPackageGroupName = (DescribeModelPackageGroup -> Text)
-> (DescribeModelPackageGroup -> Text -> DescribeModelPackageGroup)
-> Lens
     DescribeModelPackageGroup DescribeModelPackageGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageGroup' {Text
modelPackageGroupName :: Text
$sel:modelPackageGroupName:DescribeModelPackageGroup' :: DescribeModelPackageGroup -> Text
modelPackageGroupName} -> Text
modelPackageGroupName) (\s :: DescribeModelPackageGroup
s@DescribeModelPackageGroup' {} Text
a -> DescribeModelPackageGroup
s {$sel:modelPackageGroupName:DescribeModelPackageGroup' :: Text
modelPackageGroupName = Text
a} :: DescribeModelPackageGroup)

instance Core.AWSRequest DescribeModelPackageGroup where
  type
    AWSResponse DescribeModelPackageGroup =
      DescribeModelPackageGroupResponse
  request :: DescribeModelPackageGroup -> Request DescribeModelPackageGroup
request = Service
-> DescribeModelPackageGroup -> Request DescribeModelPackageGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeModelPackageGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeModelPackageGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeModelPackageGroup))
-> Logger
-> Service
-> Proxy DescribeModelPackageGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeModelPackageGroup)))
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 Text
-> Int
-> Text
-> Text
-> POSIX
-> UserContext
-> ModelPackageGroupStatus
-> DescribeModelPackageGroupResponse
DescribeModelPackageGroupResponse'
            (Maybe Text
 -> Int
 -> Text
 -> Text
 -> POSIX
 -> UserContext
 -> ModelPackageGroupStatus
 -> DescribeModelPackageGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> POSIX
      -> UserContext
      -> ModelPackageGroupStatus
      -> DescribeModelPackageGroupResponse)
forall (f :: * -> *) a b. Functor 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
"ModelPackageGroupDescription")
            Either
  String
  (Int
   -> Text
   -> Text
   -> POSIX
   -> UserContext
   -> ModelPackageGroupStatus
   -> DescribeModelPackageGroupResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> POSIX
      -> UserContext
      -> ModelPackageGroupStatus
      -> DescribeModelPackageGroupResponse)
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
   -> UserContext
   -> ModelPackageGroupStatus
   -> DescribeModelPackageGroupResponse)
-> Either String Text
-> Either
     String
     (Text
      -> POSIX
      -> UserContext
      -> ModelPackageGroupStatus
      -> DescribeModelPackageGroupResponse)
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
"ModelPackageGroupName")
            Either
  String
  (Text
   -> POSIX
   -> UserContext
   -> ModelPackageGroupStatus
   -> DescribeModelPackageGroupResponse)
-> Either String Text
-> Either
     String
     (POSIX
      -> UserContext
      -> ModelPackageGroupStatus
      -> DescribeModelPackageGroupResponse)
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
"ModelPackageGroupArn")
            Either
  String
  (POSIX
   -> UserContext
   -> ModelPackageGroupStatus
   -> DescribeModelPackageGroupResponse)
-> Either String POSIX
-> Either
     String
     (UserContext
      -> ModelPackageGroupStatus -> DescribeModelPackageGroupResponse)
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
  (UserContext
   -> ModelPackageGroupStatus -> DescribeModelPackageGroupResponse)
-> Either String UserContext
-> Either
     String
     (ModelPackageGroupStatus -> DescribeModelPackageGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String UserContext
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreatedBy")
            Either
  String
  (ModelPackageGroupStatus -> DescribeModelPackageGroupResponse)
-> Either String ModelPackageGroupStatus
-> Either String DescribeModelPackageGroupResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ModelPackageGroupStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ModelPackageGroupStatus")
      )

instance Prelude.Hashable DescribeModelPackageGroup

instance Prelude.NFData DescribeModelPackageGroup

instance Core.ToHeaders DescribeModelPackageGroup where
  toHeaders :: DescribeModelPackageGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeModelPackageGroup -> 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.DescribeModelPackageGroup" ::
                          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 DescribeModelPackageGroup where
  toJSON :: DescribeModelPackageGroup -> Value
toJSON DescribeModelPackageGroup' {Text
modelPackageGroupName :: Text
$sel:modelPackageGroupName:DescribeModelPackageGroup' :: DescribeModelPackageGroup -> 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
"ModelPackageGroupName"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
modelPackageGroupName
              )
          ]
      )

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

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

-- | /See:/ 'newDescribeModelPackageGroupResponse' smart constructor.
data DescribeModelPackageGroupResponse = DescribeModelPackageGroupResponse'
  { -- | A description of the model group.
    DescribeModelPackageGroupResponse -> Maybe Text
modelPackageGroupDescription :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeModelPackageGroupResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the model group.
    DescribeModelPackageGroupResponse -> Text
modelPackageGroupName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the model group.
    DescribeModelPackageGroupResponse -> Text
modelPackageGroupArn :: Prelude.Text,
    -- | The time that the model group was created.
    DescribeModelPackageGroupResponse -> POSIX
creationTime :: Core.POSIX,
    DescribeModelPackageGroupResponse -> UserContext
createdBy :: UserContext,
    -- | The status of the model group.
    DescribeModelPackageGroupResponse -> ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
  }
  deriving (DescribeModelPackageGroupResponse
-> DescribeModelPackageGroupResponse -> Bool
(DescribeModelPackageGroupResponse
 -> DescribeModelPackageGroupResponse -> Bool)
-> (DescribeModelPackageGroupResponse
    -> DescribeModelPackageGroupResponse -> Bool)
-> Eq DescribeModelPackageGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelPackageGroupResponse
-> DescribeModelPackageGroupResponse -> Bool
$c/= :: DescribeModelPackageGroupResponse
-> DescribeModelPackageGroupResponse -> Bool
== :: DescribeModelPackageGroupResponse
-> DescribeModelPackageGroupResponse -> Bool
$c== :: DescribeModelPackageGroupResponse
-> DescribeModelPackageGroupResponse -> Bool
Prelude.Eq, ReadPrec [DescribeModelPackageGroupResponse]
ReadPrec DescribeModelPackageGroupResponse
Int -> ReadS DescribeModelPackageGroupResponse
ReadS [DescribeModelPackageGroupResponse]
(Int -> ReadS DescribeModelPackageGroupResponse)
-> ReadS [DescribeModelPackageGroupResponse]
-> ReadPrec DescribeModelPackageGroupResponse
-> ReadPrec [DescribeModelPackageGroupResponse]
-> Read DescribeModelPackageGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelPackageGroupResponse]
$creadListPrec :: ReadPrec [DescribeModelPackageGroupResponse]
readPrec :: ReadPrec DescribeModelPackageGroupResponse
$creadPrec :: ReadPrec DescribeModelPackageGroupResponse
readList :: ReadS [DescribeModelPackageGroupResponse]
$creadList :: ReadS [DescribeModelPackageGroupResponse]
readsPrec :: Int -> ReadS DescribeModelPackageGroupResponse
$creadsPrec :: Int -> ReadS DescribeModelPackageGroupResponse
Prelude.Read, Int -> DescribeModelPackageGroupResponse -> ShowS
[DescribeModelPackageGroupResponse] -> ShowS
DescribeModelPackageGroupResponse -> String
(Int -> DescribeModelPackageGroupResponse -> ShowS)
-> (DescribeModelPackageGroupResponse -> String)
-> ([DescribeModelPackageGroupResponse] -> ShowS)
-> Show DescribeModelPackageGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelPackageGroupResponse] -> ShowS
$cshowList :: [DescribeModelPackageGroupResponse] -> ShowS
show :: DescribeModelPackageGroupResponse -> String
$cshow :: DescribeModelPackageGroupResponse -> String
showsPrec :: Int -> DescribeModelPackageGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeModelPackageGroupResponse -> ShowS
Prelude.Show, (forall x.
 DescribeModelPackageGroupResponse
 -> Rep DescribeModelPackageGroupResponse x)
-> (forall x.
    Rep DescribeModelPackageGroupResponse x
    -> DescribeModelPackageGroupResponse)
-> Generic DescribeModelPackageGroupResponse
forall x.
Rep DescribeModelPackageGroupResponse x
-> DescribeModelPackageGroupResponse
forall x.
DescribeModelPackageGroupResponse
-> Rep DescribeModelPackageGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeModelPackageGroupResponse x
-> DescribeModelPackageGroupResponse
$cfrom :: forall x.
DescribeModelPackageGroupResponse
-> Rep DescribeModelPackageGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeModelPackageGroupResponse' 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:
--
-- 'modelPackageGroupDescription', 'describeModelPackageGroupResponse_modelPackageGroupDescription' - A description of the model group.
--
-- 'httpStatus', 'describeModelPackageGroupResponse_httpStatus' - The response's http status code.
--
-- 'modelPackageGroupName', 'describeModelPackageGroupResponse_modelPackageGroupName' - The name of the model group.
--
-- 'modelPackageGroupArn', 'describeModelPackageGroupResponse_modelPackageGroupArn' - The Amazon Resource Name (ARN) of the model group.
--
-- 'creationTime', 'describeModelPackageGroupResponse_creationTime' - The time that the model group was created.
--
-- 'createdBy', 'describeModelPackageGroupResponse_createdBy' - Undocumented member.
--
-- 'modelPackageGroupStatus', 'describeModelPackageGroupResponse_modelPackageGroupStatus' - The status of the model group.
newDescribeModelPackageGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'modelPackageGroupName'
  Prelude.Text ->
  -- | 'modelPackageGroupArn'
  Prelude.Text ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'createdBy'
  UserContext ->
  -- | 'modelPackageGroupStatus'
  ModelPackageGroupStatus ->
  DescribeModelPackageGroupResponse
newDescribeModelPackageGroupResponse :: Int
-> Text
-> Text
-> UTCTime
-> UserContext
-> ModelPackageGroupStatus
-> DescribeModelPackageGroupResponse
newDescribeModelPackageGroupResponse
  Int
pHttpStatus_
  Text
pModelPackageGroupName_
  Text
pModelPackageGroupArn_
  UTCTime
pCreationTime_
  UserContext
pCreatedBy_
  ModelPackageGroupStatus
pModelPackageGroupStatus_ =
    DescribeModelPackageGroupResponse' :: Maybe Text
-> Int
-> Text
-> Text
-> POSIX
-> UserContext
-> ModelPackageGroupStatus
-> DescribeModelPackageGroupResponse
DescribeModelPackageGroupResponse'
      { $sel:modelPackageGroupDescription:DescribeModelPackageGroupResponse' :: Maybe Text
modelPackageGroupDescription =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeModelPackageGroupResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:modelPackageGroupName:DescribeModelPackageGroupResponse' :: Text
modelPackageGroupName =
          Text
pModelPackageGroupName_,
        $sel:modelPackageGroupArn:DescribeModelPackageGroupResponse' :: Text
modelPackageGroupArn =
          Text
pModelPackageGroupArn_,
        $sel:creationTime:DescribeModelPackageGroupResponse' :: 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:createdBy:DescribeModelPackageGroupResponse' :: UserContext
createdBy = UserContext
pCreatedBy_,
        $sel:modelPackageGroupStatus:DescribeModelPackageGroupResponse' :: ModelPackageGroupStatus
modelPackageGroupStatus =
          ModelPackageGroupStatus
pModelPackageGroupStatus_
      }

-- | A description of the model group.
describeModelPackageGroupResponse_modelPackageGroupDescription :: Lens.Lens' DescribeModelPackageGroupResponse (Prelude.Maybe Prelude.Text)
describeModelPackageGroupResponse_modelPackageGroupDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeModelPackageGroupResponse
-> f DescribeModelPackageGroupResponse
describeModelPackageGroupResponse_modelPackageGroupDescription = (DescribeModelPackageGroupResponse -> Maybe Text)
-> (DescribeModelPackageGroupResponse
    -> Maybe Text -> DescribeModelPackageGroupResponse)
-> Lens
     DescribeModelPackageGroupResponse
     DescribeModelPackageGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageGroupResponse' {Maybe Text
modelPackageGroupDescription :: Maybe Text
$sel:modelPackageGroupDescription:DescribeModelPackageGroupResponse' :: DescribeModelPackageGroupResponse -> Maybe Text
modelPackageGroupDescription} -> Maybe Text
modelPackageGroupDescription) (\s :: DescribeModelPackageGroupResponse
s@DescribeModelPackageGroupResponse' {} Maybe Text
a -> DescribeModelPackageGroupResponse
s {$sel:modelPackageGroupDescription:DescribeModelPackageGroupResponse' :: Maybe Text
modelPackageGroupDescription = Maybe Text
a} :: DescribeModelPackageGroupResponse)

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

-- | The name of the model group.
describeModelPackageGroupResponse_modelPackageGroupName :: Lens.Lens' DescribeModelPackageGroupResponse Prelude.Text
describeModelPackageGroupResponse_modelPackageGroupName :: (Text -> f Text)
-> DescribeModelPackageGroupResponse
-> f DescribeModelPackageGroupResponse
describeModelPackageGroupResponse_modelPackageGroupName = (DescribeModelPackageGroupResponse -> Text)
-> (DescribeModelPackageGroupResponse
    -> Text -> DescribeModelPackageGroupResponse)
-> Lens
     DescribeModelPackageGroupResponse
     DescribeModelPackageGroupResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageGroupResponse' {Text
modelPackageGroupName :: Text
$sel:modelPackageGroupName:DescribeModelPackageGroupResponse' :: DescribeModelPackageGroupResponse -> Text
modelPackageGroupName} -> Text
modelPackageGroupName) (\s :: DescribeModelPackageGroupResponse
s@DescribeModelPackageGroupResponse' {} Text
a -> DescribeModelPackageGroupResponse
s {$sel:modelPackageGroupName:DescribeModelPackageGroupResponse' :: Text
modelPackageGroupName = Text
a} :: DescribeModelPackageGroupResponse)

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

-- | The time that the model group was created.
describeModelPackageGroupResponse_creationTime :: Lens.Lens' DescribeModelPackageGroupResponse Prelude.UTCTime
describeModelPackageGroupResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeModelPackageGroupResponse
-> f DescribeModelPackageGroupResponse
describeModelPackageGroupResponse_creationTime = (DescribeModelPackageGroupResponse -> POSIX)
-> (DescribeModelPackageGroupResponse
    -> POSIX -> DescribeModelPackageGroupResponse)
-> Lens
     DescribeModelPackageGroupResponse
     DescribeModelPackageGroupResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageGroupResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeModelPackageGroupResponse' :: DescribeModelPackageGroupResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeModelPackageGroupResponse
s@DescribeModelPackageGroupResponse' {} POSIX
a -> DescribeModelPackageGroupResponse
s {$sel:creationTime:DescribeModelPackageGroupResponse' :: POSIX
creationTime = POSIX
a} :: DescribeModelPackageGroupResponse) ((POSIX -> f POSIX)
 -> DescribeModelPackageGroupResponse
 -> f DescribeModelPackageGroupResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeModelPackageGroupResponse
-> f DescribeModelPackageGroupResponse
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

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

-- | The status of the model group.
describeModelPackageGroupResponse_modelPackageGroupStatus :: Lens.Lens' DescribeModelPackageGroupResponse ModelPackageGroupStatus
describeModelPackageGroupResponse_modelPackageGroupStatus :: (ModelPackageGroupStatus -> f ModelPackageGroupStatus)
-> DescribeModelPackageGroupResponse
-> f DescribeModelPackageGroupResponse
describeModelPackageGroupResponse_modelPackageGroupStatus = (DescribeModelPackageGroupResponse -> ModelPackageGroupStatus)
-> (DescribeModelPackageGroupResponse
    -> ModelPackageGroupStatus -> DescribeModelPackageGroupResponse)
-> Lens
     DescribeModelPackageGroupResponse
     DescribeModelPackageGroupResponse
     ModelPackageGroupStatus
     ModelPackageGroupStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelPackageGroupResponse' {ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
$sel:modelPackageGroupStatus:DescribeModelPackageGroupResponse' :: DescribeModelPackageGroupResponse -> ModelPackageGroupStatus
modelPackageGroupStatus} -> ModelPackageGroupStatus
modelPackageGroupStatus) (\s :: DescribeModelPackageGroupResponse
s@DescribeModelPackageGroupResponse' {} ModelPackageGroupStatus
a -> DescribeModelPackageGroupResponse
s {$sel:modelPackageGroupStatus:DescribeModelPackageGroupResponse' :: ModelPackageGroupStatus
modelPackageGroupStatus = ModelPackageGroupStatus
a} :: DescribeModelPackageGroupResponse)

instance
  Prelude.NFData
    DescribeModelPackageGroupResponse