{-# 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.CreateApp
(
CreateApp (..),
newCreateApp,
createApp_enableBranchAutoBuild,
createApp_oauthToken,
createApp_accessToken,
createApp_customHeaders,
createApp_platform,
createApp_basicAuthCredentials,
createApp_repository,
createApp_buildSpec,
createApp_enableBranchAutoDeletion,
createApp_customRules,
createApp_iamServiceRoleArn,
createApp_autoBranchCreationPatterns,
createApp_autoBranchCreationConfig,
createApp_environmentVariables,
createApp_enableAutoBranchCreation,
createApp_enableBasicAuth,
createApp_description,
createApp_tags,
createApp_name,
CreateAppResponse (..),
newCreateAppResponse,
createAppResponse_httpStatus,
createAppResponse_app,
)
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 CreateApp = CreateApp'
{
CreateApp -> Maybe Bool
enableBranchAutoBuild :: Prelude.Maybe Prelude.Bool,
CreateApp -> Maybe (Sensitive Text)
oauthToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateApp -> Maybe (Sensitive Text)
accessToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
:: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Platform
platform :: Prelude.Maybe Platform,
CreateApp -> Maybe (Sensitive Text)
basicAuthCredentials :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateApp -> Maybe Text
repository :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Text
buildSpec :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Bool
enableBranchAutoDeletion :: Prelude.Maybe Prelude.Bool,
CreateApp -> Maybe [CustomRule]
customRules :: Prelude.Maybe [CustomRule],
CreateApp -> Maybe Text
iamServiceRoleArn :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe [Text]
autoBranchCreationPatterns :: Prelude.Maybe [Prelude.Text],
CreateApp -> Maybe AutoBranchCreationConfig
autoBranchCreationConfig :: Prelude.Maybe AutoBranchCreationConfig,
CreateApp -> Maybe (HashMap Text Text)
environmentVariables :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateApp -> Maybe Bool
enableAutoBranchCreation :: Prelude.Maybe Prelude.Bool,
CreateApp -> Maybe Bool
enableBasicAuth :: Prelude.Maybe Prelude.Bool,
CreateApp -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateApp -> Text
name :: Prelude.Text
}
deriving (CreateApp -> CreateApp -> Bool
(CreateApp -> CreateApp -> Bool)
-> (CreateApp -> CreateApp -> Bool) -> Eq CreateApp
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApp -> CreateApp -> Bool
$c/= :: CreateApp -> CreateApp -> Bool
== :: CreateApp -> CreateApp -> Bool
$c== :: CreateApp -> CreateApp -> Bool
Prelude.Eq, Int -> CreateApp -> ShowS
[CreateApp] -> ShowS
CreateApp -> String
(Int -> CreateApp -> ShowS)
-> (CreateApp -> String)
-> ([CreateApp] -> ShowS)
-> Show CreateApp
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApp] -> ShowS
$cshowList :: [CreateApp] -> ShowS
show :: CreateApp -> String
$cshow :: CreateApp -> String
showsPrec :: Int -> CreateApp -> ShowS
$cshowsPrec :: Int -> CreateApp -> ShowS
Prelude.Show, (forall x. CreateApp -> Rep CreateApp x)
-> (forall x. Rep CreateApp x -> CreateApp) -> Generic CreateApp
forall x. Rep CreateApp x -> CreateApp
forall x. CreateApp -> Rep CreateApp x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateApp x -> CreateApp
$cfrom :: forall x. CreateApp -> Rep CreateApp x
Prelude.Generic)
newCreateApp ::
Prelude.Text ->
CreateApp
newCreateApp :: Text -> CreateApp
newCreateApp Text
pName_ =
CreateApp' :: Maybe Bool
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Platform
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe [CustomRule]
-> Maybe Text
-> Maybe [Text]
-> Maybe AutoBranchCreationConfig
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> CreateApp
CreateApp'
{ $sel:enableBranchAutoBuild:CreateApp' :: Maybe Bool
enableBranchAutoBuild = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:oauthToken:CreateApp' :: Maybe (Sensitive Text)
oauthToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:accessToken:CreateApp' :: Maybe (Sensitive Text)
accessToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:customHeaders:CreateApp' :: Maybe Text
customHeaders = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:platform:CreateApp' :: Maybe Platform
platform = Maybe Platform
forall a. Maybe a
Prelude.Nothing,
$sel:basicAuthCredentials:CreateApp' :: Maybe (Sensitive Text)
basicAuthCredentials = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:repository:CreateApp' :: Maybe Text
repository = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:buildSpec:CreateApp' :: Maybe Text
buildSpec = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableBranchAutoDeletion:CreateApp' :: Maybe Bool
enableBranchAutoDeletion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:customRules:CreateApp' :: Maybe [CustomRule]
customRules = Maybe [CustomRule]
forall a. Maybe a
Prelude.Nothing,
$sel:iamServiceRoleArn:CreateApp' :: Maybe Text
iamServiceRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoBranchCreationPatterns:CreateApp' :: Maybe [Text]
autoBranchCreationPatterns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:autoBranchCreationConfig:CreateApp' :: Maybe AutoBranchCreationConfig
autoBranchCreationConfig = Maybe AutoBranchCreationConfig
forall a. Maybe a
Prelude.Nothing,
$sel:environmentVariables:CreateApp' :: Maybe (HashMap Text Text)
environmentVariables = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:enableAutoBranchCreation:CreateApp' :: Maybe Bool
enableAutoBranchCreation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:enableBasicAuth:CreateApp' :: Maybe Bool
enableBasicAuth = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateApp' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateApp' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateApp' :: Text
name = Text
pName_
}
createApp_enableBranchAutoBuild :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Bool)
createApp_enableBranchAutoBuild :: (Maybe Bool -> f (Maybe Bool)) -> CreateApp -> f CreateApp
createApp_enableBranchAutoBuild = (CreateApp -> Maybe Bool)
-> (CreateApp -> Maybe Bool -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Bool
enableBranchAutoBuild :: Maybe Bool
$sel:enableBranchAutoBuild:CreateApp' :: CreateApp -> Maybe Bool
enableBranchAutoBuild} -> Maybe Bool
enableBranchAutoBuild) (\s :: CreateApp
s@CreateApp' {} Maybe Bool
a -> CreateApp
s {$sel:enableBranchAutoBuild:CreateApp' :: Maybe Bool
enableBranchAutoBuild = Maybe Bool
a} :: CreateApp)
createApp_oauthToken :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_oauthToken :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_oauthToken = (CreateApp -> Maybe (Sensitive Text))
-> (CreateApp -> Maybe (Sensitive Text) -> CreateApp)
-> Lens
CreateApp
CreateApp
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe (Sensitive Text)
oauthToken :: Maybe (Sensitive Text)
$sel:oauthToken:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
oauthToken} -> Maybe (Sensitive Text)
oauthToken) (\s :: CreateApp
s@CreateApp' {} Maybe (Sensitive Text)
a -> CreateApp
s {$sel:oauthToken:CreateApp' :: Maybe (Sensitive Text)
oauthToken = Maybe (Sensitive Text)
a} :: CreateApp) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateApp -> f CreateApp)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateApp
-> f CreateApp
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createApp_accessToken :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_accessToken :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_accessToken = (CreateApp -> Maybe (Sensitive Text))
-> (CreateApp -> Maybe (Sensitive Text) -> CreateApp)
-> Lens
CreateApp
CreateApp
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe (Sensitive Text)
accessToken :: Maybe (Sensitive Text)
$sel:accessToken:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
accessToken} -> Maybe (Sensitive Text)
accessToken) (\s :: CreateApp
s@CreateApp' {} Maybe (Sensitive Text)
a -> CreateApp
s {$sel:accessToken:CreateApp' :: Maybe (Sensitive Text)
accessToken = Maybe (Sensitive Text)
a} :: CreateApp) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateApp -> f CreateApp)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateApp
-> f CreateApp
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createApp_customHeaders :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
= (CreateApp -> Maybe Text)
-> (CreateApp -> Maybe Text -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
customHeaders :: Maybe Text
$sel:customHeaders:CreateApp' :: CreateApp -> Maybe Text
customHeaders} -> Maybe Text
customHeaders) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:customHeaders:CreateApp' :: Maybe Text
customHeaders = Maybe Text
a} :: CreateApp)
createApp_platform :: Lens.Lens' CreateApp (Prelude.Maybe Platform)
createApp_platform :: (Maybe Platform -> f (Maybe Platform)) -> CreateApp -> f CreateApp
createApp_platform = (CreateApp -> Maybe Platform)
-> (CreateApp -> Maybe Platform -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Platform) (Maybe Platform)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Platform
platform :: Maybe Platform
$sel:platform:CreateApp' :: CreateApp -> Maybe Platform
platform} -> Maybe Platform
platform) (\s :: CreateApp
s@CreateApp' {} Maybe Platform
a -> CreateApp
s {$sel:platform:CreateApp' :: Maybe Platform
platform = Maybe Platform
a} :: CreateApp)
createApp_basicAuthCredentials :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_basicAuthCredentials :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_basicAuthCredentials = (CreateApp -> Maybe (Sensitive Text))
-> (CreateApp -> Maybe (Sensitive Text) -> CreateApp)
-> Lens
CreateApp
CreateApp
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe (Sensitive Text)
basicAuthCredentials :: Maybe (Sensitive Text)
$sel:basicAuthCredentials:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
basicAuthCredentials} -> Maybe (Sensitive Text)
basicAuthCredentials) (\s :: CreateApp
s@CreateApp' {} Maybe (Sensitive Text)
a -> CreateApp
s {$sel:basicAuthCredentials:CreateApp' :: Maybe (Sensitive Text)
basicAuthCredentials = Maybe (Sensitive Text)
a} :: CreateApp) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateApp -> f CreateApp)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateApp
-> f CreateApp
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createApp_repository :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_repository :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_repository = (CreateApp -> Maybe Text)
-> (CreateApp -> Maybe Text -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
repository :: Maybe Text
$sel:repository:CreateApp' :: CreateApp -> Maybe Text
repository} -> Maybe Text
repository) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:repository:CreateApp' :: Maybe Text
repository = Maybe Text
a} :: CreateApp)
createApp_buildSpec :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_buildSpec :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_buildSpec = (CreateApp -> Maybe Text)
-> (CreateApp -> Maybe Text -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
buildSpec :: Maybe Text
$sel:buildSpec:CreateApp' :: CreateApp -> Maybe Text
buildSpec} -> Maybe Text
buildSpec) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:buildSpec:CreateApp' :: Maybe Text
buildSpec = Maybe Text
a} :: CreateApp)
createApp_enableBranchAutoDeletion :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Bool)
createApp_enableBranchAutoDeletion :: (Maybe Bool -> f (Maybe Bool)) -> CreateApp -> f CreateApp
createApp_enableBranchAutoDeletion = (CreateApp -> Maybe Bool)
-> (CreateApp -> Maybe Bool -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Bool
enableBranchAutoDeletion :: Maybe Bool
$sel:enableBranchAutoDeletion:CreateApp' :: CreateApp -> Maybe Bool
enableBranchAutoDeletion} -> Maybe Bool
enableBranchAutoDeletion) (\s :: CreateApp
s@CreateApp' {} Maybe Bool
a -> CreateApp
s {$sel:enableBranchAutoDeletion:CreateApp' :: Maybe Bool
enableBranchAutoDeletion = Maybe Bool
a} :: CreateApp)
createApp_customRules :: Lens.Lens' CreateApp (Prelude.Maybe [CustomRule])
createApp_customRules :: (Maybe [CustomRule] -> f (Maybe [CustomRule]))
-> CreateApp -> f CreateApp
createApp_customRules = (CreateApp -> Maybe [CustomRule])
-> (CreateApp -> Maybe [CustomRule] -> CreateApp)
-> Lens
CreateApp CreateApp (Maybe [CustomRule]) (Maybe [CustomRule])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe [CustomRule]
customRules :: Maybe [CustomRule]
$sel:customRules:CreateApp' :: CreateApp -> Maybe [CustomRule]
customRules} -> Maybe [CustomRule]
customRules) (\s :: CreateApp
s@CreateApp' {} Maybe [CustomRule]
a -> CreateApp
s {$sel:customRules:CreateApp' :: Maybe [CustomRule]
customRules = Maybe [CustomRule]
a} :: CreateApp) ((Maybe [CustomRule] -> f (Maybe [CustomRule]))
-> CreateApp -> f CreateApp)
-> ((Maybe [CustomRule] -> f (Maybe [CustomRule]))
-> Maybe [CustomRule] -> f (Maybe [CustomRule]))
-> (Maybe [CustomRule] -> f (Maybe [CustomRule]))
-> CreateApp
-> f CreateApp
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CustomRule] [CustomRule] [CustomRule] [CustomRule]
-> Iso
(Maybe [CustomRule])
(Maybe [CustomRule])
(Maybe [CustomRule])
(Maybe [CustomRule])
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 [CustomRule] [CustomRule] [CustomRule] [CustomRule]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createApp_iamServiceRoleArn :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_iamServiceRoleArn :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_iamServiceRoleArn = (CreateApp -> Maybe Text)
-> (CreateApp -> Maybe Text -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
iamServiceRoleArn :: Maybe Text
$sel:iamServiceRoleArn:CreateApp' :: CreateApp -> Maybe Text
iamServiceRoleArn} -> Maybe Text
iamServiceRoleArn) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:iamServiceRoleArn:CreateApp' :: Maybe Text
iamServiceRoleArn = Maybe Text
a} :: CreateApp)
createApp_autoBranchCreationPatterns :: Lens.Lens' CreateApp (Prelude.Maybe [Prelude.Text])
createApp_autoBranchCreationPatterns :: (Maybe [Text] -> f (Maybe [Text])) -> CreateApp -> f CreateApp
createApp_autoBranchCreationPatterns = (CreateApp -> Maybe [Text])
-> (CreateApp -> Maybe [Text] -> CreateApp)
-> Lens CreateApp CreateApp (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe [Text]
autoBranchCreationPatterns :: Maybe [Text]
$sel:autoBranchCreationPatterns:CreateApp' :: CreateApp -> Maybe [Text]
autoBranchCreationPatterns} -> Maybe [Text]
autoBranchCreationPatterns) (\s :: CreateApp
s@CreateApp' {} Maybe [Text]
a -> CreateApp
s {$sel:autoBranchCreationPatterns:CreateApp' :: Maybe [Text]
autoBranchCreationPatterns = Maybe [Text]
a} :: CreateApp) ((Maybe [Text] -> f (Maybe [Text])) -> CreateApp -> f CreateApp)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateApp
-> f CreateApp
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createApp_autoBranchCreationConfig :: Lens.Lens' CreateApp (Prelude.Maybe AutoBranchCreationConfig)
createApp_autoBranchCreationConfig :: (Maybe AutoBranchCreationConfig
-> f (Maybe AutoBranchCreationConfig))
-> CreateApp -> f CreateApp
createApp_autoBranchCreationConfig = (CreateApp -> Maybe AutoBranchCreationConfig)
-> (CreateApp -> Maybe AutoBranchCreationConfig -> CreateApp)
-> Lens
CreateApp
CreateApp
(Maybe AutoBranchCreationConfig)
(Maybe AutoBranchCreationConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe AutoBranchCreationConfig
autoBranchCreationConfig :: Maybe AutoBranchCreationConfig
$sel:autoBranchCreationConfig:CreateApp' :: CreateApp -> Maybe AutoBranchCreationConfig
autoBranchCreationConfig} -> Maybe AutoBranchCreationConfig
autoBranchCreationConfig) (\s :: CreateApp
s@CreateApp' {} Maybe AutoBranchCreationConfig
a -> CreateApp
s {$sel:autoBranchCreationConfig:CreateApp' :: Maybe AutoBranchCreationConfig
autoBranchCreationConfig = Maybe AutoBranchCreationConfig
a} :: CreateApp)
createApp_environmentVariables :: Lens.Lens' CreateApp (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createApp_environmentVariables :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateApp -> f CreateApp
createApp_environmentVariables = (CreateApp -> Maybe (HashMap Text Text))
-> (CreateApp -> Maybe (HashMap Text Text) -> CreateApp)
-> Lens
CreateApp
CreateApp
(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 (\CreateApp' {Maybe (HashMap Text Text)
environmentVariables :: Maybe (HashMap Text Text)
$sel:environmentVariables:CreateApp' :: CreateApp -> Maybe (HashMap Text Text)
environmentVariables} -> Maybe (HashMap Text Text)
environmentVariables) (\s :: CreateApp
s@CreateApp' {} Maybe (HashMap Text Text)
a -> CreateApp
s {$sel:environmentVariables:CreateApp' :: Maybe (HashMap Text Text)
environmentVariables = Maybe (HashMap Text Text)
a} :: CreateApp) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateApp -> f CreateApp)
-> ((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)))
-> CreateApp
-> f CreateApp
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
createApp_enableAutoBranchCreation :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Bool)
createApp_enableAutoBranchCreation :: (Maybe Bool -> f (Maybe Bool)) -> CreateApp -> f CreateApp
createApp_enableAutoBranchCreation = (CreateApp -> Maybe Bool)
-> (CreateApp -> Maybe Bool -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Bool
enableAutoBranchCreation :: Maybe Bool
$sel:enableAutoBranchCreation:CreateApp' :: CreateApp -> Maybe Bool
enableAutoBranchCreation} -> Maybe Bool
enableAutoBranchCreation) (\s :: CreateApp
s@CreateApp' {} Maybe Bool
a -> CreateApp
s {$sel:enableAutoBranchCreation:CreateApp' :: Maybe Bool
enableAutoBranchCreation = Maybe Bool
a} :: CreateApp)
createApp_enableBasicAuth :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Bool)
createApp_enableBasicAuth :: (Maybe Bool -> f (Maybe Bool)) -> CreateApp -> f CreateApp
createApp_enableBasicAuth = (CreateApp -> Maybe Bool)
-> (CreateApp -> Maybe Bool -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Bool
enableBasicAuth :: Maybe Bool
$sel:enableBasicAuth:CreateApp' :: CreateApp -> Maybe Bool
enableBasicAuth} -> Maybe Bool
enableBasicAuth) (\s :: CreateApp
s@CreateApp' {} Maybe Bool
a -> CreateApp
s {$sel:enableBasicAuth:CreateApp' :: Maybe Bool
enableBasicAuth = Maybe Bool
a} :: CreateApp)
createApp_description :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_description :: (Maybe Text -> f (Maybe Text)) -> CreateApp -> f CreateApp
createApp_description = (CreateApp -> Maybe Text)
-> (CreateApp -> Maybe Text -> CreateApp)
-> Lens CreateApp CreateApp (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
description :: Maybe Text
$sel:description:CreateApp' :: CreateApp -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:description:CreateApp' :: Maybe Text
description = Maybe Text
a} :: CreateApp)
createApp_tags :: Lens.Lens' CreateApp (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createApp_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateApp -> f CreateApp
createApp_tags = (CreateApp -> Maybe (HashMap Text Text))
-> (CreateApp -> Maybe (HashMap Text Text) -> CreateApp)
-> Lens
CreateApp
CreateApp
(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 (\CreateApp' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateApp' :: CreateApp -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateApp
s@CreateApp' {} Maybe (HashMap Text Text)
a -> CreateApp
s {$sel:tags:CreateApp' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateApp) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateApp -> f CreateApp)
-> ((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)))
-> CreateApp
-> f CreateApp
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
createApp_name :: Lens.Lens' CreateApp Prelude.Text
createApp_name :: (Text -> f Text) -> CreateApp -> f CreateApp
createApp_name = (CreateApp -> Text)
-> (CreateApp -> Text -> CreateApp)
-> Lens CreateApp CreateApp Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Text
name :: Text
$sel:name:CreateApp' :: CreateApp -> Text
name} -> Text
name) (\s :: CreateApp
s@CreateApp' {} Text
a -> CreateApp
s {$sel:name:CreateApp' :: Text
name = Text
a} :: CreateApp)
instance Core.AWSRequest CreateApp where
type AWSResponse CreateApp = CreateAppResponse
request :: CreateApp -> Request CreateApp
request = Service -> CreateApp -> Request CreateApp
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateApp
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateApp)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateApp))
-> Logger
-> Service
-> Proxy CreateApp
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateApp)))
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 ->
Int -> App -> CreateAppResponse
CreateAppResponse'
(Int -> App -> CreateAppResponse)
-> Either String Int -> Either String (App -> CreateAppResponse)
forall (f :: * -> *) a b. Functor 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 (App -> CreateAppResponse)
-> Either String App -> Either String CreateAppResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String App
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"app")
)
instance Prelude.Hashable CreateApp
instance Prelude.NFData CreateApp
instance Core.ToHeaders CreateApp where
toHeaders :: CreateApp -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateApp -> 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 CreateApp where
toJSON :: CreateApp -> Value
toJSON CreateApp' {Maybe Bool
Maybe [Text]
Maybe [CustomRule]
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive Text)
Maybe Platform
Maybe AutoBranchCreationConfig
Text
name :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
enableBasicAuth :: Maybe Bool
enableAutoBranchCreation :: Maybe Bool
environmentVariables :: Maybe (HashMap Text Text)
autoBranchCreationConfig :: Maybe AutoBranchCreationConfig
autoBranchCreationPatterns :: Maybe [Text]
iamServiceRoleArn :: Maybe Text
customRules :: Maybe [CustomRule]
enableBranchAutoDeletion :: Maybe Bool
buildSpec :: Maybe Text
repository :: Maybe Text
basicAuthCredentials :: Maybe (Sensitive Text)
platform :: Maybe Platform
customHeaders :: Maybe Text
accessToken :: Maybe (Sensitive Text)
oauthToken :: Maybe (Sensitive Text)
enableBranchAutoBuild :: Maybe Bool
$sel:name:CreateApp' :: CreateApp -> Text
$sel:tags:CreateApp' :: CreateApp -> Maybe (HashMap Text Text)
$sel:description:CreateApp' :: CreateApp -> Maybe Text
$sel:enableBasicAuth:CreateApp' :: CreateApp -> Maybe Bool
$sel:enableAutoBranchCreation:CreateApp' :: CreateApp -> Maybe Bool
$sel:environmentVariables:CreateApp' :: CreateApp -> Maybe (HashMap Text Text)
$sel:autoBranchCreationConfig:CreateApp' :: CreateApp -> Maybe AutoBranchCreationConfig
$sel:autoBranchCreationPatterns:CreateApp' :: CreateApp -> Maybe [Text]
$sel:iamServiceRoleArn:CreateApp' :: CreateApp -> Maybe Text
$sel:customRules:CreateApp' :: CreateApp -> Maybe [CustomRule]
$sel:enableBranchAutoDeletion:CreateApp' :: CreateApp -> Maybe Bool
$sel:buildSpec:CreateApp' :: CreateApp -> Maybe Text
$sel:repository:CreateApp' :: CreateApp -> Maybe Text
$sel:basicAuthCredentials:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
$sel:platform:CreateApp' :: CreateApp -> Maybe Platform
$sel:customHeaders:CreateApp' :: CreateApp -> Maybe Text
$sel:accessToken:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
$sel:oauthToken:CreateApp' :: CreateApp -> Maybe (Sensitive Text)
$sel:enableBranchAutoBuild:CreateApp' :: CreateApp -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"enableBranchAutoBuild" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableBranchAutoBuild,
(Text
"oauthToken" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
oauthToken,
(Text
"accessToken" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
accessToken,
(Text
"customHeaders" 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
customHeaders,
(Text
"platform" Text -> Platform -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Platform -> Pair) -> Maybe Platform -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Platform
platform,
(Text
"basicAuthCredentials" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
basicAuthCredentials,
(Text
"repository" 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
repository,
(Text
"buildSpec" 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
buildSpec,
(Text
"enableBranchAutoDeletion" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableBranchAutoDeletion,
(Text
"customRules" Text -> [CustomRule] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([CustomRule] -> Pair) -> Maybe [CustomRule] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CustomRule]
customRules,
(Text
"iamServiceRoleArn" 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
iamServiceRoleArn,
(Text
"autoBranchCreationPatterns" 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]
autoBranchCreationPatterns,
(Text
"autoBranchCreationConfig" Text -> AutoBranchCreationConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AutoBranchCreationConfig -> Pair)
-> Maybe AutoBranchCreationConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoBranchCreationConfig
autoBranchCreationConfig,
(Text
"environmentVariables" 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)
environmentVariables,
(Text
"enableAutoBranchCreation" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableAutoBranchCreation,
(Text
"enableBasicAuth" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableBasicAuth,
(Text
"description" 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
description,
(Text
"tags" 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)
tags,
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 CreateApp where
toPath :: CreateApp -> ByteString
toPath = ByteString -> CreateApp -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/apps"
instance Core.ToQuery CreateApp where
toQuery :: CreateApp -> QueryString
toQuery = QueryString -> CreateApp -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateAppResponse = CreateAppResponse'
{
CreateAppResponse -> Int
httpStatus :: Prelude.Int,
CreateAppResponse -> App
app :: App
}
deriving (CreateAppResponse -> CreateAppResponse -> Bool
(CreateAppResponse -> CreateAppResponse -> Bool)
-> (CreateAppResponse -> CreateAppResponse -> Bool)
-> Eq CreateAppResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAppResponse -> CreateAppResponse -> Bool
$c/= :: CreateAppResponse -> CreateAppResponse -> Bool
== :: CreateAppResponse -> CreateAppResponse -> Bool
$c== :: CreateAppResponse -> CreateAppResponse -> Bool
Prelude.Eq, Int -> CreateAppResponse -> ShowS
[CreateAppResponse] -> ShowS
CreateAppResponse -> String
(Int -> CreateAppResponse -> ShowS)
-> (CreateAppResponse -> String)
-> ([CreateAppResponse] -> ShowS)
-> Show CreateAppResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAppResponse] -> ShowS
$cshowList :: [CreateAppResponse] -> ShowS
show :: CreateAppResponse -> String
$cshow :: CreateAppResponse -> String
showsPrec :: Int -> CreateAppResponse -> ShowS
$cshowsPrec :: Int -> CreateAppResponse -> ShowS
Prelude.Show, (forall x. CreateAppResponse -> Rep CreateAppResponse x)
-> (forall x. Rep CreateAppResponse x -> CreateAppResponse)
-> Generic CreateAppResponse
forall x. Rep CreateAppResponse x -> CreateAppResponse
forall x. CreateAppResponse -> Rep CreateAppResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateAppResponse x -> CreateAppResponse
$cfrom :: forall x. CreateAppResponse -> Rep CreateAppResponse x
Prelude.Generic)
newCreateAppResponse ::
Prelude.Int ->
App ->
CreateAppResponse
newCreateAppResponse :: Int -> App -> CreateAppResponse
newCreateAppResponse Int
pHttpStatus_ App
pApp_ =
CreateAppResponse' :: Int -> App -> CreateAppResponse
CreateAppResponse'
{ $sel:httpStatus:CreateAppResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:app:CreateAppResponse' :: App
app = App
pApp_
}
createAppResponse_httpStatus :: Lens.Lens' CreateAppResponse Prelude.Int
createAppResponse_httpStatus :: (Int -> f Int) -> CreateAppResponse -> f CreateAppResponse
createAppResponse_httpStatus = (CreateAppResponse -> Int)
-> (CreateAppResponse -> Int -> CreateAppResponse)
-> Lens CreateAppResponse CreateAppResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateAppResponse' :: CreateAppResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateAppResponse
s@CreateAppResponse' {} Int
a -> CreateAppResponse
s {$sel:httpStatus:CreateAppResponse' :: Int
httpStatus = Int
a} :: CreateAppResponse)
createAppResponse_app :: Lens.Lens' CreateAppResponse App
createAppResponse_app :: (App -> f App) -> CreateAppResponse -> f CreateAppResponse
createAppResponse_app = (CreateAppResponse -> App)
-> (CreateAppResponse -> App -> CreateAppResponse)
-> Lens CreateAppResponse CreateAppResponse App App
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {App
app :: App
$sel:app:CreateAppResponse' :: CreateAppResponse -> App
app} -> App
app) (\s :: CreateAppResponse
s@CreateAppResponse' {} App
a -> CreateAppResponse
s {$sel:app:CreateAppResponse' :: App
app = App
a} :: CreateAppResponse)
instance Prelude.NFData CreateAppResponse