{-# 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.Nimble.UpdateStudioComponent
-- 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)
--
-- Updates a studio component resource.
module Amazonka.Nimble.UpdateStudioComponent
  ( -- * Creating a Request
    UpdateStudioComponent (..),
    newUpdateStudioComponent,

    -- * Request Lenses
    updateStudioComponent_initializationScripts,
    updateStudioComponent_clientToken,
    updateStudioComponent_ec2SecurityGroupIds,
    updateStudioComponent_subtype,
    updateStudioComponent_name,
    updateStudioComponent_scriptParameters,
    updateStudioComponent_type,
    updateStudioComponent_configuration,
    updateStudioComponent_description,
    updateStudioComponent_studioId,
    updateStudioComponent_studioComponentId,

    -- * Destructuring the Response
    UpdateStudioComponentResponse (..),
    newUpdateStudioComponentResponse,

    -- * Response Lenses
    updateStudioComponentResponse_studioComponent,
    updateStudioComponentResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | The studio component ID.
--
-- /See:/ 'newUpdateStudioComponent' smart constructor.
data UpdateStudioComponent = UpdateStudioComponent'
  { -- | Initialization scripts for studio components.
    UpdateStudioComponent
-> Maybe [StudioComponentInitializationScript]
initializationScripts :: Prelude.Maybe [StudioComponentInitializationScript],
    -- | To make an idempotent API request using one of these actions, specify a
    -- client token in the request. You should not reuse the same client token
    -- for other API requests. If you retry a request that completed
    -- successfully using the same client token and the same parameters, the
    -- retry succeeds without performing any further actions. If you retry a
    -- successful request using the same client token, but one or more of the
    -- parameters are different, the retry fails with a ValidationException
    -- error.
    UpdateStudioComponent -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The EC2 security groups that control access to the studio component.
    UpdateStudioComponent -> Maybe (NonEmpty Text)
ec2SecurityGroupIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The specific subtype of a studio component.
    UpdateStudioComponent -> Maybe StudioComponentSubtype
subtype :: Prelude.Maybe StudioComponentSubtype,
    -- | The name for the studio component.
    UpdateStudioComponent -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Parameters for the studio component scripts.
    UpdateStudioComponent -> Maybe [ScriptParameterKeyValue]
scriptParameters :: Prelude.Maybe [ScriptParameterKeyValue],
    -- | The type of the studio component.
    UpdateStudioComponent -> Maybe StudioComponentType
type' :: Prelude.Maybe StudioComponentType,
    -- | The configuration of the studio component, based on component type.
    UpdateStudioComponent -> Maybe StudioComponentConfiguration
configuration :: Prelude.Maybe StudioComponentConfiguration,
    -- | The description.
    UpdateStudioComponent -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The studio ID.
    UpdateStudioComponent -> Text
studioId :: Prelude.Text,
    -- | The studio component ID.
    UpdateStudioComponent -> Text
studioComponentId :: Prelude.Text
  }
  deriving (UpdateStudioComponent -> UpdateStudioComponent -> Bool
(UpdateStudioComponent -> UpdateStudioComponent -> Bool)
-> (UpdateStudioComponent -> UpdateStudioComponent -> Bool)
-> Eq UpdateStudioComponent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStudioComponent -> UpdateStudioComponent -> Bool
$c/= :: UpdateStudioComponent -> UpdateStudioComponent -> Bool
== :: UpdateStudioComponent -> UpdateStudioComponent -> Bool
$c== :: UpdateStudioComponent -> UpdateStudioComponent -> Bool
Prelude.Eq, ReadPrec [UpdateStudioComponent]
ReadPrec UpdateStudioComponent
Int -> ReadS UpdateStudioComponent
ReadS [UpdateStudioComponent]
(Int -> ReadS UpdateStudioComponent)
-> ReadS [UpdateStudioComponent]
-> ReadPrec UpdateStudioComponent
-> ReadPrec [UpdateStudioComponent]
-> Read UpdateStudioComponent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStudioComponent]
$creadListPrec :: ReadPrec [UpdateStudioComponent]
readPrec :: ReadPrec UpdateStudioComponent
$creadPrec :: ReadPrec UpdateStudioComponent
readList :: ReadS [UpdateStudioComponent]
$creadList :: ReadS [UpdateStudioComponent]
readsPrec :: Int -> ReadS UpdateStudioComponent
$creadsPrec :: Int -> ReadS UpdateStudioComponent
Prelude.Read, Int -> UpdateStudioComponent -> ShowS
[UpdateStudioComponent] -> ShowS
UpdateStudioComponent -> String
(Int -> UpdateStudioComponent -> ShowS)
-> (UpdateStudioComponent -> String)
-> ([UpdateStudioComponent] -> ShowS)
-> Show UpdateStudioComponent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStudioComponent] -> ShowS
$cshowList :: [UpdateStudioComponent] -> ShowS
show :: UpdateStudioComponent -> String
$cshow :: UpdateStudioComponent -> String
showsPrec :: Int -> UpdateStudioComponent -> ShowS
$cshowsPrec :: Int -> UpdateStudioComponent -> ShowS
Prelude.Show, (forall x. UpdateStudioComponent -> Rep UpdateStudioComponent x)
-> (forall x. Rep UpdateStudioComponent x -> UpdateStudioComponent)
-> Generic UpdateStudioComponent
forall x. Rep UpdateStudioComponent x -> UpdateStudioComponent
forall x. UpdateStudioComponent -> Rep UpdateStudioComponent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateStudioComponent x -> UpdateStudioComponent
$cfrom :: forall x. UpdateStudioComponent -> Rep UpdateStudioComponent x
Prelude.Generic)

