{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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_lastModifiedTime,
    describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn,
    describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName,
    describeNotebookInstanceLifecycleConfigResponse_onCreate,
    describeNotebookInstanceLifecycleConfigResponse_onStart,
    describeNotebookInstanceLifecycleConfigResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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
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]
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
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.
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'
      { $sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: Text
notebookInstanceLifecycleConfigName =
          Text
pNotebookInstanceLifecycleConfigName_
      }

-- | The name of the lifecycle configuration to describe.
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens.Lens' DescribeNotebookInstanceLifecycleConfig Prelude.Text
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens' DescribeNotebookInstanceLifecycleConfig Text
describeNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName = 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 :: (Service -> Service)
-> DescribeNotebookInstanceLifecycleConfig
-> Request DescribeNotebookInstanceLifecycleConfig
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeNotebookInstanceLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeNotebookInstanceLifecycleConfig)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [NotebookInstanceLifecycleHook]
-> Maybe [NotebookInstanceLifecycleHook]
-> Int
-> DescribeNotebookInstanceLifecycleConfigResponse
DescribeNotebookInstanceLifecycleConfigResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NotebookInstanceLifecycleConfigArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NotebookInstanceLifecycleConfigName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OnCreate" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OnStart" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeNotebookInstanceLifecycleConfig
  where
  hashWithSalt :: Int -> DescribeNotebookInstanceLifecycleConfig -> Int
hashWithSalt
    Int
_salt
    DescribeNotebookInstanceLifecycleConfig' {Text
notebookInstanceLifecycleConfigName :: Text
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: DescribeNotebookInstanceLifecycleConfig -> Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
notebookInstanceLifecycleConfigName

instance
  Prelude.NFData
    DescribeNotebookInstanceLifecycleConfig
  where
  rnf :: DescribeNotebookInstanceLifecycleConfig -> ()
rnf DescribeNotebookInstanceLifecycleConfig' {Text
notebookInstanceLifecycleConfigName :: Text
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: DescribeNotebookInstanceLifecycleConfig -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
notebookInstanceLifecycleConfigName

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

instance
  Data.ToJSON
    DescribeNotebookInstanceLifecycleConfig
  where
  toJSON :: DescribeNotebookInstanceLifecycleConfig -> Value
toJSON DescribeNotebookInstanceLifecycleConfig' {Text
notebookInstanceLifecycleConfigName :: Text
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfig' :: DescribeNotebookInstanceLifecycleConfig -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              ( Key
"NotebookInstanceLifecycleConfigName"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
notebookInstanceLifecycleConfigName
              )
          ]
      )

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

instance
  Data.ToQuery
    DescribeNotebookInstanceLifecycleConfig
  where
  toQuery :: DescribeNotebookInstanceLifecycleConfig -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const 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 Data.POSIX,
    -- | A timestamp that tells when the lifecycle configuration was last
    -- modified.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The Amazon Resource Name (ARN) of the lifecycle configuration.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the lifecycle configuration.
    DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
notebookInstanceLifecycleConfigName :: Prelude.Maybe Prelude.Text,
    -- | The shell script that runs only once, when you create a notebook
    -- instance.
    DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
onCreate :: Prelude.Maybe [NotebookInstanceLifecycleHook],
    -- | 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 response's http status code.
    DescribeNotebookInstanceLifecycleConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeNotebookInstanceLifecycleConfigResponse
-> DescribeNotebookInstanceLifecycleConfigResponse -> Bool
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]
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
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.
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.
--
-- '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.
--
-- 'notebookInstanceLifecycleConfigName', 'describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName' - The name of the lifecycle configuration.
--
-- 'onCreate', 'describeNotebookInstanceLifecycleConfigResponse_onCreate' - The shell script that runs only once, when you create a notebook
-- instance.
--
-- 'onStart', 'describeNotebookInstanceLifecycleConfigResponse_onStart' - The shell script that runs every time you start a notebook instance,
-- including when you create the notebook instance.
--
-- 'httpStatus', 'describeNotebookInstanceLifecycleConfigResponse_httpStatus' - The response's http status code.
newDescribeNotebookInstanceLifecycleConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeNotebookInstanceLifecycleConfigResponse
newDescribeNotebookInstanceLifecycleConfigResponse :: Int -> DescribeNotebookInstanceLifecycleConfigResponse
newDescribeNotebookInstanceLifecycleConfigResponse
  Int
