{-# 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.StartPipelineExecution
(
StartPipelineExecution (..),
newStartPipelineExecution,
startPipelineExecution_pipelineParameters,
startPipelineExecution_pipelineExecutionDisplayName,
startPipelineExecution_pipelineExecutionDescription,
startPipelineExecution_pipelineName,
startPipelineExecution_clientRequestToken,
StartPipelineExecutionResponse (..),
newStartPipelineExecutionResponse,
startPipelineExecutionResponse_pipelineExecutionArn,
startPipelineExecutionResponse_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 StartPipelineExecution = StartPipelineExecution'
{
StartPipelineExecution -> Maybe [Parameter]
pipelineParameters :: Prelude.Maybe [Parameter],
StartPipelineExecution -> Maybe Text
pipelineExecutionDisplayName :: Prelude.Maybe Prelude.Text,
StartPipelineExecution -> Maybe Text
pipelineExecutionDescription :: Prelude.Maybe Prelude.Text,
StartPipelineExecution -> Text
pipelineName :: Prelude.Text,
StartPipelineExecution -> Text
clientRequestToken :: Prelude.Text
}
deriving (StartPipelineExecution -> StartPipelineExecution -> Bool
(StartPipelineExecution -> StartPipelineExecution -> Bool)
-> (StartPipelineExecution -> StartPipelineExecution -> Bool)
-> Eq StartPipelineExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartPipelineExecution -> StartPipelineExecution -> Bool
$c/= :: StartPipelineExecution -> StartPipelineExecution -> Bool
== :: StartPipelineExecution -> StartPipelineExecution -> Bool
$c== :: StartPipelineExecution -> StartPipelineExecution -> Bool
Prelude.Eq, ReadPrec [StartPipelineExecution]
ReadPrec StartPipelineExecution
Int -> ReadS StartPipelineExecution
ReadS [StartPipelineExecution]
(Int -> ReadS StartPipelineExecution)
-> ReadS [StartPipelineExecution]
-> ReadPrec StartPipelineExecution
-> ReadPrec [StartPipelineExecution]
-> Read StartPipelineExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartPipelineExecution]
$creadListPrec :: ReadPrec [StartPipelineExecution]
readPrec :: ReadPrec StartPipelineExecution
$creadPrec :: ReadPrec StartPipelineExecution
readList :: ReadS [StartPipelineExecution]
$creadList :: ReadS [StartPipelineExecution]
readsPrec :: Int -> ReadS StartPipelineExecution
$creadsPrec :: Int -> ReadS StartPipelineExecution
Prelude.Read, Int -> StartPipelineExecution -> ShowS
[StartPipelineExecution] -> ShowS
StartPipelineExecution -> String
(Int -> StartPipelineExecution -> ShowS)
-> (StartPipelineExecution -> String)
-> ([StartPipelineExecution] -> ShowS)
-> Show StartPipelineExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartPipelineExecution] -> ShowS
$cshowList :: [StartPipelineExecution] -> ShowS
show :: StartPipelineExecution -> String
$cshow :: StartPipelineExecution -> String
showsPrec :: Int -> StartPipelineExecution -> ShowS
$cshowsPrec :: Int -> StartPipelineExecution -> ShowS
Prelude.Show, (forall x. StartPipelineExecution -> Rep StartPipelineExecution x)
-> (forall x.
Rep StartPipelineExecution x -> StartPipelineExecution)
-> Generic StartPipelineExecution
forall x. Rep StartPipelineExecution x -> StartPipelineExecution
forall x. StartPipelineExecution -> Rep StartPipelineExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartPipelineExecution x -> StartPipelineExecution
$cfrom :: forall x. StartPipelineExecution -> Rep StartPipelineExecution x
Prelude.Generic)
newStartPipelineExecution ::
Prelude.Text ->
Prelude.Text ->
StartPipelineExecution
newStartPipelineExecution :: Text -> Text -> StartPipelineExecution
newStartPipelineExecution
Text
pPipelineName_
Text
pClientRequestToken_ =
StartPipelineExecution' :: Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> StartPipelineExecution
StartPipelineExecution'
{ $sel:pipelineParameters:StartPipelineExecution' :: Maybe [Parameter]
pipelineParameters =
Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineExecutionDisplayName:StartPipelineExecution' :: Maybe Text
pipelineExecutionDisplayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineExecutionDescription:StartPipelineExecution' :: Maybe Text
pipelineExecutionDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineName:StartPipelineExecution' :: Text
pipelineName = Text
pPipelineName_,
$sel:clientRequestToken:StartPipelineExecution' :: Text
clientRequestToken = Text
pClientRequestToken_
}
startPipelineExecution_pipelineParameters :: Lens.Lens' StartPipelineExecution (Prelude.Maybe [Parameter])
startPipelineExecution_pipelineParameters :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StartPipelineExecution -> f StartPipelineExecution
startPipelineExecution_pipelineParameters = (StartPipelineExecution -> Maybe [Parameter])
-> (StartPipelineExecution
-> Maybe [Parameter] -> StartPipelineExecution)
-> Lens
StartPipelineExecution
StartPipelineExecution
(Maybe [Parameter])
(Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecution' {Maybe [Parameter]
pipelineParameters :: Maybe [Parameter]
$sel:pipelineParameters:StartPipelineExecution' :: StartPipelineExecution -> Maybe [Parameter]
pipelineParameters} -> Maybe [Parameter]
pipelineParameters) (\s :: StartPipelineExecution
s@StartPipelineExecution' {} Maybe [Parameter]
a -> StartPipelineExecution
s {$sel:pipelineParameters:StartPipelineExecution' :: Maybe [Parameter]
pipelineParameters = Maybe [Parameter]
a} :: StartPipelineExecution) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> StartPipelineExecution -> f StartPipelineExecution)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StartPipelineExecution
-> f StartPipelineExecution
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Parameter] [Parameter] [Parameter] [Parameter]
-> Iso
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
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 [Parameter] [Parameter] [Parameter] [Parameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startPipelineExecution_pipelineExecutionDisplayName :: Lens.Lens' StartPipelineExecution (Prelude.Maybe Prelude.Text)
startPipelineExecution_pipelineExecutionDisplayName :: (Maybe Text -> f (Maybe Text))
-> StartPipelineExecution -> f StartPipelineExecution
startPipelineExecution_pipelineExecutionDisplayName = (StartPipelineExecution -> Maybe Text)
-> (StartPipelineExecution -> Maybe Text -> StartPipelineExecution)
-> Lens
StartPipelineExecution
StartPipelineExecution
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecution' {Maybe Text
pipelineExecutionDisplayName :: Maybe Text
$sel:pipelineExecutionDisplayName:StartPipelineExecution' :: StartPipelineExecution -> Maybe Text
pipelineExecutionDisplayName} -> Maybe Text
pipelineExecutionDisplayName) (\s :: StartPipelineExecution
s@StartPipelineExecution' {} Maybe Text
a -> StartPipelineExecution
s {$sel:pipelineExecutionDisplayName:StartPipelineExecution' :: Maybe Text
pipelineExecutionDisplayName = Maybe Text
a} :: StartPipelineExecution)
startPipelineExecution_pipelineExecutionDescription :: Lens.Lens' StartPipelineExecution (Prelude.Maybe Prelude.Text)
startPipelineExecution_pipelineExecutionDescription :: (Maybe Text -> f (Maybe Text))
-> StartPipelineExecution -> f StartPipelineExecution
startPipelineExecution_pipelineExecutionDescription = (StartPipelineExecution -> Maybe Text)
-> (StartPipelineExecution -> Maybe Text -> StartPipelineExecution)
-> Lens
StartPipelineExecution
StartPipelineExecution
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecution' {Maybe Text
pipelineExecutionDescription :: Maybe Text
$sel:pipelineExecutionDescription:StartPipelineExecution' :: StartPipelineExecution -> Maybe Text
pipelineExecutionDescription} -> Maybe Text
pipelineExecutionDescription) (\s :: StartPipelineExecution
s@StartPipelineExecution' {} Maybe Text
a -> StartPipelineExecution
s {$sel:pipelineExecutionDescription:StartPipelineExecution' :: Maybe Text
pipelineExecutionDescription = Maybe Text
a} :: StartPipelineExecution)
startPipelineExecution_pipelineName :: Lens.Lens' StartPipelineExecution Prelude.Text
startPipelineExecution_pipelineName :: (Text -> f Text)
-> StartPipelineExecution -> f StartPipelineExecution
startPipelineExecution_pipelineName = (StartPipelineExecution -> Text)
-> (StartPipelineExecution -> Text -> StartPipelineExecution)
-> Lens StartPipelineExecution StartPipelineExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecution' {Text
pipelineName :: Text
$sel:pipelineName:StartPipelineExecution' :: StartPipelineExecution -> Text
pipelineName} -> Text
pipelineName) (\s :: StartPipelineExecution
s@StartPipelineExecution' {} Text
a -> StartPipelineExecution
s {$sel:pipelineName:StartPipelineExecution' :: Text
pipelineName = Text
a} :: StartPipelineExecution)
startPipelineExecution_clientRequestToken :: Lens.Lens' StartPipelineExecution Prelude.Text
startPipelineExecution_clientRequestToken :: (Text -> f Text)
-> StartPipelineExecution -> f StartPipelineExecution
startPipelineExecution_clientRequestToken = (StartPipelineExecution -> Text)
-> (StartPipelineExecution -> Text -> StartPipelineExecution)
-> Lens StartPipelineExecution StartPipelineExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecution' {Text
clientRequestToken :: Text
$sel:clientRequestToken:StartPipelineExecution' :: StartPipelineExecution -> Text
clientRequestToken} -> Text
clientRequestToken) (\s :: StartPipelineExecution
s@StartPipelineExecution' {} Text
a -> StartPipelineExecution
s {$sel:clientRequestToken:StartPipelineExecution' :: Text
clientRequestToken = Text
a} :: StartPipelineExecution)
instance Core.AWSRequest StartPipelineExecution where
type
AWSResponse StartPipelineExecution =
StartPipelineExecutionResponse
request :: StartPipelineExecution -> Request StartPipelineExecution
request = Service -> StartPipelineExecution -> Request StartPipelineExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartPipelineExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartPipelineExecution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartPipelineExecution))
-> Logger
-> Service
-> Proxy StartPipelineExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartPipelineExecution)))
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 -> StartPipelineExecutionResponse
StartPipelineExecutionResponse'
(Maybe Text -> Int -> StartPipelineExecutionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartPipelineExecutionResponse)
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
"PipelineExecutionArn")
Either String (Int -> StartPipelineExecutionResponse)
-> Either String Int
-> Either String StartPipelineExecutionResponse
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 StartPipelineExecution
instance Prelude.NFData StartPipelineExecution
instance Core.ToHeaders StartPipelineExecution where
toHeaders :: StartPipelineExecution -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartPipelineExecution -> 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.StartPipelineExecution" ::
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 StartPipelineExecution where
toJSON :: StartPipelineExecution -> Value
toJSON StartPipelineExecution' {Maybe [Parameter]
Maybe Text
Text
clientRequestToken :: Text
pipelineName :: Text
pipelineExecutionDescription :: Maybe Text
pipelineExecutionDisplayName :: Maybe Text
pipelineParameters :: Maybe [Parameter]
$sel:clientRequestToken:StartPipelineExecution' :: StartPipelineExecution -> Text
$sel:pipelineName:StartPipelineExecution' :: StartPipelineExecution -> Text
$sel:pipelineExecutionDescription:StartPipelineExecution' :: StartPipelineExecution -> Maybe Text
$sel:pipelineExecutionDisplayName:StartPipelineExecution' :: StartPipelineExecution -> Maybe Text
$sel:pipelineParameters:StartPipelineExecution' :: StartPipelineExecution -> Maybe [Parameter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"PipelineParameters" Text -> [Parameter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Parameter] -> Pair) -> Maybe [Parameter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Parameter]
pipelineParameters,
(Text
"PipelineExecutionDisplayName" 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
pipelineExecutionDisplayName,
(Text
"PipelineExecutionDescription" 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
pipelineExecutionDescription,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PipelineName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pipelineName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ClientRequestToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientRequestToken)
]
)
instance Core.ToPath StartPipelineExecution where
toPath :: StartPipelineExecution -> ByteString
toPath = ByteString -> StartPipelineExecution -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartPipelineExecution where
toQuery :: StartPipelineExecution -> QueryString
toQuery = QueryString -> StartPipelineExecution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartPipelineExecutionResponse = StartPipelineExecutionResponse'
{
StartPipelineExecutionResponse -> Maybe Text
pipelineExecutionArn :: Prelude.Maybe Prelude.Text,
StartPipelineExecutionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool
(StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool)
-> (StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool)
-> Eq StartPipelineExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool
$c/= :: StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool
== :: StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool
$c== :: StartPipelineExecutionResponse
-> StartPipelineExecutionResponse -> Bool
Prelude.Eq, ReadPrec [StartPipelineExecutionResponse]
ReadPrec StartPipelineExecutionResponse
Int -> ReadS StartPipelineExecutionResponse
ReadS [StartPipelineExecutionResponse]
(Int -> ReadS StartPipelineExecutionResponse)
-> ReadS [StartPipelineExecutionResponse]
-> ReadPrec StartPipelineExecutionResponse
-> ReadPrec [StartPipelineExecutionResponse]
-> Read StartPipelineExecutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartPipelineExecutionResponse]
$creadListPrec :: ReadPrec [StartPipelineExecutionResponse]
readPrec :: ReadPrec StartPipelineExecutionResponse
$creadPrec :: ReadPrec StartPipelineExecutionResponse
readList :: ReadS [StartPipelineExecutionResponse]
$creadList :: ReadS [StartPipelineExecutionResponse]
readsPrec :: Int -> ReadS StartPipelineExecutionResponse
$creadsPrec :: Int -> ReadS StartPipelineExecutionResponse
Prelude.Read, Int -> StartPipelineExecutionResponse -> ShowS
[StartPipelineExecutionResponse] -> ShowS
StartPipelineExecutionResponse -> String
(Int -> StartPipelineExecutionResponse -> ShowS)
-> (StartPipelineExecutionResponse -> String)
-> ([StartPipelineExecutionResponse] -> ShowS)
-> Show StartPipelineExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartPipelineExecutionResponse] -> ShowS
$cshowList :: [StartPipelineExecutionResponse] -> ShowS
show :: StartPipelineExecutionResponse -> String
$cshow :: StartPipelineExecutionResponse -> String
showsPrec :: Int -> StartPipelineExecutionResponse -> ShowS
$cshowsPrec :: Int -> StartPipelineExecutionResponse -> ShowS
Prelude.Show, (forall x.
StartPipelineExecutionResponse
-> Rep StartPipelineExecutionResponse x)
-> (forall x.
Rep StartPipelineExecutionResponse x
-> StartPipelineExecutionResponse)
-> Generic StartPipelineExecutionResponse
forall x.
Rep StartPipelineExecutionResponse x
-> StartPipelineExecutionResponse
forall x.
StartPipelineExecutionResponse
-> Rep StartPipelineExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartPipelineExecutionResponse x
-> StartPipelineExecutionResponse
$cfrom :: forall x.
StartPipelineExecutionResponse
-> Rep StartPipelineExecutionResponse x
Prelude.Generic)
newStartPipelineExecutionResponse ::
Prelude.Int ->
StartPipelineExecutionResponse
newStartPipelineExecutionResponse :: Int -> StartPipelineExecutionResponse
newStartPipelineExecutionResponse Int
pHttpStatus_ =
StartPipelineExecutionResponse' :: Maybe Text -> Int -> StartPipelineExecutionResponse
StartPipelineExecutionResponse'
{ $sel:pipelineExecutionArn:StartPipelineExecutionResponse' :: Maybe Text
pipelineExecutionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartPipelineExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startPipelineExecutionResponse_pipelineExecutionArn :: Lens.Lens' StartPipelineExecutionResponse (Prelude.Maybe Prelude.Text)
startPipelineExecutionResponse_pipelineExecutionArn :: (Maybe Text -> f (Maybe Text))
-> StartPipelineExecutionResponse
-> f StartPipelineExecutionResponse
startPipelineExecutionResponse_pipelineExecutionArn = (StartPipelineExecutionResponse -> Maybe Text)
-> (StartPipelineExecutionResponse
-> Maybe Text -> StartPipelineExecutionResponse)
-> Lens
StartPipelineExecutionResponse
StartPipelineExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecutionResponse' {Maybe Text
pipelineExecutionArn :: Maybe Text
$sel:pipelineExecutionArn:StartPipelineExecutionResponse' :: StartPipelineExecutionResponse -> Maybe Text
pipelineExecutionArn} -> Maybe Text
pipelineExecutionArn) (\s :: StartPipelineExecutionResponse
s@StartPipelineExecutionResponse' {} Maybe Text
a -> StartPipelineExecutionResponse
s {$sel:pipelineExecutionArn:StartPipelineExecutionResponse' :: Maybe Text
pipelineExecutionArn = Maybe Text
a} :: StartPipelineExecutionResponse)
startPipelineExecutionResponse_httpStatus :: Lens.Lens' StartPipelineExecutionResponse Prelude.Int
startPipelineExecutionResponse_httpStatus :: (Int -> f Int)
-> StartPipelineExecutionResponse
-> f StartPipelineExecutionResponse
startPipelineExecutionResponse_httpStatus = (StartPipelineExecutionResponse -> Int)
-> (StartPipelineExecutionResponse
-> Int -> StartPipelineExecutionResponse)
-> Lens
StartPipelineExecutionResponse
StartPipelineExecutionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartPipelineExecutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartPipelineExecutionResponse' :: StartPipelineExecutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartPipelineExecutionResponse
s@StartPipelineExecutionResponse' {} Int
a -> StartPipelineExecutionResponse
s {$sel:httpStatus:StartPipelineExecutionResponse' :: Int
httpStatus = Int
a} :: StartPipelineExecutionResponse)
instance
Prelude.NFData
StartPipelineExecutionResponse