-- |
-- Create a value of 'UpdateStudioComponent' 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:
--
-- 'initializationScripts', 'updateStudioComponent_initializationScripts' - Initialization scripts for studio components.
--
-- 'clientToken', 'updateStudioComponent_clientToken' - To make an idempotent API request using one of these actions, specify a
-- client token in the request. You should not reuse the same client token
-- for other API requests. If you retry a request that completed
-- successfully using the same client token and the same parameters, the
-- retry succeeds without performing any further actions. If you retry a
-- successful request using the same client token, but one or more of the
-- parameters are different, the retry fails with a ValidationException
-- error.
--
-- 'ec2SecurityGroupIds', 'updateStudioComponent_ec2SecurityGroupIds' - The EC2 security groups that control access to the studio component.
--
-- 'subtype', 'updateStudioComponent_subtype' - The specific subtype of a studio component.
--
-- 'name', 'updateStudioComponent_name' - The name for the studio component.
--
-- 'scriptParameters', 'updateStudioComponent_scriptParameters' - Parameters for the studio component scripts.
--
-- 'type'', 'updateStudioComponent_type' - The type of the studio component.
--
-- 'configuration', 'updateStudioComponent_configuration' - The configuration of the studio component, based on component type.
--
-- 'description', 'updateStudioComponent_description' - The description.
--
-- 'studioId', 'updateStudioComponent_studioId' - The studio ID.
--
-- 'studioComponentId', 'updateStudioComponent_studioComponentId' - The studio component ID.
newUpdateStudioComponent ::
  -- | 'studioId'
  Prelude.Text ->
  -- | 'studioComponentId'
  Prelude.Text ->
  UpdateStudioComponent
newUpdateStudioComponent :: Text -> Text -> UpdateStudioComponent
newUpdateStudioComponent
  Text
pStudioId_
  Text
pStudioComponentId_ =
    UpdateStudioComponent' :: Maybe [StudioComponentInitializationScript]
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe StudioComponentSubtype
-> Maybe Text
-> Maybe [ScriptParameterKeyValue]
-> Maybe StudioComponentType
-> Maybe StudioComponentConfiguration
-> Maybe Text
-> Text
-> Text
-> UpdateStudioComponent
UpdateStudioComponent'
      { $sel:initializationScripts:UpdateStudioComponent' :: Maybe [StudioComponentInitializationScript]
initializationScripts =
          Maybe [StudioComponentInitializationScript]
forall a. Maybe a
Prelude.Nothing,
        $sel:clientToken:UpdateStudioComponent' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:ec2SecurityGroupIds:UpdateStudioComponent' :: Maybe (NonEmpty Text)
ec2SecurityGroupIds = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:subtype:UpdateStudioComponent' :: Maybe StudioComponentSubtype
subtype = Maybe StudioComponentSubtype
forall a. Maybe a
Prelude.Nothing,
        $sel:name:UpdateStudioComponent' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:scriptParameters:UpdateStudioComponent' :: Maybe [ScriptParameterKeyValue]
scriptParameters = Maybe [ScriptParameterKeyValue]
forall a. Maybe a
Prelude.Nothing,
        $sel:type':UpdateStudioComponent' :: Maybe StudioComponentType
type' = Maybe StudioComponentType
forall a. Maybe a
Prelude.Nothing,
        $sel:configuration:UpdateStudioComponent' :: Maybe StudioComponentConfiguration
configuration = Maybe StudioComponentConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:description:UpdateStudioComponent' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:studioId:UpdateStudioComponent' :: Text
studioId = Text
pStudioId_,
        $sel:studioComponentId:UpdateStudioComponent' :: Text
studioComponentId = Text
pStudioComponentId_
      }