pHttpStatus_ =
    DescribeNotebookInstanceLifecycleConfigResponse'
      { $sel:creationTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
creationTime =
          forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe POSIX
lastModifiedTime =
          forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceLifecycleConfigArn:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigArn =
          forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe Text
notebookInstanceLifecycleConfigName =
          forall a. Maybe a
Prelude.Nothing,
        $sel:onCreate:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onCreate = forall a. Maybe a
Prelude.Nothing,
        $sel:onStart:DescribeNotebookInstanceLifecycleConfigResponse' :: Maybe [NotebookInstanceLifecycleHook]
onStart = 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 :: Lens'
  DescribeNotebookInstanceLifecycleConfigResponse (Maybe UTCTime)
describeNotebookInstanceLifecycleConfigResponse_creationTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A timestamp that tells when the lifecycle configuration was last
-- modified.
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.UTCTime)
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime :: Lens'
  DescribeNotebookInstanceLifecycleConfigResponse (Maybe UTCTime)
describeNotebookInstanceLifecycleConfigResponse_lastModifiedTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The Amazon Resource Name (ARN) of the lifecycle configuration.
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn :: Lens' DescribeNotebookInstanceLifecycleConfigResponse (Maybe Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigArn = 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 name of the lifecycle configuration.
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe Prelude.Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName :: Lens' DescribeNotebookInstanceLifecycleConfigResponse (Maybe Text)
describeNotebookInstanceLifecycleConfigResponse_notebookInstanceLifecycleConfigName = 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 shell script that runs only once, when you create a notebook
-- instance.
describeNotebookInstanceLifecycleConfigResponse_onCreate :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse (Prelude.Maybe [NotebookInstanceLifecycleHook])
describeNotebookInstanceLifecycleConfigResponse_onCreate :: Lens'
  DescribeNotebookInstanceLifecycleConfigResponse
  (Maybe [NotebookInstanceLifecycleHook])
describeNotebookInstanceLifecycleConfigResponse_onCreate = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens'
  DescribeNotebookInstanceLifecycleConfigResponse
  (Maybe [NotebookInstanceLifecycleHook])
describeNotebookInstanceLifecycleConfigResponse_onStart = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeNotebookInstanceLifecycleConfigResponse_httpStatus :: Lens.Lens' DescribeNotebookInstanceLifecycleConfigResponse Prelude.Int
describeNotebookInstanceLifecycleConfigResponse_httpStatus :: Lens' DescribeNotebookInstanceLifecycleConfigResponse Int
describeNotebookInstanceLifecycleConfigResponse_httpStatus = 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
  where
  rnf :: DescribeNotebookInstanceLifecycleConfigResponse -> ()
rnf
    DescribeNotebookInstanceLifecycleConfigResponse' {Int
Maybe [NotebookInstanceLifecycleHook]
Maybe Text
Maybe POSIX
httpStatus :: Int
onStart :: Maybe [NotebookInstanceLifecycleHook]
onCreate :: Maybe [NotebookInstanceLifecycleHook]
notebookInstanceLifecycleConfigName :: Maybe Text
notebookInstanceLifecycleConfigArn :: Maybe Text
lastModifiedTime :: Maybe POSIX
creationTime :: Maybe POSIX
$sel:httpStatus:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Int
$sel:onStart:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
$sel:onCreate:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse
-> Maybe [NotebookInstanceLifecycleHook]
$sel:notebookInstanceLifecycleConfigName:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
$sel:notebookInstanceLifecycleConfigArn:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe Text
$sel:lastModifiedTime:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
$sel:creationTime:DescribeNotebookInstanceLifecycleConfigResponse' :: DescribeNotebookInstanceLifecycleConfigResponse -> Maybe POSIX
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
notebookInstanceLifecycleConfigArn
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
notebookInstanceLifecycleConfigName
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [NotebookInstanceLifecycleHook]
onCreate
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [NotebookInstanceLifecycleHook]
onStart
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus