{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.SendPipelineExecutionStepSuccess
-- 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)
--
-- Notifies the pipeline that the execution of a callback step succeeded
-- and provides a list of the step\'s output parameters. When a callback
-- step is run, the pipeline generates a callback token and includes the
-- token in a message sent to Amazon Simple Queue Service (Amazon SQS).
module Amazonka.SageMaker.SendPipelineExecutionStepSuccess
  ( -- * Creating a Request
    SendPipelineExecutionStepSuccess (..),
    newSendPipelineExecutionStepSuccess,

    -- * Request Lenses
    sendPipelineExecutionStepSuccess_outputParameters,
    sendPipelineExecutionStepSuccess_clientRequestToken,
    sendPipelineExecutionStepSuccess_callbackToken,

    -- * Destructuring the Response
    SendPipelineExecutionStepSuccessResponse (..),
    newSendPipelineExecutionStepSuccessResponse,

    -- * Response Lenses
    sendPipelineExecutionStepSuccessResponse_pipelineExecutionArn,
    sendPipelineExecutionStepSuccessResponse_httpStatus,
  )
where

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

-- | /See:/ 'newSendPipelineExecutionStepSuccess' smart constructor.
data SendPipelineExecutionStepSuccess = SendPipelineExecutionStepSuccess'
  { -- | A list of the output parameters of the callback step.
    SendPipelineExecutionStepSuccess -> Maybe [OutputParameter]
outputParameters :: Prelude.Maybe [OutputParameter],
    -- | A unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the operation. An idempotent operation completes no more
    -- than one time.
    SendPipelineExecutionStepSuccess -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The pipeline generated token from the Amazon SQS queue.
    SendPipelineExecutionStepSuccess -> Text
callbackToken :: Prelude.Text
  }
  deriving (SendPipelineExecutionStepSuccess
-> SendPipelineExecutionStepSuccess -> Bool
(SendPipelineExecutionStepSuccess
 -> SendPipelineExecutionStepSuccess -> Bool)
-> (SendPipelineExecutionStepSuccess
    -> SendPipelineExecutionStepSuccess -> Bool)
-> Eq SendPipelineExecutionStepSuccess
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SendPipelineExecutionStepSuccess
-> SendPipelineExecutionStepSuccess -> Bool
$c/= :: SendPipelineExecutionStepSuccess
-> SendPipelineExecutionStepSuccess -> Bool
== :: SendPipelineExecutionStepSuccess
-> SendPipelineExecutionStepSuccess -> Bool
$c== :: SendPipelineExecutionStepSuccess
-> SendPipelineExecutionStepSuccess -> Bool
Prelude.Eq, ReadPrec [SendPipelineExecutionStepSuccess]
ReadPrec SendPipelineExecutionStepSuccess
Int -> ReadS SendPipelineExecutionStepSuccess
ReadS [SendPipelineExecutionStepSuccess]
(Int -> ReadS SendPipelineExecutionStepSuccess)
-> ReadS [SendPipelineExecutionStepSuccess]
-> ReadPrec SendPipelineExecutionStepSuccess
-> ReadPrec [SendPipelineExecutionStepSuccess]
-> Read SendPipelineExecutionStepSuccess
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SendPipelineExecutionStepSuccess]
$creadListPrec :: ReadPrec [SendPipelineExecutionStepSuccess]
readPrec :: ReadPrec SendPipelineExecutionStepSuccess
$creadPrec :: ReadPrec SendPipelineExecutionStepSuccess
readList :: ReadS [SendPipelineExecutionStepSuccess]
$creadList :: ReadS [SendPipelineExecutionStepSuccess]
readsPrec :: Int -> ReadS SendPipelineExecutionStepSuccess
$creadsPrec :: Int -> ReadS SendPipelineExecutionStepSuccess
Prelude.Read, Int -> SendPipelineExecutionStepSuccess -> ShowS
[SendPipelineExecutionStepSuccess] -> ShowS
SendPipelineExecutionStepSuccess -> String
(Int -> SendPipelineExecutionStepSuccess -> ShowS)
-> (SendPipelineExecutionStepSuccess -> String)
-> ([SendPipelineExecutionStepSuccess] -> ShowS)
-> Show SendPipelineExecutionStepSuccess
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SendPipelineExecutionStepSuccess] -> ShowS
$cshowList :: [SendPipelineExecutionStepSuccess] -> ShowS
show :: SendPipelineExecutionStepSuccess -> String
$cshow :: SendPipelineExecutionStepSuccess -> String
showsPrec :: Int -> SendPipelineExecutionStepSuccess -> ShowS
$cshowsPrec :: Int -> SendPipelineExecutionStepSuccess -> ShowS
Prelude.Show, (forall x.
 SendPipelineExecutionStepSuccess
 -> Rep SendPipelineExecutionStepSuccess x)
