{-# 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.CreateStudioLifecycleConfig
(
CreateStudioLifecycleConfig (..),
newCreateStudioLifecycleConfig,
createStudioLifecycleConfig_tags,
createStudioLifecycleConfig_studioLifecycleConfigName,
createStudioLifecycleConfig_studioLifecycleConfigContent,
createStudioLifecycleConfig_studioLifecycleConfigAppType,
CreateStudioLifecycleConfigResponse (..),
newCreateStudioLifecycleConfigResponse,
createStudioLifecycleConfigResponse_studioLifecycleConfigArn,
createStudioLifecycleConfigResponse_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 CreateStudioLifecycleConfig = CreateStudioLifecycleConfig'
{
CreateStudioLifecycleConfig -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateStudioLifecycleConfig -> Text
studioLifecycleConfigName :: Prelude.Text,
CreateStudioLifecycleConfig -> Text
studioLifecycleConfigContent :: Prelude.Text,
CreateStudioLifecycleConfig -> StudioLifecycleConfigAppType
studioLifecycleConfigAppType :: StudioLifecycleConfigAppType
}
deriving (CreateStudioLifecycleConfig -> CreateStudioLifecycleConfig -> Bool
(CreateStudioLifecycleConfig
-> CreateStudioLifecycleConfig -> Bool)
-> (CreateStudioLifecycleConfig
-> CreateStudioLifecycleConfig -> Bool)
-> Eq CreateStudioLifecycleConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStudioLifecycleConfig -> CreateStudioLifecycleConfig -> Bool
$c/= :: CreateStudioLifecycleConfig -> CreateStudioLifecycleConfig -> Bool
== :: CreateStudioLifecycleConfig -> CreateStudioLifecycleConfig -> Bool
$c== :: CreateStudioLifecycleConfig -> CreateStudioLifecycleConfig -> Bool
Prelude.Eq, ReadPrec [CreateStudioLifecycleConfig]
ReadPrec CreateStudioLifecycleConfig
Int -> ReadS CreateStudioLifecycleConfig
ReadS [CreateStudioLifecycleConfig]
(Int -> ReadS CreateStudioLifecycleConfig)
-> ReadS [CreateStudioLifecycleConfig]
-> ReadPrec CreateStudioLifecycleConfig
-> ReadPrec [CreateStudioLifecycleConfig]
-> Read CreateStudioLifecycleConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStudioLifecycleConfig]
$creadListPrec :: ReadPrec [CreateStudioLifecycleConfig]
readPrec :: ReadPrec CreateStudioLifecycleConfig
$creadPrec :: ReadPrec CreateStudioLifecycleConfig
readList :: ReadS [CreateStudioLifecycleConfig]
$creadList :: ReadS [CreateStudioLifecycleConfig]
readsPrec :: Int -> ReadS CreateStudioLifecycleConfig
$creadsPrec :: Int -> ReadS CreateStudioLifecycleConfig
Prelude.Read, Int -> CreateStudioLifecycleConfig -> ShowS
[CreateStudioLifecycleConfig] -> ShowS
CreateStudioLifecycleConfig -> String
(Int -> CreateStudioLifecycleConfig -> ShowS)
-> (CreateStudioLifecycleConfig -> String)
-> ([CreateStudioLifecycleConfig] -> ShowS)
-> Show CreateStudioLifecycleConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStudioLifecycleConfig] -> ShowS
$cshowList :: [CreateStudioLifecycleConfig] -> ShowS
show :: CreateStudioLifecycleConfig -> String
$cshow :: CreateStudioLifecycleConfig -> String
showsPrec :: Int -> CreateStudioLifecycleConfig -> ShowS
$cshowsPrec :: Int -> CreateStudioLifecycleConfig -> ShowS
Prelude.Show, (forall x.
CreateStudioLifecycleConfig -> Rep CreateStudioLifecycleConfig x)
-> (forall x.
Rep CreateStudioLifecycleConfig x -> CreateStudioLifecycleConfig)
-> Generic CreateStudioLifecycleConfig
forall x.
Rep CreateStudioLifecycleConfig x -> CreateStudioLifecycleConfig
forall x.
CreateStudioLifecycleConfig -> Rep CreateStudioLifecycleConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStudioLifecycleConfig x -> CreateStudioLifecycleConfig
$cfrom :: forall x.
CreateStudioLifecycleConfig -> Rep CreateStudioLifecycleConfig x
Prelude.Generic)
newCreateStudioLifecycleConfig ::
Prelude.Text ->
Prelude.Text ->
StudioLifecycleConfigAppType ->
CreateStudioLifecycleConfig
newCreateStudioLifecycleConfig :: Text
-> Text
-> StudioLifecycleConfigAppType
-> CreateStudioLifecycleConfig
newCreateStudioLifecycleConfig
Text
pStudioLifecycleConfigName_
Text
pStudioLifecycleConfigContent_
StudioLifecycleConfigAppType
pStudioLifecycleConfigAppType_ =
CreateStudioLifecycleConfig' :: Maybe [Tag]
-> Text
-> Text
-> StudioLifecycleConfigAppType
-> CreateStudioLifecycleConfig
CreateStudioLifecycleConfig'
{ $sel:tags:CreateStudioLifecycleConfig' :: Maybe [Tag]
tags =
Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:studioLifecycleConfigName:CreateStudioLifecycleConfig' :: Text
studioLifecycleConfigName =
Text
pStudioLifecycleConfigName_,
$sel:studioLifecycleConfigContent:CreateStudioLifecycleConfig' :: Text
studioLifecycleConfigContent =
Text
pStudioLifecycleConfigContent_,
$sel:studioLifecycleConfigAppType:CreateStudioLifecycleConfig' :: StudioLifecycleConfigAppType
studioLifecycleConfigAppType =
StudioLifecycleConfigAppType
pStudioLifecycleConfigAppType_
}
createStudioLifecycleConfig_tags :: Lens.Lens' CreateStudioLifecycleConfig (Prelude.Maybe [Tag])
createStudioLifecycleConfig_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStudioLifecycleConfig -> f CreateStudioLifecycleConfig
createStudioLifecycleConfig_tags = (CreateStudioLifecycleConfig -> Maybe [Tag])
-> (CreateStudioLifecycleConfig
-> Maybe [Tag] -> CreateStudioLifecycleConfig)
-> Lens
CreateStudioLifecycleConfig
CreateStudioLifecycleConfig
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfig' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateStudioLifecycleConfig
s@CreateStudioLifecycleConfig' {} Maybe [Tag]
a -> CreateStudioLifecycleConfig
s {$sel:tags:CreateStudioLifecycleConfig' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateStudioLifecycleConfig) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStudioLifecycleConfig -> f CreateStudioLifecycleConfig)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStudioLifecycleConfig
-> f CreateStudioLifecycleConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createStudioLifecycleConfig_studioLifecycleConfigName :: Lens.Lens' CreateStudioLifecycleConfig Prelude.Text
createStudioLifecycleConfig_studioLifecycleConfigName :: (Text -> f Text)
-> CreateStudioLifecycleConfig -> f CreateStudioLifecycleConfig
createStudioLifecycleConfig_studioLifecycleConfigName = (CreateStudioLifecycleConfig -> Text)
-> (CreateStudioLifecycleConfig
-> Text -> CreateStudioLifecycleConfig)
-> Lens
CreateStudioLifecycleConfig CreateStudioLifecycleConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfig' {Text
studioLifecycleConfigName :: Text
$sel:studioLifecycleConfigName:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Text
studioLifecycleConfigName} -> Text
studioLifecycleConfigName) (\s :: CreateStudioLifecycleConfig
s@CreateStudioLifecycleConfig' {} Text
a -> CreateStudioLifecycleConfig
s {$sel:studioLifecycleConfigName:CreateStudioLifecycleConfig' :: Text
studioLifecycleConfigName = Text
a} :: CreateStudioLifecycleConfig)
createStudioLifecycleConfig_studioLifecycleConfigContent :: Lens.Lens' CreateStudioLifecycleConfig Prelude.Text
createStudioLifecycleConfig_studioLifecycleConfigContent :: (Text -> f Text)
-> CreateStudioLifecycleConfig -> f CreateStudioLifecycleConfig
createStudioLifecycleConfig_studioLifecycleConfigContent = (CreateStudioLifecycleConfig -> Text)
-> (CreateStudioLifecycleConfig
-> Text -> CreateStudioLifecycleConfig)
-> Lens
CreateStudioLifecycleConfig CreateStudioLifecycleConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfig' {Text
studioLifecycleConfigContent :: Text
$sel:studioLifecycleConfigContent:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Text
studioLifecycleConfigContent} -> Text
studioLifecycleConfigContent) (\s :: CreateStudioLifecycleConfig
s@CreateStudioLifecycleConfig' {} Text
a -> CreateStudioLifecycleConfig
s {$sel:studioLifecycleConfigContent:CreateStudioLifecycleConfig' :: Text
studioLifecycleConfigContent = Text
a} :: CreateStudioLifecycleConfig)
createStudioLifecycleConfig_studioLifecycleConfigAppType :: Lens.Lens' CreateStudioLifecycleConfig StudioLifecycleConfigAppType
createStudioLifecycleConfig_studioLifecycleConfigAppType :: (StudioLifecycleConfigAppType -> f StudioLifecycleConfigAppType)
-> CreateStudioLifecycleConfig -> f CreateStudioLifecycleConfig
createStudioLifecycleConfig_studioLifecycleConfigAppType = (CreateStudioLifecycleConfig -> StudioLifecycleConfigAppType)
-> (CreateStudioLifecycleConfig
-> StudioLifecycleConfigAppType -> CreateStudioLifecycleConfig)
-> Lens
CreateStudioLifecycleConfig
CreateStudioLifecycleConfig
StudioLifecycleConfigAppType
StudioLifecycleConfigAppType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfig' {StudioLifecycleConfigAppType
studioLifecycleConfigAppType :: StudioLifecycleConfigAppType
$sel:studioLifecycleConfigAppType:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> StudioLifecycleConfigAppType
studioLifecycleConfigAppType} -> StudioLifecycleConfigAppType
studioLifecycleConfigAppType) (\s :: CreateStudioLifecycleConfig
s@CreateStudioLifecycleConfig' {} StudioLifecycleConfigAppType
a -> CreateStudioLifecycleConfig
s {$sel:studioLifecycleConfigAppType:CreateStudioLifecycleConfig' :: StudioLifecycleConfigAppType
studioLifecycleConfigAppType = StudioLifecycleConfigAppType
a} :: CreateStudioLifecycleConfig)
instance Core.AWSRequest CreateStudioLifecycleConfig where
type
AWSResponse CreateStudioLifecycleConfig =
CreateStudioLifecycleConfigResponse
request :: CreateStudioLifecycleConfig -> Request CreateStudioLifecycleConfig
request = Service
-> CreateStudioLifecycleConfig
-> Request CreateStudioLifecycleConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateStudioLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStudioLifecycleConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateStudioLifecycleConfig))
-> Logger
-> Service
-> Proxy CreateStudioLifecycleConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStudioLifecycleConfig)))
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 Text -> Int -> CreateStudioLifecycleConfigResponse
CreateStudioLifecycleConfigResponse'
(Maybe Text -> Int -> CreateStudioLifecycleConfigResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateStudioLifecycleConfigResponse)
forall (f :: * -> *) a b. Functor 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
"StudioLifecycleConfigArn")
Either String (Int -> CreateStudioLifecycleConfigResponse)
-> Either String Int
-> Either String CreateStudioLifecycleConfigResponse
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 CreateStudioLifecycleConfig
instance Prelude.NFData CreateStudioLifecycleConfig
instance Core.ToHeaders CreateStudioLifecycleConfig where
toHeaders :: CreateStudioLifecycleConfig -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateStudioLifecycleConfig -> 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.CreateStudioLifecycleConfig" ::
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 CreateStudioLifecycleConfig where
toJSON :: CreateStudioLifecycleConfig -> Value
toJSON CreateStudioLifecycleConfig' {Maybe [Tag]
Text
StudioLifecycleConfigAppType
studioLifecycleConfigAppType :: StudioLifecycleConfigAppType
studioLifecycleConfigContent :: Text
studioLifecycleConfigName :: Text
tags :: Maybe [Tag]
$sel:studioLifecycleConfigAppType:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> StudioLifecycleConfigAppType
$sel:studioLifecycleConfigContent:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Text
$sel:studioLifecycleConfigName:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Text
$sel:tags:CreateStudioLifecycleConfig' :: CreateStudioLifecycleConfig -> Maybe [Tag]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"StudioLifecycleConfigName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
studioLifecycleConfigName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"StudioLifecycleConfigContent"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
studioLifecycleConfigContent
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"StudioLifecycleConfigAppType"
Text -> StudioLifecycleConfigAppType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= StudioLifecycleConfigAppType
studioLifecycleConfigAppType
)
]
)
instance Core.ToPath CreateStudioLifecycleConfig where
toPath :: CreateStudioLifecycleConfig -> ByteString
toPath = ByteString -> CreateStudioLifecycleConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateStudioLifecycleConfig where
toQuery :: CreateStudioLifecycleConfig -> QueryString
toQuery = QueryString -> CreateStudioLifecycleConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateStudioLifecycleConfigResponse = CreateStudioLifecycleConfigResponse'
{
CreateStudioLifecycleConfigResponse -> Maybe Text
studioLifecycleConfigArn :: Prelude.Maybe Prelude.Text,
CreateStudioLifecycleConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool
(CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool)
-> (CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool)
-> Eq CreateStudioLifecycleConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool
$c/= :: CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool
== :: CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool
$c== :: CreateStudioLifecycleConfigResponse
-> CreateStudioLifecycleConfigResponse -> Bool
Prelude.Eq, ReadPrec [CreateStudioLifecycleConfigResponse]
ReadPrec CreateStudioLifecycleConfigResponse
Int -> ReadS CreateStudioLifecycleConfigResponse
ReadS [CreateStudioLifecycleConfigResponse]
(Int -> ReadS CreateStudioLifecycleConfigResponse)
-> ReadS [CreateStudioLifecycleConfigResponse]
-> ReadPrec CreateStudioLifecycleConfigResponse
-> ReadPrec [CreateStudioLifecycleConfigResponse]
-> Read CreateStudioLifecycleConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStudioLifecycleConfigResponse]
$creadListPrec :: ReadPrec [CreateStudioLifecycleConfigResponse]
readPrec :: ReadPrec CreateStudioLifecycleConfigResponse
$creadPrec :: ReadPrec CreateStudioLifecycleConfigResponse
readList :: ReadS [CreateStudioLifecycleConfigResponse]
$creadList :: ReadS [CreateStudioLifecycleConfigResponse]
readsPrec :: Int -> ReadS CreateStudioLifecycleConfigResponse
$creadsPrec :: Int -> ReadS CreateStudioLifecycleConfigResponse
Prelude.Read, Int -> CreateStudioLifecycleConfigResponse -> ShowS
[CreateStudioLifecycleConfigResponse] -> ShowS
CreateStudioLifecycleConfigResponse -> String
(Int -> CreateStudioLifecycleConfigResponse -> ShowS)
-> (CreateStudioLifecycleConfigResponse -> String)
-> ([CreateStudioLifecycleConfigResponse] -> ShowS)
-> Show CreateStudioLifecycleConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStudioLifecycleConfigResponse] -> ShowS
$cshowList :: [CreateStudioLifecycleConfigResponse] -> ShowS
show :: CreateStudioLifecycleConfigResponse -> String
$cshow :: CreateStudioLifecycleConfigResponse -> String
showsPrec :: Int -> CreateStudioLifecycleConfigResponse -> ShowS
$cshowsPrec :: Int -> CreateStudioLifecycleConfigResponse -> ShowS
Prelude.Show, (forall x.
CreateStudioLifecycleConfigResponse
-> Rep CreateStudioLifecycleConfigResponse x)
-> (forall x.
Rep CreateStudioLifecycleConfigResponse x
-> CreateStudioLifecycleConfigResponse)
-> Generic CreateStudioLifecycleConfigResponse
forall x.
Rep CreateStudioLifecycleConfigResponse x
-> CreateStudioLifecycleConfigResponse
forall x.
CreateStudioLifecycleConfigResponse
-> Rep CreateStudioLifecycleConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStudioLifecycleConfigResponse x
-> CreateStudioLifecycleConfigResponse
$cfrom :: forall x.
CreateStudioLifecycleConfigResponse
-> Rep CreateStudioLifecycleConfigResponse x
Prelude.Generic)
newCreateStudioLifecycleConfigResponse ::
Prelude.Int ->
CreateStudioLifecycleConfigResponse
newCreateStudioLifecycleConfigResponse :: Int -> CreateStudioLifecycleConfigResponse
newCreateStudioLifecycleConfigResponse Int
pHttpStatus_ =
CreateStudioLifecycleConfigResponse' :: Maybe Text -> Int -> CreateStudioLifecycleConfigResponse
CreateStudioLifecycleConfigResponse'
{ $sel:studioLifecycleConfigArn:CreateStudioLifecycleConfigResponse' :: Maybe Text
studioLifecycleConfigArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateStudioLifecycleConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createStudioLifecycleConfigResponse_studioLifecycleConfigArn :: Lens.Lens' CreateStudioLifecycleConfigResponse (Prelude.Maybe Prelude.Text)
createStudioLifecycleConfigResponse_studioLifecycleConfigArn :: (Maybe Text -> f (Maybe Text))
-> CreateStudioLifecycleConfigResponse
-> f CreateStudioLifecycleConfigResponse
createStudioLifecycleConfigResponse_studioLifecycleConfigArn = (CreateStudioLifecycleConfigResponse -> Maybe Text)
-> (CreateStudioLifecycleConfigResponse
-> Maybe Text -> CreateStudioLifecycleConfigResponse)
-> Lens
CreateStudioLifecycleConfigResponse
CreateStudioLifecycleConfigResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfigResponse' {Maybe Text
studioLifecycleConfigArn :: Maybe Text
$sel:studioLifecycleConfigArn:CreateStudioLifecycleConfigResponse' :: CreateStudioLifecycleConfigResponse -> Maybe Text
studioLifecycleConfigArn} -> Maybe Text
studioLifecycleConfigArn) (\s :: CreateStudioLifecycleConfigResponse
s@CreateStudioLifecycleConfigResponse' {} Maybe Text
a -> CreateStudioLifecycleConfigResponse
s {$sel:studioLifecycleConfigArn:CreateStudioLifecycleConfigResponse' :: Maybe Text
studioLifecycleConfigArn = Maybe Text
a} :: CreateStudioLifecycleConfigResponse)
createStudioLifecycleConfigResponse_httpStatus :: Lens.Lens' CreateStudioLifecycleConfigResponse Prelude.Int
createStudioLifecycleConfigResponse_httpStatus :: (Int -> f Int)
-> CreateStudioLifecycleConfigResponse
-> f CreateStudioLifecycleConfigResponse
createStudioLifecycleConfigResponse_httpStatus = (CreateStudioLifecycleConfigResponse -> Int)
-> (CreateStudioLifecycleConfigResponse
-> Int -> CreateStudioLifecycleConfigResponse)
-> Lens
CreateStudioLifecycleConfigResponse
CreateStudioLifecycleConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStudioLifecycleConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStudioLifecycleConfigResponse' :: CreateStudioLifecycleConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStudioLifecycleConfigResponse
s@CreateStudioLifecycleConfigResponse' {} Int
a -> CreateStudioLifecycleConfigResponse
s {$sel:httpStatus:CreateStudioLifecycleConfigResponse' :: Int
httpStatus = Int
a} :: CreateStudioLifecycleConfigResponse)
instance
Prelude.NFData
CreateStudioLifecycleConfigResponse