{-# 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.Amplify.CreateDeployment
(
CreateDeployment (..),
newCreateDeployment,
createDeployment_fileMap,
createDeployment_appId,
createDeployment_branchName,
CreateDeploymentResponse (..),
newCreateDeploymentResponse,
createDeploymentResponse_jobId,
createDeploymentResponse_httpStatus,
createDeploymentResponse_fileUploadUrls,
createDeploymentResponse_zipUploadUrl,
)
where
import Amazonka.Amplify.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 CreateDeployment = CreateDeployment'
{
CreateDeployment -> Maybe (HashMap Text Text)
fileMap :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateDeployment -> Text
appId :: Prelude.Text,
CreateDeployment -> Text
branchName :: Prelude.Text
}
deriving (CreateDeployment -> CreateDeployment -> Bool
(CreateDeployment -> CreateDeployment -> Bool)
-> (CreateDeployment -> CreateDeployment -> Bool)
-> Eq CreateDeployment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeployment -> CreateDeployment -> Bool
$c/= :: CreateDeployment -> CreateDeployment -> Bool
== :: CreateDeployment -> CreateDeployment -> Bool
$c== :: CreateDeployment -> CreateDeployment -> Bool
Prelude.Eq, ReadPrec [CreateDeployment]
ReadPrec CreateDeployment
Int -> ReadS CreateDeployment
ReadS [CreateDeployment]
(Int -> ReadS CreateDeployment)
-> ReadS [CreateDeployment]
-> ReadPrec CreateDeployment
-> ReadPrec [CreateDeployment]
-> Read CreateDeployment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDeployment]
$creadListPrec :: ReadPrec [CreateDeployment]
readPrec :: ReadPrec CreateDeployment
$creadPrec :: ReadPrec CreateDeployment
readList :: ReadS [CreateDeployment]
$creadList :: ReadS [CreateDeployment]
readsPrec :: Int -> ReadS CreateDeployment
$creadsPrec :: Int -> ReadS CreateDeployment
Prelude.Read, Int -> CreateDeployment -> ShowS
[CreateDeployment] -> ShowS
CreateDeployment -> String
(Int -> CreateDeployment -> ShowS)
-> (CreateDeployment -> String)
-> ([CreateDeployment] -> ShowS)
-> Show CreateDeployment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeployment] -> ShowS
$cshowList :: [CreateDeployment] -> ShowS
show :: CreateDeployment -> String
$cshow :: CreateDeployment -> String
showsPrec :: Int -> CreateDeployment -> ShowS
$cshowsPrec :: Int -> CreateDeployment -> ShowS
Prelude.Show, (forall x. CreateDeployment -> Rep CreateDeployment x)
-> (forall x. Rep CreateDeployment x -> CreateDeployment)
-> Generic CreateDeployment
forall x. Rep CreateDeployment x -> CreateDeployment
forall x. CreateDeployment -> Rep CreateDeployment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDeployment x -> CreateDeployment
$cfrom :: forall x. CreateDeployment -> Rep CreateDeployment x
Prelude.Generic)
newCreateDeployment ::
Prelude.Text ->
Prelude.Text ->
CreateDeployment
newCreateDeployment :: Text -> Text -> CreateDeployment
newCreateDeployment Text
pAppId_ Text
pBranchName_ =
CreateDeployment' :: Maybe (HashMap Text Text) -> Text -> Text -> CreateDeployment
CreateDeployment'
{ $sel:fileMap:CreateDeployment' :: Maybe (HashMap Text Text)
fileMap = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:appId:CreateDeployment' :: Text
appId = Text
pAppId_,
$sel:branchName:CreateDeployment' :: Text
branchName = Text
pBranchName_
}
createDeployment_fileMap :: Lens.Lens' CreateDeployment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createDeployment_fileMap :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDeployment -> f CreateDeployment
createDeployment_fileMap = (CreateDeployment -> Maybe (HashMap Text Text))
-> (CreateDeployment
-> Maybe (HashMap Text Text) -> CreateDeployment)
-> Lens
CreateDeployment
CreateDeployment
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeployment' {Maybe (HashMap Text Text)
fileMap :: Maybe (HashMap Text Text)
$sel:fileMap:CreateDeployment' :: CreateDeployment -> Maybe (HashMap Text Text)
fileMap} -> Maybe (HashMap Text Text)
fileMap) (\s :: CreateDeployment
s@CreateDeployment' {} Maybe (HashMap Text Text)
a -> CreateDeployment
s {$sel:fileMap:CreateDeployment' :: Maybe (HashMap Text Text)
fileMap = Maybe (HashMap Text Text)
a} :: CreateDeployment) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDeployment -> f CreateDeployment)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDeployment
-> f CreateDeployment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDeployment_appId :: Lens.Lens' CreateDeployment Prelude.Text
createDeployment_appId :: (Text -> f Text) -> CreateDeployment -> f CreateDeployment
createDeployment_appId = (CreateDeployment -> Text)
-> (CreateDeployment -> Text -> CreateDeployment)
-> Lens CreateDeployment CreateDeployment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeployment' {Text
appId :: Text
$sel:appId:CreateDeployment' :: CreateDeployment -> Text
appId} -> Text
appId) (\s :: CreateDeployment
s@CreateDeployment' {} Text
a -> CreateDeployment
s {$sel:appId:CreateDeployment' :: Text
appId = Text
a} :: CreateDeployment)
createDeployment_branchName :: Lens.Lens' CreateDeployment Prelude.Text
createDeployment_branchName :: (Text -> f Text) -> CreateDeployment -> f CreateDeployment
createDeployment_branchName = (CreateDeployment -> Text)
-> (CreateDeployment -> Text -> CreateDeployment)
-> Lens CreateDeployment CreateDeployment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeployment' {Text
branchName :: Text
$sel:branchName:CreateDeployment' :: CreateDeployment -> Text
branchName} -> Text
branchName) (\s :: CreateDeployment
s@CreateDeployment' {} Text
a -> CreateDeployment
s {$sel:branchName:CreateDeployment' :: Text
branchName = Text
a} :: CreateDeployment)
instance Core.AWSRequest CreateDeployment where
type
AWSResponse CreateDeployment =
CreateDeploymentResponse
request :: CreateDeployment -> Request CreateDeployment
request = Service -> CreateDeployment -> Request CreateDeployment
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDeployment
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDeployment)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDeployment))
-> Logger
-> Service
-> Proxy CreateDeployment
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDeployment)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Int -> HashMap Text Text -> Text -> CreateDeploymentResponse
CreateDeploymentResponse'
(Maybe Text
-> Int -> HashMap Text Text -> Text -> CreateDeploymentResponse)
-> Either String (Maybe Text)
-> Either
String
(Int -> HashMap Text Text -> Text -> CreateDeploymentResponse)
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
"jobId")
Either
String
(Int -> HashMap Text Text -> Text -> CreateDeploymentResponse)
-> Either String Int
-> Either
String (HashMap Text Text -> Text -> CreateDeploymentResponse)
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))
Either
String (HashMap Text Text -> Text -> CreateDeploymentResponse)
-> Either String (HashMap Text Text)
-> Either String (Text -> CreateDeploymentResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (HashMap Text Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"fileUploadUrls" Either String (Maybe (HashMap Text Text))
-> HashMap Text Text -> Either String (HashMap Text Text)
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ HashMap Text Text
forall a. Monoid a => a
Prelude.mempty)
Either String (Text -> CreateDeploymentResponse)
-> Either String Text -> Either String CreateDeploymentResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"zipUploadUrl")
)
instance Prelude.Hashable CreateDeployment
instance Prelude.NFData CreateDeployment
instance Core.ToHeaders CreateDeployment where
toHeaders :: CreateDeployment -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDeployment -> 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.ToJSON CreateDeployment where
toJSON :: CreateDeployment -> Value
toJSON CreateDeployment' {Maybe (HashMap Text Text)
Text
branchName :: Text
appId :: Text
fileMap :: Maybe (HashMap Text Text)
$sel:branchName:CreateDeployment' :: CreateDeployment -> Text
$sel:appId:CreateDeployment' :: CreateDeployment -> Text
$sel:fileMap:CreateDeployment' :: CreateDeployment -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"fileMap" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
fileMap]
)
instance Core.ToPath CreateDeployment where
toPath :: CreateDeployment -> ByteString
toPath CreateDeployment' {Maybe (HashMap Text Text)
Text
branchName :: Text
appId :: Text
fileMap :: Maybe (HashMap Text Text)
$sel:branchName:CreateDeployment' :: CreateDeployment -> Text
$sel:appId:CreateDeployment' :: CreateDeployment -> Text
$sel:fileMap:CreateDeployment' :: CreateDeployment -> Maybe (HashMap Text Text)
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/apps/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appId,
ByteString
"/branches/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
branchName,
ByteString
"/deployments"
]
instance Core.ToQuery CreateDeployment where
toQuery :: CreateDeployment -> QueryString
toQuery = QueryString -> CreateDeployment -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDeploymentResponse = CreateDeploymentResponse'
{
CreateDeploymentResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
CreateDeploymentResponse -> Int
httpStatus :: Prelude.Int,
CreateDeploymentResponse -> HashMap Text Text
fileUploadUrls :: Prelude.HashMap Prelude.Text Prelude.Text,
CreateDeploymentResponse -> Text
zipUploadUrl :: Prelude.Text
}
deriving (CreateDeploymentResponse -> CreateDeploymentResponse -> Bool
(CreateDeploymentResponse -> CreateDeploymentResponse -> Bool)
-> (CreateDeploymentResponse -> CreateDeploymentResponse -> Bool)
-> Eq CreateDeploymentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeploymentResponse -> CreateDeploymentResponse -> Bool
$c/= :: CreateDeploymentResponse -> CreateDeploymentResponse -> Bool
== :: CreateDeploymentResponse -> CreateDeploymentResponse -> Bool
$c== :: CreateDeploymentResponse -> CreateDeploymentResponse -> Bool
Prelude.Eq, ReadPrec [CreateDeploymentResponse]
ReadPrec CreateDeploymentResponse
Int -> ReadS CreateDeploymentResponse
ReadS [CreateDeploymentResponse]
(Int -> ReadS CreateDeploymentResponse)
-> ReadS [CreateDeploymentResponse]
-> ReadPrec CreateDeploymentResponse
-> ReadPrec [CreateDeploymentResponse]
-> Read CreateDeploymentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDeploymentResponse]
$creadListPrec :: ReadPrec [CreateDeploymentResponse]
readPrec :: ReadPrec CreateDeploymentResponse
$creadPrec :: ReadPrec CreateDeploymentResponse
readList :: ReadS [CreateDeploymentResponse]
$creadList :: ReadS [CreateDeploymentResponse]
readsPrec :: Int -> ReadS CreateDeploymentResponse
$creadsPrec :: Int -> ReadS CreateDeploymentResponse
Prelude.Read, Int -> CreateDeploymentResponse -> ShowS
[CreateDeploymentResponse] -> ShowS
CreateDeploymentResponse -> String
(Int -> CreateDeploymentResponse -> ShowS)
-> (CreateDeploymentResponse -> String)
-> ([CreateDeploymentResponse] -> ShowS)
-> Show CreateDeploymentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeploymentResponse] -> ShowS
$cshowList :: [CreateDeploymentResponse] -> ShowS
show :: CreateDeploymentResponse -> String
$cshow :: CreateDeploymentResponse -> String
showsPrec :: Int -> CreateDeploymentResponse -> ShowS
$cshowsPrec :: Int -> CreateDeploymentResponse -> ShowS
Prelude.Show, (forall x.
CreateDeploymentResponse -> Rep CreateDeploymentResponse x)
-> (forall x.
Rep CreateDeploymentResponse x -> CreateDeploymentResponse)
-> Generic CreateDeploymentResponse
forall x.
Rep CreateDeploymentResponse x -> CreateDeploymentResponse
forall x.
CreateDeploymentResponse -> Rep CreateDeploymentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDeploymentResponse x -> CreateDeploymentResponse
$cfrom :: forall x.
CreateDeploymentResponse -> Rep CreateDeploymentResponse x
Prelude.Generic)
newCreateDeploymentResponse ::
Prelude.Int ->
Prelude.Text ->
CreateDeploymentResponse
newCreateDeploymentResponse :: Int -> Text -> CreateDeploymentResponse
newCreateDeploymentResponse
Int
pHttpStatus_
Text
pZipUploadUrl_ =
CreateDeploymentResponse' :: Maybe Text
-> Int -> HashMap Text Text -> Text -> CreateDeploymentResponse
CreateDeploymentResponse'
{ $sel:jobId:CreateDeploymentResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDeploymentResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:fileUploadUrls:CreateDeploymentResponse' :: HashMap Text Text
fileUploadUrls = HashMap Text Text
forall a. Monoid a => a
Prelude.mempty,
$sel:zipUploadUrl:CreateDeploymentResponse' :: Text
zipUploadUrl = Text
pZipUploadUrl_
}
createDeploymentResponse_jobId :: Lens.Lens' CreateDeploymentResponse (Prelude.Maybe Prelude.Text)
createDeploymentResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> CreateDeploymentResponse -> f CreateDeploymentResponse
createDeploymentResponse_jobId = (CreateDeploymentResponse -> Maybe Text)
-> (CreateDeploymentResponse
-> Maybe Text -> CreateDeploymentResponse)
-> Lens
CreateDeploymentResponse
CreateDeploymentResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeploymentResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:CreateDeploymentResponse' :: CreateDeploymentResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: CreateDeploymentResponse
s@CreateDeploymentResponse' {} Maybe Text
a -> CreateDeploymentResponse
s {$sel:jobId:CreateDeploymentResponse' :: Maybe Text
jobId = Maybe Text
a} :: CreateDeploymentResponse)
createDeploymentResponse_httpStatus :: Lens.Lens' CreateDeploymentResponse Prelude.Int
createDeploymentResponse_httpStatus :: (Int -> f Int)
-> CreateDeploymentResponse -> f CreateDeploymentResponse
createDeploymentResponse_httpStatus = (CreateDeploymentResponse -> Int)
-> (CreateDeploymentResponse -> Int -> CreateDeploymentResponse)
-> Lens CreateDeploymentResponse CreateDeploymentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeploymentResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDeploymentResponse' :: CreateDeploymentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDeploymentResponse
s@CreateDeploymentResponse' {} Int
a -> CreateDeploymentResponse
s {$sel:httpStatus:CreateDeploymentResponse' :: Int
httpStatus = Int
a} :: CreateDeploymentResponse)
createDeploymentResponse_fileUploadUrls :: Lens.Lens' CreateDeploymentResponse (Prelude.HashMap Prelude.Text Prelude.Text)
createDeploymentResponse_fileUploadUrls :: (HashMap Text Text -> f (HashMap Text Text))
-> CreateDeploymentResponse -> f CreateDeploymentResponse
createDeploymentResponse_fileUploadUrls = (CreateDeploymentResponse -> HashMap Text Text)
-> (CreateDeploymentResponse
-> HashMap Text Text -> CreateDeploymentResponse)
-> Lens
CreateDeploymentResponse
CreateDeploymentResponse
(HashMap Text Text)
(HashMap Text Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeploymentResponse' {HashMap Text Text
fileUploadUrls :: HashMap Text Text
$sel:fileUploadUrls:CreateDeploymentResponse' :: CreateDeploymentResponse -> HashMap Text Text
fileUploadUrls} -> HashMap Text Text
fileUploadUrls) (\s :: CreateDeploymentResponse
s@CreateDeploymentResponse' {} HashMap Text Text
a -> CreateDeploymentResponse
s {$sel:fileUploadUrls:CreateDeploymentResponse' :: HashMap Text Text
fileUploadUrls = HashMap Text Text
a} :: CreateDeploymentResponse) ((HashMap Text Text -> f (HashMap Text Text))
-> CreateDeploymentResponse -> f CreateDeploymentResponse)
-> ((HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text))
-> (HashMap Text Text -> f (HashMap Text Text))
-> CreateDeploymentResponse
-> f CreateDeploymentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDeploymentResponse_zipUploadUrl :: Lens.Lens' CreateDeploymentResponse Prelude.Text
createDeploymentResponse_zipUploadUrl :: (Text -> f Text)
-> CreateDeploymentResponse -> f CreateDeploymentResponse
createDeploymentResponse_zipUploadUrl = (CreateDeploymentResponse -> Text)
-> (CreateDeploymentResponse -> Text -> CreateDeploymentResponse)
-> Lens CreateDeploymentResponse CreateDeploymentResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeploymentResponse' {Text
zipUploadUrl :: Text
$sel:zipUploadUrl:CreateDeploymentResponse' :: CreateDeploymentResponse -> Text
zipUploadUrl} -> Text
zipUploadUrl) (\s :: CreateDeploymentResponse
s@CreateDeploymentResponse' {} Text
a -> CreateDeploymentResponse
s {$sel:zipUploadUrl:CreateDeploymentResponse' :: Text
zipUploadUrl = Text
a} :: CreateDeploymentResponse)
instance Prelude.NFData CreateDeploymentResponse