{-# 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.ListPipelineParametersForExecution
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of parameters for a pipeline execution.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListPipelineParametersForExecution
  ( -- * Creating a Request
    ListPipelineParametersForExecution (..),
    newListPipelineParametersForExecution,

    -- * Request Lenses
    listPipelineParametersForExecution_maxResults,
    listPipelineParametersForExecution_nextToken,
    listPipelineParametersForExecution_pipelineExecutionArn,

    -- * Destructuring the Response
    ListPipelineParametersForExecutionResponse (..),
    newListPipelineParametersForExecutionResponse,

    -- * Response Lenses
    listPipelineParametersForExecutionResponse_nextToken,
    listPipelineParametersForExecutionResponse_pipelineParameters,
    listPipelineParametersForExecutionResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListPipelineParametersForExecution' smart constructor.
data ListPipelineParametersForExecution = ListPipelineParametersForExecution'
  { -- | The maximum number of parameters to return in the response.
    ListPipelineParametersForExecution -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | If the result of the previous @ListPipelineParametersForExecution@
    -- request was truncated, the response includes a @NextToken@. To retrieve
    -- the next set of parameters, use the token in the next request.
    ListPipelineParametersForExecution -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the pipeline execution.
    ListPipelineParametersForExecution -> Text
pipelineExecutionArn :: Prelude.Text
  }
  deriving (ListPipelineParametersForExecution
-> ListPipelineParametersForExecution -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPipelineParametersForExecution
-> ListPipelineParametersForExecution -> Bool
$c/= :: ListPipelineParametersForExecution
-> ListPipelineParametersForExecution -> Bool
== :: ListPipelineParametersForExecution
-> ListPipelineParametersForExecution -> Bool
$c== :: ListPipelineParametersForExecution
-> ListPipelineParametersForExecution -> Bool
Prelude.Eq, ReadPrec [ListPipelineParametersForExecution]
ReadPrec ListPipelineParametersForExecution
Int -> ReadS ListPipelineParametersForExecution
ReadS [ListPipelineParametersForExecution]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPipelineParametersForExecution]
$creadListPrec :: ReadPrec [ListPipelineParametersForExecution]
readPrec :: ReadPrec ListPipelineParametersForExecution
$creadPrec :: ReadPrec ListPipelineParametersForExecution
readList :: ReadS [ListPipelineParametersForExecution]
$creadList :: ReadS [ListPipelineParametersForExecution]
readsPrec :: Int -> ReadS ListPipelineParametersForExecution
$creadsPrec :: Int -> ReadS ListPipelineParametersForExecution
Prelude.Read, Int -> ListPipelineParametersForExecution -> ShowS
[ListPipelineParametersForExecution] -> ShowS
ListPipelineParametersForExecution -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPipelineParametersForExecution] -> ShowS
$cshowList :: [ListPipelineParametersForExecution] -> ShowS
show :: ListPipelineParametersForExecution -> String
$cshow :: ListPipelineParametersForExecution -> String
showsPrec :: Int -> ListPipelineParametersForExecution -> ShowS
$cshowsPrec :: Int -> ListPipelineParametersForExecution -> ShowS
Prelude.Show, forall x.
Rep ListPipelineParametersForExecution x
-> ListPipelineParametersForExecution
forall x.
ListPipelineParametersForExecution
-> Rep ListPipelineParametersForExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPipelineParametersForExecution x
-> ListPipelineParametersForExecution
$cfrom :: forall x.
ListPipelineParametersForExecution
-> Rep ListPipelineParametersForExecution x
Prelude.Generic)

-- |
-- Create a value of 'ListPipelineParametersForExecution' 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:
--
-- 'maxResults', 'listPipelineParametersForExecution_maxResults' - The maximum number of parameters to return in the response.
--
-- 'nextToken', 'listPipelineParametersForExecution_nextToken' - If the result of the previous @ListPipelineParametersForExecution@
-- request was truncated, the response includes a @NextToken@. To retrieve
-- the next set of parameters, use the token in the next request.
--
-- 'pipelineExecutionArn', 'listPipelineParametersForExecution_pipelineExecutionArn' - The Amazon Resource Name (ARN) of the pipeline execution.
newListPipelineParametersForExecution ::
  -- | 'pipelineExecutionArn'
  Prelude.Text ->
  ListPipelineParametersForExecution
