{-# 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.DescribeAppImageConfig
-- 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)
--
-- Describes an AppImageConfig.
module Amazonka.SageMaker.DescribeAppImageConfig
  ( -- * Creating a Request
    DescribeAppImageConfig (..),
    newDescribeAppImageConfig,

    -- * Request Lenses
    describeAppImageConfig_appImageConfigName,

    -- * Destructuring the Response
    DescribeAppImageConfigResponse (..),
    newDescribeAppImageConfigResponse,

    -- * Response Lenses
    describeAppImageConfigResponse_creationTime,
    describeAppImageConfigResponse_appImageConfigName,
    describeAppImageConfigResponse_lastModifiedTime,
    describeAppImageConfigResponse_kernelGatewayImageConfig,
    describeAppImageConfigResponse_appImageConfigArn,
    describeAppImageConfigResponse_httpStatus,
  )
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:/ 'newDescribeAppImageConfig' smart constructor.
data DescribeAppImageConfig = DescribeAppImageConfig'
  { -- | The name of the AppImageConfig to describe.
    DescribeAppImageConfig -> Text
appImageConfigName :: Prelude.Text
  }
  deriving (DescribeAppImageConfig -> DescribeAppImageConfig -> Bool
(DescribeAppImageConfig -> DescribeAppImageConfig -> Bool)
-> (DescribeAppImageConfig -> DescribeAppImageConfig -> Bool)
-> Eq DescribeAppImageConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAppImageConfig -> DescribeAppImageConfig -> Bool
$c/= :: DescribeAppImageConfig -> DescribeAppImageConfig -> Bool
== :: DescribeAppImageConfig -> DescribeAppImageConfig -> Bool
$c== :: DescribeAppImageConfig -> DescribeAppImageConfig -> Bool
Prelude.Eq, ReadPrec [DescribeAppImageConfig]
ReadPrec DescribeAppImageConfig
Int -> ReadS DescribeAppImageConfig
ReadS [DescribeAppImageConfig]
(Int -> ReadS DescribeAppImageConfig)
-> ReadS [DescribeAppImageConfig]
-> ReadPrec DescribeAppImageConfig
-> ReadPrec [DescribeAppImageConfig]
-> Read DescribeAppImageConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAppImageConfig]
$creadListPrec :: ReadPrec [DescribeAppImageConfig]
readPrec :: ReadPrec DescribeAppImageConfig
$creadPrec :: ReadPrec DescribeAppImageConfig
readList :: ReadS [DescribeAppImageConfig]
$creadList :: ReadS [DescribeAppImageConfig]
readsPrec :: Int -> ReadS DescribeAppImageConfig
$creadsPrec :: Int -> ReadS DescribeAppImageConfig
Prelude.Read, Int -> DescribeAppImageConfig -> ShowS
[DescribeAppImageConfig] -> ShowS
DescribeAppImageConfig -> String
(Int -> DescribeAppImageConfig -> ShowS)
-> (DescribeAppImageConfig -> String)
-> ([DescribeAppImageConfig] -> ShowS)
-> Show DescribeAppImageConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAppImageConfig] -> ShowS
$cshowList :: [DescribeAppImageConfig] -> ShowS
show :: DescribeAppImageConfig -> String
$cshow :: DescribeAppImageConfig -> String
showsPrec :: Int -> DescribeAppImageConfig -> ShowS
$cshowsPrec :: Int -> DescribeAppImageConfig -> ShowS
Prelude.Show, (forall x. DescribeAppImageConfig -> Rep DescribeAppImageConfig x)
-> (forall x.
    Rep DescribeAppImageConfig x -> DescribeAppImageConfig)
-> Generic DescribeAppImageConfig
forall x. Rep DescribeAppImageConfig x -> DescribeAppImageConfig
forall x. DescribeAppImageConfig -> Rep DescribeAppImageConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAppImageConfig x -> DescribeAppImageConfig
$cfrom :: forall x. DescribeAppImageConfig -> Rep DescribeAppImageConfig x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAppImageConfig' 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:
--
-- 'appImageConfigName', 'describeAppImageConfig_appImageConfigName' - The name of the AppImageConfig to describe.
newDescribeAppImageConfig ::
  -- | 'appImageConfigName'
  Prelude.Text ->
  DescribeAppImageConfig
