{-# 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.ServerlessApplicationRepository.CreateApplicationVersion
(
CreateApplicationVersion (..),
newCreateApplicationVersion,
createApplicationVersion_sourceCodeUrl,
createApplicationVersion_templateBody,
createApplicationVersion_templateUrl,
createApplicationVersion_sourceCodeArchiveUrl,
createApplicationVersion_applicationId,
createApplicationVersion_semanticVersion,
CreateApplicationVersionResponse (..),
newCreateApplicationVersionResponse,
createApplicationVersionResponse_creationTime,
createApplicationVersionResponse_resourcesSupported,
createApplicationVersionResponse_requiredCapabilities,
createApplicationVersionResponse_parameterDefinitions,
createApplicationVersionResponse_semanticVersion,
createApplicationVersionResponse_sourceCodeUrl,
createApplicationVersionResponse_applicationId,
createApplicationVersionResponse_templateUrl,
createApplicationVersionResponse_sourceCodeArchiveUrl,
createApplicationVersionResponse_httpStatus,
)
where
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
import Amazonka.ServerlessApplicationRepository.Types
data CreateApplicationVersion = CreateApplicationVersion'
{
CreateApplicationVersion -> Maybe Text
sourceCodeUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersion -> Maybe Text
templateBody :: Prelude.Maybe Prelude.Text,
CreateApplicationVersion -> Maybe Text
templateUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersion -> Maybe Text
sourceCodeArchiveUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersion -> Text
applicationId :: Prelude.Text,
CreateApplicationVersion -> Text
semanticVersion :: Prelude.Text
}
deriving (CreateApplicationVersion -> CreateApplicationVersion -> Bool
(CreateApplicationVersion -> CreateApplicationVersion -> Bool)
-> (CreateApplicationVersion -> CreateApplicationVersion -> Bool)
-> Eq CreateApplicationVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApplicationVersion -> CreateApplicationVersion -> Bool
$c/= :: CreateApplicationVersion -> CreateApplicationVersion -> Bool
== :: CreateApplicationVersion -> CreateApplicationVersion -> Bool
$c== :: CreateApplicationVersion -> CreateApplicationVersion -> Bool
Prelude.Eq, ReadPrec [CreateApplicationVersion]
ReadPrec CreateApplicationVersion
Int -> ReadS CreateApplicationVersion
ReadS [CreateApplicationVersion]
(Int -> ReadS CreateApplicationVersion)
-> ReadS [CreateApplicationVersion]
-> ReadPrec CreateApplicationVersion
-> ReadPrec [CreateApplicationVersion]
-> Read CreateApplicationVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateApplicationVersion]
$creadListPrec :: ReadPrec [CreateApplicationVersion]
readPrec :: ReadPrec CreateApplicationVersion
$creadPrec :: ReadPrec CreateApplicationVersion
readList :: ReadS [CreateApplicationVersion]
$creadList :: ReadS [CreateApplicationVersion]
readsPrec :: Int -> ReadS CreateApplicationVersion
$creadsPrec :: Int -> ReadS CreateApplicationVersion
Prelude.Read, Int -> CreateApplicationVersion -> ShowS
[CreateApplicationVersion] -> ShowS
CreateApplicationVersion -> String
(Int -> CreateApplicationVersion -> ShowS)
-> (CreateApplicationVersion -> String)
-> ([CreateApplicationVersion] -> ShowS)
-> Show CreateApplicationVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApplicationVersion] -> ShowS
$cshowList :: [CreateApplicationVersion] -> ShowS
show :: CreateApplicationVersion -> String
$cshow :: CreateApplicationVersion -> String
showsPrec :: Int -> CreateApplicationVersion -> ShowS
$cshowsPrec :: Int -> CreateApplicationVersion -> ShowS
Prelude.Show, (forall x.
CreateApplicationVersion -> Rep CreateApplicationVersion x)
-> (forall x.
Rep CreateApplicationVersion x -> CreateApplicationVersion)
-> Generic CreateApplicationVersion
forall x.
Rep CreateApplicationVersion x -> CreateApplicationVersion
forall x.
CreateApplicationVersion -> Rep CreateApplicationVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateApplicationVersion x -> CreateApplicationVersion
$cfrom :: forall x.
CreateApplicationVersion -> Rep CreateApplicationVersion x
Prelude.Generic)
newCreateApplicationVersion ::
Prelude.Text ->
Prelude.Text ->
CreateApplicationVersion
newCreateApplicationVersion :: Text -> Text -> CreateApplicationVersion
newCreateApplicationVersion
Text
pApplicationId_
Text
pSemanticVersion_ =
CreateApplicationVersion' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> CreateApplicationVersion
CreateApplicationVersion'
{ $sel:sourceCodeUrl:CreateApplicationVersion' :: Maybe Text
sourceCodeUrl =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateBody:CreateApplicationVersion' :: Maybe Text
templateBody = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateUrl:CreateApplicationVersion' :: Maybe Text
templateUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceCodeArchiveUrl:CreateApplicationVersion' :: Maybe Text
sourceCodeArchiveUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:CreateApplicationVersion' :: Text
applicationId = Text
pApplicationId_,
$sel:semanticVersion:CreateApplicationVersion' :: Text
semanticVersion = Text
pSemanticVersion_
}
createApplicationVersion_sourceCodeUrl :: Lens.Lens' CreateApplicationVersion (Prelude.Maybe Prelude.Text)
createApplicationVersion_sourceCodeUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_sourceCodeUrl = (CreateApplicationVersion -> Maybe Text)
-> (CreateApplicationVersion
-> Maybe Text -> CreateApplicationVersion)
-> Lens
CreateApplicationVersion
CreateApplicationVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Maybe Text
sourceCodeUrl :: Maybe Text
$sel:sourceCodeUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
sourceCodeUrl} -> Maybe Text
sourceCodeUrl) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Maybe Text
a -> CreateApplicationVersion
s {$sel:sourceCodeUrl:CreateApplicationVersion' :: Maybe Text
sourceCodeUrl = Maybe Text
a} :: CreateApplicationVersion)
createApplicationVersion_templateBody :: Lens.Lens' CreateApplicationVersion (Prelude.Maybe Prelude.Text)
createApplicationVersion_templateBody :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_templateBody = (CreateApplicationVersion -> Maybe Text)
-> (CreateApplicationVersion
-> Maybe Text -> CreateApplicationVersion)
-> Lens
CreateApplicationVersion
CreateApplicationVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Maybe Text
templateBody :: Maybe Text
$sel:templateBody:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
templateBody} -> Maybe Text
templateBody) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Maybe Text
a -> CreateApplicationVersion
s {$sel:templateBody:CreateApplicationVersion' :: Maybe Text
templateBody = Maybe Text
a} :: CreateApplicationVersion)
createApplicationVersion_templateUrl :: Lens.Lens' CreateApplicationVersion (Prelude.Maybe Prelude.Text)
createApplicationVersion_templateUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_templateUrl = (CreateApplicationVersion -> Maybe Text)
-> (CreateApplicationVersion
-> Maybe Text -> CreateApplicationVersion)
-> Lens
CreateApplicationVersion
CreateApplicationVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Maybe Text
templateUrl :: Maybe Text
$sel:templateUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
templateUrl} -> Maybe Text
templateUrl) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Maybe Text
a -> CreateApplicationVersion
s {$sel:templateUrl:CreateApplicationVersion' :: Maybe Text
templateUrl = Maybe Text
a} :: CreateApplicationVersion)
createApplicationVersion_sourceCodeArchiveUrl :: Lens.Lens' CreateApplicationVersion (Prelude.Maybe Prelude.Text)
createApplicationVersion_sourceCodeArchiveUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_sourceCodeArchiveUrl = (CreateApplicationVersion -> Maybe Text)
-> (CreateApplicationVersion
-> Maybe Text -> CreateApplicationVersion)
-> Lens
CreateApplicationVersion
CreateApplicationVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Maybe Text
sourceCodeArchiveUrl :: Maybe Text
$sel:sourceCodeArchiveUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
sourceCodeArchiveUrl} -> Maybe Text
sourceCodeArchiveUrl) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Maybe Text
a -> CreateApplicationVersion
s {$sel:sourceCodeArchiveUrl:CreateApplicationVersion' :: Maybe Text
sourceCodeArchiveUrl = Maybe Text
a} :: CreateApplicationVersion)
createApplicationVersion_applicationId :: Lens.Lens' CreateApplicationVersion Prelude.Text
createApplicationVersion_applicationId :: (Text -> f Text)
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_applicationId = (CreateApplicationVersion -> Text)
-> (CreateApplicationVersion -> Text -> CreateApplicationVersion)
-> Lens CreateApplicationVersion CreateApplicationVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Text
applicationId :: Text
$sel:applicationId:CreateApplicationVersion' :: CreateApplicationVersion -> Text
applicationId} -> Text
applicationId) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Text
a -> CreateApplicationVersion
s {$sel:applicationId:CreateApplicationVersion' :: Text
applicationId = Text
a} :: CreateApplicationVersion)
createApplicationVersion_semanticVersion :: Lens.Lens' CreateApplicationVersion Prelude.Text
createApplicationVersion_semanticVersion :: (Text -> f Text)
-> CreateApplicationVersion -> f CreateApplicationVersion
createApplicationVersion_semanticVersion = (CreateApplicationVersion -> Text)
-> (CreateApplicationVersion -> Text -> CreateApplicationVersion)
-> Lens CreateApplicationVersion CreateApplicationVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersion' {Text
semanticVersion :: Text
$sel:semanticVersion:CreateApplicationVersion' :: CreateApplicationVersion -> Text
semanticVersion} -> Text
semanticVersion) (\s :: CreateApplicationVersion
s@CreateApplicationVersion' {} Text
a -> CreateApplicationVersion
s {$sel:semanticVersion:CreateApplicationVersion' :: Text
semanticVersion = Text
a} :: CreateApplicationVersion)
instance Core.AWSRequest CreateApplicationVersion where
type
AWSResponse CreateApplicationVersion =
CreateApplicationVersionResponse
request :: CreateApplicationVersion -> Request CreateApplicationVersion
request = Service
-> CreateApplicationVersion -> Request CreateApplicationVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateApplicationVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateApplicationVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateApplicationVersion))
-> Logger
-> Service
-> Proxy CreateApplicationVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateApplicationVersion)))
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 Bool
-> Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse
CreateApplicationVersionResponse'
(Maybe Text
-> Maybe Bool
-> Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
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
"creationTime")
Either
String
(Maybe Bool
-> Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourcesSupported")
Either
String
(Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe [Capability])
-> Either
String
(Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Capability]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"requiredCapabilities"
Either String (Maybe (Maybe [Capability]))
-> Maybe [Capability] -> Either String (Maybe [Capability])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Capability]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe [ParameterDefinition])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ParameterDefinition]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"parameterDefinitions"
Either String (Maybe (Maybe [ParameterDefinition]))
-> Maybe [ParameterDefinition]
-> Either String (Maybe [ParameterDefinition])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ParameterDefinition]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
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
"semanticVersion")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
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
"sourceCodeUrl")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateApplicationVersionResponse)
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
"applicationId")
Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateApplicationVersionResponse)
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
"templateUrl")
Either
String (Maybe Text -> Int -> CreateApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateApplicationVersionResponse)
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
"sourceCodeArchiveUrl")
Either String (Int -> CreateApplicationVersionResponse)
-> Either String Int
-> Either String CreateApplicationVersionResponse
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 CreateApplicationVersion
instance Prelude.NFData CreateApplicationVersion
instance Core.ToHeaders CreateApplicationVersion where
toHeaders :: CreateApplicationVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateApplicationVersion -> 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 CreateApplicationVersion where
toJSON :: CreateApplicationVersion -> Value
toJSON CreateApplicationVersion' {Maybe Text
Text
semanticVersion :: Text
applicationId :: Text
sourceCodeArchiveUrl :: Maybe Text
templateUrl :: Maybe Text
templateBody :: Maybe Text
sourceCodeUrl :: Maybe Text
$sel:semanticVersion:CreateApplicationVersion' :: CreateApplicationVersion -> Text
$sel:applicationId:CreateApplicationVersion' :: CreateApplicationVersion -> Text
$sel:sourceCodeArchiveUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:templateUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:templateBody:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:sourceCodeUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"sourceCodeUrl" 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
sourceCodeUrl,
(Text
"templateBody" 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
templateBody,
(Text
"templateUrl" 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
templateUrl,
(Text
"sourceCodeArchiveUrl" 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
sourceCodeArchiveUrl
]
)
instance Core.ToPath CreateApplicationVersion where
toPath :: CreateApplicationVersion -> ByteString
toPath CreateApplicationVersion' {Maybe Text
Text
semanticVersion :: Text
applicationId :: Text
sourceCodeArchiveUrl :: Maybe Text
templateUrl :: Maybe Text
templateBody :: Maybe Text
sourceCodeUrl :: Maybe Text
$sel:semanticVersion:CreateApplicationVersion' :: CreateApplicationVersion -> Text
$sel:applicationId:CreateApplicationVersion' :: CreateApplicationVersion -> Text
$sel:sourceCodeArchiveUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:templateUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:templateBody:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
$sel:sourceCodeUrl:CreateApplicationVersion' :: CreateApplicationVersion -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/applications/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationId,
ByteString
"/versions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
semanticVersion
]
instance Core.ToQuery CreateApplicationVersion where
toQuery :: CreateApplicationVersion -> QueryString
toQuery = QueryString -> CreateApplicationVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateApplicationVersionResponse = CreateApplicationVersionResponse'
{
CreateApplicationVersionResponse -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Maybe Bool
resourcesSupported :: Prelude.Maybe Prelude.Bool,
CreateApplicationVersionResponse -> Maybe [Capability]
requiredCapabilities :: Prelude.Maybe [Capability],
CreateApplicationVersionResponse -> Maybe [ParameterDefinition]
parameterDefinitions :: Prelude.Maybe [ParameterDefinition],
CreateApplicationVersionResponse -> Maybe Text
semanticVersion :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Maybe Text
sourceCodeUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Maybe Text
templateUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Maybe Text
sourceCodeArchiveUrl :: Prelude.Maybe Prelude.Text,
CreateApplicationVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool
(CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool)
-> (CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool)
-> Eq CreateApplicationVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool
$c/= :: CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool
== :: CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool
$c== :: CreateApplicationVersionResponse
-> CreateApplicationVersionResponse -> Bool
Prelude.Eq, ReadPrec [CreateApplicationVersionResponse]
ReadPrec CreateApplicationVersionResponse
Int -> ReadS CreateApplicationVersionResponse
ReadS [CreateApplicationVersionResponse]
(Int -> ReadS CreateApplicationVersionResponse)
-> ReadS [CreateApplicationVersionResponse]
-> ReadPrec CreateApplicationVersionResponse
-> ReadPrec [CreateApplicationVersionResponse]
-> Read CreateApplicationVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateApplicationVersionResponse]
$creadListPrec :: ReadPrec [CreateApplicationVersionResponse]
readPrec :: ReadPrec CreateApplicationVersionResponse
$creadPrec :: ReadPrec CreateApplicationVersionResponse
readList :: ReadS [CreateApplicationVersionResponse]
$creadList :: ReadS [CreateApplicationVersionResponse]
readsPrec :: Int -> ReadS CreateApplicationVersionResponse
$creadsPrec :: Int -> ReadS CreateApplicationVersionResponse
Prelude.Read, Int -> CreateApplicationVersionResponse -> ShowS
[CreateApplicationVersionResponse] -> ShowS
CreateApplicationVersionResponse -> String
(Int -> CreateApplicationVersionResponse -> ShowS)
-> (CreateApplicationVersionResponse -> String)
-> ([CreateApplicationVersionResponse] -> ShowS)
-> Show CreateApplicationVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApplicationVersionResponse] -> ShowS
$cshowList :: [CreateApplicationVersionResponse] -> ShowS
show :: CreateApplicationVersionResponse -> String
$cshow :: CreateApplicationVersionResponse -> String
showsPrec :: Int -> CreateApplicationVersionResponse -> ShowS
$cshowsPrec :: Int -> CreateApplicationVersionResponse -> ShowS
Prelude.Show, (forall x.
CreateApplicationVersionResponse
-> Rep CreateApplicationVersionResponse x)
-> (forall x.
Rep CreateApplicationVersionResponse x
-> CreateApplicationVersionResponse)
-> Generic CreateApplicationVersionResponse
forall x.
Rep CreateApplicationVersionResponse x
-> CreateApplicationVersionResponse
forall x.
CreateApplicationVersionResponse
-> Rep CreateApplicationVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateApplicationVersionResponse x
-> CreateApplicationVersionResponse
$cfrom :: forall x.
CreateApplicationVersionResponse
-> Rep CreateApplicationVersionResponse x
Prelude.Generic)
newCreateApplicationVersionResponse ::
Prelude.Int ->
CreateApplicationVersionResponse
newCreateApplicationVersionResponse :: Int -> CreateApplicationVersionResponse
newCreateApplicationVersionResponse Int
pHttpStatus_ =
CreateApplicationVersionResponse' :: Maybe Text
-> Maybe Bool
-> Maybe [Capability]
-> Maybe [ParameterDefinition]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateApplicationVersionResponse
CreateApplicationVersionResponse'
{ $sel:creationTime:CreateApplicationVersionResponse' :: Maybe Text
creationTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourcesSupported:CreateApplicationVersionResponse' :: Maybe Bool
resourcesSupported = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:requiredCapabilities:CreateApplicationVersionResponse' :: Maybe [Capability]
requiredCapabilities = Maybe [Capability]
forall a. Maybe a
Prelude.Nothing,
$sel:parameterDefinitions:CreateApplicationVersionResponse' :: Maybe [ParameterDefinition]
parameterDefinitions = Maybe [ParameterDefinition]
forall a. Maybe a
Prelude.Nothing,
$sel:semanticVersion:CreateApplicationVersionResponse' :: Maybe Text
semanticVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceCodeUrl:CreateApplicationVersionResponse' :: Maybe Text
sourceCodeUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:CreateApplicationVersionResponse' :: Maybe Text
applicationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateUrl:CreateApplicationVersionResponse' :: Maybe Text
templateUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceCodeArchiveUrl:CreateApplicationVersionResponse' :: Maybe Text
sourceCodeArchiveUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateApplicationVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createApplicationVersionResponse_creationTime :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_creationTime :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_creationTime = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:creationTime:CreateApplicationVersionResponse' :: Maybe Text
creationTime = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_resourcesSupported :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Bool)
createApplicationVersionResponse_resourcesSupported :: (Maybe Bool -> f (Maybe Bool))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_resourcesSupported = (CreateApplicationVersionResponse -> Maybe Bool)
-> (CreateApplicationVersionResponse
-> Maybe Bool -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Bool
resourcesSupported :: Maybe Bool
$sel:resourcesSupported:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Bool
resourcesSupported} -> Maybe Bool
resourcesSupported) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Bool
a -> CreateApplicationVersionResponse
s {$sel:resourcesSupported:CreateApplicationVersionResponse' :: Maybe Bool
resourcesSupported = Maybe Bool
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_requiredCapabilities :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe [Capability])
createApplicationVersionResponse_requiredCapabilities :: (Maybe [Capability] -> f (Maybe [Capability]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_requiredCapabilities = (CreateApplicationVersionResponse -> Maybe [Capability])
-> (CreateApplicationVersionResponse
-> Maybe [Capability] -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe [Capability])
(Maybe [Capability])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe [Capability]
requiredCapabilities :: Maybe [Capability]
$sel:requiredCapabilities:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe [Capability]
requiredCapabilities} -> Maybe [Capability]
requiredCapabilities) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe [Capability]
a -> CreateApplicationVersionResponse
s {$sel:requiredCapabilities:CreateApplicationVersionResponse' :: Maybe [Capability]
requiredCapabilities = Maybe [Capability]
a} :: CreateApplicationVersionResponse) ((Maybe [Capability] -> f (Maybe [Capability]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse)
-> ((Maybe [Capability] -> f (Maybe [Capability]))
-> Maybe [Capability] -> f (Maybe [Capability]))
-> (Maybe [Capability] -> f (Maybe [Capability]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Capability] [Capability] [Capability] [Capability]
-> Iso
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
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 [Capability] [Capability] [Capability] [Capability]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createApplicationVersionResponse_parameterDefinitions :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe [ParameterDefinition])
createApplicationVersionResponse_parameterDefinitions :: (Maybe [ParameterDefinition] -> f (Maybe [ParameterDefinition]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_parameterDefinitions = (CreateApplicationVersionResponse -> Maybe [ParameterDefinition])
-> (CreateApplicationVersionResponse
-> Maybe [ParameterDefinition] -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe [ParameterDefinition])
(Maybe [ParameterDefinition])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe [ParameterDefinition]
parameterDefinitions :: Maybe [ParameterDefinition]
$sel:parameterDefinitions:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe [ParameterDefinition]
parameterDefinitions} -> Maybe [ParameterDefinition]
parameterDefinitions) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe [ParameterDefinition]
a -> CreateApplicationVersionResponse
s {$sel:parameterDefinitions:CreateApplicationVersionResponse' :: Maybe [ParameterDefinition]
parameterDefinitions = Maybe [ParameterDefinition]
a} :: CreateApplicationVersionResponse) ((Maybe [ParameterDefinition] -> f (Maybe [ParameterDefinition]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse)
-> ((Maybe [ParameterDefinition]
-> f (Maybe [ParameterDefinition]))
-> Maybe [ParameterDefinition] -> f (Maybe [ParameterDefinition]))
-> (Maybe [ParameterDefinition] -> f (Maybe [ParameterDefinition]))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ParameterDefinition]
[ParameterDefinition]
[ParameterDefinition]
[ParameterDefinition]
-> Iso
(Maybe [ParameterDefinition])
(Maybe [ParameterDefinition])
(Maybe [ParameterDefinition])
(Maybe [ParameterDefinition])
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
[ParameterDefinition]
[ParameterDefinition]
[ParameterDefinition]
[ParameterDefinition]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createApplicationVersionResponse_semanticVersion :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_semanticVersion :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_semanticVersion = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
semanticVersion :: Maybe Text
$sel:semanticVersion:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
semanticVersion} -> Maybe Text
semanticVersion) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:semanticVersion:CreateApplicationVersionResponse' :: Maybe Text
semanticVersion = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_sourceCodeUrl :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_sourceCodeUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_sourceCodeUrl = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
sourceCodeUrl :: Maybe Text
$sel:sourceCodeUrl:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
sourceCodeUrl} -> Maybe Text
sourceCodeUrl) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:sourceCodeUrl:CreateApplicationVersionResponse' :: Maybe Text
sourceCodeUrl = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_applicationId :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_applicationId :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_applicationId = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:applicationId:CreateApplicationVersionResponse' :: Maybe Text
applicationId = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_templateUrl :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_templateUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_templateUrl = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
templateUrl :: Maybe Text
$sel:templateUrl:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
templateUrl} -> Maybe Text
templateUrl) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:templateUrl:CreateApplicationVersionResponse' :: Maybe Text
templateUrl = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_sourceCodeArchiveUrl :: Lens.Lens' CreateApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createApplicationVersionResponse_sourceCodeArchiveUrl :: (Maybe Text -> f (Maybe Text))
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_sourceCodeArchiveUrl = (CreateApplicationVersionResponse -> Maybe Text)
-> (CreateApplicationVersionResponse
-> Maybe Text -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Maybe Text
sourceCodeArchiveUrl :: Maybe Text
$sel:sourceCodeArchiveUrl:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Maybe Text
sourceCodeArchiveUrl} -> Maybe Text
sourceCodeArchiveUrl) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Maybe Text
a -> CreateApplicationVersionResponse
s {$sel:sourceCodeArchiveUrl:CreateApplicationVersionResponse' :: Maybe Text
sourceCodeArchiveUrl = Maybe Text
a} :: CreateApplicationVersionResponse)
createApplicationVersionResponse_httpStatus :: Lens.Lens' CreateApplicationVersionResponse Prelude.Int
createApplicationVersionResponse_httpStatus :: (Int -> f Int)
-> CreateApplicationVersionResponse
-> f CreateApplicationVersionResponse
createApplicationVersionResponse_httpStatus = (CreateApplicationVersionResponse -> Int)
-> (CreateApplicationVersionResponse
-> Int -> CreateApplicationVersionResponse)
-> Lens
CreateApplicationVersionResponse
CreateApplicationVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateApplicationVersionResponse' :: CreateApplicationVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateApplicationVersionResponse
s@CreateApplicationVersionResponse' {} Int
a -> CreateApplicationVersionResponse
s {$sel:httpStatus:CreateApplicationVersionResponse' :: Int
httpStatus = Int
a} :: CreateApplicationVersionResponse)
instance
Prelude.NFData
CreateApplicationVersionResponse