{-# 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.DescribeNotebookInstanceLifecycleConfig
-- 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 a notebook instance lifecycle configuration.
--
-- For information about notebook instance lifestyle configurations, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html Step 2.1: (Optional) Customize a Notebook Instance>.
module Amazonka.SageMaker.DescribeNotebookInstanceLifecycleConfig
  ( -- * Creating a Request
    DescribeNotebookInstanceLifecycleConfig (..),
    newDescribeNotebookInstanceLifecycleConfig,

    -- * Request Lenses
    describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName,

    -- * Destructuring the Response
    DescribeNotebookInstanceLifecycleConfigResponse (..),
    newDescribeNotebookInstanceLifecycleConfigResponse,

    -- * Response Lenses
    describeNotebookInstanceLifecycleConfigResponse_creationTime,
    describeNotebookInstanceLifecycleConfigResponse_onCreate,
    describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime,
    describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn,
    describeNotebookInstanceLifecycleConfigResponse_onStart,
    describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName,
    describeNotebookInstanceLifecycleConfigResponse_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:/ 'newDescribeNotebookInstanceLifecycleConfig' smart constructor.
data DescribeNotebookInstanceLifecycleConfig = DescribeNotebookInstanceLifecycleConfig'
  { -- | The name of the lifecycle configuration to describe.
    DescribeNotebookInstanceLifecycleConfig -> Text
notebookInstanceLifecycleConfigName :: Prelude.Text
  }
  deriving (DescribeNotebookInstanceLifecycleConfig
-> DescribeNotebookInstanceLifecycleConfig -> Bool
(DescribeNotebookInstanceLifecycleConfig
 -> DescribeNotebookInstanceLifecycleConfig -> Bool)
-> (DescribeNotebookInstanceLifecycleConfig
    -> DescribeNotebookInstanceLifecycleConfig -> Bool)
-> Eq DescribeNotebookInstanceLifecycleConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNotebookInstanceLifecycleConfig
-> DescribeNotebookInstanceLifecycleConfig -> Bool
$c/= :: DescribeNotebookInstanceLifecycleConfig
-> DescribeNotebookInstanceLifecycleConfig -> Bool
== :: DescribeNotebookInstanceLifecycleConfig
-> DescribeNotebookInstanceLifecycleConfig -> Bool
$c== :: DescribeNotebookInstanceLifecycleConfig
-> DescribeNotebookInstanceLifecycleConfig -> Bool
Prelude.Eq, ReadPrec [DescribeNotebookInstanceLifecycleConfig]
ReadPrec DescribeNotebookInstanceLifecycleConfig
Int -> ReadS DescribeNotebookInstanceLifecycleConfig
ReadS [DescribeNotebookInstanceLifecycleConfig]
(Int -> ReadS DescribeNotebookInstanceLifecycleConfig)
-> ReadS [DescribeNotebookInstanceLifecycleConfig]
-> ReadPrec DescribeNotebookInstanceLifecycleConfig
-> ReadPrec [DescribeNotebookInstanceLifecycleConfig]
-> Read DescribeNotebookInstanceLifecycleConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNotebookInstanceLifecycleConfig]
$creadListPrec :: ReadPrec [DescribeNotebookInstanceLifecycleConfig]
readPrec :: ReadPrec DescribeNotebookInstanceLifecycleConfig
$creadPrec :: ReadPrec DescribeNotebookInstanceLifecycleConfig
readList :: ReadS [DescribeNotebookInstanceLifecycleConfig]
$creadList :: ReadS [DescribeNotebookInstanceLifecycleConfig]
readsPrec :: Int -> ReadS DescribeNotebookInstanceLifecycleConfig
$creadsPrec :: Int -> ReadS DescribeNotebookInstanceLifecycleConfig
Prelude.Read, Int -> DescribeNotebookInstanceLifecycleConfig -> ShowS
[DescribeNotebookInstanceLifecycleConfig] -> ShowS
DescribeNotebookInstanceLifecycleConfig -> String
(Int -> DescribeNotebookInstanceLifecycleConfig -> ShowS)
-> (DescribeNotebookInstanceLifecycleConfig -> String)
-> ([DescribeNotebookInstanceLifecycleConfig] -> ShowS)
-> Show DescribeNotebookInstanceLifecycleConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNotebookInstanceLifecycleConfig] -> ShowS
$cshowList :: [DescribeNotebookInstanceLifecycleConfig] -> ShowS
show :: DescribeNotebookInstanceLifecycleConfig -> String
$cshow :: DescribeNotebookInstanceLifecycleConfig -> String
showsPrec :: Int -> DescribeNotebookInstanceLifecycleConfig -> ShowS
$cshowsPrec :: Int -> DescribeNotebookInstanceLifecycleConfig -> ShowS
Prelude.Show, (forall x.
 DescribeNotebookInstanceLifecycleConfig
 -> Rep DescribeNotebookInstanceLifecycleConfig x)
-> (forall x.
    Rep DescribeNotebookInstanceLifecycleConfig x
    -> DescribeNotebookInstanceLifecycleConfig)
-> Generic DescribeNotebookInstanceLifecycleConfig
forall x.
Rep DescribeNotebookInstanceLifecycleConfig x
-> DescribeNotebookInstanceLifecycleConfig
forall x.
DescribeNotebookInstanceLifecycleConfig
-> Rep DescribeNotebookInstanceLifecycleConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNotebookInstanceLifecycleConfig x
-> DescribeNotebookInstanceLifecycleConfig
$cfrom :: forall x.
DescribeNotebookInstanceLifecycleConfig
-> Rep DescribeNotebookInstanceLifecycleConfig x
Prelude.Generic)