-> (forall x.
    Rep SendPipelineExecutionStepSuccess x
    -> SendPipelineExecutionStepSuccess)
-> Generic SendPipelineExecutionStepSuccess
forall x.
Rep SendPipelineExecutionStepSuccess x
-> SendPipelineExecutionStepSuccess
forall x.
SendPipelineExecutionStepSuccess
-> Rep SendPipelineExecutionStepSuccess x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SendPipelineExecutionStepSuccess x
-> SendPipelineExecutionStepSuccess
$cfrom :: forall x.
SendPipelineExecutionStepSuccess
-> Rep SendPipelineExecutionStepSuccess x
Prelude.Generic)

-- |
-- Create a value of 'SendPipelineExecutionStepSuccess' 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:
--
-- 'outputParameters', 'sendPipelineExecutionStepSuccess_outputParameters' - A list of the output parameters of the callback step.
--
-- 'clientRequestToken', 'sendPipelineExecutionStepSuccess_clientRequestToken' - A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the operation. An idempotent operation completes no more
-- than one time.
--
-- 'callbackToken', 'sendPipelineExecutionStepSuccess_callbackToken' - The pipeline generated token from the Amazon SQS queue.
newSendPipelineExecutionStepSuccess ::
  -- | 'callbackToken'
  Prelude.Text ->
  SendPipelineExecutionStepSuccess
newSendPipelineExecutionStepSuccess :: Text -> SendPipelineExecutionStepSuccess
newSendPipelineExecutionStepSuccess Text
pCallbackToken_ =
  SendPipelineExecutionStepSuccess' :: Maybe [OutputParameter]
-> Maybe Text -> Text -> SendPipelineExecutionStepSuccess
SendPipelineExecutionStepSuccess'
    { $sel:outputParameters:SendPipelineExecutionStepSuccess' :: Maybe [OutputParameter]
outputParameters =
        Maybe [OutputParameter]
forall a. Maybe a
Prelude.Nothing,
      $sel:clientRequestToken:SendPipelineExecutionStepSuccess' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:callbackToken:SendPipelineExecutionStepSuccess' :: Text
callbackToken = Text
pCallbackToken_
    }

-- | A list of the output parameters of the callback step.
sendPipelineExecutionStepSuccess_outputParameters :: Lens.Lens' SendPipelineExecutionStepSuccess (Prelude.Maybe [OutputParameter])
sendPipelineExecutionStepSuccess_outputParameters :: (Maybe [OutputParameter] -> f (Maybe [OutputParameter]))
-> SendPipelineExecutionStepSuccess
-> f SendPipelineExecutionStepSuccess
sendPipelineExecutionStepSuccess_outputParameters = (SendPipelineExecutionStepSuccess -> Maybe [OutputParameter])
-> (SendPipelineExecutionStepSuccess
    -> Maybe [OutputParameter] -> SendPipelineExecutionStepSuccess)
-> Lens
     SendPipelineExecutionStepSuccess
     SendPipelineExecutionStepSuccess
     (Maybe [OutputParameter])
     (Maybe [OutputParameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendPipelineExecutionStepSuccess' {Maybe [OutputParameter]
outputParameters :: Maybe [OutputParameter]
$sel:outputParameters:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Maybe [OutputParameter]
outputParameters} -> Maybe [OutputParameter]
outputParameters) (\s :: SendPipelineExecutionStepSuccess
s@SendPipelineExecutionStepSuccess' {} Maybe [OutputParameter]
a -> SendPipelineExecutionStepSuccess
s {$sel:outputParameters:SendPipelineExecutionStepSuccess' :: Maybe [OutputParameter]
outputParameters = Maybe [OutputParameter]
a} :: SendPipelineExecutionStepSuccess) ((Maybe [OutputParameter] -> f (Maybe [OutputParameter]))
 -> SendPipelineExecutionStepSuccess
 -> f SendPipelineExecutionStepSuccess)
