{-# 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.UpdateTrialComponent
(
UpdateTrialComponent (..),
newUpdateTrialComponent,
updateTrialComponent_status,
updateTrialComponent_parametersToRemove,
updateTrialComponent_outputArtifacts,
updateTrialComponent_startTime,
updateTrialComponent_outputArtifactsToRemove,
updateTrialComponent_endTime,
updateTrialComponent_parameters,
updateTrialComponent_displayName,
updateTrialComponent_inputArtifacts,
updateTrialComponent_inputArtifactsToRemove,
updateTrialComponent_trialComponentName,
UpdateTrialComponentResponse (..),
newUpdateTrialComponentResponse,
updateTrialComponentResponse_trialComponentArn,
updateTrialComponentResponse_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 UpdateTrialComponent = UpdateTrialComponent'
{
UpdateTrialComponent -> Maybe TrialComponentStatus
status :: Prelude.Maybe TrialComponentStatus,
UpdateTrialComponent -> Maybe [Text]
parametersToRemove :: Prelude.Maybe [Prelude.Text],
UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact),
UpdateTrialComponent -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
UpdateTrialComponent -> Maybe [Text]
outputArtifactsToRemove :: Prelude.Maybe [Prelude.Text],
UpdateTrialComponent -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentParameterValue)
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentParameterValue),
UpdateTrialComponent -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact),
UpdateTrialComponent -> Maybe [Text]
inputArtifactsToRemove :: Prelude.Maybe [Prelude.Text],
UpdateTrialComponent -> Text
trialComponentName :: Prelude.Text
}
deriving (UpdateTrialComponent -> UpdateTrialComponent -> Bool
(UpdateTrialComponent -> UpdateTrialComponent -> Bool)
-> (UpdateTrialComponent -> UpdateTrialComponent -> Bool)
-> Eq UpdateTrialComponent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrialComponent -> UpdateTrialComponent -> Bool
$c/= :: UpdateTrialComponent -> UpdateTrialComponent -> Bool
== :: UpdateTrialComponent -> UpdateTrialComponent -> Bool
$c== :: UpdateTrialComponent -> UpdateTrialComponent -> Bool
Prelude.Eq, ReadPrec [UpdateTrialComponent]
ReadPrec UpdateTrialComponent
Int -> ReadS UpdateTrialComponent
ReadS [UpdateTrialComponent]
(Int -> ReadS UpdateTrialComponent)
-> ReadS [UpdateTrialComponent]
-> ReadPrec UpdateTrialComponent
-> ReadPrec [UpdateTrialComponent]
-> Read UpdateTrialComponent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrialComponent]
$creadListPrec :: ReadPrec [UpdateTrialComponent]
readPrec :: ReadPrec UpdateTrialComponent
$creadPrec :: ReadPrec UpdateTrialComponent
readList :: ReadS [UpdateTrialComponent]
$creadList :: ReadS [UpdateTrialComponent]
readsPrec :: Int -> ReadS UpdateTrialComponent
$creadsPrec :: Int -> ReadS UpdateTrialComponent
Prelude.Read, Int -> UpdateTrialComponent -> ShowS
[UpdateTrialComponent] -> ShowS
UpdateTrialComponent -> String
(Int -> UpdateTrialComponent -> ShowS)
-> (UpdateTrialComponent -> String)
-> ([UpdateTrialComponent] -> ShowS)
-> Show UpdateTrialComponent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrialComponent] -> ShowS
$cshowList :: [UpdateTrialComponent] -> ShowS
show :: UpdateTrialComponent -> String
$cshow :: UpdateTrialComponent -> String
showsPrec :: Int -> UpdateTrialComponent -> ShowS
$cshowsPrec :: Int -> UpdateTrialComponent -> ShowS
Prelude.Show, (forall x. UpdateTrialComponent -> Rep UpdateTrialComponent x)
-> (forall x. Rep UpdateTrialComponent x -> UpdateTrialComponent)
-> Generic UpdateTrialComponent
forall x. Rep UpdateTrialComponent x -> UpdateTrialComponent
forall x. UpdateTrialComponent -> Rep UpdateTrialComponent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTrialComponent x -> UpdateTrialComponent
$cfrom :: forall x. UpdateTrialComponent -> Rep UpdateTrialComponent x
Prelude.Generic)
newUpdateTrialComponent ::
Prelude.Text ->
UpdateTrialComponent
newUpdateTrialComponent :: Text -> UpdateTrialComponent
newUpdateTrialComponent Text
pTrialComponentName_ =
UpdateTrialComponent' :: Maybe TrialComponentStatus
-> Maybe [Text]
-> Maybe (HashMap Text TrialComponentArtifact)
-> Maybe POSIX
-> Maybe [Text]
-> Maybe POSIX
-> Maybe (HashMap Text TrialComponentParameterValue)
-> Maybe Text
-> Maybe (HashMap Text TrialComponentArtifact)
-> Maybe [Text]
-> Text
-> UpdateTrialComponent
UpdateTrialComponent'
{ $sel:status:UpdateTrialComponent' :: Maybe TrialComponentStatus
status = Maybe TrialComponentStatus
forall a. Maybe a
Prelude.Nothing,
$sel:parametersToRemove:UpdateTrialComponent' :: Maybe [Text]
parametersToRemove = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:outputArtifacts:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:UpdateTrialComponent' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputArtifactsToRemove:UpdateTrialComponent' :: Maybe [Text]
outputArtifactsToRemove = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:UpdateTrialComponent' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:parameters:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentParameterValue)
parameters = Maybe (HashMap Text TrialComponentParameterValue)
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:UpdateTrialComponent' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputArtifacts:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
forall a. Maybe a
Prelude.Nothing,
$sel:inputArtifactsToRemove:UpdateTrialComponent' :: Maybe [Text]
inputArtifactsToRemove = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:trialComponentName:UpdateTrialComponent' :: Text
trialComponentName = Text
pTrialComponentName_
}
updateTrialComponent_status :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe TrialComponentStatus)
updateTrialComponent_status :: (Maybe TrialComponentStatus -> f (Maybe TrialComponentStatus))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_status = (UpdateTrialComponent -> Maybe TrialComponentStatus)
-> (UpdateTrialComponent
-> Maybe TrialComponentStatus -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe TrialComponentStatus)
(Maybe TrialComponentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe TrialComponentStatus
status :: Maybe TrialComponentStatus
$sel:status:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe TrialComponentStatus
status} -> Maybe TrialComponentStatus
status) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe TrialComponentStatus
a -> UpdateTrialComponent
s {$sel:status:UpdateTrialComponent' :: Maybe TrialComponentStatus
status = Maybe TrialComponentStatus
a} :: UpdateTrialComponent)
updateTrialComponent_parametersToRemove :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe [Prelude.Text])
updateTrialComponent_parametersToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_parametersToRemove = (UpdateTrialComponent -> Maybe [Text])
-> (UpdateTrialComponent -> Maybe [Text] -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe [Text]
parametersToRemove :: Maybe [Text]
$sel:parametersToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
parametersToRemove} -> Maybe [Text]
parametersToRemove) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe [Text]
a -> UpdateTrialComponent
s {$sel:parametersToRemove:UpdateTrialComponent' :: Maybe [Text]
parametersToRemove = Maybe [Text]
a} :: UpdateTrialComponent) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_outputArtifacts :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact))
updateTrialComponent_outputArtifacts :: (Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_outputArtifacts = (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentArtifact))
-> (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentArtifact)
-> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
$sel:outputArtifacts:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts} -> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe (HashMap Text TrialComponentArtifact)
a -> UpdateTrialComponent
s {$sel:outputArtifacts:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
a} :: UpdateTrialComponent) ((Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> (Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
-> Iso
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
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
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_startTime :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe Prelude.UTCTime)
updateTrialComponent_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_startTime = (UpdateTrialComponent -> Maybe POSIX)
-> (UpdateTrialComponent -> Maybe POSIX -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe POSIX
a -> UpdateTrialComponent
s {$sel:startTime:UpdateTrialComponent' :: Maybe POSIX
startTime = Maybe POSIX
a} :: UpdateTrialComponent) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
updateTrialComponent_outputArtifactsToRemove :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe [Prelude.Text])
updateTrialComponent_outputArtifactsToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_outputArtifactsToRemove = (UpdateTrialComponent -> Maybe [Text])
-> (UpdateTrialComponent -> Maybe [Text] -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe [Text]
outputArtifactsToRemove :: Maybe [Text]
$sel:outputArtifactsToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
outputArtifactsToRemove} -> Maybe [Text]
outputArtifactsToRemove) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe [Text]
a -> UpdateTrialComponent
s {$sel:outputArtifactsToRemove:UpdateTrialComponent' :: Maybe [Text]
outputArtifactsToRemove = Maybe [Text]
a} :: UpdateTrialComponent) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_endTime :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe Prelude.UTCTime)
updateTrialComponent_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_endTime = (UpdateTrialComponent -> Maybe POSIX)
-> (UpdateTrialComponent -> Maybe POSIX -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe POSIX
a -> UpdateTrialComponent
s {$sel:endTime:UpdateTrialComponent' :: Maybe POSIX
endTime = Maybe POSIX
a} :: UpdateTrialComponent) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
updateTrialComponent_parameters :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentParameterValue))
updateTrialComponent_parameters :: (Maybe (HashMap Text TrialComponentParameterValue)
-> f (Maybe (HashMap Text TrialComponentParameterValue)))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_parameters = (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentParameterValue))
-> (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentParameterValue)
-> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe (HashMap Text TrialComponentParameterValue))
(Maybe (HashMap Text TrialComponentParameterValue))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe (HashMap Text TrialComponentParameterValue)
parameters :: Maybe (HashMap Text TrialComponentParameterValue)
$sel:parameters:UpdateTrialComponent' :: UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentParameterValue)
parameters} -> Maybe (HashMap Text TrialComponentParameterValue)
parameters) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe (HashMap Text TrialComponentParameterValue)
a -> UpdateTrialComponent
s {$sel:parameters:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentParameterValue)
parameters = Maybe (HashMap Text TrialComponentParameterValue)
a} :: UpdateTrialComponent) ((Maybe (HashMap Text TrialComponentParameterValue)
-> f (Maybe (HashMap Text TrialComponentParameterValue)))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe (HashMap Text TrialComponentParameterValue)
-> f (Maybe (HashMap Text TrialComponentParameterValue)))
-> Maybe (HashMap Text TrialComponentParameterValue)
-> f (Maybe (HashMap Text TrialComponentParameterValue)))
-> (Maybe (HashMap Text TrialComponentParameterValue)
-> f (Maybe (HashMap Text TrialComponentParameterValue)))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
-> Iso
(Maybe (HashMap Text TrialComponentParameterValue))
(Maybe (HashMap Text TrialComponentParameterValue))
(Maybe (HashMap Text TrialComponentParameterValue))
(Maybe (HashMap Text TrialComponentParameterValue))
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
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
(HashMap Text TrialComponentParameterValue)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_displayName :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe Prelude.Text)
updateTrialComponent_displayName :: (Maybe Text -> f (Maybe Text))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_displayName = (UpdateTrialComponent -> Maybe Text)
-> (UpdateTrialComponent -> Maybe Text -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent UpdateTrialComponent (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe Text
displayName :: Maybe Text
$sel:displayName:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe Text
a -> UpdateTrialComponent
s {$sel:displayName:UpdateTrialComponent' :: Maybe Text
displayName = Maybe Text
a} :: UpdateTrialComponent)
updateTrialComponent_inputArtifacts :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact))
updateTrialComponent_inputArtifacts :: (Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_inputArtifacts = (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentArtifact))
-> (UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentArtifact)
-> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
$sel:inputArtifacts:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts} -> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe (HashMap Text TrialComponentArtifact)
a -> UpdateTrialComponent
s {$sel:inputArtifacts:UpdateTrialComponent' :: Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
a} :: UpdateTrialComponent) ((Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> (Maybe (HashMap Text TrialComponentArtifact)
-> f (Maybe (HashMap Text TrialComponentArtifact)))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
-> Iso
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
(Maybe (HashMap Text TrialComponentArtifact))
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
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
(HashMap Text TrialComponentArtifact)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_inputArtifactsToRemove :: Lens.Lens' UpdateTrialComponent (Prelude.Maybe [Prelude.Text])
updateTrialComponent_inputArtifactsToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_inputArtifactsToRemove = (UpdateTrialComponent -> Maybe [Text])
-> (UpdateTrialComponent -> Maybe [Text] -> UpdateTrialComponent)
-> Lens
UpdateTrialComponent
UpdateTrialComponent
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Maybe [Text]
inputArtifactsToRemove :: Maybe [Text]
$sel:inputArtifactsToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
inputArtifactsToRemove} -> Maybe [Text]
inputArtifactsToRemove) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Maybe [Text]
a -> UpdateTrialComponent
s {$sel:inputArtifactsToRemove:UpdateTrialComponent' :: Maybe [Text]
inputArtifactsToRemove = Maybe [Text]
a} :: UpdateTrialComponent) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent -> f UpdateTrialComponent)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateTrialComponent
-> f UpdateTrialComponent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateTrialComponent_trialComponentName :: Lens.Lens' UpdateTrialComponent Prelude.Text
updateTrialComponent_trialComponentName :: (Text -> f Text) -> UpdateTrialComponent -> f UpdateTrialComponent
updateTrialComponent_trialComponentName = (UpdateTrialComponent -> Text)
-> (UpdateTrialComponent -> Text -> UpdateTrialComponent)
-> Lens UpdateTrialComponent UpdateTrialComponent Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponent' {Text
trialComponentName :: Text
$sel:trialComponentName:UpdateTrialComponent' :: UpdateTrialComponent -> Text
trialComponentName} -> Text
trialComponentName) (\s :: UpdateTrialComponent
s@UpdateTrialComponent' {} Text
a -> UpdateTrialComponent
s {$sel:trialComponentName:UpdateTrialComponent' :: Text
trialComponentName = Text
a} :: UpdateTrialComponent)
instance Core.AWSRequest UpdateTrialComponent where
type
AWSResponse UpdateTrialComponent =
UpdateTrialComponentResponse
request :: UpdateTrialComponent -> Request UpdateTrialComponent
request = Service -> UpdateTrialComponent -> Request UpdateTrialComponent
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateTrialComponent
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateTrialComponent)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateTrialComponent))
-> Logger
-> Service
-> Proxy UpdateTrialComponent
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateTrialComponent)))
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 -> UpdateTrialComponentResponse
UpdateTrialComponentResponse'
(Maybe Text -> Int -> UpdateTrialComponentResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateTrialComponentResponse)
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
"TrialComponentArn")
Either String (Int -> UpdateTrialComponentResponse)
-> Either String Int -> Either String UpdateTrialComponentResponse
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 UpdateTrialComponent
instance Prelude.NFData UpdateTrialComponent
instance Core.ToHeaders UpdateTrialComponent where
toHeaders :: UpdateTrialComponent -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateTrialComponent -> 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.UpdateTrialComponent" ::
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 UpdateTrialComponent where
toJSON :: UpdateTrialComponent -> Value
toJSON UpdateTrialComponent' {Maybe [Text]
Maybe Text
Maybe (HashMap Text TrialComponentArtifact)
Maybe (HashMap Text TrialComponentParameterValue)
Maybe POSIX
Maybe TrialComponentStatus
Text
trialComponentName :: Text
inputArtifactsToRemove :: Maybe [Text]
inputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
displayName :: Maybe Text
parameters :: Maybe (HashMap Text TrialComponentParameterValue)
endTime :: Maybe POSIX
outputArtifactsToRemove :: Maybe [Text]
startTime :: Maybe POSIX
outputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
parametersToRemove :: Maybe [Text]
status :: Maybe TrialComponentStatus
$sel:trialComponentName:UpdateTrialComponent' :: UpdateTrialComponent -> Text
$sel:inputArtifactsToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
$sel:inputArtifacts:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
$sel:displayName:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe Text
$sel:parameters:UpdateTrialComponent' :: UpdateTrialComponent
-> Maybe (HashMap Text TrialComponentParameterValue)
$sel:endTime:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe POSIX
$sel:outputArtifactsToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
$sel:startTime:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe POSIX
$sel:outputArtifacts:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe (HashMap Text TrialComponentArtifact)
$sel:parametersToRemove:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe [Text]
$sel:status:UpdateTrialComponent' :: UpdateTrialComponent -> Maybe TrialComponentStatus
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Status" Text -> TrialComponentStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TrialComponentStatus -> Pair)
-> Maybe TrialComponentStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TrialComponentStatus
status,
(Text
"ParametersToRemove" 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]
parametersToRemove,
(Text
"OutputArtifacts" Text -> HashMap Text TrialComponentArtifact -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text TrialComponentArtifact -> Pair)
-> Maybe (HashMap Text TrialComponentArtifact) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts,
(Text
"StartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
startTime,
(Text
"OutputArtifactsToRemove" 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]
outputArtifactsToRemove,
(Text
"EndTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
endTime,
(Text
"Parameters" Text -> HashMap Text TrialComponentParameterValue -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text TrialComponentParameterValue -> Pair)
-> Maybe (HashMap Text TrialComponentParameterValue) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text TrialComponentParameterValue)
parameters,
(Text
"DisplayName" 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
displayName,
(Text
"InputArtifacts" Text -> HashMap Text TrialComponentArtifact -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text TrialComponentArtifact -> Pair)
-> Maybe (HashMap Text TrialComponentArtifact) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts,
(Text
"InputArtifactsToRemove" 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]
inputArtifactsToRemove,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"TrialComponentName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
trialComponentName)
]
)
instance Core.ToPath UpdateTrialComponent where
toPath :: UpdateTrialComponent -> ByteString
toPath = ByteString -> UpdateTrialComponent -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateTrialComponent where
toQuery :: UpdateTrialComponent -> QueryString
toQuery = QueryString -> UpdateTrialComponent -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateTrialComponentResponse = UpdateTrialComponentResponse'
{
UpdateTrialComponentResponse -> Maybe Text
trialComponentArn :: Prelude.Maybe Prelude.Text,
UpdateTrialComponentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool
(UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool)
-> (UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool)
-> Eq UpdateTrialComponentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool
$c/= :: UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool
== :: UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool
$c== :: UpdateTrialComponentResponse
-> UpdateTrialComponentResponse -> Bool
Prelude.Eq, ReadPrec [UpdateTrialComponentResponse]
ReadPrec UpdateTrialComponentResponse
Int -> ReadS UpdateTrialComponentResponse
ReadS [UpdateTrialComponentResponse]
(Int -> ReadS UpdateTrialComponentResponse)
-> ReadS [UpdateTrialComponentResponse]
-> ReadPrec UpdateTrialComponentResponse
-> ReadPrec [UpdateTrialComponentResponse]
-> Read UpdateTrialComponentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrialComponentResponse]
$creadListPrec :: ReadPrec [UpdateTrialComponentResponse]
readPrec :: ReadPrec UpdateTrialComponentResponse
$creadPrec :: ReadPrec UpdateTrialComponentResponse
readList :: ReadS [UpdateTrialComponentResponse]
$creadList :: ReadS [UpdateTrialComponentResponse]
readsPrec :: Int -> ReadS UpdateTrialComponentResponse
$creadsPrec :: Int -> ReadS UpdateTrialComponentResponse
Prelude.Read, Int -> UpdateTrialComponentResponse -> ShowS
[UpdateTrialComponentResponse] -> ShowS
UpdateTrialComponentResponse -> String
(Int -> UpdateTrialComponentResponse -> ShowS)
-> (UpdateTrialComponentResponse -> String)
-> ([UpdateTrialComponentResponse] -> ShowS)
-> Show UpdateTrialComponentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrialComponentResponse] -> ShowS
$cshowList :: [UpdateTrialComponentResponse] -> ShowS
show :: UpdateTrialComponentResponse -> String
$cshow :: UpdateTrialComponentResponse -> String
showsPrec :: Int -> UpdateTrialComponentResponse -> ShowS
$cshowsPrec :: Int -> UpdateTrialComponentResponse -> ShowS
Prelude.Show, (forall x.
UpdateTrialComponentResponse -> Rep UpdateTrialComponentResponse x)
-> (forall x.
Rep UpdateTrialComponentResponse x -> UpdateTrialComponentResponse)
-> Generic UpdateTrialComponentResponse
forall x.
Rep UpdateTrialComponentResponse x -> UpdateTrialComponentResponse
forall x.
UpdateTrialComponentResponse -> Rep UpdateTrialComponentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateTrialComponentResponse x -> UpdateTrialComponentResponse
$cfrom :: forall x.
UpdateTrialComponentResponse -> Rep UpdateTrialComponentResponse x
Prelude.Generic)
newUpdateTrialComponentResponse ::
Prelude.Int ->
UpdateTrialComponentResponse
newUpdateTrialComponentResponse :: Int -> UpdateTrialComponentResponse
newUpdateTrialComponentResponse Int
pHttpStatus_ =
UpdateTrialComponentResponse' :: Maybe Text -> Int -> UpdateTrialComponentResponse
UpdateTrialComponentResponse'
{ $sel:trialComponentArn:UpdateTrialComponentResponse' :: Maybe Text
trialComponentArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateTrialComponentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateTrialComponentResponse_trialComponentArn :: Lens.Lens' UpdateTrialComponentResponse (Prelude.Maybe Prelude.Text)
updateTrialComponentResponse_trialComponentArn :: (Maybe Text -> f (Maybe Text))
-> UpdateTrialComponentResponse -> f UpdateTrialComponentResponse
updateTrialComponentResponse_trialComponentArn = (UpdateTrialComponentResponse -> Maybe Text)
-> (UpdateTrialComponentResponse
-> Maybe Text -> UpdateTrialComponentResponse)
-> Lens
UpdateTrialComponentResponse
UpdateTrialComponentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponentResponse' {Maybe Text
trialComponentArn :: Maybe Text
$sel:trialComponentArn:UpdateTrialComponentResponse' :: UpdateTrialComponentResponse -> Maybe Text
trialComponentArn} -> Maybe Text
trialComponentArn) (\s :: UpdateTrialComponentResponse
s@UpdateTrialComponentResponse' {} Maybe Text
a -> UpdateTrialComponentResponse
s {$sel:trialComponentArn:UpdateTrialComponentResponse' :: Maybe Text
trialComponentArn = Maybe Text
a} :: UpdateTrialComponentResponse)
updateTrialComponentResponse_httpStatus :: Lens.Lens' UpdateTrialComponentResponse Prelude.Int
updateTrialComponentResponse_httpStatus :: (Int -> f Int)
-> UpdateTrialComponentResponse -> f UpdateTrialComponentResponse
updateTrialComponentResponse_httpStatus = (UpdateTrialComponentResponse -> Int)
-> (UpdateTrialComponentResponse
-> Int -> UpdateTrialComponentResponse)
-> Lens
UpdateTrialComponentResponse UpdateTrialComponentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrialComponentResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateTrialComponentResponse' :: UpdateTrialComponentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateTrialComponentResponse
s@UpdateTrialComponentResponse' {} Int
a -> UpdateTrialComponentResponse
s {$sel:httpStatus:UpdateTrialComponentResponse' :: Int
httpStatus = Int
a} :: UpdateTrialComponentResponse)
instance Prelude.NFData UpdateTrialComponentResponse