-- | Initialization scripts for studio components.
updateStudioComponent_initializationScripts :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe [StudioComponentInitializationScript])
updateStudioComponent_initializationScripts :: (Maybe [StudioComponentInitializationScript]
 -> f (Maybe [StudioComponentInitializationScript]))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_initializationScripts = (UpdateStudioComponent
 -> Maybe [StudioComponentInitializationScript])
-> (UpdateStudioComponent
    -> Maybe [StudioComponentInitializationScript]
    -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe [StudioComponentInitializationScript])
     (Maybe [StudioComponentInitializationScript])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe [StudioComponentInitializationScript]
initializationScripts :: Maybe [StudioComponentInitializationScript]
$sel:initializationScripts:UpdateStudioComponent' :: UpdateStudioComponent
-> Maybe [StudioComponentInitializationScript]
initializationScripts} -> Maybe [StudioComponentInitializationScript]
initializationScripts) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe [StudioComponentInitializationScript]
a -> UpdateStudioComponent
s {$sel:initializationScripts:UpdateStudioComponent' :: Maybe [StudioComponentInitializationScript]
initializationScripts = Maybe [StudioComponentInitializationScript]
a} :: UpdateStudioComponent) ((Maybe [StudioComponentInitializationScript]
  -> f (Maybe [StudioComponentInitializationScript]))
 -> UpdateStudioComponent -> f UpdateStudioComponent)
-> ((Maybe [StudioComponentInitializationScript]
     -> f (Maybe [StudioComponentInitializationScript]))
    -> Maybe [StudioComponentInitializationScript]
    -> f (Maybe [StudioComponentInitializationScript]))
-> (Maybe [StudioComponentInitializationScript]
    -> f (Maybe [StudioComponentInitializationScript]))
-> UpdateStudioComponent
-> f UpdateStudioComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
-> Iso
     (Maybe [StudioComponentInitializationScript])
     (Maybe [StudioComponentInitializationScript])
     (Maybe [StudioComponentInitializationScript])
     (Maybe [StudioComponentInitializationScript])
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
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
  [StudioComponentInitializationScript]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | To make an idempotent API request using one of these actions, specify a
-- client token in the request. You should not reuse the same client token
-- for other API requests. If you retry a request that completed
-- successfully using the same client token and the same parameters, the
-- retry succeeds without performing any further actions. If you retry a
-- successful request using the same client token, but one or more of the
-- parameters are different, the retry fails with a ValidationException
-- error.
updateStudioComponent_clientToken :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe Prelude.Text)
updateStudioComponent_clientToken :: (Maybe Text -> f (Maybe Text))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_clientToken = (UpdateStudioComponent -> Maybe Text)
-> (UpdateStudioComponent -> Maybe Text -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe Text
a -> UpdateStudioComponent
s {$sel:clientToken:UpdateStudioComponent' :: Maybe Text
clientToken = Maybe Text
a} :: UpdateStudioComponent)

-- | The EC2 security groups that control access to the studio component.
updateStudioComponent_ec2SecurityGroupIds :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateStudioComponent_ec2SecurityGroupIds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_ec2SecurityGroupIds = (UpdateStudioComponent -> Maybe (NonEmpty Text))
-> (UpdateStudioComponent
    -> Maybe (NonEmpty Text) -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe (NonEmpty Text)
ec2SecurityGroupIds :: Maybe (NonEmpty Text)
$sel:ec2SecurityGroupIds:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe (NonEmpty Text)
ec2SecurityGroupIds} -> Maybe (NonEmpty Text)
ec2SecurityGroupIds) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe (NonEmpty Text)
a -> UpdateStudioComponent
s {$sel:ec2SecurityGroupIds:UpdateStudioComponent' :: Maybe (NonEmpty Text)
ec2SecurityGroupIds = Maybe (NonEmpty Text)
a} :: UpdateStudioComponent) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> UpdateStudioComponent -> f UpdateStudioComponent)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateStudioComponent
-> f UpdateStudioComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The specific subtype of a studio component.
updateStudioComponent_subtype :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe StudioComponentSubtype)
updateStudioComponent_subtype :: (Maybe StudioComponentSubtype -> f (Maybe StudioComponentSubtype))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_subtype = (UpdateStudioComponent -> Maybe StudioComponentSubtype)
-> (UpdateStudioComponent
    -> Maybe StudioComponentSubtype -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe StudioComponentSubtype)
     (Maybe StudioComponentSubtype)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe StudioComponentSubtype
subtype :: Maybe StudioComponentSubtype
$sel:subtype:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentSubtype
subtype} -> Maybe StudioComponentSubtype
subtype) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe StudioComponentSubtype
a -> UpdateStudioComponent
s {$sel:subtype:UpdateStudioComponent' :: Maybe StudioComponentSubtype
subtype = Maybe StudioComponentSubtype
a} :: UpdateStudioComponent)

-- | The name for the studio component.
updateStudioComponent_name :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe Prelude.Text)
updateStudioComponent_name :: (Maybe Text -> f (Maybe Text))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_name = (UpdateStudioComponent -> Maybe Text)
-> (UpdateStudioComponent -> Maybe Text -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe Text
name :: Maybe Text
$sel:name:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe Text
a -> UpdateStudioComponent
s {$sel:name:UpdateStudioComponent' :: Maybe Text
name = Maybe Text
a} :: UpdateStudioComponent)

-- | Parameters for the studio component scripts.
updateStudioComponent_scriptParameters :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe [ScriptParameterKeyValue])
updateStudioComponent_scriptParameters :: (Maybe [ScriptParameterKeyValue]
 -> f (Maybe [ScriptParameterKeyValue]))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_scriptParameters = (UpdateStudioComponent -> Maybe [ScriptParameterKeyValue])
-> (UpdateStudioComponent
    -> Maybe [ScriptParameterKeyValue] -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe [ScriptParameterKeyValue])
     (Maybe [ScriptParameterKeyValue])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe [ScriptParameterKeyValue]
scriptParameters :: Maybe [ScriptParameterKeyValue]
$sel:scriptParameters:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe [ScriptParameterKeyValue]
scriptParameters} -> Maybe [ScriptParameterKeyValue]
scriptParameters) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe [ScriptParameterKeyValue]
a -> UpdateStudioComponent
s {$sel:scriptParameters:UpdateStudioComponent' :: Maybe [ScriptParameterKeyValue]
scriptParameters = Maybe [ScriptParameterKeyValue]
a} :: UpdateStudioComponent) ((Maybe [ScriptParameterKeyValue]
  -> f (Maybe [ScriptParameterKeyValue]))
 -> UpdateStudioComponent -> f UpdateStudioComponent)
-> ((Maybe [ScriptParameterKeyValue]
     -> f (Maybe [ScriptParameterKeyValue]))
    -> Maybe [ScriptParameterKeyValue]
    -> f (Maybe [ScriptParameterKeyValue]))
-> (Maybe [ScriptParameterKeyValue]
    -> f (Maybe [ScriptParameterKeyValue]))
-> UpdateStudioComponent
-> f UpdateStudioComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
-> Iso
     (Maybe [ScriptParameterKeyValue])
     (Maybe [ScriptParameterKeyValue])
     (Maybe [ScriptParameterKeyValue])
     (Maybe [ScriptParameterKeyValue])
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
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
  [ScriptParameterKeyValue]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The type of the studio component.
updateStudioComponent_type :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe StudioComponentType)
updateStudioComponent_type :: (Maybe StudioComponentType -> f (Maybe StudioComponentType))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_type = (UpdateStudioComponent -> Maybe StudioComponentType)
-> (UpdateStudioComponent
    -> Maybe StudioComponentType -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe StudioComponentType)
     (Maybe StudioComponentType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe StudioComponentType
type' :: Maybe StudioComponentType
$sel:type':UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentType
type'} -> Maybe StudioComponentType
type') (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe StudioComponentType
a -> UpdateStudioComponent
s {$sel:type':UpdateStudioComponent' :: Maybe StudioComponentType
type' = Maybe StudioComponentType
a} :: UpdateStudioComponent)

-- | The configuration of the studio component, based on component type.
updateStudioComponent_configuration :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe StudioComponentConfiguration)
updateStudioComponent_configuration :: (Maybe StudioComponentConfiguration
 -> f (Maybe StudioComponentConfiguration))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_configuration = (UpdateStudioComponent -> Maybe StudioComponentConfiguration)
-> (UpdateStudioComponent
    -> Maybe StudioComponentConfiguration -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe StudioComponentConfiguration)
     (Maybe StudioComponentConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe StudioComponentConfiguration
configuration :: Maybe StudioComponentConfiguration
$sel:configuration:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentConfiguration
configuration} -> Maybe StudioComponentConfiguration
configuration) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe StudioComponentConfiguration
a -> UpdateStudioComponent
s {$sel:configuration:UpdateStudioComponent' :: Maybe StudioComponentConfiguration
configuration = Maybe StudioComponentConfiguration
a} :: UpdateStudioComponent)

-- | The description.
updateStudioComponent_description :: Lens.Lens' UpdateStudioComponent (Prelude.Maybe Prelude.Text)
updateStudioComponent_description :: (Maybe Text -> f (Maybe Text))
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_description = (UpdateStudioComponent -> Maybe Text)
-> (UpdateStudioComponent -> Maybe Text -> UpdateStudioComponent)
-> Lens
     UpdateStudioComponent
     UpdateStudioComponent
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Maybe Text
description :: Maybe Text
$sel:description:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Maybe Text
a -> UpdateStudioComponent
s {$sel:description:UpdateStudioComponent' :: Maybe Text
description = Maybe Text
a} :: UpdateStudioComponent)

-- | The studio ID.
updateStudioComponent_studioId :: Lens.Lens' UpdateStudioComponent Prelude.Text
updateStudioComponent_studioId :: (Text -> f Text)
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_studioId = (UpdateStudioComponent -> Text)
-> (UpdateStudioComponent -> Text -> UpdateStudioComponent)
-> Lens UpdateStudioComponent UpdateStudioComponent Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Text
studioId :: Text
$sel:studioId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
studioId} -> Text
studioId) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Text
a -> UpdateStudioComponent
s {$sel:studioId:UpdateStudioComponent' :: Text
studioId = Text
a} :: UpdateStudioComponent)

-- | The studio component ID.
updateStudioComponent_studioComponentId :: Lens.Lens' UpdateStudioComponent Prelude.Text
updateStudioComponent_studioComponentId :: (Text -> f Text)
-> UpdateStudioComponent -> f UpdateStudioComponent
updateStudioComponent_studioComponentId = (UpdateStudioComponent -> Text)
-> (UpdateStudioComponent -> Text -> UpdateStudioComponent)
-> Lens UpdateStudioComponent UpdateStudioComponent Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponent' {Text
studioComponentId :: Text
$sel:studioComponentId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
studioComponentId} -> Text
studioComponentId) (\s :: UpdateStudioComponent
s@UpdateStudioComponent' {} Text
a -> UpdateStudioComponent
s {$sel:studioComponentId:UpdateStudioComponent' :: Text
studioComponentId = Text
a} :: UpdateStudioComponent)

instance Core.AWSRequest UpdateStudioComponent where
  type
    AWSResponse UpdateStudioComponent =
      UpdateStudioComponentResponse
  request :: UpdateStudioComponent -> Request UpdateStudioComponent
request = Service -> UpdateStudioComponent -> Request UpdateStudioComponent
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateStudioComponent
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateStudioComponent)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateStudioComponent))
-> Logger
-> Service
-> Proxy UpdateStudioComponent
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateStudioComponent)))
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 StudioComponent -> Int -> UpdateStudioComponentResponse
UpdateStudioComponentResponse'
            (Maybe StudioComponent -> Int -> UpdateStudioComponentResponse)