newDescribeAppImageConfig :: Text -> DescribeAppImageConfig
newDescribeAppImageConfig Text
pAppImageConfigName_ =
  DescribeAppImageConfig' :: Text -> DescribeAppImageConfig
DescribeAppImageConfig'
    { $sel:appImageConfigName:DescribeAppImageConfig' :: Text
appImageConfigName =
        Text
pAppImageConfigName_
    }

-- | The name of the AppImageConfig to describe.
describeAppImageConfig_appImageConfigName :: Lens.Lens' DescribeAppImageConfig Prelude.Text
describeAppImageConfig_appImageConfigName :: (Text -> f Text)
-> DescribeAppImageConfig -> f DescribeAppImageConfig
describeAppImageConfig_appImageConfigName = (DescribeAppImageConfig -> Text)
-> (DescribeAppImageConfig -> Text -> DescribeAppImageConfig)
-> Lens DescribeAppImageConfig DescribeAppImageConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfig' {Text
appImageConfigName :: Text
$sel:appImageConfigName:DescribeAppImageConfig' :: DescribeAppImageConfig -> Text
appImageConfigName} -> Text
appImageConfigName) (\s :: DescribeAppImageConfig
s@DescribeAppImageConfig' {} Text
a -> DescribeAppImageConfig
s {$sel:appImageConfigName:DescribeAppImageConfig' :: Text
appImageConfigName = Text
a} :: DescribeAppImageConfig)

instance Core.AWSRequest DescribeAppImageConfig where
  type
    AWSResponse DescribeAppImageConfig =
      DescribeAppImageConfigResponse
  request :: DescribeAppImageConfig -> Request DescribeAppImageConfig
request = Service -> DescribeAppImageConfig -> Request DescribeAppImageConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAppImageConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAppImageConfig)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeAppImageConfig))
-> Logger
-> Service
-> Proxy DescribeAppImageConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAppImageConfig)))
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 POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe KernelGatewayImageConfig
-> Maybe Text
-> Int
-> DescribeAppImageConfigResponse
DescribeAppImageConfigResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe KernelGatewayImageConfig
 -> Maybe Text
 -> Int
 -> DescribeAppImageConfigResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe KernelGatewayImageConfig
      -> Maybe Text
      -> Int
      -> DescribeAppImageConfigResponse)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe KernelGatewayImageConfig
   -> Maybe Text
   -> Int
   -> DescribeAppImageConfigResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe KernelGatewayImageConfig
      -> Maybe Text
      -> Int
      -> DescribeAppImageConfigResponse)
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
"AppImageConfigName")
            Either
  String
  (Maybe POSIX
   -> Maybe KernelGatewayImageConfig
   -> Maybe Text
   -> Int
   -> DescribeAppImageConfigResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe KernelGatewayImageConfig
      -> Maybe Text -> Int -> DescribeAppImageConfigResponse)
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 KernelGatewayImageConfig
   -> Maybe Text -> Int -> DescribeAppImageConfigResponse)
-> Either String (Maybe KernelGatewayImageConfig)
-> Either
     String (Maybe Text -> Int -> DescribeAppImageConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe KernelGatewayImageConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"KernelGatewayImageConfig")
            Either String (Maybe Text -> Int -> DescribeAppImageConfigResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeAppImageConfigResponse)
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
"AppImageConfigArn")
            Either String (Int -> DescribeAppImageConfigResponse)
-> Either String Int
-> Either String DescribeAppImageConfigResponse
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))
      )

instance Prelude.Hashable DescribeAppImageConfig

instance Prelude.NFData DescribeAppImageConfig

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

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

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