newListPipelineParametersForExecution :: Text -> ListPipelineParametersForExecution
newListPipelineParametersForExecution
  Text
pPipelineExecutionArn_ =
    ListPipelineParametersForExecution'
      { $sel:maxResults:ListPipelineParametersForExecution' :: Maybe Natural
maxResults =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListPipelineParametersForExecution' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:pipelineExecutionArn:ListPipelineParametersForExecution' :: Text
pipelineExecutionArn =
          Text
pPipelineExecutionArn_
      }

-- | The maximum number of parameters to return in the response.
listPipelineParametersForExecution_maxResults :: Lens.Lens' ListPipelineParametersForExecution (Prelude.Maybe Prelude.Natural)
listPipelineParametersForExecution_maxResults :: Lens' ListPipelineParametersForExecution (Maybe Natural)
listPipelineParametersForExecution_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelineParametersForExecution' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPipelineParametersForExecution
s@ListPipelineParametersForExecution' {} Maybe Natural
a -> ListPipelineParametersForExecution
s {$sel:maxResults:ListPipelineParametersForExecution' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPipelineParametersForExecution)

-- | If the result of the previous @ListPipelineParametersForExecution@
-- request was truncated, the response includes a @NextToken@. To retrieve
-- the next set of parameters, use the token in the next request.
listPipelineParametersForExecution_nextToken :: Lens.Lens' ListPipelineParametersForExecution (Prelude.Maybe Prelude.Text)
listPipelineParametersForExecution_nextToken :: Lens' ListPipelineParametersForExecution (Maybe Text)
listPipelineParametersForExecution_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelineParametersForExecution' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPipelineParametersForExecution
s@ListPipelineParametersForExecution' {} Maybe Text
a -> ListPipelineParametersForExecution
s {$sel:nextToken:ListPipelineParametersForExecution' :: Maybe Text
nextToken = Maybe Text
a} :: ListPipelineParametersForExecution)

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

instance
  Core.AWSPager
    ListPipelineParametersForExecution
  where
  page :: ListPipelineParametersForExecution
-> AWSResponse ListPipelineParametersForExecution
-> Maybe ListPipelineParametersForExecution
page ListPipelineParametersForExecution
rq AWSResponse ListPipelineParametersForExecution
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListPipelineParametersForExecution
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListPipelineParametersForExecutionResponse (Maybe Text)
listPipelineParametersForExecutionResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListPipelineParametersForExecution
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListPipelineParametersForExecutionResponse (Maybe [Parameter])
listPipelineParametersForExecutionResponse_pipelineParameters
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListPipelineParametersForExecution
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListPipelineParametersForExecution (Maybe Text)
listPipelineParametersForExecution_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPipelineParametersForExecution
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListPipelineParametersForExecutionResponse (Maybe Text)
listPipelineParametersForExecutionResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    ListPipelineParametersForExecution
  where
  type
    AWSResponse ListPipelineParametersForExecution =
      ListPipelineParametersForExecutionResponse
  request :: (Service -> Service)
-> ListPipelineParametersForExecution
-> Request ListPipelineParametersForExecution
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListPipelineParametersForExecution
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListPipelineParametersForExecution)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [Parameter]
-> Int
-> ListPipelineParametersForExecutionResponse
ListPipelineParametersForExecutionResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PipelineParameters"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListPipelineParametersForExecution
  where
  hashWithSalt :: Int -> ListPipelineParametersForExecution -> Int
hashWithSalt
    Int
_salt
    ListPipelineParametersForExecution' {Maybe Natural
Maybe Text
Text
pipelineExecutionArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:pipelineExecutionArn:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Text
$sel:nextToken:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Text
$sel:maxResults:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Natural
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
pipelineExecutionArn

instance
  Prelude.NFData
    ListPipelineParametersForExecution
  where
  rnf :: ListPipelineParametersForExecution -> ()
