{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.NotebookInstanceSummary
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.NotebookInstanceSummary 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 Amazonka.SageMaker.Types.InstanceType
import Amazonka.SageMaker.Types.NotebookInstanceStatus

-- | Provides summary information for an SageMaker notebook instance.
--
-- /See:/ 'newNotebookInstanceSummary' smart constructor.
data NotebookInstanceSummary = NotebookInstanceSummary'
  { -- | An array of up to three Git repositories associated with the notebook
    -- instance. These can be either the names of Git repositories stored as
    -- resources in your account, or the URL of Git repositories in
    -- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
    -- or in any other Git repository. These repositories are cloned at the
    -- same level as the default repository of your notebook instance. For more
    -- information, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
    NotebookInstanceSummary -> Maybe [Text]
additionalCodeRepositories :: Prelude.Maybe [Prelude.Text],
    -- | A timestamp that shows when the notebook instance was created.
    NotebookInstanceSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The Git repository associated with the notebook instance as its default
    -- code repository. This can be either the name of a Git repository stored
    -- as a resource in your account, or the URL of a Git repository in
    -- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
    -- or in any other Git repository. When you open a notebook instance, it
    -- opens in the directory that contains this repository. For more
    -- information, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
    NotebookInstanceSummary -> Maybe Text
defaultCodeRepository :: Prelude.Maybe Prelude.Text,
    -- | The type of ML compute instance that the notebook instance is running
    -- on.
    NotebookInstanceSummary -> Maybe InstanceType
instanceType :: Prelude.Maybe InstanceType,
    -- | A timestamp that shows when the notebook instance was last modified.
    NotebookInstanceSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The name of a notebook instance lifecycle configuration associated with
    -- this notebook instance.
    --
    -- 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>.
    NotebookInstanceSummary -> Maybe Text
notebookInstanceLifecycleConfigName :: Prelude.Maybe Prelude.Text,
    -- | The status of the notebook instance.
    NotebookInstanceSummary -> Maybe NotebookInstanceStatus
notebookInstanceStatus :: Prelude.Maybe NotebookInstanceStatus,
    -- | The URL that you use to connect to the Jupyter notebook running in your
    -- notebook instance.
    NotebookInstanceSummary -> Maybe Text
url :: Prelude.Maybe Prelude.Text,
    -- | The name of the notebook instance that you want a summary for.
    NotebookInstanceSummary -> Text
notebookInstanceName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the notebook instance.
    NotebookInstanceSummary -> Text
notebookInstanceArn :: Prelude.Text
  }
  deriving (NotebookInstanceSummary -> NotebookInstanceSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NotebookInstanceSummary -> NotebookInstanceSummary -> Bool
$c/= :: NotebookInstanceSummary -> NotebookInstanceSummary -> Bool
== :: NotebookInstanceSummary -> NotebookInstanceSummary -> Bool
$c== :: NotebookInstanceSummary -> NotebookInstanceSummary -> Bool
Prelude.Eq, ReadPrec [NotebookInstanceSummary]
ReadPrec NotebookInstanceSummary
Int -> ReadS NotebookInstanceSummary
ReadS [NotebookInstanceSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NotebookInstanceSummary]
$creadListPrec :: ReadPrec [NotebookInstanceSummary]
readPrec :: ReadPrec NotebookInstanceSummary
$creadPrec :: ReadPrec NotebookInstanceSummary
readList :: ReadS [NotebookInstanceSummary]
$creadList :: ReadS [NotebookInstanceSummary]
readsPrec :: Int -> ReadS NotebookInstanceSummary
$creadsPrec :: Int -> ReadS NotebookInstanceSummary
Prelude.Read, Int -> NotebookInstanceSummary -> ShowS
[NotebookInstanceSummary] -> ShowS
NotebookInstanceSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NotebookInstanceSummary] -> ShowS
$cshowList :: [NotebookInstanceSummary] -> ShowS
show :: NotebookInstanceSummary -> String
$cshow :: NotebookInstanceSummary -> String
showsPrec :: Int -> NotebookInstanceSummary -> ShowS
$cshowsPrec :: Int -> NotebookInstanceSummary -> ShowS
Prelude.Show, forall x. Rep NotebookInstanceSummary x -> NotebookInstanceSummary
forall x. NotebookInstanceSummary -> Rep NotebookInstanceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NotebookInstanceSummary x -> NotebookInstanceSummary
$cfrom :: forall x. NotebookInstanceSummary -> Rep NotebookInstanceSummary x
Prelude.Generic)