-- | /See:/ 'newDescribeAppImageConfigResponse' smart constructor.
data DescribeAppImageConfigResponse = DescribeAppImageConfigResponse'
  { -- | When the AppImageConfig was created.
    DescribeAppImageConfigResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the AppImageConfig.
    DescribeAppImageConfigResponse -> Maybe Text
appImageConfigName :: Prelude.Maybe Prelude.Text,
    -- | When the AppImageConfig was last modified.
    DescribeAppImageConfigResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The configuration of a KernelGateway app.
    DescribeAppImageConfigResponse -> Maybe KernelGatewayImageConfig
kernelGatewayImageConfig :: Prelude.Maybe KernelGatewayImageConfig,
    -- | The Amazon Resource Name (ARN) of the AppImageConfig.
    DescribeAppImageConfigResponse -> Maybe Text
appImageConfigArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeAppImageConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAppImageConfigResponse
-> DescribeAppImageConfigResponse -> Bool
(DescribeAppImageConfigResponse
 -> DescribeAppImageConfigResponse -> Bool)
-> (DescribeAppImageConfigResponse
    -> DescribeAppImageConfigResponse -> Bool)
-> Eq DescribeAppImageConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAppImageConfigResponse
-> DescribeAppImageConfigResponse -> Bool
$c/= :: DescribeAppImageConfigResponse
-> DescribeAppImageConfigResponse -> Bool
== :: DescribeAppImageConfigResponse
-> DescribeAppImageConfigResponse -> Bool
$c== :: DescribeAppImageConfigResponse
-> DescribeAppImageConfigResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAppImageConfigResponse]
ReadPrec DescribeAppImageConfigResponse
Int -> ReadS DescribeAppImageConfigResponse
ReadS [DescribeAppImageConfigResponse]
(Int -> ReadS DescribeAppImageConfigResponse)
-> ReadS [DescribeAppImageConfigResponse]
-> ReadPrec DescribeAppImageConfigResponse
-> ReadPrec [DescribeAppImageConfigResponse]
-> Read DescribeAppImageConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAppImageConfigResponse]
$creadListPrec :: ReadPrec [DescribeAppImageConfigResponse]
readPrec :: ReadPrec DescribeAppImageConfigResponse
$creadPrec :: ReadPrec DescribeAppImageConfigResponse
readList :: ReadS [DescribeAppImageConfigResponse]
$creadList :: ReadS [DescribeAppImageConfigResponse]
readsPrec :: Int -> ReadS DescribeAppImageConfigResponse
$creadsPrec :: Int -> ReadS DescribeAppImageConfigResponse
Prelude.Read, Int -> DescribeAppImageConfigResponse -> ShowS
[DescribeAppImageConfigResponse] -> ShowS
DescribeAppImageConfigResponse -> String
(Int -> DescribeAppImageConfigResponse -> ShowS)
-> (DescribeAppImageConfigResponse -> String)
-> ([DescribeAppImageConfigResponse] -> ShowS)
-> Show DescribeAppImageConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAppImageConfigResponse] -> ShowS
$cshowList :: [DescribeAppImageConfigResponse] -> ShowS
show :: DescribeAppImageConfigResponse -> String
$cshow :: DescribeAppImageConfigResponse -> String
showsPrec :: Int -> DescribeAppImageConfigResponse -> ShowS
$cshowsPrec :: Int -> DescribeAppImageConfigResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAppImageConfigResponse
 -> Rep DescribeAppImageConfigResponse x)
-> (forall x.
    Rep DescribeAppImageConfigResponse x
    -> DescribeAppImageConfigResponse)