rnf ListPipelineParametersForExecution' {Maybe Natural
Maybe Text
Text
pipelineExecutionArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:pipelineExecutionArn:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Text
$sel:nextToken:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Text
$sel:maxResults:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
pipelineExecutionArn

instance
  Data.ToHeaders
    ListPipelineParametersForExecution
  where
  toHeaders :: ListPipelineParametersForExecution -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"SageMaker.ListPipelineParametersForExecution" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Data.ToJSON
    ListPipelineParametersForExecution
  where
  toJSON :: ListPipelineParametersForExecution -> Value
toJSON ListPipelineParametersForExecution' {Maybe Natural
Maybe Text
Text
pipelineExecutionArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:pipelineExecutionArn:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Text
$sel:nextToken:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Text
$sel:maxResults:ListPipelineParametersForExecution' :: ListPipelineParametersForExecution -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"PipelineExecutionArn"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
pipelineExecutionArn
              )
          ]
      )

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

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

-- | /See:/ 'newListPipelineParametersForExecutionResponse' smart constructor.
data ListPipelineParametersForExecutionResponse = ListPipelineParametersForExecutionResponse'
  { -- | If the result of the previous @ListPipelineParametersForExecution@
    -- request was truncated, the response includes a @NextToken@. To retrieve
    -- the next set of parameters, use the token in the next request.
    ListPipelineParametersForExecutionResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Contains a list of pipeline parameters. This list can be empty.
    ListPipelineParametersForExecutionResponse -> Maybe [Parameter]
pipelineParameters :: Prelude.Maybe [Parameter],
    -- | The response's http status code.
    ListPipelineParametersForExecutionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListPipelineParametersForExecutionResponse
-> ListPipelineParametersForExecutionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPipelineParametersForExecutionResponse
-> ListPipelineParametersForExecutionResponse -> Bool
$c/= :: ListPipelineParametersForExecutionResponse
-> ListPipelineParametersForExecutionResponse -> Bool
== :: ListPipelineParametersForExecutionResponse
-> ListPipelineParametersForExecutionResponse -> Bool
$c== :: ListPipelineParametersForExecutionResponse
-> ListPipelineParametersForExecutionResponse -> Bool
Prelude.Eq, ReadPrec [ListPipelineParametersForExecutionResponse]
ReadPrec ListPipelineParametersForExecutionResponse
Int -> ReadS ListPipelineParametersForExecutionResponse
ReadS [ListPipelineParametersForExecutionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPipelineParametersForExecutionResponse]
$creadListPrec :: ReadPrec [ListPipelineParametersForExecutionResponse]
readPrec :: ReadPrec ListPipelineParametersForExecutionResponse
$creadPrec :: ReadPrec ListPipelineParametersForExecutionResponse
readList :: ReadS [ListPipelineParametersForExecutionResponse]
$creadList :: ReadS [ListPipelineParametersForExecutionResponse]
readsPrec :: Int -> ReadS ListPipelineParametersForExecutionResponse
$creadsPrec :: Int -> ReadS ListPipelineParametersForExecutionResponse
Prelude.Read, Int -> ListPipelineParametersForExecutionResponse -> ShowS
[ListPipelineParametersForExecutionResponse] -> ShowS
ListPipelineParametersForExecutionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPipelineParametersForExecutionResponse] -> ShowS
$cshowList :: [ListPipelineParametersForExecutionResponse] -> ShowS
show :: ListPipelineParametersForExecutionResponse -> String
$cshow :: ListPipelineParametersForExecutionResponse -> String
showsPrec :: Int -> ListPipelineParametersForExecutionResponse -> ShowS
$cshowsPrec :: Int -> ListPipelineParametersForExecutionResponse -> ShowS
Prelude.Show, forall x.
Rep ListPipelineParametersForExecutionResponse x
-> ListPipelineParametersForExecutionResponse
forall x.
ListPipelineParametersForExecutionResponse
-> Rep ListPipelineParametersForExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPipelineParametersForExecutionResponse x
-> ListPipelineParametersForExecutionResponse
$cfrom :: forall x.
ListPipelineParametersForExecutionResponse
-> Rep ListPipelineParametersForExecutionResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListPipelineParametersForExecutionResponse' 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:
--
-- 'nextToken', 'listPipelineParametersForExecutionResponse_nextToken' - If the result of the previous @ListPipelineParametersForExecution@
-- request was truncated, the response includes a @NextToken@. To retrieve
-- the next set of parameters, use the token in the next request.
--
-- 'pipelineParameters', 'listPipelineParametersForExecutionResponse_pipelineParameters' - Contains a list of pipeline parameters. This list can be empty.
--
-- 'httpStatus', 'listPipelineParametersForExecutionResponse_httpStatus' - The response's http status code.
newListPipelineParametersForExecutionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListPipelineParametersForExecutionResponse
newListPipelineParametersForExecutionResponse :: Int -> ListPipelineParametersForExecutionResponse
newListPipelineParametersForExecutionResponse
  Int