-- |
-- Create a value of 'DescribeNotebookInstanceLifecycleConfig' 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:
--
-- 'notebookInstanceLifecycleConfigName', 'describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName' - The name of the lifecycle configuration to describe.
newDescribeNotebookInstanceLifecycleConfig ::
  -- | 'notebookInstanceLifecycleConfigName'
  Prelude.Text ->
  DescribeNotebookInstanceLifecycleConfig
newDescribeNotebookInstanceLifecycleConfig :: Text -> DescribeNotebookInstanceLifecycleConfig
newDescribeNotebookInstanceLifecycleConfig
  Text
pNotebookInstanceLifecycleConfigName_ =
    DescribeNotebookInstanceLifecycleConfig' :: Text -> DescribeNotebookInstanceLifecycleConfig
DescribeNotebookInstanceLifecycleConfig'
      { $sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: Text
notebookInstanceLifecycleConfigName =
          Text
pNotebookInstanceLifecycleConfigName_
      }

-- | The name of the lifecycle configuration to describe.
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens.Lens' DescribeNotebookInstanceLifecycleConfig Prelude.Text
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: (Text -> f Text)
-> DescribeNotebookInstanceLifecycleConfig
-> f DescribeNotebookInstanceLifecycleConfig
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName = (DescribeNotebookInstanceLifecycleConfig -> Text)
-> (DescribeNotebookInstanceLifecycleConfig
    -> Text -> DescribeNotebookInstanceLifecycleConfig)
-> Lens
     DescribeNotebookInstanceLifecycleConfig
     DescribeNotebookInstanceLifecycleConfig
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfig' {Text
notebookInstanceLifecycleConfigName :: Text
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: DescribeNotebookInstanceLifecycleConfig -> Text
notebookInstanceLifecycleConfigName} -> Text
notebookInstanceLifecycleConfigName) (\s :: DescribeNotebookInstanceLifecycleConfig
s@DescribeNotebookInstanceLifecycleConfig' {} Text
a -> DescribeNotebookInstanceLifecycleConfig
s {$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: Text
notebookInstanceLifecycleConfigName = Text
a} :: DescribeNotebookInstanceLifecycleConfig)

instance
  Core.AWSRequest
    DescribeNotebookInstanceLifecycleConfig
  where
  type
    AWSResponse
      DescribeNotebookInstanceLifecycleConfig =
      DescribeNotebookInstanceLifecycleConfigResponse
  request :: DescribeNotebookInstanceLifecycleConfig