-> Either String (Maybe StudioComponent)
-> Either String (Int -> UpdateStudioComponentResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe StudioComponent)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"studioComponent")
            Either String (Int -> UpdateStudioComponentResponse)
-> Either String Int -> Either String UpdateStudioComponentResponse
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 UpdateStudioComponent

instance Prelude.NFData UpdateStudioComponent

instance Core.ToHeaders UpdateStudioComponent where
  toHeaders :: UpdateStudioComponent -> ResponseHeaders
toHeaders UpdateStudioComponent' {Maybe [ScriptParameterKeyValue]
Maybe [StudioComponentInitializationScript]
Maybe (NonEmpty Text)
Maybe Text
Maybe StudioComponentConfiguration
Maybe StudioComponentSubtype
Maybe StudioComponentType
Text
studioComponentId :: Text
studioId :: Text
description :: Maybe Text
configuration :: Maybe StudioComponentConfiguration
type' :: Maybe StudioComponentType
scriptParameters :: Maybe [ScriptParameterKeyValue]
name :: Maybe Text
subtype :: Maybe StudioComponentSubtype
ec2SecurityGroupIds :: Maybe (NonEmpty Text)
clientToken :: Maybe Text
initializationScripts :: Maybe [StudioComponentInitializationScript]
$sel:studioComponentId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:studioId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:description:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:configuration:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentConfiguration
$sel:type':UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentType
$sel:scriptParameters:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe [ScriptParameterKeyValue]
$sel:name:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:subtype:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentSubtype
$sel:ec2SecurityGroupIds:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe (NonEmpty Text)
$sel:clientToken:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:initializationScripts:UpdateStudioComponent' :: UpdateStudioComponent
-> Maybe [StudioComponentInitializationScript]
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"X-Amz-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
clientToken,
        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 UpdateStudioComponent where
  toJSON :: UpdateStudioComponent -> Value