-> ((Maybe [OutputParameter] -> f (Maybe [OutputParameter]))
    -> Maybe [OutputParameter] -> f (Maybe [OutputParameter]))
-> (Maybe [OutputParameter] -> f (Maybe [OutputParameter]))
-> SendPipelineExecutionStepSuccess
-> f SendPipelineExecutionStepSuccess
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [OutputParameter]
  [OutputParameter]
  [OutputParameter]
  [OutputParameter]
-> Iso
     (Maybe [OutputParameter])
     (Maybe [OutputParameter])
     (Maybe [OutputParameter])
     (Maybe [OutputParameter])
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
  [OutputParameter]
  [OutputParameter]
  [OutputParameter]
  [OutputParameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the operation. An idempotent operation completes no more
-- than one time.
sendPipelineExecutionStepSuccess_clientRequestToken :: Lens.Lens' SendPipelineExecutionStepSuccess (Prelude.Maybe Prelude.Text)
sendPipelineExecutionStepSuccess_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> SendPipelineExecutionStepSuccess
-> f SendPipelineExecutionStepSuccess
sendPipelineExecutionStepSuccess_clientRequestToken = (SendPipelineExecutionStepSuccess -> Maybe Text)
-> (SendPipelineExecutionStepSuccess
    -> Maybe Text -> SendPipelineExecutionStepSuccess)
-> Lens
     SendPipelineExecutionStepSuccess
     SendPipelineExecutionStepSuccess
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendPipelineExecutionStepSuccess' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: SendPipelineExecutionStepSuccess
s@SendPipelineExecutionStepSuccess' {} Maybe Text
a -> SendPipelineExecutionStepSuccess
s {$sel:clientRequestToken:SendPipelineExecutionStepSuccess' :: Maybe Text
clientRequestToken = Maybe Text
a} :: SendPipelineExecutionStepSuccess)

-- | The pipeline generated token from the Amazon SQS queue.
sendPipelineExecutionStepSuccess_callbackToken :: Lens.Lens' SendPipelineExecutionStepSuccess Prelude.Text
sendPipelineExecutionStepSuccess_callbackToken :: (Text -> f Text)
-> SendPipelineExecutionStepSuccess
-> f SendPipelineExecutionStepSuccess
sendPipelineExecutionStepSuccess_callbackToken = (SendPipelineExecutionStepSuccess -> Text)
-> (SendPipelineExecutionStepSuccess
    -> Text -> SendPipelineExecutionStepSuccess)
-> Lens
     SendPipelineExecutionStepSuccess
     SendPipelineExecutionStepSuccess
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendPipelineExecutionStepSuccess' {Text
callbackToken :: Text
$sel:callbackToken:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Text
callbackToken} -> Text
callbackToken) (\s :: SendPipelineExecutionStepSuccess
s@SendPipelineExecutionStepSuccess' {} Text
a -> SendPipelineExecutionStepSuccess
s {$sel:callbackToken:SendPipelineExecutionStepSuccess' :: Text
callbackToken = Text
a} :: SendPipelineExecutionStepSuccess)

instance
  Core.AWSRequest
    SendPipelineExecutionStepSuccess
  where
  type
    AWSResponse SendPipelineExecutionStepSuccess =
      SendPipelineExecutionStepSuccessResponse
  request :: SendPipelineExecutionStepSuccess
-> Request SendPipelineExecutionStepSuccess
request = Service
-> SendPipelineExecutionStepSuccess
-> Request SendPipelineExecutionStepSuccess
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy SendPipelineExecutionStepSuccess
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse SendPipelineExecutionStepSuccess)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse SendPipelineExecutionStepSuccess))
-> Logger
-> Service
-> Proxy SendPipelineExecutionStepSuccess
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse SendPipelineExecutionStepSuccess)))
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 -> SendPipelineExecutionStepSuccessResponse
SendPipelineExecutionStepSuccessResponse'
            (Maybe Text -> Int -> SendPipelineExecutionStepSuccessResponse)
-> Either String (Maybe Text)
-> Either String (Int -> SendPipelineExecutionStepSuccessResponse)
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 -> SendPipelineExecutionStepSuccessResponse)
-> Either String Int
-> Either String SendPipelineExecutionStepSuccessResponse
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
    SendPipelineExecutionStepSuccess

instance
  Prelude.NFData
    SendPipelineExecutionStepSuccess