pHttpStatus_ =
    ListPipelineParametersForExecutionResponse'
      { $sel:nextToken:ListPipelineParametersForExecutionResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:pipelineParameters:ListPipelineParametersForExecutionResponse' :: Maybe [Parameter]
pipelineParameters =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListPipelineParametersForExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | If the result of the previous @ListPipelineParametersForExecution@
-- request was truncated, the response includes a @NextToken@. To retrieve
-- the next set of parameters, use the token in the next request.
listPipelineParametersForExecutionResponse_nextToken :: Lens.Lens' ListPipelineParametersForExecutionResponse (Prelude.Maybe Prelude.Text)
listPipelineParametersForExecutionResponse_nextToken :: Lens' ListPipelineParametersForExecutionResponse (Maybe Text)
listPipelineParametersForExecutionResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelineParametersForExecutionResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPipelineParametersForExecutionResponse' :: ListPipelineParametersForExecutionResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPipelineParametersForExecutionResponse
s@ListPipelineParametersForExecutionResponse' {} Maybe Text
a -> ListPipelineParametersForExecutionResponse
s {$sel:nextToken:ListPipelineParametersForExecutionResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPipelineParametersForExecutionResponse)

-- | Contains a list of pipeline parameters. This list can be empty.
listPipelineParametersForExecutionResponse_pipelineParameters :: Lens.Lens' ListPipelineParametersForExecutionResponse (Prelude.Maybe [Parameter])
listPipelineParametersForExecutionResponse_pipelineParameters :: Lens'
  ListPipelineParametersForExecutionResponse (Maybe [Parameter])
listPipelineParametersForExecutionResponse_pipelineParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPipelineParametersForExecutionResponse' {Maybe [Parameter]
pipelineParameters :: Maybe [Parameter]
$sel:pipelineParameters:ListPipelineParametersForExecutionResponse' :: ListPipelineParametersForExecutionResponse -> Maybe [Parameter]
pipelineParameters} -> Maybe [Parameter]
pipelineParameters) (\s :: ListPipelineParametersForExecutionResponse
s@ListPipelineParametersForExecutionResponse' {} Maybe [Parameter]
a -> ListPipelineParametersForExecutionResponse
s {$sel:pipelineParameters:ListPipelineParametersForExecutionResponse' :: Maybe [Parameter]
pipelineParameters = Maybe [Parameter]
a} :: ListPipelineParametersForExecutionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListPipelineParametersForExecutionResponse
  where
  rnf :: ListPipelineParametersForExecutionResponse -> ()
rnf ListPipelineParametersForExecutionResponse' {Int
Maybe [Parameter]
Maybe Text
httpStatus :: Int
pipelineParameters :: Maybe [Parameter]
nextToken :: Maybe Text
$sel:httpStatus:ListPipelineParametersForExecutionResponse' :: ListPipelineParametersForExecutionResponse -> Int
$sel:pipelineParameters:ListPipelineParametersForExecutionResponse' :: ListPipelineParametersForExecutionResponse -> Maybe [Parameter]
$sel:nextToken:ListPipelineParametersForExecutionResponse' :: ListPipelineParametersForExecutionResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Parameter]
pipelineParameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus