{-# 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.CreateStudioLifecycleConfig
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a new Studio Lifecycle Configuration.
module Amazonka.SageMaker.CreateStudioLifecycleConfig
  ( -- * Creating a Request
    CreateStudioLifecycleConfig (..),
    newCreateStudioLifecycleConfig,

    -- * Request Lenses
    createStudioLifecycleConfig_tags,
    createStudioLifecycleConfig_studioLifecycleConfigName,
    createStudioLifecycleConfig_studioLifecycleConfigContent,
    createStudioLifecycleConfig_studioLifecycleConfigAppType,

    -- * Destructuring the Response
    CreateStudioLifecycleConfigResponse (..),
    newCreateStudioLifecycleConfigResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newCreateStudioLifecycleConfig' smart constructor.
data CreateStudioLifecycleConfig = CreateStudioLifecycleConfig'
  { -- | Tags to be associated with the Lifecycle Configuration. Each tag
    -- consists of a key and an optional value. Tag keys must be unique per
    -- resource. Tags are searchable using the Search API.
    CreateStudioLifecycleConfig -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The name of the Studio Lifecycle Configuration to create.
    CreateStudioLifecycleConfig -> Text
studioLifecycleConfigName :: Prelude.Text,
    -- | The content of your Studio Lifecycle Configuration script. This content
    -- must be base64 encoded.
    CreateStudioLifecycleConfig -> Text
studioLifecycleConfigContent :: Prelude.Text,
    -- | The App type that the Lifecycle Configuration is attached to.
    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)

-- |
-- Create a value of 'CreateStudioLifecycleConfig' 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:
--
-- 'tags', 'createStudioLifecycleConfig_tags' - Tags to be associated with the Lifecycle Configuration. Each tag
-- consists of a key and an optional value. Tag keys must be unique per
-- resource. Tags are searchable using the Search API.
--
-- 'studioLifecycleConfigName', 'createStudioLifecycleConfig_studioLifecycleConfigName' - The name of the Studio Lifecycle Configuration to create.
--
-- 'studioLifecycleConfigContent', 'createStudioLifecycleConfig_studioLifecycleConfigContent' - The content of your Studio Lifecycle Configuration script. This content
-- must be base64 encoded.
--
-- 'studioLifecycleConfigAppType', 'createStudioLifecycleConfig_studioLifecycleConfigAppType' - The App type that the Lifecycle Configuration is attached to.
newCreateStudioLifecycleConfig ::
  -- | 'studioLifecycleConfigName'
  Prelude.Text ->
  -- | 'studioLifecycleConfigContent'
  Prelude.Text ->
  -- | 'studioLifecycleConfigAppType'
  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_
      }

-- | Tags to be associated with the Lifecycle Configuration. Each tag
-- consists of a key and an optional value. Tag keys must be unique per
-- resource. Tags are searchable using the Search API.
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

-- | The name of the Studio Lifecycle Configuration to create.
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)

-- | The content of your Studio Lifecycle Configuration script. This content
-- must be base64 encoded.
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)

-- | The App type that the Lifecycle Configuration is attached to.
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

-- | /See:/ 'newCreateStudioLifecycleConfigResponse' smart constructor.
data CreateStudioLifecycleConfigResponse = CreateStudioLifecycleConfigResponse'
  { -- | The ARN of your created Lifecycle Configuration.
    CreateStudioLifecycleConfigResponse -> Maybe Text
studioLifecycleConfigArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'CreateStudioLifecycleConfigResponse' 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:
--
-- 'studioLifecycleConfigArn', 'createStudioLifecycleConfigResponse_studioLifecycleConfigArn' - The ARN of your created Lifecycle Configuration.
--
-- 'httpStatus', 'createStudioLifecycleConfigResponse_httpStatus' - The response's http status code.
newCreateStudioLifecycleConfigResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The ARN of your created Lifecycle Configuration.
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)

-- | The response's http status code.
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