instance
  Core.ToHeaders
    SendPipelineExecutionStepSuccess
  where
  toHeaders :: SendPipelineExecutionStepSuccess -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> SendPipelineExecutionStepSuccess -> 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.SendPipelineExecutionStepSuccess" ::
                          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 SendPipelineExecutionStepSuccess where
  toJSON :: SendPipelineExecutionStepSuccess -> Value
toJSON SendPipelineExecutionStepSuccess' {Maybe [OutputParameter]
Maybe Text
Text
callbackToken :: Text
clientRequestToken :: Maybe Text
outputParameters :: Maybe [OutputParameter]
$sel:callbackToken:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Text
$sel:clientRequestToken:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Maybe Text
$sel:outputParameters:SendPipelineExecutionStepSuccess' :: SendPipelineExecutionStepSuccess -> Maybe [OutputParameter]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"OutputParameters" Text -> [OutputParameter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([OutputParameter] -> Pair)
-> Maybe [OutputParameter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [OutputParameter]
outputParameters,
            (Text
"ClientRequestToken" 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
clientRequestToken,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"CallbackToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
callbackToken)
          ]
      )

instance Core.ToPath SendPipelineExecutionStepSuccess where
  toPath :: SendPipelineExecutionStepSuccess -> ByteString
toPath = ByteString -> SendPipelineExecutionStepSuccess -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newSendPipelineExecutionStepSuccessResponse' smart constructor.
data SendPipelineExecutionStepSuccessResponse = SendPipelineExecutionStepSuccessResponse'
  { -- | The Amazon Resource Name (ARN) of the pipeline execution.
    SendPipelineExecutionStepSuccessResponse -> Maybe Text
pipelineExecutionArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    SendPipelineExecutionStepSuccessResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (SendPipelineExecutionStepSuccessResponse
-> SendPipelineExecutionStepSuccessResponse -> Bool
(SendPipelineExecutionStepSuccessResponse
 -> SendPipelineExecutionStepSuccessResponse -> Bool)
-> (SendPipelineExecutionStepSuccessResponse
    -> SendPipelineExecutionStepSuccessResponse -> Bool)
-> Eq SendPipelineExecutionStepSuccessResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SendPipelineExecutionStepSuccessResponse
-> SendPipelineExecutionStepSuccessResponse -> Bool
$c/= :: SendPipelineExecutionStepSuccessResponse
-> SendPipelineExecutionStepSuccessResponse -> Bool
== :: SendPipelineExecutionStepSuccessResponse
-> SendPipelineExecutionStepSuccessResponse -> Bool
$c== :: SendPipelineExecutionStepSuccessResponse
-> SendPipelineExecutionStepSuccessResponse -> Bool
Prelude.Eq, ReadPrec [SendPipelineExecutionStepSuccessResponse]
ReadPrec SendPipelineExecutionStepSuccessResponse
Int -> ReadS SendPipelineExecutionStepSuccessResponse
ReadS [SendPipelineExecutionStepSuccessResponse]
(Int -> ReadS SendPipelineExecutionStepSuccessResponse)
-> ReadS [SendPipelineExecutionStepSuccessResponse]
-> ReadPrec SendPipelineExecutionStepSuccessResponse
-> ReadPrec [SendPipelineExecutionStepSuccessResponse]
-> Read SendPipelineExecutionStepSuccessResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SendPipelineExecutionStepSuccessResponse]
$creadListPrec :: ReadPrec [SendPipelineExecutionStepSuccessResponse]
readPrec :: ReadPrec SendPipelineExecutionStepSuccessResponse
$creadPrec :: ReadPrec SendPipelineExecutionStepSuccessResponse
readList :: ReadS [SendPipelineExecutionStepSuccessResponse]
$creadList :: ReadS [SendPipelineExecutionStepSuccessResponse]
readsPrec :: Int -> ReadS SendPipelineExecutionStepSuccessResponse
$creadsPrec :: Int -> ReadS SendPipelineExecutionStepSuccessResponse
Prelude.Read, Int -> SendPipelineExecutionStepSuccessResponse -> ShowS
[SendPipelineExecutionStepSuccessResponse] -> ShowS
SendPipelineExecutionStepSuccessResponse -> String
(Int -> SendPipelineExecutionStepSuccessResponse -> ShowS)
-> (SendPipelineExecutionStepSuccessResponse -> String)
-> ([SendPipelineExecutionStepSuccessResponse] -> ShowS)
-> Show SendPipelineExecutionStepSuccessResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SendPipelineExecutionStepSuccessResponse] -> ShowS
$cshowList :: [SendPipelineExecutionStepSuccessResponse] -> ShowS
show :: SendPipelineExecutionStepSuccessResponse -> String
$cshow :: SendPipelineExecutionStepSuccessResponse -> String
showsPrec :: Int -> SendPipelineExecutionStepSuccessResponse -> ShowS
$cshowsPrec :: Int -> SendPipelineExecutionStepSuccessResponse -> ShowS
Prelude.Show, (forall x.
 SendPipelineExecutionStepSuccessResponse
 -> Rep SendPipelineExecutionStepSuccessResponse x)