-> Request DescribeNotebookInstanceLifecycleConfig
request = Service
-> DescribeNotebookInstanceLifecycleConfig
-> Request DescribeNotebookInstanceLifecycleConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeNotebookInstanceLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeNotebookInstanceLifecycleConfig)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeNotebookInstanceLifecycleConfig))
-> Logger
-> Service
-> Proxy DescribeNotebookInstanceLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeNotebookInstanceLifecycleConfig)))
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 [NotebookInstanceLifecycleHook]
-> Maybe POSIX
-> Maybe Text
-> Maybe [NotebookInstanceLifecycleHook]
-> Maybe Text
-> Int
-> DescribeNotebookInstanceLifecycleConfigResponse
DescribeNotebookInstanceLifecycleConfigResponse'
            (Maybe POSIX
 -> Maybe [NotebookInstanceLifecycleHook]
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe [NotebookInstanceLifecycleHook]
 -> Maybe Text
 -> Int
 -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe [NotebookInstanceLifecycleHook]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe [NotebookInstanceLifecycleHook]
      -> Maybe Text
      -> Int
      -> DescribeNotebookInstanceLifecycleConfigResponse)
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 [NotebookInstanceLifecycleHook]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe [NotebookInstanceLifecycleHook]
   -> Maybe Text
   -> Int
   -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe [NotebookInstanceLifecycleHook])
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe [NotebookInstanceLifecycleHook]
      -> Maybe Text
      -> Int
      -> DescribeNotebookInstanceLifecycleConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [NotebookInstanceLifecycleHook]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OnCreate" Either String (Maybe (Maybe [NotebookInstanceLifecycleHook]))
-> Maybe [NotebookInstanceLifecycleHook]
-> Either String (Maybe [NotebookInstanceLifecycleHook])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [NotebookInstanceLifecycleHook]
forall a. Monoid a => a
Prelude.mempty)
              Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe [NotebookInstanceLifecycleHook]
   -> Maybe Text
   -> Int
   -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe [NotebookInstanceLifecycleHook]
      -> Maybe Text
      -> Int
      -> DescribeNotebookInstanceLifecycleConfigResponse)
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 Text
   -> Maybe [NotebookInstanceLifecycleHook]
   -> Maybe Text
   -> Int
   -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [NotebookInstanceLifecycleHook]
      -> Maybe Text
      -> Int
      -> DescribeNotebookInstanceLifecycleConfigResponse)
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
"NotebookInstanceLifecycleConfigArn")
              Either
  String
  (Maybe [NotebookInstanceLifecycleHook]
   -> Maybe Text
   -> Int
   -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe [NotebookInstanceLifecycleHook])
