{-# 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.Greengrass.GetDeploymentStatus
(
GetDeploymentStatus (..),
newGetDeploymentStatus,
getDeploymentStatus_groupId,
getDeploymentStatus_deploymentId,
GetDeploymentStatusResponse (..),
newGetDeploymentStatusResponse,
getDeploymentStatusResponse_deploymentType,
getDeploymentStatusResponse_errorDetails,
getDeploymentStatusResponse_deploymentStatus,
getDeploymentStatusResponse_updatedAt,
getDeploymentStatusResponse_errorMessage,
getDeploymentStatusResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.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 GetDeploymentStatus = GetDeploymentStatus'
{
GetDeploymentStatus -> Text
groupId :: Prelude.Text,
GetDeploymentStatus -> Text
deploymentId :: Prelude.Text
}
deriving (GetDeploymentStatus -> GetDeploymentStatus -> Bool
(GetDeploymentStatus -> GetDeploymentStatus -> Bool)
-> (GetDeploymentStatus -> GetDeploymentStatus -> Bool)
-> Eq GetDeploymentStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeploymentStatus -> GetDeploymentStatus -> Bool
$c/= :: GetDeploymentStatus -> GetDeploymentStatus -> Bool
== :: GetDeploymentStatus -> GetDeploymentStatus -> Bool
$c== :: GetDeploymentStatus -> GetDeploymentStatus -> Bool
Prelude.Eq, ReadPrec [GetDeploymentStatus]
ReadPrec GetDeploymentStatus
Int -> ReadS GetDeploymentStatus
ReadS [GetDeploymentStatus]
(Int -> ReadS GetDeploymentStatus)
-> ReadS [GetDeploymentStatus]
-> ReadPrec GetDeploymentStatus
-> ReadPrec [GetDeploymentStatus]
-> Read GetDeploymentStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeploymentStatus]
$creadListPrec :: ReadPrec [GetDeploymentStatus]
readPrec :: ReadPrec GetDeploymentStatus
$creadPrec :: ReadPrec GetDeploymentStatus
readList :: ReadS [GetDeploymentStatus]
$creadList :: ReadS [GetDeploymentStatus]
readsPrec :: Int -> ReadS GetDeploymentStatus
$creadsPrec :: Int -> ReadS GetDeploymentStatus
Prelude.Read, Int -> GetDeploymentStatus -> ShowS
[GetDeploymentStatus] -> ShowS
GetDeploymentStatus -> String
(Int -> GetDeploymentStatus -> ShowS)
-> (GetDeploymentStatus -> String)
-> ([GetDeploymentStatus] -> ShowS)
-> Show GetDeploymentStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeploymentStatus] -> ShowS
$cshowList :: [GetDeploymentStatus] -> ShowS
show :: GetDeploymentStatus -> String
$cshow :: GetDeploymentStatus -> String
showsPrec :: Int -> GetDeploymentStatus -> ShowS
$cshowsPrec :: Int -> GetDeploymentStatus -> ShowS
Prelude.Show, (forall x. GetDeploymentStatus -> Rep GetDeploymentStatus x)
-> (forall x. Rep GetDeploymentStatus x -> GetDeploymentStatus)
-> Generic GetDeploymentStatus
forall x. Rep GetDeploymentStatus x -> GetDeploymentStatus
forall x. GetDeploymentStatus -> Rep GetDeploymentStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDeploymentStatus x -> GetDeploymentStatus
$cfrom :: forall x. GetDeploymentStatus -> Rep GetDeploymentStatus x
Prelude.Generic)
newGetDeploymentStatus ::
Prelude.Text ->
Prelude.Text ->
GetDeploymentStatus
newGetDeploymentStatus :: Text -> Text -> GetDeploymentStatus
newGetDeploymentStatus Text
pGroupId_ Text
pDeploymentId_ =
GetDeploymentStatus' :: Text -> Text -> GetDeploymentStatus
GetDeploymentStatus'
{ $sel:groupId:GetDeploymentStatus' :: Text
groupId = Text
pGroupId_,
$sel:deploymentId:GetDeploymentStatus' :: Text
deploymentId = Text
pDeploymentId_
}
getDeploymentStatus_groupId :: Lens.Lens' GetDeploymentStatus Prelude.Text
getDeploymentStatus_groupId :: (Text -> f Text) -> GetDeploymentStatus -> f GetDeploymentStatus
getDeploymentStatus_groupId = (GetDeploymentStatus -> Text)
-> (GetDeploymentStatus -> Text -> GetDeploymentStatus)
-> Lens GetDeploymentStatus GetDeploymentStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatus' {Text
groupId :: Text
$sel:groupId:GetDeploymentStatus' :: GetDeploymentStatus -> Text
groupId} -> Text
groupId) (\s :: GetDeploymentStatus
s@GetDeploymentStatus' {} Text
a -> GetDeploymentStatus
s {$sel:groupId:GetDeploymentStatus' :: Text
groupId = Text
a} :: GetDeploymentStatus)
getDeploymentStatus_deploymentId :: Lens.Lens' GetDeploymentStatus Prelude.Text
getDeploymentStatus_deploymentId :: (Text -> f Text) -> GetDeploymentStatus -> f GetDeploymentStatus
getDeploymentStatus_deploymentId = (GetDeploymentStatus -> Text)
-> (GetDeploymentStatus -> Text -> GetDeploymentStatus)
-> Lens GetDeploymentStatus GetDeploymentStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatus' {Text
deploymentId :: Text
$sel:deploymentId:GetDeploymentStatus' :: GetDeploymentStatus -> Text
deploymentId} -> Text
deploymentId) (\s :: GetDeploymentStatus
s@GetDeploymentStatus' {} Text
a -> GetDeploymentStatus
s {$sel:deploymentId:GetDeploymentStatus' :: Text
deploymentId = Text
a} :: GetDeploymentStatus)
instance Core.AWSRequest GetDeploymentStatus where
type
AWSResponse GetDeploymentStatus =
GetDeploymentStatusResponse
request :: GetDeploymentStatus -> Request GetDeploymentStatus
request = Service -> GetDeploymentStatus -> Request GetDeploymentStatus
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetDeploymentStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDeploymentStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDeploymentStatus))
-> Logger
-> Service
-> Proxy GetDeploymentStatus
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDeploymentStatus)))
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 DeploymentType
-> Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetDeploymentStatusResponse
GetDeploymentStatusResponse'
(Maybe DeploymentType
-> Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetDeploymentStatusResponse)
-> Either String (Maybe DeploymentType)
-> Either
String
(Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetDeploymentStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe DeploymentType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeploymentType")
Either
String
(Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetDeploymentStatusResponse)
-> Either String (Maybe [ErrorDetail])
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> GetDeploymentStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ErrorDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ErrorDetails" Either String (Maybe (Maybe [ErrorDetail]))
-> Maybe [ErrorDetail] -> Either String (Maybe [ErrorDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ErrorDetail]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> GetDeploymentStatusResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> GetDeploymentStatusResponse)
forall (f :: * -> *) a b. Applicative f => 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
"DeploymentStatus")
Either
String
(Maybe Text -> Maybe Text -> Int -> GetDeploymentStatusResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetDeploymentStatusResponse)
forall (f :: * -> *) a b. Applicative f => 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
"UpdatedAt")
Either String (Maybe Text -> Int -> GetDeploymentStatusResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetDeploymentStatusResponse)
forall (f :: * -> *) a b. Applicative f => 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
"ErrorMessage")
Either String (Int -> GetDeploymentStatusResponse)
-> Either String Int -> Either String GetDeploymentStatusResponse
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 GetDeploymentStatus
instance Prelude.NFData GetDeploymentStatus
instance Core.ToHeaders GetDeploymentStatus where
toHeaders :: GetDeploymentStatus -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDeploymentStatus -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetDeploymentStatus where
toPath :: GetDeploymentStatus -> ByteString
toPath GetDeploymentStatus' {Text
deploymentId :: Text
groupId :: Text
$sel:deploymentId:GetDeploymentStatus' :: GetDeploymentStatus -> Text
$sel:groupId:GetDeploymentStatus' :: GetDeploymentStatus -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/groups/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
groupId,
ByteString
"/deployments/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
deploymentId,
ByteString
"/status"
]
instance Core.ToQuery GetDeploymentStatus where
toQuery :: GetDeploymentStatus -> QueryString
toQuery = QueryString -> GetDeploymentStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetDeploymentStatusResponse = GetDeploymentStatusResponse'
{
GetDeploymentStatusResponse -> Maybe DeploymentType
deploymentType :: Prelude.Maybe DeploymentType,
GetDeploymentStatusResponse -> Maybe [ErrorDetail]
errorDetails :: Prelude.Maybe [ErrorDetail],
GetDeploymentStatusResponse -> Maybe Text
deploymentStatus :: Prelude.Maybe Prelude.Text,
GetDeploymentStatusResponse -> Maybe Text
updatedAt :: Prelude.Maybe Prelude.Text,
GetDeploymentStatusResponse -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
GetDeploymentStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetDeploymentStatusResponse -> GetDeploymentStatusResponse -> Bool
(GetDeploymentStatusResponse
-> GetDeploymentStatusResponse -> Bool)
-> (GetDeploymentStatusResponse
-> GetDeploymentStatusResponse -> Bool)
-> Eq GetDeploymentStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeploymentStatusResponse -> GetDeploymentStatusResponse -> Bool
$c/= :: GetDeploymentStatusResponse -> GetDeploymentStatusResponse -> Bool
== :: GetDeploymentStatusResponse -> GetDeploymentStatusResponse -> Bool
$c== :: GetDeploymentStatusResponse -> GetDeploymentStatusResponse -> Bool
Prelude.Eq, ReadPrec [GetDeploymentStatusResponse]
ReadPrec GetDeploymentStatusResponse
Int -> ReadS GetDeploymentStatusResponse
ReadS [GetDeploymentStatusResponse]
(Int -> ReadS GetDeploymentStatusResponse)
-> ReadS [GetDeploymentStatusResponse]
-> ReadPrec GetDeploymentStatusResponse
-> ReadPrec [GetDeploymentStatusResponse]
-> Read GetDeploymentStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeploymentStatusResponse]
$creadListPrec :: ReadPrec [GetDeploymentStatusResponse]
readPrec :: ReadPrec GetDeploymentStatusResponse
$creadPrec :: ReadPrec GetDeploymentStatusResponse
readList :: ReadS [GetDeploymentStatusResponse]
$creadList :: ReadS [GetDeploymentStatusResponse]
readsPrec :: Int -> ReadS GetDeploymentStatusResponse
$creadsPrec :: Int -> ReadS GetDeploymentStatusResponse
Prelude.Read, Int -> GetDeploymentStatusResponse -> ShowS
[GetDeploymentStatusResponse] -> ShowS
GetDeploymentStatusResponse -> String
(Int -> GetDeploymentStatusResponse -> ShowS)
-> (GetDeploymentStatusResponse -> String)
-> ([GetDeploymentStatusResponse] -> ShowS)
-> Show GetDeploymentStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeploymentStatusResponse] -> ShowS
$cshowList :: [GetDeploymentStatusResponse] -> ShowS
show :: GetDeploymentStatusResponse -> String
$cshow :: GetDeploymentStatusResponse -> String
showsPrec :: Int -> GetDeploymentStatusResponse -> ShowS
$cshowsPrec :: Int -> GetDeploymentStatusResponse -> ShowS
Prelude.Show, (forall x.
GetDeploymentStatusResponse -> Rep GetDeploymentStatusResponse x)
-> (forall x.
Rep GetDeploymentStatusResponse x -> GetDeploymentStatusResponse)
-> Generic GetDeploymentStatusResponse
forall x.
Rep GetDeploymentStatusResponse x -> GetDeploymentStatusResponse
forall x.
GetDeploymentStatusResponse -> Rep GetDeploymentStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDeploymentStatusResponse x -> GetDeploymentStatusResponse
$cfrom :: forall x.
GetDeploymentStatusResponse -> Rep GetDeploymentStatusResponse x
Prelude.Generic)
newGetDeploymentStatusResponse ::
Prelude.Int ->
GetDeploymentStatusResponse
newGetDeploymentStatusResponse :: Int -> GetDeploymentStatusResponse
newGetDeploymentStatusResponse Int
pHttpStatus_ =
GetDeploymentStatusResponse' :: Maybe DeploymentType
-> Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetDeploymentStatusResponse
GetDeploymentStatusResponse'
{ $sel:deploymentType:GetDeploymentStatusResponse' :: Maybe DeploymentType
deploymentType =
Maybe DeploymentType
forall a. Maybe a
Prelude.Nothing,
$sel:errorDetails:GetDeploymentStatusResponse' :: Maybe [ErrorDetail]
errorDetails = Maybe [ErrorDetail]
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentStatus:GetDeploymentStatusResponse' :: Maybe Text
deploymentStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:GetDeploymentStatusResponse' :: Maybe Text
updatedAt = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:GetDeploymentStatusResponse' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDeploymentStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getDeploymentStatusResponse_deploymentType :: Lens.Lens' GetDeploymentStatusResponse (Prelude.Maybe DeploymentType)
getDeploymentStatusResponse_deploymentType :: (Maybe DeploymentType -> f (Maybe DeploymentType))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_deploymentType = (GetDeploymentStatusResponse -> Maybe DeploymentType)
-> (GetDeploymentStatusResponse
-> Maybe DeploymentType -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse
GetDeploymentStatusResponse
(Maybe DeploymentType)
(Maybe DeploymentType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Maybe DeploymentType
deploymentType :: Maybe DeploymentType
$sel:deploymentType:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Maybe DeploymentType
deploymentType} -> Maybe DeploymentType
deploymentType) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Maybe DeploymentType
a -> GetDeploymentStatusResponse
s {$sel:deploymentType:GetDeploymentStatusResponse' :: Maybe DeploymentType
deploymentType = Maybe DeploymentType
a} :: GetDeploymentStatusResponse)
getDeploymentStatusResponse_errorDetails :: Lens.Lens' GetDeploymentStatusResponse (Prelude.Maybe [ErrorDetail])
getDeploymentStatusResponse_errorDetails :: (Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_errorDetails = (GetDeploymentStatusResponse -> Maybe [ErrorDetail])
-> (GetDeploymentStatusResponse
-> Maybe [ErrorDetail] -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse
GetDeploymentStatusResponse
(Maybe [ErrorDetail])
(Maybe [ErrorDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Maybe [ErrorDetail]
errorDetails :: Maybe [ErrorDetail]
$sel:errorDetails:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Maybe [ErrorDetail]
errorDetails} -> Maybe [ErrorDetail]
errorDetails) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Maybe [ErrorDetail]
a -> GetDeploymentStatusResponse
s {$sel:errorDetails:GetDeploymentStatusResponse' :: Maybe [ErrorDetail]
errorDetails = Maybe [ErrorDetail]
a} :: GetDeploymentStatusResponse) ((Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse)
-> ((Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> (Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> GetDeploymentStatusResponse
-> f GetDeploymentStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ErrorDetail] [ErrorDetail] [ErrorDetail] [ErrorDetail]
-> Iso
(Maybe [ErrorDetail])
(Maybe [ErrorDetail])
(Maybe [ErrorDetail])
(Maybe [ErrorDetail])
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 [ErrorDetail] [ErrorDetail] [ErrorDetail] [ErrorDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getDeploymentStatusResponse_deploymentStatus :: Lens.Lens' GetDeploymentStatusResponse (Prelude.Maybe Prelude.Text)
getDeploymentStatusResponse_deploymentStatus :: (Maybe Text -> f (Maybe Text))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_deploymentStatus = (GetDeploymentStatusResponse -> Maybe Text)
-> (GetDeploymentStatusResponse
-> Maybe Text -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse
GetDeploymentStatusResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Maybe Text
deploymentStatus :: Maybe Text
$sel:deploymentStatus:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Maybe Text
deploymentStatus} -> Maybe Text
deploymentStatus) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Maybe Text
a -> GetDeploymentStatusResponse
s {$sel:deploymentStatus:GetDeploymentStatusResponse' :: Maybe Text
deploymentStatus = Maybe Text
a} :: GetDeploymentStatusResponse)
getDeploymentStatusResponse_updatedAt :: Lens.Lens' GetDeploymentStatusResponse (Prelude.Maybe Prelude.Text)
getDeploymentStatusResponse_updatedAt :: (Maybe Text -> f (Maybe Text))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_updatedAt = (GetDeploymentStatusResponse -> Maybe Text)
-> (GetDeploymentStatusResponse
-> Maybe Text -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse
GetDeploymentStatusResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Maybe Text
updatedAt :: Maybe Text
$sel:updatedAt:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Maybe Text
updatedAt} -> Maybe Text
updatedAt) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Maybe Text
a -> GetDeploymentStatusResponse
s {$sel:updatedAt:GetDeploymentStatusResponse' :: Maybe Text
updatedAt = Maybe Text
a} :: GetDeploymentStatusResponse)
getDeploymentStatusResponse_errorMessage :: Lens.Lens' GetDeploymentStatusResponse (Prelude.Maybe Prelude.Text)
getDeploymentStatusResponse_errorMessage :: (Maybe Text -> f (Maybe Text))
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_errorMessage = (GetDeploymentStatusResponse -> Maybe Text)
-> (GetDeploymentStatusResponse
-> Maybe Text -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse
GetDeploymentStatusResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Maybe Text
a -> GetDeploymentStatusResponse
s {$sel:errorMessage:GetDeploymentStatusResponse' :: Maybe Text
errorMessage = Maybe Text
a} :: GetDeploymentStatusResponse)
getDeploymentStatusResponse_httpStatus :: Lens.Lens' GetDeploymentStatusResponse Prelude.Int
getDeploymentStatusResponse_httpStatus :: (Int -> f Int)
-> GetDeploymentStatusResponse -> f GetDeploymentStatusResponse
getDeploymentStatusResponse_httpStatus = (GetDeploymentStatusResponse -> Int)
-> (GetDeploymentStatusResponse
-> Int -> GetDeploymentStatusResponse)
-> Lens
GetDeploymentStatusResponse GetDeploymentStatusResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeploymentStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDeploymentStatusResponse' :: GetDeploymentStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDeploymentStatusResponse
s@GetDeploymentStatusResponse' {} Int
a -> GetDeploymentStatusResponse
s {$sel:httpStatus:GetDeploymentStatusResponse' :: Int
httpStatus = Int
a} :: GetDeploymentStatusResponse)
instance Prelude.NFData GetDeploymentStatusResponse