-> (forall x.
    Rep SendPipelineExecutionStepSuccessResponse x
    -> SendPipelineExecutionStepSuccessResponse)
-> Generic SendPipelineExecutionStepSuccessResponse
forall x.
Rep SendPipelineExecutionStepSuccessResponse x
-> SendPipelineExecutionStepSuccessResponse
forall x.
SendPipelineExecutionStepSuccessResponse
-> Rep SendPipelineExecutionStepSuccessResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SendPipelineExecutionStepSuccessResponse x
-> SendPipelineExecutionStepSuccessResponse
$cfrom :: forall x.
SendPipelineExecutionStepSuccessResponse
-> Rep SendPipelineExecutionStepSuccessResponse x
Prelude.Generic)

-- |
-- Create a value of 'SendPipelineExecutionStepSuccessResponse' 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:
--
-- 'pipelineExecutionArn', 'sendPipelineExecutionStepSuccessResponse_pipelineExecutionArn' - The Amazon Resource Name (ARN) of the pipeline execution.
--
-- 'httpStatus', 'sendPipelineExecutionStepSuccessResponse_httpStatus' - The response's http status code.
newSendPipelineExecutionStepSuccessResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  SendPipelineExecutionStepSuccessResponse
newSendPipelineExecutionStepSuccessResponse :: Int -> SendPipelineExecutionStepSuccessResponse
newSendPipelineExecutionStepSuccessResponse
  Int
pHttpStatus_ =
    SendPipelineExecutionStepSuccessResponse' :: Maybe Text -> Int -> SendPipelineExecutionStepSuccessResponse
SendPipelineExecutionStepSuccessResponse'
      { $sel:pipelineExecutionArn:SendPipelineExecutionStepSuccessResponse' :: Maybe Text
pipelineExecutionArn =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:SendPipelineExecutionStepSuccessResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The Amazon Resource Name (ARN) of the pipeline execution.
sendPipelineExecutionStepSuccessResponse_pipelineExecutionArn :: Lens.Lens' SendPipelineExecutionStepSuccessResponse (Prelude.Maybe Prelude.Text)
sendPipelineExecutionStepSuccessResponse_pipelineExecutionArn :: (Maybe Text -> f (Maybe Text))
-> SendPipelineExecutionStepSuccessResponse
-> f SendPipelineExecutionStepSuccessResponse
sendPipelineExecutionStepSuccessResponse_pipelineExecutionArn = (SendPipelineExecutionStepSuccessResponse -> Maybe Text)
-> (SendPipelineExecutionStepSuccessResponse
    -> Maybe Text -> SendPipelineExecutionStepSuccessResponse)
-> Lens
     SendPipelineExecutionStepSuccessResponse
     SendPipelineExecutionStepSuccessResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SendPipelineExecutionStepSuccessResponse' {Maybe Text
pipelineExecutionArn :: Maybe Text
$sel:pipelineExecutionArn:SendPipelineExecutionStepSuccessResponse' :: SendPipelineExecutionStepSuccessResponse -> Maybe Text
pipelineExecutionArn} -> Maybe Text
pipelineExecutionArn) (\s :: SendPipelineExecutionStepSuccessResponse
s@SendPipelineExecutionStepSuccessResponse' {} Maybe Text
a -> SendPipelineExecutionStepSuccessResponse
s {$sel:pipelineExecutionArn:SendPipelineExecutionStepSuccessResponse' :: Maybe Text
pipelineExecutionArn = Maybe Text
a} :: SendPipelineExecutionStepSuccessResponse)

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

instance
  Prelude.NFData
    SendPipelineExecutionStepSuccessResponse