-- |
-- Create a value of 'NotebookInstanceSummary' 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:
--
-- 'additionalCodeRepositories', 'notebookInstanceSummary_additionalCodeRepositories' - An array of up to three Git repositories associated with the notebook
-- instance. These can be either the names of Git repositories stored as
-- resources in your account, or the URL of Git repositories in
-- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
-- or in any other Git repository. These repositories are cloned at the
-- same level as the default repository of your notebook instance. For more
-- information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
--
-- 'creationTime', 'notebookInstanceSummary_creationTime' - A timestamp that shows when the notebook instance was created.
--
-- 'defaultCodeRepository', 'notebookInstanceSummary_defaultCodeRepository' - The Git repository associated with the notebook instance as its default
-- code repository. This can be either the name of a Git repository stored
-- as a resource in your account, or the URL of a Git repository in
-- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
-- or in any other Git repository. When you open a notebook instance, it
-- opens in the directory that contains this repository. For more
-- information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
--
-- 'instanceType', 'notebookInstanceSummary_instanceType' - The type of ML compute instance that the notebook instance is running
-- on.
--
-- 'lastModifiedTime', 'notebookInstanceSummary_lastModifiedTime' - A timestamp that shows when the notebook instance was last modified.
--
-- 'notebookInstanceLifecycleConfigName', 'notebookInstanceSummary_notebookInstanceLifecycleConfigName' - The name of a notebook instance lifecycle configuration associated with
-- this notebook instance.
--
-- 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>.
--
-- 'notebookInstanceStatus', 'notebookInstanceSummary_notebookInstanceStatus' - The status of the notebook instance.
--
-- 'url', 'notebookInstanceSummary_url' - The URL that you use to connect to the Jupyter notebook running in your
-- notebook instance.
--
-- 'notebookInstanceName', 'notebookInstanceSummary_notebookInstanceName' - The name of the notebook instance that you want a summary for.
--
-- 'notebookInstanceArn', 'notebookInstanceSummary_notebookInstanceArn' - The Amazon Resource Name (ARN) of the notebook instance.
newNotebookInstanceSummary ::
  -- | 'notebookInstanceName'
  Prelude.Text ->
  -- | 'notebookInstanceArn'
  Prelude.Text ->
  NotebookInstanceSummary
newNotebookInstanceSummary :: Text -> Text -> NotebookInstanceSummary
newNotebookInstanceSummary
  Text
pNotebookInstanceName_
  Text
pNotebookInstanceArn_ =
    NotebookInstanceSummary'
      { $sel:additionalCodeRepositories:NotebookInstanceSummary' :: Maybe [Text]
additionalCodeRepositories =
          forall a. Maybe a
Prelude.Nothing,
        $sel:creationTime:NotebookInstanceSummary' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
        $sel:defaultCodeRepository:NotebookInstanceSummary' :: Maybe Text
defaultCodeRepository = forall a. Maybe a
Prelude.Nothing,
        $sel:instanceType:NotebookInstanceSummary' :: Maybe InstanceType
instanceType = forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:NotebookInstanceSummary' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceLifecycleConfigName:NotebookInstanceSummary' :: Maybe Text
notebookInstanceLifecycleConfigName =
          forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceStatus:NotebookInstanceSummary' :: Maybe NotebookInstanceStatus
notebookInstanceStatus = forall a. Maybe a
Prelude.Nothing,
        $sel:url:NotebookInstanceSummary' :: Maybe Text
url = forall a. Maybe a
Prelude.Nothing,
        $sel:notebookInstanceName:NotebookInstanceSummary' :: Text
notebookInstanceName = Text
pNotebookInstanceName_,
        $sel:notebookInstanceArn:NotebookInstanceSummary' :: Text
notebookInstanceArn = Text
pNotebookInstanceArn_
      }