-> Generic DescribeAppImageConfigResponse
forall x.
Rep DescribeAppImageConfigResponse x
-> DescribeAppImageConfigResponse
forall x.
DescribeAppImageConfigResponse
-> Rep DescribeAppImageConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAppImageConfigResponse x
-> DescribeAppImageConfigResponse
$cfrom :: forall x.
DescribeAppImageConfigResponse
-> Rep DescribeAppImageConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAppImageConfigResponse' 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:
--
-- 'creationTime', 'describeAppImageConfigResponse_creationTime' - When the AppImageConfig was created.
--
-- 'appImageConfigName', 'describeAppImageConfigResponse_appImageConfigName' - The name of the AppImageConfig.
--
-- 'lastModifiedTime', 'describeAppImageConfigResponse_lastModifiedTime' - When the AppImageConfig was last modified.
--
-- 'kernelGatewayImageConfig', 'describeAppImageConfigResponse_kernelGatewayImageConfig' - The configuration of a KernelGateway app.
--
-- 'appImageConfigArn', 'describeAppImageConfigResponse_appImageConfigArn' - The Amazon Resource Name (ARN) of the AppImageConfig.
--
-- 'httpStatus', 'describeAppImageConfigResponse_httpStatus' - The response's http status code.
newDescribeAppImageConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAppImageConfigResponse
newDescribeAppImageConfigResponse :: Int -> DescribeAppImageConfigResponse
newDescribeAppImageConfigResponse Int
pHttpStatus_ =
  DescribeAppImageConfigResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe KernelGatewayImageConfig
-> Maybe Text
-> Int
-> DescribeAppImageConfigResponse
DescribeAppImageConfigResponse'
    { $sel:creationTime:DescribeAppImageConfigResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:appImageConfigName:DescribeAppImageConfigResponse' :: Maybe Text
appImageConfigName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeAppImageConfigResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:kernelGatewayImageConfig:DescribeAppImageConfigResponse' :: Maybe KernelGatewayImageConfig
kernelGatewayImageConfig = Maybe KernelGatewayImageConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:appImageConfigArn:DescribeAppImageConfigResponse' :: Maybe Text
appImageConfigArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeAppImageConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | When the AppImageConfig was created.
describeAppImageConfigResponse_creationTime :: Lens.Lens' DescribeAppImageConfigResponse (Prelude.Maybe Prelude.UTCTime)
describeAppImageConfigResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
describeAppImageConfigResponse_creationTime = (DescribeAppImageConfigResponse -> Maybe POSIX)
-> (DescribeAppImageConfigResponse
    -> Maybe POSIX -> DescribeAppImageConfigResponse)
-> Lens
     DescribeAppImageConfigResponse
     DescribeAppImageConfigResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfigResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeAppImageConfigResponse' :: DescribeAppImageConfigResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeAppImageConfigResponse
s@DescribeAppImageConfigResponse' {} Maybe POSIX
a -> DescribeAppImageConfigResponse
s {$sel:creationTime:DescribeAppImageConfigResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeAppImageConfigResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeAppImageConfigResponse
 -> f DescribeAppImageConfigResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
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

-- | The name of the AppImageConfig.
describeAppImageConfigResponse_appImageConfigName :: Lens.Lens' DescribeAppImageConfigResponse (Prelude.Maybe Prelude.Text)
describeAppImageConfigResponse_appImageConfigName :: (Maybe Text -> f (Maybe Text))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
describeAppImageConfigResponse_appImageConfigName = (DescribeAppImageConfigResponse -> Maybe Text)
-> (DescribeAppImageConfigResponse
    -> Maybe Text -> DescribeAppImageConfigResponse)
-> Lens
     DescribeAppImageConfigResponse
     DescribeAppImageConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfigResponse' {Maybe Text
appImageConfigName :: Maybe Text
$sel:appImageConfigName:DescribeAppImageConfigResponse' :: DescribeAppImageConfigResponse -> Maybe Text
appImageConfigName} -> Maybe Text
appImageConfigName) (\s :: DescribeAppImageConfigResponse
s@DescribeAppImageConfigResponse' {} Maybe Text
a -> DescribeAppImageConfigResponse
s {$sel:appImageConfigName:DescribeAppImageConfigResponse' :: Maybe Text
appImageConfigName = Maybe Text
a} :: DescribeAppImageConfigResponse)