-> Either
     String
     (Maybe Text
      -> Int -> DescribeNotebookInstanceLifecycleConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [NotebookInstanceLifecycleHook]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OnStart" Either String (Maybe (Maybe [NotebookInstanceLifecycleHook]))
-> Maybe [NotebookInstanceLifecycleHook]
-> Either String (Maybe [NotebookInstanceLifecycleHook])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [NotebookInstanceLifecycleHook]
forall a. Monoid a => a
Prelude.mempty)
              Either
  String
  (Maybe Text
   -> Int -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> DescribeNotebookInstanceLifecycleConfigResponse)
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
"NotebookInstanceLifecycleConfigName")
              Either
  String (Int -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Either String Int
-> Either String DescribeNotebookInstanceLifecycleConfigResponse
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
    DescribeNotebookInstanceLifecycleConfig

instance
  Prelude.NFData
    DescribeNotebookInstanceLifecycleConfig

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

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

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

-- | /See:/ 'newDescribeNotebookInstanceLifecycleConfigResponse' smart constructor.
data DescribeNotebookInstanceLifecycleConfigResponse = DescribeNotebookInstanceLifecycleConfigResponse'
  { -- | A timestamp that tells when the lifecycle configuration was created.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The shell script that runs only once, when you create a notebook
    -- instance.
    DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
onCreate :: Prelude.Maybe [NotebookInstanceLifecycleHook],
    -- | A timestamp that tells when the lifecycle configuration was last
    -- modified.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the lifecycle configuration.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigArn :: Prelude.Maybe Prelude.Text,
    -- | The shell script that runs every time you start a notebook instance,
    -- including when you create the notebook instance.
    DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
onStart :: Prelude.Maybe [NotebookInstanceLifecycleHook],
    -- | The name of the lifecycle configuration.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeNotebookInstanceLifecycleConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
(DescribeNotebookInstanceLifecycleConfigResponse
 -> DescribeNotebookInstanceLifecycleConfigResponse -> Bool)
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> DescribeNotebookInstanceLifecycleConfigResponse -> Bool)
-> Eq DescribeNotebookInstanceLifecycleConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
$c/= :: DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
== :: DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
$c== :: DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
Prelude.Eq, ReadPrec [DescribeNotebookInstanceLifecycleConfigResponse]
ReadPrec DescribeNotebookInstanceLifecycleConfigResponse
Int -> ReadS DescribeNotebookInstanceLifecycleConfigResponse
ReadS [DescribeNotebookInstanceLifecycleConfigResponse]
(Int -> ReadS DescribeNotebookInstanceLifecycleConfigResponse)
-> ReadS [DescribeNotebookInstanceLifecycleConfigResponse]
-> ReadPrec DescribeNotebookInstanceLifecycleConfigResponse
-> ReadPrec [DescribeNotebookInstanceLifecycleConfigResponse]
-> Read DescribeNotebookInstanceLifecycleConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNotebookInstanceLifecycleConfigResponse]
$creadListPrec :: ReadPrec [DescribeNotebookInstanceLifecycleConfigResponse]
readPrec :: ReadPrec DescribeNotebookInstanceLifecycleConfigResponse
$creadPrec :: ReadPrec DescribeNotebookInstanceLifecycleConfigResponse
readList :: ReadS [DescribeNotebookInstanceLifecycleConfigResponse]
$creadList :: ReadS [DescribeNotebookInstanceLifecycleConfigResponse]
readsPrec :: Int -> ReadS DescribeNotebookInstanceLifecycleConfigResponse
$creadsPrec :: Int -> ReadS DescribeNotebookInstanceLifecycleConfigResponse
Prelude.Read, Int -> DescribeNotebookInstanceLifecycleConfigResponse -> ShowS
[DescribeNotebookInstanceLifecycleConfigResponse] -> ShowS
DescribeNotebookInstanceLifecycleConfigResponse -> String
(Int -> DescribeNotebookInstanceLifecycleConfigResponse -> ShowS)
-> (DescribeNotebookInstanceLifecycleConfigResponse -> String)
-> ([DescribeNotebookInstanceLifecycleConfigResponse] -> ShowS)
-> Show DescribeNotebookInstanceLifecycleConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNotebookInstanceLifecycleConfigResponse] -> ShowS
$cshowList :: [DescribeNotebookInstanceLifecycleConfigResponse] -> ShowS
show :: DescribeNotebookInstanceLifecycleConfigResponse -> String
$cshow :: DescribeNotebookInstanceLifecycleConfigResponse -> String
showsPrec :: Int -> DescribeNotebookInstanceLifecycleConfigResponse -> ShowS
$cshowsPrec :: Int -> DescribeNotebookInstanceLifecycleConfigResponse -> ShowS
Prelude.Show, (forall x.
 DescribeNotebookInstanceLifecycleConfigResponse
 -> Rep DescribeNotebookInstanceLifecycleConfigResponse x)