-- | An array of up to three Git repositories associated with the notebook
-- instance. These can be either the names of Git repositories stored as
-- resources in your account, or the URL of Git repositories in
-- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
-- or in any other Git repository. These repositories are cloned at the
-- same level as the default repository of your notebook instance. For more
-- information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
notebookInstanceSummary_additionalCodeRepositories :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe [Prelude.Text])
notebookInstanceSummary_additionalCodeRepositories :: Lens' NotebookInstanceSummary (Maybe [Text])
notebookInstanceSummary_additionalCodeRepositories = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe [Text]
additionalCodeRepositories :: Maybe [Text]
$sel:additionalCodeRepositories:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe [Text]
additionalCodeRepositories} -> Maybe [Text]
additionalCodeRepositories) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe [Text]
a -> NotebookInstanceSummary
s {$sel:additionalCodeRepositories:NotebookInstanceSummary' :: Maybe [Text]
additionalCodeRepositories = Maybe [Text]
a} :: NotebookInstanceSummary) 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

-- | A timestamp that shows when the notebook instance was created.
notebookInstanceSummary_creationTime :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe Prelude.UTCTime)
notebookInstanceSummary_creationTime :: Lens' NotebookInstanceSummary (Maybe UTCTime)
notebookInstanceSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe POSIX
a -> NotebookInstanceSummary
s {$sel:creationTime:NotebookInstanceSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: NotebookInstanceSummary) 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 Git repository associated with the notebook instance as its default
-- code repository. This can be either the name of a Git repository stored
-- as a resource in your account, or the URL of a Git repository in
-- <https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Amazon Web Services CodeCommit>
-- or in any other Git repository. When you open a notebook instance, it
-- opens in the directory that contains this repository. For more
-- information, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html Associating Git Repositories with SageMaker Notebook Instances>.
notebookInstanceSummary_defaultCodeRepository :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe Prelude.Text)
notebookInstanceSummary_defaultCodeRepository :: Lens' NotebookInstanceSummary (Maybe Text)
notebookInstanceSummary_defaultCodeRepository = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe Text
defaultCodeRepository :: Maybe Text
$sel:defaultCodeRepository:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
defaultCodeRepository} -> Maybe Text
defaultCodeRepository) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe Text
a -> NotebookInstanceSummary
s {$sel:defaultCodeRepository:NotebookInstanceSummary' :: Maybe Text
defaultCodeRepository = Maybe Text
a} :: NotebookInstanceSummary)

-- | The type of ML compute instance that the notebook instance is running
-- on.
notebookInstanceSummary_instanceType :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe InstanceType)
notebookInstanceSummary_instanceType :: Lens' NotebookInstanceSummary (Maybe InstanceType)
notebookInstanceSummary_instanceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe InstanceType
instanceType :: Maybe InstanceType
$sel:instanceType:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe InstanceType
instanceType} -> Maybe InstanceType
instanceType) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe InstanceType
a -> NotebookInstanceSummary
s {$sel:instanceType:NotebookInstanceSummary' :: Maybe InstanceType
instanceType = Maybe InstanceType
a} :: NotebookInstanceSummary)

