{-# 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.CodePipeline.GetPipelineState
(
GetPipelineState (..),
newGetPipelineState,
getPipelineState_name,
GetPipelineStateResponse (..),
newGetPipelineStateResponse,
getPipelineStateResponse_pipelineName,
getPipelineStateResponse_created,
getPipelineStateResponse_stageStates,
getPipelineStateResponse_pipelineVersion,
getPipelineStateResponse_updated,
getPipelineStateResponse_httpStatus,
)
where
import Amazonka.CodePipeline.Types
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
data GetPipelineState = GetPipelineState'
{
GetPipelineState -> Text
name :: Prelude.Text
}
deriving (GetPipelineState -> GetPipelineState -> Bool
(GetPipelineState -> GetPipelineState -> Bool)
-> (GetPipelineState -> GetPipelineState -> Bool)
-> Eq GetPipelineState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPipelineState -> GetPipelineState -> Bool
$c/= :: GetPipelineState -> GetPipelineState -> Bool
== :: GetPipelineState -> GetPipelineState -> Bool
$c== :: GetPipelineState -> GetPipelineState -> Bool
Prelude.Eq, ReadPrec [GetPipelineState]
ReadPrec GetPipelineState
Int -> ReadS GetPipelineState
ReadS [GetPipelineState]
(Int -> ReadS GetPipelineState)
-> ReadS [GetPipelineState]
-> ReadPrec GetPipelineState
-> ReadPrec [GetPipelineState]
-> Read GetPipelineState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPipelineState]
$creadListPrec :: ReadPrec [GetPipelineState]
readPrec :: ReadPrec GetPipelineState
$creadPrec :: ReadPrec GetPipelineState
readList :: ReadS [GetPipelineState]
$creadList :: ReadS [GetPipelineState]
readsPrec :: Int -> ReadS GetPipelineState
$creadsPrec :: Int -> ReadS GetPipelineState
Prelude.Read, Int -> GetPipelineState -> ShowS
[GetPipelineState] -> ShowS
GetPipelineState -> String
(Int -> GetPipelineState -> ShowS)
-> (GetPipelineState -> String)
-> ([GetPipelineState] -> ShowS)
-> Show GetPipelineState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPipelineState] -> ShowS
$cshowList :: [GetPipelineState] -> ShowS
show :: GetPipelineState -> String
$cshow :: GetPipelineState -> String
showsPrec :: Int -> GetPipelineState -> ShowS
$cshowsPrec :: Int -> GetPipelineState -> ShowS
Prelude.Show, (forall x. GetPipelineState -> Rep GetPipelineState x)
-> (forall x. Rep GetPipelineState x -> GetPipelineState)
-> Generic GetPipelineState
forall x. Rep GetPipelineState x -> GetPipelineState
forall x. GetPipelineState -> Rep GetPipelineState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetPipelineState x -> GetPipelineState
$cfrom :: forall x. GetPipelineState -> Rep GetPipelineState x
Prelude.Generic)
newGetPipelineState ::
Prelude.Text ->
GetPipelineState
newGetPipelineState :: Text -> GetPipelineState
newGetPipelineState Text
pName_ =
GetPipelineState' :: Text -> GetPipelineState
GetPipelineState' {$sel:name:GetPipelineState' :: Text
name = Text
pName_}
getPipelineState_name :: Lens.Lens' GetPipelineState Prelude.Text
getPipelineState_name :: (Text -> f Text) -> GetPipelineState -> f GetPipelineState
getPipelineState_name = (GetPipelineState -> Text)
-> (GetPipelineState -> Text -> GetPipelineState)
-> Lens GetPipelineState GetPipelineState Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineState' {Text
name :: Text
$sel:name:GetPipelineState' :: GetPipelineState -> Text
name} -> Text
name) (\s :: GetPipelineState
s@GetPipelineState' {} Text
a -> GetPipelineState
s {$sel:name:GetPipelineState' :: Text
name = Text
a} :: GetPipelineState)
instance Core.AWSRequest GetPipelineState where
type
AWSResponse GetPipelineState =
GetPipelineStateResponse
request :: GetPipelineState -> Request GetPipelineState
request = Service -> GetPipelineState -> Request GetPipelineState
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetPipelineState
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetPipelineState)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetPipelineState))
-> Logger
-> Service
-> Proxy GetPipelineState
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetPipelineState)))
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
-> Maybe POSIX
-> Maybe [StageState]
-> Maybe Natural
-> Maybe POSIX
-> Int
-> GetPipelineStateResponse
GetPipelineStateResponse'
(Maybe Text
-> Maybe POSIX
-> Maybe [StageState]
-> Maybe Natural
-> Maybe POSIX
-> Int
-> GetPipelineStateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe [StageState]
-> Maybe Natural
-> Maybe POSIX
-> Int
-> GetPipelineStateResponse)
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
"pipelineName")
Either
String
(Maybe POSIX
-> Maybe [StageState]
-> Maybe Natural
-> Maybe POSIX
-> Int
-> GetPipelineStateResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe [StageState]
-> Maybe Natural -> Maybe POSIX -> Int -> GetPipelineStateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"created")
Either
String
(Maybe [StageState]
-> Maybe Natural -> Maybe POSIX -> Int -> GetPipelineStateResponse)
-> Either String (Maybe [StageState])
-> Either
String
(Maybe Natural -> Maybe POSIX -> Int -> GetPipelineStateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [StageState]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"stageStates" Either String (Maybe (Maybe [StageState]))
-> Maybe [StageState] -> Either String (Maybe [StageState])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [StageState]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Natural -> Maybe POSIX -> Int -> GetPipelineStateResponse)
-> Either String (Maybe Natural)
-> Either String (Maybe POSIX -> Int -> GetPipelineStateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineVersion")
Either String (Maybe POSIX -> Int -> GetPipelineStateResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> GetPipelineStateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"updated")
Either String (Int -> GetPipelineStateResponse)
-> Either String Int -> Either String GetPipelineStateResponse
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 GetPipelineState
instance Prelude.NFData GetPipelineState
instance Core.ToHeaders GetPipelineState where
toHeaders :: GetPipelineState -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetPipelineState -> 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
"CodePipeline_20150709.GetPipelineState" ::
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 GetPipelineState where
toJSON :: GetPipelineState -> Value
toJSON GetPipelineState' {Text
name :: Text
$sel:name:GetPipelineState' :: GetPipelineState -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
)
instance Core.ToPath GetPipelineState where
toPath :: GetPipelineState -> ByteString
toPath = ByteString -> GetPipelineState -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetPipelineState where
toQuery :: GetPipelineState -> QueryString
toQuery = QueryString -> GetPipelineState -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetPipelineStateResponse = GetPipelineStateResponse'
{
GetPipelineStateResponse -> Maybe Text
pipelineName :: Prelude.Maybe Prelude.Text,
GetPipelineStateResponse -> Maybe POSIX
created :: Prelude.Maybe Core.POSIX,
GetPipelineStateResponse -> Maybe [StageState]
stageStates :: Prelude.Maybe [StageState],
GetPipelineStateResponse -> Maybe Natural
pipelineVersion :: Prelude.Maybe Prelude.Natural,
GetPipelineStateResponse -> Maybe POSIX
updated :: Prelude.Maybe Core.POSIX,
GetPipelineStateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetPipelineStateResponse -> GetPipelineStateResponse -> Bool
(GetPipelineStateResponse -> GetPipelineStateResponse -> Bool)
-> (GetPipelineStateResponse -> GetPipelineStateResponse -> Bool)
-> Eq GetPipelineStateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPipelineStateResponse -> GetPipelineStateResponse -> Bool
$c/= :: GetPipelineStateResponse -> GetPipelineStateResponse -> Bool
== :: GetPipelineStateResponse -> GetPipelineStateResponse -> Bool
$c== :: GetPipelineStateResponse -> GetPipelineStateResponse -> Bool
Prelude.Eq, ReadPrec [GetPipelineStateResponse]
ReadPrec GetPipelineStateResponse
Int -> ReadS GetPipelineStateResponse
ReadS [GetPipelineStateResponse]
(Int -> ReadS GetPipelineStateResponse)
-> ReadS [GetPipelineStateResponse]
-> ReadPrec GetPipelineStateResponse
-> ReadPrec [GetPipelineStateResponse]
-> Read GetPipelineStateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPipelineStateResponse]
$creadListPrec :: ReadPrec [GetPipelineStateResponse]
readPrec :: ReadPrec GetPipelineStateResponse
$creadPrec :: ReadPrec GetPipelineStateResponse
readList :: ReadS [GetPipelineStateResponse]
$creadList :: ReadS [GetPipelineStateResponse]
readsPrec :: Int -> ReadS GetPipelineStateResponse
$creadsPrec :: Int -> ReadS GetPipelineStateResponse
Prelude.Read, Int -> GetPipelineStateResponse -> ShowS
[GetPipelineStateResponse] -> ShowS
GetPipelineStateResponse -> String
(Int -> GetPipelineStateResponse -> ShowS)
-> (GetPipelineStateResponse -> String)
-> ([GetPipelineStateResponse] -> ShowS)
-> Show GetPipelineStateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPipelineStateResponse] -> ShowS
$cshowList :: [GetPipelineStateResponse] -> ShowS
show :: GetPipelineStateResponse -> String
$cshow :: GetPipelineStateResponse -> String
showsPrec :: Int -> GetPipelineStateResponse -> ShowS
$cshowsPrec :: Int -> GetPipelineStateResponse -> ShowS
Prelude.Show, (forall x.
GetPipelineStateResponse -> Rep GetPipelineStateResponse x)
-> (forall x.
Rep GetPipelineStateResponse x -> GetPipelineStateResponse)
-> Generic GetPipelineStateResponse
forall x.
Rep GetPipelineStateResponse x -> GetPipelineStateResponse
forall x.
GetPipelineStateResponse -> Rep GetPipelineStateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPipelineStateResponse x -> GetPipelineStateResponse
$cfrom :: forall x.
GetPipelineStateResponse -> Rep GetPipelineStateResponse x
Prelude.Generic)
newGetPipelineStateResponse ::
Prelude.Int ->
GetPipelineStateResponse
newGetPipelineStateResponse :: Int -> GetPipelineStateResponse
newGetPipelineStateResponse Int
pHttpStatus_ =
GetPipelineStateResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe [StageState]
-> Maybe Natural
-> Maybe POSIX
-> Int
-> GetPipelineStateResponse
GetPipelineStateResponse'
{ $sel:pipelineName:GetPipelineStateResponse' :: Maybe Text
pipelineName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:created:GetPipelineStateResponse' :: Maybe POSIX
created = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:stageStates:GetPipelineStateResponse' :: Maybe [StageState]
stageStates = Maybe [StageState]
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineVersion:GetPipelineStateResponse' :: Maybe Natural
pipelineVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:updated:GetPipelineStateResponse' :: Maybe POSIX
updated = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetPipelineStateResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getPipelineStateResponse_pipelineName :: Lens.Lens' GetPipelineStateResponse (Prelude.Maybe Prelude.Text)
getPipelineStateResponse_pipelineName :: (Maybe Text -> f (Maybe Text))
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_pipelineName = (GetPipelineStateResponse -> Maybe Text)
-> (GetPipelineStateResponse
-> Maybe Text -> GetPipelineStateResponse)
-> Lens
GetPipelineStateResponse
GetPipelineStateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Maybe Text
pipelineName :: Maybe Text
$sel:pipelineName:GetPipelineStateResponse' :: GetPipelineStateResponse -> Maybe Text
pipelineName} -> Maybe Text
pipelineName) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Maybe Text
a -> GetPipelineStateResponse
s {$sel:pipelineName:GetPipelineStateResponse' :: Maybe Text
pipelineName = Maybe Text
a} :: GetPipelineStateResponse)
getPipelineStateResponse_created :: Lens.Lens' GetPipelineStateResponse (Prelude.Maybe Prelude.UTCTime)
getPipelineStateResponse_created :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_created = (GetPipelineStateResponse -> Maybe POSIX)
-> (GetPipelineStateResponse
-> Maybe POSIX -> GetPipelineStateResponse)
-> Lens
GetPipelineStateResponse
GetPipelineStateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Maybe POSIX
created :: Maybe POSIX
$sel:created:GetPipelineStateResponse' :: GetPipelineStateResponse -> Maybe POSIX
created} -> Maybe POSIX
created) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Maybe POSIX
a -> GetPipelineStateResponse
s {$sel:created:GetPipelineStateResponse' :: Maybe POSIX
created = Maybe POSIX
a} :: GetPipelineStateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetPipelineStateResponse -> f GetPipelineStateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetPipelineStateResponse
-> f GetPipelineStateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getPipelineStateResponse_stageStates :: Lens.Lens' GetPipelineStateResponse (Prelude.Maybe [StageState])
getPipelineStateResponse_stageStates :: (Maybe [StageState] -> f (Maybe [StageState]))
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_stageStates = (GetPipelineStateResponse -> Maybe [StageState])
-> (GetPipelineStateResponse
-> Maybe [StageState] -> GetPipelineStateResponse)
-> Lens
GetPipelineStateResponse
GetPipelineStateResponse
(Maybe [StageState])
(Maybe [StageState])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Maybe [StageState]
stageStates :: Maybe [StageState]
$sel:stageStates:GetPipelineStateResponse' :: GetPipelineStateResponse -> Maybe [StageState]
stageStates} -> Maybe [StageState]
stageStates) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Maybe [StageState]
a -> GetPipelineStateResponse
s {$sel:stageStates:GetPipelineStateResponse' :: Maybe [StageState]
stageStates = Maybe [StageState]
a} :: GetPipelineStateResponse) ((Maybe [StageState] -> f (Maybe [StageState]))
-> GetPipelineStateResponse -> f GetPipelineStateResponse)
-> ((Maybe [StageState] -> f (Maybe [StageState]))
-> Maybe [StageState] -> f (Maybe [StageState]))
-> (Maybe [StageState] -> f (Maybe [StageState]))
-> GetPipelineStateResponse
-> f GetPipelineStateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [StageState] [StageState] [StageState] [StageState]
-> Iso
(Maybe [StageState])
(Maybe [StageState])
(Maybe [StageState])
(Maybe [StageState])
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 [StageState] [StageState] [StageState] [StageState]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPipelineStateResponse_pipelineVersion :: Lens.Lens' GetPipelineStateResponse (Prelude.Maybe Prelude.Natural)
getPipelineStateResponse_pipelineVersion :: (Maybe Natural -> f (Maybe Natural))
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_pipelineVersion = (GetPipelineStateResponse -> Maybe Natural)
-> (GetPipelineStateResponse
-> Maybe Natural -> GetPipelineStateResponse)
-> Lens
GetPipelineStateResponse
GetPipelineStateResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Maybe Natural
pipelineVersion :: Maybe Natural
$sel:pipelineVersion:GetPipelineStateResponse' :: GetPipelineStateResponse -> Maybe Natural
pipelineVersion} -> Maybe Natural
pipelineVersion) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Maybe Natural
a -> GetPipelineStateResponse
s {$sel:pipelineVersion:GetPipelineStateResponse' :: Maybe Natural
pipelineVersion = Maybe Natural
a} :: GetPipelineStateResponse)
getPipelineStateResponse_updated :: Lens.Lens' GetPipelineStateResponse (Prelude.Maybe Prelude.UTCTime)
getPipelineStateResponse_updated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_updated = (GetPipelineStateResponse -> Maybe POSIX)
-> (GetPipelineStateResponse
-> Maybe POSIX -> GetPipelineStateResponse)
-> Lens
GetPipelineStateResponse
GetPipelineStateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Maybe POSIX
updated :: Maybe POSIX
$sel:updated:GetPipelineStateResponse' :: GetPipelineStateResponse -> Maybe POSIX
updated} -> Maybe POSIX
updated) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Maybe POSIX
a -> GetPipelineStateResponse
s {$sel:updated:GetPipelineStateResponse' :: Maybe POSIX
updated = Maybe POSIX
a} :: GetPipelineStateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetPipelineStateResponse -> f GetPipelineStateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetPipelineStateResponse
-> f GetPipelineStateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getPipelineStateResponse_httpStatus :: Lens.Lens' GetPipelineStateResponse Prelude.Int
getPipelineStateResponse_httpStatus :: (Int -> f Int)
-> GetPipelineStateResponse -> f GetPipelineStateResponse
getPipelineStateResponse_httpStatus = (GetPipelineStateResponse -> Int)
-> (GetPipelineStateResponse -> Int -> GetPipelineStateResponse)
-> Lens GetPipelineStateResponse GetPipelineStateResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPipelineStateResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetPipelineStateResponse' :: GetPipelineStateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetPipelineStateResponse
s@GetPipelineStateResponse' {} Int
a -> GetPipelineStateResponse
s {$sel:httpStatus:GetPipelineStateResponse' :: Int
httpStatus = Int
a} :: GetPipelineStateResponse)
instance Prelude.NFData GetPipelineStateResponse