-> (forall x.
    Rep DescribeNotebookInstanceLifecycleConfigResponse x
    -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Generic DescribeNotebookInstanceLifecycleConfigResponse
forall x.
Rep DescribeNotebookInstanceLifecycleConfigResponse x
-> DescribeNotebookInstanceLifecycleConfigResponse
forall x.
DescribeNotebookInstanceLifecycleConfigResponse
-> Rep DescribeNotebookInstanceLifecycleConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNotebookInstanceLifecycleConfigResponse x
-> DescribeNotebookInstanceLifecycleConfigResponse
$cfrom :: forall x.
DescribeNotebookInstanceLifecycleConfigResponse
-> Rep DescribeNotebookInstanceLifecycleConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeNotebookInstanceLifecycleConfigResponse' 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', 'describeNotebookInstanceLifecycleConfigResponse_creationTime' - A timestamp that tells when the lifecycle configuration was created.
--
-- 'onCreate', 'describeNotebookInstanceLifecycleConfigResponse_onCreate' - The shell script that runs only once, when you create a notebook
-- instance.
--
-- 'lastModifiedTime', 'describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime' - A timestamp that tells when the lifecycle configuration was last
-- modified.
--
-- 'notebookInstanceLifecycleConfigArn', 'describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn' - The Amazon Resource Name (ARN) of the lifecycle configuration.
--
-- 'onStart', 'describeNotebookInstanceLifecycleConfigResponse_onStart' - The shell script that runs every time you start a notebook instance,
-- including when you create the notebook instance.
--
-- 'notebookInstanceLifecycleConfigName', 'describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName' - The name of the lifecycle configuration.
--
-- 'httpStatus', 'describeNotebookInstanceLifecycleConfigResponse_httpStatus' - The response's http status code.
newDescribeNotebookInstanceLifecycleConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeNotebookInstanceLifecycleConfigResponse
newDescribeNotebookInstanceLifecycleConfigResponse :: Int -> DescribeNotebookInstanceLifecycleConfigResponse
newDescribeNotebookInstanceLifecycleConfigResponse
  Int
pHttpStatus_ =
    DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
-> Maybe [NotebookInstanceLifecycleHook]
-> Maybe POSIX
-> Maybe Text
-> Maybe [NotebookInstanceLifecycleHook]
-> Maybe Text
-> Int
-> DescribeNotebookInstanceLifecycleConfigResponse
DescribeNotebookInstanceLifecycleConfigResponse'
      { $sel:creationTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
creationTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:onCreate:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onCreate = Maybe [NotebookInstanceLifecycleHook]
forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
lastModifiedTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceLifecycleConfigArn:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigArn =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:onStart:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onStart = Maybe [NotebookInstanceLifecycleHook]
forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeNotebookInstanceLifecycleConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A timestamp that tells when the lifecycle configuration was created.
describeNotebookInstanceLifecycleConfigResponse_creationTime :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.UTCTime)
describeNotebookInstanceLifecycleConfigResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_creationTime = (DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX)
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe POSIX -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe POSIX
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:creationTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeNotebookInstanceLifecycleConfigResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeNotebookInstanceLifecycleConfigResponse
 -> f DescribeNotebookInstanceLifecycleConfigResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
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 shell script that runs only once, when you create a notebook
-- instance.
describeNotebookInstanceLifecycleConfigResponse_onCreate :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe [NotebookInstanceLifecycleHook])
describeNotebookInstanceLifecycleConfigResponse_onCreate :: (Maybe [NotebookInstanceLifecycleHook]
 -> f (Maybe [NotebookInstanceLifecycleHook]))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_onCreate = (DescribeNotebookInstanceLifecycleConfigResponse
 -> Maybe [NotebookInstanceLifecycleHook])
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe [NotebookInstanceLifecycleHook]
    -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe [NotebookInstanceLifecycleHook]
onCreate :: Maybe [NotebookInstanceLifecycleHook]
$sel:onCreate:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
onCreate} -> Maybe [NotebookInstanceLifecycleHook]
onCreate) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe [NotebookInstanceLifecycleHook]
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:onCreate:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onCreate = Maybe [NotebookInstanceLifecycleHook]
a} :: DescribeNotebookInstanceLifecycleConfigResponse) ((Maybe [NotebookInstanceLifecycleHook]
  -> f (Maybe [NotebookInstanceLifecycleHook]))
 -> DescribeNotebookInstanceLifecycleConfigResponse
 -> f DescribeNotebookInstanceLifecycleConfigResponse)
-> ((Maybe [NotebookInstanceLifecycleHook]
     -> f (Maybe [NotebookInstanceLifecycleHook]))
    -> Maybe [NotebookInstanceLifecycleHook]
    -> f (Maybe [NotebookInstanceLifecycleHook]))
