{-# 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 #-}
module Amazonka.SageMaker.UpdateNotebookInstanceLifecycleConfig
(
UpdateNotebookInstanceLifecycleConfig (..),
newUpdateNotebookInstanceLifecycleConfig,
updateNotebookInstanceLifecycleConfig_onCreate,
updateNotebookInstanceLifecycleConfig_onStart,
updateNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName,
UpdateNotebookInstanceLifecycleConfigResponse (..),
newUpdateNotebookInstanceLifecycleConfigResponse,
updateNotebookInstanceLifecycleConfigResponse_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
data UpdateNotebookInstanceLifecycleConfig = UpdateNotebookInstanceLifecycleConfig'
{
UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
onCreate :: Prelude.Maybe [NotebookInstanceLifecycleHook],
UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
onStart :: Prelude.Maybe [NotebookInstanceLifecycleHook],
UpdateNotebookInstanceLifecycleConfig -> Text
notebookInstanceLifecycleConfigName :: Prelude.Text
}
deriving (UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool
(UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool)
-> (UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool)
-> Eq UpdateNotebookInstanceLifecycleConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool
$c/= :: UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool
== :: UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool
$c== :: UpdateNotebookInstanceLifecycleConfig
-> UpdateNotebookInstanceLifecycleConfig -> Bool
Prelude.Eq, ReadPrec [UpdateNotebookInstanceLifecycleConfig]
ReadPrec UpdateNotebookInstanceLifecycleConfig
Int -> ReadS UpdateNotebookInstanceLifecycleConfig
ReadS [UpdateNotebookInstanceLifecycleConfig]
(Int -> ReadS UpdateNotebookInstanceLifecycleConfig)
-> ReadS [UpdateNotebookInstanceLifecycleConfig]
-> ReadPrec UpdateNotebookInstanceLifecycleConfig
-> ReadPrec [UpdateNotebookInstanceLifecycleConfig]
-> Read UpdateNotebookInstanceLifecycleConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateNotebookInstanceLifecycleConfig]
$creadListPrec :: ReadPrec [UpdateNotebookInstanceLifecycleConfig]
readPrec :: ReadPrec UpdateNotebookInstanceLifecycleConfig
$creadPrec :: ReadPrec UpdateNotebookInstanceLifecycleConfig
readList :: ReadS [UpdateNotebookInstanceLifecycleConfig]
$creadList :: ReadS [UpdateNotebookInstanceLifecycleConfig]
readsPrec :: Int -> ReadS UpdateNotebookInstanceLifecycleConfig
$creadsPrec :: Int -> ReadS UpdateNotebookInstanceLifecycleConfig
Prelude.Read, Int -> UpdateNotebookInstanceLifecycleConfig -> ShowS
[UpdateNotebookInstanceLifecycleConfig] -> ShowS
UpdateNotebookInstanceLifecycleConfig -> String
(Int -> UpdateNotebookInstanceLifecycleConfig -> ShowS)
-> (UpdateNotebookInstanceLifecycleConfig -> String)
-> ([UpdateNotebookInstanceLifecycleConfig] -> ShowS)
-> Show UpdateNotebookInstanceLifecycleConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateNotebookInstanceLifecycleConfig] -> ShowS
$cshowList :: [UpdateNotebookInstanceLifecycleConfig] -> ShowS
show :: UpdateNotebookInstanceLifecycleConfig -> String
$cshow :: UpdateNotebookInstanceLifecycleConfig -> String
showsPrec :: Int -> UpdateNotebookInstanceLifecycleConfig -> ShowS
$cshowsPrec :: Int -> UpdateNotebookInstanceLifecycleConfig -> ShowS
Prelude.Show, (forall x.
UpdateNotebookInstanceLifecycleConfig
-> Rep UpdateNotebookInstanceLifecycleConfig x)
-> (forall x.
Rep UpdateNotebookInstanceLifecycleConfig x
-> UpdateNotebookInstanceLifecycleConfig)
-> Generic UpdateNotebookInstanceLifecycleConfig
forall x.
Rep UpdateNotebookInstanceLifecycleConfig x
-> UpdateNotebookInstanceLifecycleConfig
forall x.
UpdateNotebookInstanceLifecycleConfig
-> Rep UpdateNotebookInstanceLifecycleConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateNotebookInstanceLifecycleConfig x
-> UpdateNotebookInstanceLifecycleConfig
$cfrom :: forall x.
UpdateNotebookInstanceLifecycleConfig
-> Rep UpdateNotebookInstanceLifecycleConfig x
Prelude.Generic)
newUpdateNotebookInstanceLifecycleConfig ::
Prelude.Text ->
UpdateNotebookInstanceLifecycleConfig
newUpdateNotebookInstanceLifecycleConfig :: Text -> UpdateNotebookInstanceLifecycleConfig
newUpdateNotebookInstanceLifecycleConfig
Text
pNotebookInstanceLifecycleConfigName_ =
UpdateNotebookInstanceLifecycleConfig' :: Maybe [NotebookInstanceLifecycleHook]
-> Maybe [NotebookInstanceLifecycleHook]
-> Text
-> UpdateNotebookInstanceLifecycleConfig
UpdateNotebookInstanceLifecycleConfig'
{ $sel:onCreate:UpdateNotebookInstanceLifecycleConfig' :: Maybe [NotebookInstanceLifecycleHook]
onCreate =
Maybe [NotebookInstanceLifecycleHook]
forall a. Maybe a
Prelude.Nothing,
$sel:onStart:UpdateNotebookInstanceLifecycleConfig' :: Maybe [NotebookInstanceLifecycleHook]
onStart = Maybe [NotebookInstanceLifecycleHook]
forall a. Maybe a
Prelude.Nothing,
$sel:notebookInstanceLifecycleConfigName:UpdateNotebookInstanceLifecycleConfig' :: Text
notebookInstanceLifecycleConfigName =
Text
pNotebookInstanceLifecycleConfigName_
}
updateNotebookInstanceLifecycleConfig_onCreate :: Lens.Lens' UpdateNotebookInstanceLifecycleConfig (Prelude.Maybe [NotebookInstanceLifecycleHook])
updateNotebookInstanceLifecycleConfig_onCreate :: (Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig
updateNotebookInstanceLifecycleConfig_onCreate = (UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook])
-> (UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
-> UpdateNotebookInstanceLifecycleConfig)
-> Lens
UpdateNotebookInstanceLifecycleConfig
UpdateNotebookInstanceLifecycleConfig
(Maybe [NotebookInstanceLifecycleHook])
(Maybe [NotebookInstanceLifecycleHook])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateNotebookInstanceLifecycleConfig' {Maybe [NotebookInstanceLifecycleHook]
onCreate :: Maybe [NotebookInstanceLifecycleHook]
$sel:onCreate:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
onCreate} -> Maybe [NotebookInstanceLifecycleHook]
onCreate) (\s :: UpdateNotebookInstanceLifecycleConfig
s@UpdateNotebookInstanceLifecycleConfig' {} Maybe [NotebookInstanceLifecycleHook]
a -> UpdateNotebookInstanceLifecycleConfig
s {$sel:onCreate:UpdateNotebookInstanceLifecycleConfig' :: Maybe [NotebookInstanceLifecycleHook]
onCreate = Maybe [NotebookInstanceLifecycleHook]
a} :: UpdateNotebookInstanceLifecycleConfig) ((Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig)
-> ((Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> (Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig
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
updateNotebookInstanceLifecycleConfig_onStart :: Lens.Lens' UpdateNotebookInstanceLifecycleConfig (Prelude.Maybe [NotebookInstanceLifecycleHook])
updateNotebookInstanceLifecycleConfig_onStart :: (Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig
updateNotebookInstanceLifecycleConfig_onStart = (UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook])
-> (UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
-> UpdateNotebookInstanceLifecycleConfig)
-> Lens
UpdateNotebookInstanceLifecycleConfig
UpdateNotebookInstanceLifecycleConfig
(Maybe [NotebookInstanceLifecycleHook])
(Maybe [NotebookInstanceLifecycleHook])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateNotebookInstanceLifecycleConfig' {Maybe [NotebookInstanceLifecycleHook]
onStart :: Maybe [NotebookInstanceLifecycleHook]
$sel:onStart:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
onStart} -> Maybe [NotebookInstanceLifecycleHook]
onStart) (\s :: UpdateNotebookInstanceLifecycleConfig
s@UpdateNotebookInstanceLifecycleConfig' {} Maybe [NotebookInstanceLifecycleHook]
a -> UpdateNotebookInstanceLifecycleConfig
s {$sel:onStart:UpdateNotebookInstanceLifecycleConfig' :: Maybe [NotebookInstanceLifecycleHook]
onStart = Maybe [NotebookInstanceLifecycleHook]
a} :: UpdateNotebookInstanceLifecycleConfig) ((Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig)
-> ((Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> (Maybe [NotebookInstanceLifecycleHook]
-> f (Maybe [NotebookInstanceLifecycleHook]))
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig
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
updateNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: Lens.Lens' UpdateNotebookInstanceLifecycleConfig Prelude.Text
updateNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName :: (Text -> f Text)
-> UpdateNotebookInstanceLifecycleConfig
-> f UpdateNotebookInstanceLifecycleConfig
updateNotebookInstanceLifecycleConfig_notebookInstanceLifecycleConfigName = (UpdateNotebookInstanceLifecycleConfig -> Text)
-> (UpdateNotebookInstanceLifecycleConfig
-> Text -> UpdateNotebookInstanceLifecycleConfig)
-> Lens
UpdateNotebookInstanceLifecycleConfig
UpdateNotebookInstanceLifecycleConfig
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateNotebookInstanceLifecycleConfig' {Text
notebookInstanceLifecycleConfigName :: Text
$sel:notebookInstanceLifecycleConfigName:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig -> Text
notebookInstanceLifecycleConfigName} -> Text
notebookInstanceLifecycleConfigName) (\s :: UpdateNotebookInstanceLifecycleConfig
s@UpdateNotebookInstanceLifecycleConfig' {} Text
a -> UpdateNotebookInstanceLifecycleConfig
s {$sel:notebookInstanceLifecycleConfigName:UpdateNotebookInstanceLifecycleConfig' :: Text
notebookInstanceLifecycleConfigName = Text
a} :: UpdateNotebookInstanceLifecycleConfig)
instance
Core.AWSRequest
UpdateNotebookInstanceLifecycleConfig
where
type
AWSResponse
UpdateNotebookInstanceLifecycleConfig =
UpdateNotebookInstanceLifecycleConfigResponse
request :: UpdateNotebookInstanceLifecycleConfig
-> Request UpdateNotebookInstanceLifecycleConfig
request = Service
-> UpdateNotebookInstanceLifecycleConfig
-> Request UpdateNotebookInstanceLifecycleConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateNotebookInstanceLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateNotebookInstanceLifecycleConfig)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either
String (AWSResponse UpdateNotebookInstanceLifecycleConfig))
-> Logger
-> Service
-> Proxy UpdateNotebookInstanceLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateNotebookInstanceLifecycleConfig)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> UpdateNotebookInstanceLifecycleConfigResponse
UpdateNotebookInstanceLifecycleConfigResponse'
(Int -> UpdateNotebookInstanceLifecycleConfigResponse)
-> Either String Int
-> Either String UpdateNotebookInstanceLifecycleConfigResponse
forall (f :: * -> *) a b. Functor 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
UpdateNotebookInstanceLifecycleConfig
instance
Prelude.NFData
UpdateNotebookInstanceLifecycleConfig
instance
Core.ToHeaders
UpdateNotebookInstanceLifecycleConfig
where
toHeaders :: UpdateNotebookInstanceLifecycleConfig -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateNotebookInstanceLifecycleConfig -> 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.UpdateNotebookInstanceLifecycleConfig" ::
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
UpdateNotebookInstanceLifecycleConfig
where
toJSON :: UpdateNotebookInstanceLifecycleConfig -> Value
toJSON UpdateNotebookInstanceLifecycleConfig' {Maybe [NotebookInstanceLifecycleHook]
Text
notebookInstanceLifecycleConfigName :: Text
onStart :: Maybe [NotebookInstanceLifecycleHook]
onCreate :: Maybe [NotebookInstanceLifecycleHook]
$sel:notebookInstanceLifecycleConfigName:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig -> Text
$sel:onStart:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
$sel:onCreate:UpdateNotebookInstanceLifecycleConfig' :: UpdateNotebookInstanceLifecycleConfig
-> Maybe [NotebookInstanceLifecycleHook]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"OnCreate" Text -> [NotebookInstanceLifecycleHook] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([NotebookInstanceLifecycleHook] -> Pair)
-> Maybe [NotebookInstanceLifecycleHook] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NotebookInstanceLifecycleHook]
onCreate,
(Text
"OnStart" Text -> [NotebookInstanceLifecycleHook] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([NotebookInstanceLifecycleHook] -> Pair)
-> Maybe [NotebookInstanceLifecycleHook] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NotebookInstanceLifecycleHook]
onStart,
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
UpdateNotebookInstanceLifecycleConfig
where
toPath :: UpdateNotebookInstanceLifecycleConfig -> ByteString
toPath = ByteString -> UpdateNotebookInstanceLifecycleConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateNotebookInstanceLifecycleConfig
where
toQuery :: UpdateNotebookInstanceLifecycleConfig -> QueryString
toQuery = QueryString -> UpdateNotebookInstanceLifecycleConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateNotebookInstanceLifecycleConfigResponse = UpdateNotebookInstanceLifecycleConfigResponse'
{
UpdateNotebookInstanceLifecycleConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool
(UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool)
-> (UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool)
-> Eq UpdateNotebookInstanceLifecycleConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool
$c/= :: UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool
== :: UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool
$c== :: UpdateNotebookInstanceLifecycleConfigResponse
-> UpdateNotebookInstanceLifecycleConfigResponse -> Bool
Prelude.Eq, ReadPrec [UpdateNotebookInstanceLifecycleConfigResponse]
ReadPrec UpdateNotebookInstanceLifecycleConfigResponse
Int -> ReadS UpdateNotebookInstanceLifecycleConfigResponse
ReadS [UpdateNotebookInstanceLifecycleConfigResponse]
(Int -> ReadS UpdateNotebookInstanceLifecycleConfigResponse)
-> ReadS [UpdateNotebookInstanceLifecycleConfigResponse]
-> ReadPrec UpdateNotebookInstanceLifecycleConfigResponse
-> ReadPrec [UpdateNotebookInstanceLifecycleConfigResponse]
-> Read UpdateNotebookInstanceLifecycleConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateNotebookInstanceLifecycleConfigResponse]
$creadListPrec :: ReadPrec [UpdateNotebookInstanceLifecycleConfigResponse]
readPrec :: ReadPrec UpdateNotebookInstanceLifecycleConfigResponse
$creadPrec :: ReadPrec UpdateNotebookInstanceLifecycleConfigResponse
readList :: ReadS [UpdateNotebookInstanceLifecycleConfigResponse]
$creadList :: ReadS [UpdateNotebookInstanceLifecycleConfigResponse]
readsPrec :: Int -> ReadS UpdateNotebookInstanceLifecycleConfigResponse
$creadsPrec :: Int -> ReadS UpdateNotebookInstanceLifecycleConfigResponse
Prelude.Read, Int -> UpdateNotebookInstanceLifecycleConfigResponse -> ShowS
[UpdateNotebookInstanceLifecycleConfigResponse] -> ShowS
UpdateNotebookInstanceLifecycleConfigResponse -> String
(Int -> UpdateNotebookInstanceLifecycleConfigResponse -> ShowS)
-> (UpdateNotebookInstanceLifecycleConfigResponse -> String)
-> ([UpdateNotebookInstanceLifecycleConfigResponse] -> ShowS)
-> Show UpdateNotebookInstanceLifecycleConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateNotebookInstanceLifecycleConfigResponse] -> ShowS
$cshowList :: [UpdateNotebookInstanceLifecycleConfigResponse] -> ShowS
show :: UpdateNotebookInstanceLifecycleConfigResponse -> String
$cshow :: UpdateNotebookInstanceLifecycleConfigResponse -> String
showsPrec :: Int -> UpdateNotebookInstanceLifecycleConfigResponse -> ShowS
$cshowsPrec :: Int -> UpdateNotebookInstanceLifecycleConfigResponse -> ShowS
Prelude.Show, (forall x.
UpdateNotebookInstanceLifecycleConfigResponse
-> Rep UpdateNotebookInstanceLifecycleConfigResponse x)
-> (forall x.
Rep UpdateNotebookInstanceLifecycleConfigResponse x
-> UpdateNotebookInstanceLifecycleConfigResponse)
-> Generic UpdateNotebookInstanceLifecycleConfigResponse
forall x.
Rep UpdateNotebookInstanceLifecycleConfigResponse x
-> UpdateNotebookInstanceLifecycleConfigResponse
forall x.
UpdateNotebookInstanceLifecycleConfigResponse
-> Rep UpdateNotebookInstanceLifecycleConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateNotebookInstanceLifecycleConfigResponse x
-> UpdateNotebookInstanceLifecycleConfigResponse
$cfrom :: forall x.
UpdateNotebookInstanceLifecycleConfigResponse
-> Rep UpdateNotebookInstanceLifecycleConfigResponse x
Prelude.Generic)
newUpdateNotebookInstanceLifecycleConfigResponse ::
Prelude.Int ->
UpdateNotebookInstanceLifecycleConfigResponse
newUpdateNotebookInstanceLifecycleConfigResponse :: Int -> UpdateNotebookInstanceLifecycleConfigResponse
newUpdateNotebookInstanceLifecycleConfigResponse
Int
pHttpStatus_ =
UpdateNotebookInstanceLifecycleConfigResponse' :: Int -> UpdateNotebookInstanceLifecycleConfigResponse
UpdateNotebookInstanceLifecycleConfigResponse'
{ $sel:httpStatus:UpdateNotebookInstanceLifecycleConfigResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
updateNotebookInstanceLifecycleConfigResponse_httpStatus :: Lens.Lens' UpdateNotebookInstanceLifecycleConfigResponse Prelude.Int
updateNotebookInstanceLifecycleConfigResponse_httpStatus :: (Int -> f Int)
-> UpdateNotebookInstanceLifecycleConfigResponse
-> f UpdateNotebookInstanceLifecycleConfigResponse
updateNotebookInstanceLifecycleConfigResponse_httpStatus = (UpdateNotebookInstanceLifecycleConfigResponse -> Int)
-> (UpdateNotebookInstanceLifecycleConfigResponse
-> Int -> UpdateNotebookInstanceLifecycleConfigResponse)
-> Lens
UpdateNotebookInstanceLifecycleConfigResponse
UpdateNotebookInstanceLifecycleConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateNotebookInstanceLifecycleConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateNotebookInstanceLifecycleConfigResponse' :: UpdateNotebookInstanceLifecycleConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateNotebookInstanceLifecycleConfigResponse
s@UpdateNotebookInstanceLifecycleConfigResponse' {} Int
a -> UpdateNotebookInstanceLifecycleConfigResponse
s {$sel:httpStatus:UpdateNotebookInstanceLifecycleConfigResponse' :: Int
httpStatus = Int
a} :: UpdateNotebookInstanceLifecycleConfigResponse)
instance
Prelude.NFData
UpdateNotebookInstanceLifecycleConfigResponse