{-# 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.DataPipeline.GetPipelineDefinition
(
GetPipelineDefinition (..),
newGetPipelineDefinition,
getPipelineDefinition_version,
getPipelineDefinition_pipelineId,
GetPipelineDefinitionResponse (..),
newGetPipelineDefinitionResponse,
getPipelineDefinitionResponse_pipelineObjects,
getPipelineDefinitionResponse_parameterObjects,
getPipelineDefinitionResponse_parameterValues,
getPipelineDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataPipeline.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetPipelineDefinition = GetPipelineDefinition'
{
GetPipelineDefinition -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
GetPipelineDefinition -> Text
pipelineId :: Prelude.Text
}
deriving (GetPipelineDefinition -> GetPipelineDefinition -> Bool
(GetPipelineDefinition -> GetPipelineDefinition -> Bool)
-> (GetPipelineDefinition -> GetPipelineDefinition -> Bool)
-> Eq GetPipelineDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPipelineDefinition -> GetPipelineDefinition -> Bool
$c/= :: GetPipelineDefinition -> GetPipelineDefinition -> Bool
== :: GetPipelineDefinition -> GetPipelineDefinition -> Bool
$c== :: GetPipelineDefinition -> GetPipelineDefinition -> Bool
Prelude.Eq, ReadPrec [GetPipelineDefinition]
ReadPrec GetPipelineDefinition
Int -> ReadS GetPipelineDefinition
ReadS [GetPipelineDefinition]
(Int -> ReadS GetPipelineDefinition)
-> ReadS [GetPipelineDefinition]
-> ReadPrec GetPipelineDefinition
-> ReadPrec [GetPipelineDefinition]
-> Read GetPipelineDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPipelineDefinition]
$creadListPrec :: ReadPrec [GetPipelineDefinition]
readPrec :: ReadPrec GetPipelineDefinition
$creadPrec :: ReadPrec GetPipelineDefinition
readList :: ReadS [GetPipelineDefinition]
$creadList :: ReadS [GetPipelineDefinition]
readsPrec :: Int -> ReadS GetPipelineDefinition
$creadsPrec :: Int -> ReadS GetPipelineDefinition
Prelude.Read, Int -> GetPipelineDefinition -> ShowS
[GetPipelineDefinition] -> ShowS
GetPipelineDefinition -> String
(Int -> GetPipelineDefinition -> ShowS)
-> (GetPipelineDefinition -> String)
-> ([GetPipelineDefinition] -> ShowS)
-> Show GetPipelineDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPipelineDefinition] -> ShowS
$cshowList :: [GetPipelineDefinition] -> ShowS
show :: GetPipelineDefinition -> String
$cshow :: GetPipelineDefinition -> String
showsPrec :: Int -> GetPipelineDefinition -> ShowS
$cshowsPrec :: Int -> GetPipelineDefinition -> ShowS
Prelude.Show, (forall x. GetPipelineDefinition -> Rep GetPipelineDefinition x)
-> (forall x. Rep GetPipelineDefinition x -> GetPipelineDefinition)
-> Generic GetPipelineDefinition
forall x. Rep GetPipelineDefinition x -> GetPipelineDefinition
forall x. GetPipelineDefinition -> Rep GetPipelineDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetPipelineDefinition x -> GetPipelineDefinition
$cfrom :: forall x. GetPipelineDefinition -> Rep GetPipelineDefinition x
Prelude.Generic)
newGetPipelineDefinition ::
Prelude.Text ->
GetPipelineDefinition
newGetPipelineDefinition :: Text -> GetPipelineDefinition
newGetPipelineDefinition Text
pPipelineId_ =
GetPipelineDefinition' :: Maybe Text -> Text -> GetPipelineDefinition
GetPipelineDefinition'
{ $sel:version:GetPipelineDefinition' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineId:GetPipelineDefinition' :: Text
pipelineId = Text
pPipelineId_
}
getPipelineDefinition_version :: Lens.Lens' GetPipelineDefinition (Prelude.Maybe Prelude.Text)
getPipelineDefinition_version :: (Maybe Text -> f (Maybe Text))
-> GetPipelineDefinition -> f GetPipelineDefinition
getPipelineDefinition_version = (GetPipelineDefinition -> Maybe Text)
-> (GetPipelineDefinition -> Maybe Text -> GetPipelineDefinition)
-> Lens
GetPipelineDefinition
GetPipelineDefinition
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinition' {Maybe Text
version :: Maybe Text
$sel:version:GetPipelineDefinition' :: GetPipelineDefinition -> Maybe Text
version} -> Maybe Text
version) (\s :: GetPipelineDefinition
s@GetPipelineDefinition' {} Maybe Text
a -> GetPipelineDefinition
s {$sel:version:GetPipelineDefinition' :: Maybe Text
version = Maybe Text
a} :: GetPipelineDefinition)
getPipelineDefinition_pipelineId :: Lens.Lens' GetPipelineDefinition Prelude.Text
getPipelineDefinition_pipelineId :: (Text -> f Text)
-> GetPipelineDefinition -> f GetPipelineDefinition
getPipelineDefinition_pipelineId = (GetPipelineDefinition -> Text)
-> (GetPipelineDefinition -> Text -> GetPipelineDefinition)
-> Lens GetPipelineDefinition GetPipelineDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinition' {Text
pipelineId :: Text
$sel:pipelineId:GetPipelineDefinition' :: GetPipelineDefinition -> Text
pipelineId} -> Text
pipelineId) (\s :: GetPipelineDefinition
s@GetPipelineDefinition' {} Text
a -> GetPipelineDefinition
s {$sel:pipelineId:GetPipelineDefinition' :: Text
pipelineId = Text
a} :: GetPipelineDefinition)
instance Core.AWSRequest GetPipelineDefinition where
type
AWSResponse GetPipelineDefinition =
GetPipelineDefinitionResponse
request :: GetPipelineDefinition -> Request GetPipelineDefinition
request = Service -> GetPipelineDefinition -> Request GetPipelineDefinition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetPipelineDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetPipelineDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetPipelineDefinition))
-> Logger
-> Service
-> Proxy GetPipelineDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetPipelineDefinition)))
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 [PipelineObject]
-> Maybe [ParameterObject]
-> Maybe [ParameterValue]
-> Int
-> GetPipelineDefinitionResponse
GetPipelineDefinitionResponse'
(Maybe [PipelineObject]
-> Maybe [ParameterObject]
-> Maybe [ParameterValue]
-> Int
-> GetPipelineDefinitionResponse)
-> Either String (Maybe [PipelineObject])
-> Either
String
(Maybe [ParameterObject]
-> Maybe [ParameterValue] -> Int -> GetPipelineDefinitionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [PipelineObject]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineObjects"
Either String (Maybe (Maybe [PipelineObject]))
-> Maybe [PipelineObject] -> Either String (Maybe [PipelineObject])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PipelineObject]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [ParameterObject]
-> Maybe [ParameterValue] -> Int -> GetPipelineDefinitionResponse)
-> Either String (Maybe [ParameterObject])
-> Either
String
(Maybe [ParameterValue] -> Int -> GetPipelineDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ParameterObject]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"parameterObjects"
Either String (Maybe (Maybe [ParameterObject]))
-> Maybe [ParameterObject]
-> Either String (Maybe [ParameterObject])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ParameterObject]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [ParameterValue] -> Int -> GetPipelineDefinitionResponse)
-> Either String (Maybe [ParameterValue])
-> Either String (Int -> GetPipelineDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ParameterValue]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"parameterValues"
Either String (Maybe (Maybe [ParameterValue]))
-> Maybe [ParameterValue] -> Either String (Maybe [ParameterValue])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ParameterValue]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetPipelineDefinitionResponse)
-> Either String Int -> Either String GetPipelineDefinitionResponse
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 GetPipelineDefinition
instance Prelude.NFData GetPipelineDefinition
instance Core.ToHeaders GetPipelineDefinition where
toHeaders :: GetPipelineDefinition -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetPipelineDefinition -> 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
"DataPipeline.GetPipelineDefinition" ::
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 GetPipelineDefinition where
toJSON :: GetPipelineDefinition -> Value
toJSON GetPipelineDefinition' {Maybe Text
Text
pipelineId :: Text
version :: Maybe Text
$sel:pipelineId:GetPipelineDefinition' :: GetPipelineDefinition -> Text
$sel:version:GetPipelineDefinition' :: GetPipelineDefinition -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"version" 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
version,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"pipelineId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pipelineId)
]
)
instance Core.ToPath GetPipelineDefinition where
toPath :: GetPipelineDefinition -> ByteString
toPath = ByteString -> GetPipelineDefinition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetPipelineDefinition where
toQuery :: GetPipelineDefinition -> QueryString
toQuery = QueryString -> GetPipelineDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetPipelineDefinitionResponse = GetPipelineDefinitionResponse'
{
GetPipelineDefinitionResponse -> Maybe [PipelineObject]
pipelineObjects :: Prelude.Maybe [PipelineObject],
GetPipelineDefinitionResponse -> Maybe [ParameterObject]
parameterObjects :: Prelude.Maybe [ParameterObject],
GetPipelineDefinitionResponse -> Maybe [ParameterValue]
parameterValues :: Prelude.Maybe [ParameterValue],
GetPipelineDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool
(GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool)
-> (GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool)
-> Eq GetPipelineDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool
$c/= :: GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool
== :: GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool
$c== :: GetPipelineDefinitionResponse
-> GetPipelineDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetPipelineDefinitionResponse]
ReadPrec GetPipelineDefinitionResponse
Int -> ReadS GetPipelineDefinitionResponse
ReadS [GetPipelineDefinitionResponse]
(Int -> ReadS GetPipelineDefinitionResponse)
-> ReadS [GetPipelineDefinitionResponse]
-> ReadPrec GetPipelineDefinitionResponse
-> ReadPrec [GetPipelineDefinitionResponse]
-> Read GetPipelineDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPipelineDefinitionResponse]
$creadListPrec :: ReadPrec [GetPipelineDefinitionResponse]
readPrec :: ReadPrec GetPipelineDefinitionResponse
$creadPrec :: ReadPrec GetPipelineDefinitionResponse
readList :: ReadS [GetPipelineDefinitionResponse]
$creadList :: ReadS [GetPipelineDefinitionResponse]
readsPrec :: Int -> ReadS GetPipelineDefinitionResponse
$creadsPrec :: Int -> ReadS GetPipelineDefinitionResponse
Prelude.Read, Int -> GetPipelineDefinitionResponse -> ShowS
[GetPipelineDefinitionResponse] -> ShowS
GetPipelineDefinitionResponse -> String
(Int -> GetPipelineDefinitionResponse -> ShowS)
-> (GetPipelineDefinitionResponse -> String)
-> ([GetPipelineDefinitionResponse] -> ShowS)
-> Show GetPipelineDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPipelineDefinitionResponse] -> ShowS
$cshowList :: [GetPipelineDefinitionResponse] -> ShowS
show :: GetPipelineDefinitionResponse -> String
$cshow :: GetPipelineDefinitionResponse -> String
showsPrec :: Int -> GetPipelineDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetPipelineDefinitionResponse -> ShowS
Prelude.Show, (forall x.
GetPipelineDefinitionResponse
-> Rep GetPipelineDefinitionResponse x)
-> (forall x.
Rep GetPipelineDefinitionResponse x
-> GetPipelineDefinitionResponse)
-> Generic GetPipelineDefinitionResponse
forall x.
Rep GetPipelineDefinitionResponse x
-> GetPipelineDefinitionResponse
forall x.
GetPipelineDefinitionResponse
-> Rep GetPipelineDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPipelineDefinitionResponse x
-> GetPipelineDefinitionResponse
$cfrom :: forall x.
GetPipelineDefinitionResponse
-> Rep GetPipelineDefinitionResponse x
Prelude.Generic)
newGetPipelineDefinitionResponse ::
Prelude.Int ->
GetPipelineDefinitionResponse
newGetPipelineDefinitionResponse :: Int -> GetPipelineDefinitionResponse
newGetPipelineDefinitionResponse Int
pHttpStatus_ =
GetPipelineDefinitionResponse' :: Maybe [PipelineObject]
-> Maybe [ParameterObject]
-> Maybe [ParameterValue]
-> Int
-> GetPipelineDefinitionResponse
GetPipelineDefinitionResponse'
{ $sel:pipelineObjects:GetPipelineDefinitionResponse' :: Maybe [PipelineObject]
pipelineObjects =
Maybe [PipelineObject]
forall a. Maybe a
Prelude.Nothing,
$sel:parameterObjects:GetPipelineDefinitionResponse' :: Maybe [ParameterObject]
parameterObjects = Maybe [ParameterObject]
forall a. Maybe a
Prelude.Nothing,
$sel:parameterValues:GetPipelineDefinitionResponse' :: Maybe [ParameterValue]
parameterValues = Maybe [ParameterValue]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetPipelineDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getPipelineDefinitionResponse_pipelineObjects :: Lens.Lens' GetPipelineDefinitionResponse (Prelude.Maybe [PipelineObject])
getPipelineDefinitionResponse_pipelineObjects :: (Maybe [PipelineObject] -> f (Maybe [PipelineObject]))
-> GetPipelineDefinitionResponse -> f GetPipelineDefinitionResponse
getPipelineDefinitionResponse_pipelineObjects = (GetPipelineDefinitionResponse -> Maybe [PipelineObject])
-> (GetPipelineDefinitionResponse
-> Maybe [PipelineObject] -> GetPipelineDefinitionResponse)
-> Lens
GetPipelineDefinitionResponse
GetPipelineDefinitionResponse
(Maybe [PipelineObject])
(Maybe [PipelineObject])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinitionResponse' {Maybe [PipelineObject]
pipelineObjects :: Maybe [PipelineObject]
$sel:pipelineObjects:GetPipelineDefinitionResponse' :: GetPipelineDefinitionResponse -> Maybe [PipelineObject]
pipelineObjects} -> Maybe [PipelineObject]
pipelineObjects) (\s :: GetPipelineDefinitionResponse
s@GetPipelineDefinitionResponse' {} Maybe [PipelineObject]
a -> GetPipelineDefinitionResponse
s {$sel:pipelineObjects:GetPipelineDefinitionResponse' :: Maybe [PipelineObject]
pipelineObjects = Maybe [PipelineObject]
a} :: GetPipelineDefinitionResponse) ((Maybe [PipelineObject] -> f (Maybe [PipelineObject]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse)
-> ((Maybe [PipelineObject] -> f (Maybe [PipelineObject]))
-> Maybe [PipelineObject] -> f (Maybe [PipelineObject]))
-> (Maybe [PipelineObject] -> f (Maybe [PipelineObject]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PipelineObject] [PipelineObject] [PipelineObject] [PipelineObject]
-> Iso
(Maybe [PipelineObject])
(Maybe [PipelineObject])
(Maybe [PipelineObject])
(Maybe [PipelineObject])
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
[PipelineObject] [PipelineObject] [PipelineObject] [PipelineObject]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPipelineDefinitionResponse_parameterObjects :: Lens.Lens' GetPipelineDefinitionResponse (Prelude.Maybe [ParameterObject])
getPipelineDefinitionResponse_parameterObjects :: (Maybe [ParameterObject] -> f (Maybe [ParameterObject]))
-> GetPipelineDefinitionResponse -> f GetPipelineDefinitionResponse
getPipelineDefinitionResponse_parameterObjects = (GetPipelineDefinitionResponse -> Maybe [ParameterObject])
-> (GetPipelineDefinitionResponse
-> Maybe [ParameterObject] -> GetPipelineDefinitionResponse)
-> Lens
GetPipelineDefinitionResponse
GetPipelineDefinitionResponse
(Maybe [ParameterObject])
(Maybe [ParameterObject])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinitionResponse' {Maybe [ParameterObject]
parameterObjects :: Maybe [ParameterObject]
$sel:parameterObjects:GetPipelineDefinitionResponse' :: GetPipelineDefinitionResponse -> Maybe [ParameterObject]
parameterObjects} -> Maybe [ParameterObject]
parameterObjects) (\s :: GetPipelineDefinitionResponse
s@GetPipelineDefinitionResponse' {} Maybe [ParameterObject]
a -> GetPipelineDefinitionResponse
s {$sel:parameterObjects:GetPipelineDefinitionResponse' :: Maybe [ParameterObject]
parameterObjects = Maybe [ParameterObject]
a} :: GetPipelineDefinitionResponse) ((Maybe [ParameterObject] -> f (Maybe [ParameterObject]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse)
-> ((Maybe [ParameterObject] -> f (Maybe [ParameterObject]))
-> Maybe [ParameterObject] -> f (Maybe [ParameterObject]))
-> (Maybe [ParameterObject] -> f (Maybe [ParameterObject]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ParameterObject]
[ParameterObject]
[ParameterObject]
[ParameterObject]
-> Iso
(Maybe [ParameterObject])
(Maybe [ParameterObject])
(Maybe [ParameterObject])
(Maybe [ParameterObject])
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
[ParameterObject]
[ParameterObject]
[ParameterObject]
[ParameterObject]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPipelineDefinitionResponse_parameterValues :: Lens.Lens' GetPipelineDefinitionResponse (Prelude.Maybe [ParameterValue])
getPipelineDefinitionResponse_parameterValues :: (Maybe [ParameterValue] -> f (Maybe [ParameterValue]))
-> GetPipelineDefinitionResponse -> f GetPipelineDefinitionResponse
getPipelineDefinitionResponse_parameterValues = (GetPipelineDefinitionResponse -> Maybe [ParameterValue])
-> (GetPipelineDefinitionResponse
-> Maybe [ParameterValue] -> GetPipelineDefinitionResponse)
-> Lens
GetPipelineDefinitionResponse
GetPipelineDefinitionResponse
(Maybe [ParameterValue])
(Maybe [ParameterValue])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinitionResponse' {Maybe [ParameterValue]
parameterValues :: Maybe [ParameterValue]
$sel:parameterValues:GetPipelineDefinitionResponse' :: GetPipelineDefinitionResponse -> Maybe [ParameterValue]
parameterValues} -> Maybe [ParameterValue]
parameterValues) (\s :: GetPipelineDefinitionResponse
s@GetPipelineDefinitionResponse' {} Maybe [ParameterValue]
a -> GetPipelineDefinitionResponse
s {$sel:parameterValues:GetPipelineDefinitionResponse' :: Maybe [ParameterValue]
parameterValues = Maybe [ParameterValue]
a} :: GetPipelineDefinitionResponse) ((Maybe [ParameterValue] -> f (Maybe [ParameterValue]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse)
-> ((Maybe [ParameterValue] -> f (Maybe [ParameterValue]))
-> Maybe [ParameterValue] -> f (Maybe [ParameterValue]))
-> (Maybe [ParameterValue] -> f (Maybe [ParameterValue]))
-> GetPipelineDefinitionResponse
-> f GetPipelineDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ParameterValue] [ParameterValue] [ParameterValue] [ParameterValue]
-> Iso
(Maybe [ParameterValue])
(Maybe [ParameterValue])
(Maybe [ParameterValue])
(Maybe [ParameterValue])
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
[ParameterValue] [ParameterValue] [ParameterValue] [ParameterValue]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPipelineDefinitionResponse_httpStatus :: Lens.Lens' GetPipelineDefinitionResponse Prelude.Int
getPipelineDefinitionResponse_httpStatus :: (Int -> f Int)
-> GetPipelineDefinitionResponse -> f GetPipelineDefinitionResponse
getPipelineDefinitionResponse_httpStatus = (GetPipelineDefinitionResponse -> Int)
-> (GetPipelineDefinitionResponse
-> Int -> GetPipelineDefinitionResponse)
-> Lens
GetPipelineDefinitionResponse GetPipelineDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetPipelineDefinitionResponse' :: GetPipelineDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetPipelineDefinitionResponse
s@GetPipelineDefinitionResponse' {} Int
a -> GetPipelineDefinitionResponse
s {$sel:httpStatus:GetPipelineDefinitionResponse' :: Int
httpStatus = Int
a} :: GetPipelineDefinitionResponse)
instance Prelude.NFData GetPipelineDefinitionResponse