-- | A timestamp that shows when the notebook instance was last modified.
notebookInstanceSummary_lastModifiedTime :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe Prelude.UTCTime)
notebookInstanceSummary_lastModifiedTime :: Lens' NotebookInstanceSummary (Maybe UTCTime)
notebookInstanceSummary_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe POSIX
a -> NotebookInstanceSummary
s {$sel:lastModifiedTime:NotebookInstanceSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: NotebookInstanceSummary) 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 name of a notebook instance lifecycle configuration associated with
-- this notebook instance.
--
-- 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>.
notebookInstanceSummary_notebookInstanceLifecycleConfigName :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe Prelude.Text)
notebookInstanceSummary_notebookInstanceLifecycleConfigName :: Lens' NotebookInstanceSummary (Maybe Text)
notebookInstanceSummary_notebookInstanceLifecycleConfigName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe Text
notebookInstanceLifecycleConfigName :: Maybe Text
$sel:notebookInstanceLifecycleConfigName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
notebookInstanceLifecycleConfigName} -> Maybe Text
notebookInstanceLifecycleConfigName) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe Text
a -> NotebookInstanceSummary
s {$sel:notebookInstanceLifecycleConfigName:NotebookInstanceSummary' :: Maybe Text
notebookInstanceLifecycleConfigName = Maybe Text
a} :: NotebookInstanceSummary)

-- | The status of the notebook instance.
notebookInstanceSummary_notebookInstanceStatus :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe NotebookInstanceStatus)
notebookInstanceSummary_notebookInstanceStatus :: Lens' NotebookInstanceSummary (Maybe NotebookInstanceStatus)
notebookInstanceSummary_notebookInstanceStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe NotebookInstanceStatus
notebookInstanceStatus :: Maybe NotebookInstanceStatus
$sel:notebookInstanceStatus:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe NotebookInstanceStatus
notebookInstanceStatus} -> Maybe NotebookInstanceStatus
notebookInstanceStatus) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe NotebookInstanceStatus
a -> NotebookInstanceSummary
s {$sel:notebookInstanceStatus:NotebookInstanceSummary' :: Maybe NotebookInstanceStatus
notebookInstanceStatus = Maybe NotebookInstanceStatus
a} :: NotebookInstanceSummary)

-- | The URL that you use to connect to the Jupyter notebook running in your
-- notebook instance.
notebookInstanceSummary_url :: Lens.Lens' NotebookInstanceSummary (Prelude.Maybe Prelude.Text)
notebookInstanceSummary_url :: Lens' NotebookInstanceSummary (Maybe Text)
notebookInstanceSummary_url = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Maybe Text
url :: Maybe Text
$sel:url:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
url} -> Maybe Text
url) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Maybe Text
a -> NotebookInstanceSummary
s {$sel:url:NotebookInstanceSummary' :: Maybe Text
url = Maybe Text
a} :: NotebookInstanceSummary)

-- | The name of the notebook instance that you want a summary for.
notebookInstanceSummary_notebookInstanceName :: Lens.Lens' NotebookInstanceSummary Prelude.Text
notebookInstanceSummary_notebookInstanceName :: Lens' NotebookInstanceSummary Text
notebookInstanceSummary_notebookInstanceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Text
notebookInstanceName :: Text
$sel:notebookInstanceName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
notebookInstanceName} -> Text
notebookInstanceName) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Text
a -> NotebookInstanceSummary
s {$sel:notebookInstanceName:NotebookInstanceSummary' :: Text
notebookInstanceName = Text
a} :: NotebookInstanceSummary)

-- | The Amazon Resource Name (ARN) of the notebook instance.
notebookInstanceSummary_notebookInstanceArn :: Lens.Lens' NotebookInstanceSummary Prelude.Text
notebookInstanceSummary_notebookInstanceArn :: Lens' NotebookInstanceSummary Text
notebookInstanceSummary_notebookInstanceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NotebookInstanceSummary' {Text
notebookInstanceArn :: Text
$sel:notebookInstanceArn:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
notebookInstanceArn} -> Text
notebookInstanceArn) (\s :: NotebookInstanceSummary
s@NotebookInstanceSummary' {} Text
a -> NotebookInstanceSummary
s {$sel:notebookInstanceArn:NotebookInstanceSummary' :: Text
notebookInstanceArn = Text
a} :: NotebookInstanceSummary)

instance Data.FromJSON NotebookInstanceSummary where
  parseJSON :: Value -> Parser NotebookInstanceSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"NotebookInstanceSummary"
      ( \Object
x ->
          Maybe [Text]
-> Maybe POSIX
-> Maybe Text
-> Maybe InstanceType
-> Maybe POSIX
-> Maybe Text
-> Maybe NotebookInstanceStatus
-> Maybe Text
-> Text
-> Text
-> NotebookInstanceSummary
NotebookInstanceSummary'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AdditionalCodeRepositories"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= 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 -> Parser (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 -> Parser (Maybe a)
Data..:? Key
"DefaultCodeRepository")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InstanceType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (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 -> Parser (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 -> Parser (Maybe a)
Data..:? Key
"NotebookInstanceStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Url")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"NotebookInstanceName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"NotebookInstanceArn")
      )

instance Prelude.Hashable NotebookInstanceSummary where
  hashWithSalt :: Int -> NotebookInstanceSummary -> Int
hashWithSalt Int
_salt NotebookInstanceSummary' {Maybe [Text]
Maybe Text
Maybe POSIX
Maybe InstanceType
Maybe NotebookInstanceStatus
Text
notebookInstanceArn :: Text
notebookInstanceName :: Text
url :: Maybe Text
notebookInstanceStatus :: Maybe NotebookInstanceStatus
notebookInstanceLifecycleConfigName :: Maybe Text
lastModifiedTime :: Maybe POSIX
instanceType :: Maybe InstanceType
defaultCodeRepository :: Maybe Text
creationTime :: Maybe POSIX
additionalCodeRepositories :: Maybe [Text]
$sel:notebookInstanceArn:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
$sel:notebookInstanceName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
$sel:url:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:notebookInstanceStatus:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe NotebookInstanceStatus
$sel:notebookInstanceLifecycleConfigName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:lastModifiedTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
$sel:instanceType:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe InstanceType
$sel:defaultCodeRepository:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:creationTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
$sel:additionalCodeRepositories:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
additionalCodeRepositories
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultCodeRepository
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InstanceType
instanceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
notebookInstanceLifecycleConfigName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NotebookInstanceStatus
notebookInstanceStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
url
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
notebookInstanceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
notebookInstanceArn

instance Prelude.NFData NotebookInstanceSummary where
  rnf :: NotebookInstanceSummary -> ()
rnf NotebookInstanceSummary' {Maybe [Text]
Maybe Text
Maybe POSIX
Maybe InstanceType
Maybe NotebookInstanceStatus
Text
notebookInstanceArn :: Text
notebookInstanceName :: Text
url :: Maybe Text
notebookInstanceStatus :: Maybe NotebookInstanceStatus
notebookInstanceLifecycleConfigName :: Maybe Text
lastModifiedTime :: Maybe POSIX
instanceType :: Maybe InstanceType
defaultCodeRepository :: Maybe Text
creationTime :: Maybe POSIX
additionalCodeRepositories :: Maybe [Text]
$sel:notebookInstanceArn:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
$sel:notebookInstanceName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Text
$sel:url:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:notebookInstanceStatus:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe NotebookInstanceStatus
$sel:notebookInstanceLifecycleConfigName:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:lastModifiedTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
$sel:instanceType:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe InstanceType
$sel:defaultCodeRepository:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe Text
$sel:creationTime:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe POSIX
$sel:additionalCodeRepositories:NotebookInstanceSummary' :: NotebookInstanceSummary -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
additionalCodeRepositories
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 Text
defaultCodeRepository
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InstanceType
instanceType
      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
notebookInstanceLifecycleConfigName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NotebookInstanceStatus
notebookInstanceStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
url
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
notebookInstanceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
notebookInstanceArn