-> (Maybe [NotebookInstanceLifecycleHook]
    -> f (Maybe [NotebookInstanceLifecycleHook]))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
-> Iso
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
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
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A timestamp that tells when the lifecycle configuration was last
-- modified.
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.UTCTime)
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime = (DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX)
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe POSIX -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe POSIX
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:lastModifiedTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeNotebookInstanceLifecycleConfigResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeNotebookInstanceLifecycleConfigResponse
 -> f DescribeNotebookInstanceLifecycleConfigResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
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 Amazon Resource Name (ARN) of the lifecycle configuration.
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: (Maybe Text -> f (Maybe Text))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn = (DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text)
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe Text -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe Text
notebookInstanceLifecycleConfigArn :: Maybe Text
$sel:notebookInstanceLifecycleConfigArn:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigArn} -> Maybe Text
notebookInstanceLifecycleConfigArn) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe Text
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:notebookInstanceLifecycleConfigArn:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigArn = Maybe Text
a} :: DescribeNotebookInstanceLifecycleConfigResponse)

-- | The shell script that runs every time you start a notebook instance,
-- including when you create the notebook instance.
describeNotebookInstanceLifecycleConfigResponse_onStart :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe [NotebookInstanceLifecycleHook])
describeNotebookInstanceLifecycleConfigResponse_onStart :: (Maybe [NotebookInstanceLifecycleHook]
 -> f (Maybe [NotebookInstanceLifecycleHook]))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_onStart = (DescribeNotebookInstanceLifecycleConfigResponse
 -> Maybe [NotebookInstanceLifecycleHook])
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe [NotebookInstanceLifecycleHook]
    -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe [NotebookInstanceLifecycleHook]
onStart :: Maybe [NotebookInstanceLifecycleHook]
$sel:onStart:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
onStart} -> Maybe [NotebookInstanceLifecycleHook]
onStart) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe [NotebookInstanceLifecycleHook]
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:onStart:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onStart = Maybe [NotebookInstanceLifecycleHook]
a} :: DescribeNotebookInstanceLifecycleConfigResponse) ((Maybe [NotebookInstanceLifecycleHook]
  -> f (Maybe [NotebookInstanceLifecycleHook]))
 -> DescribeNotebookInstanceLifecycleConfigResponse
 -> f DescribeNotebookInstanceLifecycleConfigResponse)
-> ((Maybe [NotebookInstanceLifecycleHook]
     -> f (Maybe [NotebookInstanceLifecycleHook]))
    -> Maybe [NotebookInstanceLifecycleHook]
    -> f (Maybe [NotebookInstanceLifecycleHook]))
-> (Maybe [NotebookInstanceLifecycleHook]
    -> f (Maybe [NotebookInstanceLifecycleHook]))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
-> Iso
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
     (Maybe [NotebookInstanceLifecycleHook])
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
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
  [NotebookInstanceLifecycleHook]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the lifecycle configuration.
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName :: (Maybe Text -> f (Maybe Text))
-> DescribeNotebookInstanceLifecycleConfigResponse
-> f DescribeNotebookInstanceLifecycleConfigResponse
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName = (DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text)
-> (DescribeNotebookInstanceLifecycleConfigResponse
    -> Maybe Text -> DescribeNotebookInstanceLifecycleConfigResponse)
-> Lens
     DescribeNotebookInstanceLifecycleConfigResponse
     DescribeNotebookInstanceLifecycleConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNotebookInstanceLifecycleConfigResponse' {Maybe Text
notebookInstanceLifecycleConfigName :: Maybe Text
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigName} -> Maybe Text
notebookInstanceLifecycleConfigName) (\s :: DescribeNotebookInstanceLifecycleConfigResponse
s@DescribeNotebookInstanceLifecycleConfigResponse' {} Maybe Text
a -> DescribeNotebookInstanceLifecycleConfigResponse
s {$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigName = Maybe Text
a} :: DescribeNotebookInstanceLifecycleConfigResponse)

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

instance
  Prelude.NFData
    DescribeNotebookInstanceLifecycleConfigResponse