toJSON UpdateStudioComponent' {Maybe [ScriptParameterKeyValue]
Maybe [StudioComponentInitializationScript]
Maybe (NonEmpty Text)
Maybe Text
Maybe StudioComponentConfiguration
Maybe StudioComponentSubtype
Maybe StudioComponentType
Text
studioComponentId :: Text
studioId :: Text
description :: Maybe Text
configuration :: Maybe StudioComponentConfiguration
type' :: Maybe StudioComponentType
scriptParameters :: Maybe [ScriptParameterKeyValue]
name :: Maybe Text
subtype :: Maybe StudioComponentSubtype
ec2SecurityGroupIds :: Maybe (NonEmpty Text)
clientToken :: Maybe Text
initializationScripts :: Maybe [StudioComponentInitializationScript]
$sel:studioComponentId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:studioId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:description:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:configuration:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentConfiguration
$sel:type':UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentType
$sel:scriptParameters:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe [ScriptParameterKeyValue]
$sel:name:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:subtype:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentSubtype
$sel:ec2SecurityGroupIds:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe (NonEmpty Text)
$sel:clientToken:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:initializationScripts:UpdateStudioComponent' :: UpdateStudioComponent
-> Maybe [StudioComponentInitializationScript]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"initializationScripts" Text -> [StudioComponentInitializationScript] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([StudioComponentInitializationScript] -> Pair)
-> Maybe [StudioComponentInitializationScript] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [StudioComponentInitializationScript]
initializationScripts,
            (Text
"ec2SecurityGroupIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
ec2SecurityGroupIds,
            (Text
"subtype" Text -> StudioComponentSubtype -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (StudioComponentSubtype -> Pair)
-> Maybe StudioComponentSubtype -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StudioComponentSubtype
subtype,
            (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
            (Text
"scriptParameters" Text -> [ScriptParameterKeyValue] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ScriptParameterKeyValue] -> Pair)
-> Maybe [ScriptParameterKeyValue] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ScriptParameterKeyValue]
scriptParameters,
            (Text
"type" Text -> StudioComponentType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (StudioComponentType -> Pair)
-> Maybe StudioComponentType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StudioComponentType
type',
            (Text
"configuration" Text -> StudioComponentConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (StudioComponentConfiguration -> Pair)
-> Maybe StudioComponentConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StudioComponentConfiguration
configuration,
            (Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description
          ]
      )

instance Core.ToPath UpdateStudioComponent where
  toPath :: UpdateStudioComponent -> ByteString
toPath UpdateStudioComponent' {Maybe [ScriptParameterKeyValue]
Maybe [StudioComponentInitializationScript]
Maybe (NonEmpty Text)
Maybe Text
Maybe StudioComponentConfiguration
Maybe StudioComponentSubtype
Maybe StudioComponentType
Text
studioComponentId :: Text
studioId :: Text
description :: Maybe Text
configuration :: Maybe StudioComponentConfiguration
type' :: Maybe StudioComponentType
scriptParameters :: Maybe [ScriptParameterKeyValue]
name :: Maybe Text
subtype :: Maybe StudioComponentSubtype
ec2SecurityGroupIds :: Maybe (NonEmpty Text)
clientToken :: Maybe Text
initializationScripts :: Maybe [StudioComponentInitializationScript]
$sel:studioComponentId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:studioId:UpdateStudioComponent' :: UpdateStudioComponent -> Text
$sel:description:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:configuration:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentConfiguration
$sel:type':UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentType
$sel:scriptParameters:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe [ScriptParameterKeyValue]
$sel:name:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:subtype:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe StudioComponentSubtype
$sel:ec2SecurityGroupIds:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe (NonEmpty Text)
$sel:clientToken:UpdateStudioComponent' :: UpdateStudioComponent -> Maybe Text
$sel:initializationScripts:UpdateStudioComponent' :: UpdateStudioComponent
-> Maybe [StudioComponentInitializationScript]
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-08-01/studios/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
        ByteString
"/studio-components/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioComponentId
      ]

instance Core.ToQuery UpdateStudioComponent where
  toQuery :: UpdateStudioComponent -> QueryString
toQuery = QueryString -> UpdateStudioComponent -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateStudioComponentResponse' smart constructor.
data UpdateStudioComponentResponse = UpdateStudioComponentResponse'
  { -- | Information about the studio component.
    UpdateStudioComponentResponse -> Maybe StudioComponent
studioComponent :: Prelude.Maybe StudioComponent,
    -- | The response's http status code.
    UpdateStudioComponentResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateStudioComponentResponse
-> UpdateStudioComponentResponse -> Bool
(UpdateStudioComponentResponse
 -> UpdateStudioComponentResponse -> Bool)
-> (UpdateStudioComponentResponse
    -> UpdateStudioComponentResponse -> Bool)
-> Eq UpdateStudioComponentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStudioComponentResponse
-> UpdateStudioComponentResponse -> Bool
$c/= :: UpdateStudioComponentResponse
-> UpdateStudioComponentResponse -> Bool
== :: UpdateStudioComponentResponse
-> UpdateStudioComponentResponse -> Bool
$c== :: UpdateStudioComponentResponse
-> UpdateStudioComponentResponse -> Bool
Prelude.Eq, ReadPrec [UpdateStudioComponentResponse]
ReadPrec UpdateStudioComponentResponse
Int -> ReadS UpdateStudioComponentResponse
ReadS [UpdateStudioComponentResponse]
(Int -> ReadS UpdateStudioComponentResponse)
-> ReadS [UpdateStudioComponentResponse]
-> ReadPrec UpdateStudioComponentResponse
-> ReadPrec [UpdateStudioComponentResponse]
-> Read UpdateStudioComponentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStudioComponentResponse]
$creadListPrec :: ReadPrec [UpdateStudioComponentResponse]
readPrec :: ReadPrec UpdateStudioComponentResponse
$creadPrec :: ReadPrec UpdateStudioComponentResponse
readList :: ReadS [UpdateStudioComponentResponse]
$creadList :: ReadS [UpdateStudioComponentResponse]
readsPrec :: Int -> ReadS UpdateStudioComponentResponse
$creadsPrec :: Int -> ReadS UpdateStudioComponentResponse
Prelude.Read, Int -> UpdateStudioComponentResponse -> ShowS
[UpdateStudioComponentResponse] -> ShowS
UpdateStudioComponentResponse -> String
(Int -> UpdateStudioComponentResponse -> ShowS)
-> (UpdateStudioComponentResponse -> String)
-> ([UpdateStudioComponentResponse] -> ShowS)
-> Show UpdateStudioComponentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStudioComponentResponse] -> ShowS
$cshowList :: [UpdateStudioComponentResponse] -> ShowS
show :: UpdateStudioComponentResponse -> String
$cshow :: UpdateStudioComponentResponse -> String
showsPrec :: Int -> UpdateStudioComponentResponse -> ShowS
$cshowsPrec :: Int -> UpdateStudioComponentResponse -> ShowS
Prelude.Show, (forall x.
 UpdateStudioComponentResponse
 -> Rep UpdateStudioComponentResponse x)
-> (forall x.
    Rep UpdateStudioComponentResponse x
    -> UpdateStudioComponentResponse)
-> Generic UpdateStudioComponentResponse
forall x.
Rep UpdateStudioComponentResponse x
-> UpdateStudioComponentResponse
forall x.
UpdateStudioComponentResponse
-> Rep UpdateStudioComponentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateStudioComponentResponse x
-> UpdateStudioComponentResponse
$cfrom :: forall x.
UpdateStudioComponentResponse
-> Rep UpdateStudioComponentResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateStudioComponentResponse' 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:
--
-- 'studioComponent', 'updateStudioComponentResponse_studioComponent' - Information about the studio component.
--
-- 'httpStatus', 'updateStudioComponentResponse_httpStatus' - The response's http status code.
newUpdateStudioComponentResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateStudioComponentResponse
newUpdateStudioComponentResponse :: Int -> UpdateStudioComponentResponse
newUpdateStudioComponentResponse Int
pHttpStatus_ =
  UpdateStudioComponentResponse' :: Maybe StudioComponent -> Int -> UpdateStudioComponentResponse
UpdateStudioComponentResponse'
    { $sel:studioComponent:UpdateStudioComponentResponse' :: Maybe StudioComponent
studioComponent =
        Maybe StudioComponent
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateStudioComponentResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the studio component.
updateStudioComponentResponse_studioComponent :: Lens.Lens' UpdateStudioComponentResponse (Prelude.Maybe StudioComponent)
updateStudioComponentResponse_studioComponent :: (Maybe StudioComponent -> f (Maybe StudioComponent))
-> UpdateStudioComponentResponse -> f UpdateStudioComponentResponse
updateStudioComponentResponse_studioComponent = (UpdateStudioComponentResponse -> Maybe StudioComponent)
-> (UpdateStudioComponentResponse
    -> Maybe StudioComponent -> UpdateStudioComponentResponse)
-> Lens
     UpdateStudioComponentResponse
     UpdateStudioComponentResponse
     (Maybe StudioComponent)
     (Maybe StudioComponent)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponentResponse' {Maybe StudioComponent
studioComponent :: Maybe StudioComponent
$sel:studioComponent:UpdateStudioComponentResponse' :: UpdateStudioComponentResponse -> Maybe StudioComponent
studioComponent} -> Maybe StudioComponent
studioComponent) (\s :: UpdateStudioComponentResponse
s@UpdateStudioComponentResponse' {} Maybe StudioComponent
a -> UpdateStudioComponentResponse
s {$sel:studioComponent:UpdateStudioComponentResponse' :: Maybe StudioComponent
studioComponent = Maybe StudioComponent
a} :: UpdateStudioComponentResponse)

-- | The response's http status code.
updateStudioComponentResponse_httpStatus :: Lens.Lens' UpdateStudioComponentResponse Prelude.Int
updateStudioComponentResponse_httpStatus :: (Int -> f Int)
-> UpdateStudioComponentResponse -> f UpdateStudioComponentResponse
updateStudioComponentResponse_httpStatus = (UpdateStudioComponentResponse -> Int)
-> (UpdateStudioComponentResponse
    -> Int -> UpdateStudioComponentResponse)
-> Lens
     UpdateStudioComponentResponse UpdateStudioComponentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStudioComponentResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateStudioComponentResponse' :: UpdateStudioComponentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateStudioComponentResponse
s@UpdateStudioComponentResponse' {} Int
a -> UpdateStudioComponentResponse
s {$sel:httpStatus:UpdateStudioComponentResponse' :: Int
httpStatus = Int
a} :: UpdateStudioComponentResponse)

instance Prelude.NFData UpdateStudioComponentResponse