-- | When the AppImageConfig was last modified.
describeAppImageConfigResponse_lastModifiedTime :: Lens.Lens' DescribeAppImageConfigResponse (Prelude.Maybe Prelude.UTCTime)
describeAppImageConfigResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
describeAppImageConfigResponse_lastModifiedTime = (DescribeAppImageConfigResponse -> Maybe POSIX)
-> (DescribeAppImageConfigResponse
    -> Maybe POSIX -> DescribeAppImageConfigResponse)
-> Lens
     DescribeAppImageConfigResponse
     DescribeAppImageConfigResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfigResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeAppImageConfigResponse' :: DescribeAppImageConfigResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeAppImageConfigResponse
s@DescribeAppImageConfigResponse' {} Maybe POSIX
a -> DescribeAppImageConfigResponse
s {$sel:lastModifiedTime:DescribeAppImageConfigResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeAppImageConfigResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeAppImageConfigResponse
 -> f DescribeAppImageConfigResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
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

-- | The configuration of a KernelGateway app.
describeAppImageConfigResponse_kernelGatewayImageConfig :: Lens.Lens' DescribeAppImageConfigResponse (Prelude.Maybe KernelGatewayImageConfig)
describeAppImageConfigResponse_kernelGatewayImageConfig :: (Maybe KernelGatewayImageConfig
 -> f (Maybe KernelGatewayImageConfig))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
describeAppImageConfigResponse_kernelGatewayImageConfig = (DescribeAppImageConfigResponse -> Maybe KernelGatewayImageConfig)
-> (DescribeAppImageConfigResponse
    -> Maybe KernelGatewayImageConfig
    -> DescribeAppImageConfigResponse)
-> Lens
     DescribeAppImageConfigResponse
     DescribeAppImageConfigResponse
     (Maybe KernelGatewayImageConfig)
     (Maybe KernelGatewayImageConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfigResponse' {Maybe KernelGatewayImageConfig
kernelGatewayImageConfig :: Maybe KernelGatewayImageConfig
$sel:kernelGatewayImageConfig:DescribeAppImageConfigResponse' :: DescribeAppImageConfigResponse -> Maybe KernelGatewayImageConfig
kernelGatewayImageConfig} -> Maybe KernelGatewayImageConfig
kernelGatewayImageConfig) (\s :: DescribeAppImageConfigResponse
s@DescribeAppImageConfigResponse' {} Maybe KernelGatewayImageConfig
a -> DescribeAppImageConfigResponse
s {$sel:kernelGatewayImageConfig:DescribeAppImageConfigResponse' :: Maybe KernelGatewayImageConfig
kernelGatewayImageConfig = Maybe KernelGatewayImageConfig
a} :: DescribeAppImageConfigResponse)

-- | The Amazon Resource Name (ARN) of the AppImageConfig.
describeAppImageConfigResponse_appImageConfigArn :: Lens.Lens' DescribeAppImageConfigResponse (Prelude.Maybe Prelude.Text)
describeAppImageConfigResponse_appImageConfigArn :: (Maybe Text -> f (Maybe Text))
-> DescribeAppImageConfigResponse
-> f DescribeAppImageConfigResponse
describeAppImageConfigResponse_appImageConfigArn = (DescribeAppImageConfigResponse -> Maybe Text)
-> (DescribeAppImageConfigResponse
    -> Maybe Text -> DescribeAppImageConfigResponse)
-> Lens
     DescribeAppImageConfigResponse
     DescribeAppImageConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAppImageConfigResponse' {Maybe Text
appImageConfigArn :: Maybe Text
$sel:appImageConfigArn:DescribeAppImageConfigResponse' :: DescribeAppImageConfigResponse -> Maybe Text
appImageConfigArn} -> Maybe Text
appImageConfigArn) (\s :: DescribeAppImageConfigResponse
s@DescribeAppImageConfigResponse' {} Maybe Text
a -> DescribeAppImageConfigResponse
s {$sel:appImageConfigArn:DescribeAppImageConfigResponse' :: Maybe Text
appImageConfigArn = Maybe Text
a} :: DescribeAppImageConfigResponse)

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

instance
  Prelude.NFData
    DescribeAppImageConfigResponse