Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates an existing Amplify app.
Synopsis
- data UpdateApp = UpdateApp' {
- accessToken :: Maybe (Sensitive Text)
- autoBranchCreationConfig :: Maybe AutoBranchCreationConfig
- autoBranchCreationPatterns :: Maybe [Text]
- basicAuthCredentials :: Maybe (Sensitive Text)
- buildSpec :: Maybe (Sensitive Text)
- customHeaders :: Maybe Text
- customRules :: Maybe [CustomRule]
- description :: Maybe Text
- enableAutoBranchCreation :: Maybe Bool
- enableBasicAuth :: Maybe Bool
- enableBranchAutoBuild :: Maybe Bool
- enableBranchAutoDeletion :: Maybe Bool
- environmentVariables :: Maybe (HashMap Text Text)
- iamServiceRoleArn :: Maybe Text
- name :: Maybe Text
- oauthToken :: Maybe (Sensitive Text)
- platform :: Maybe Platform
- repository :: Maybe Text
- appId :: Text
- newUpdateApp :: Text -> UpdateApp
- updateApp_accessToken :: Lens' UpdateApp (Maybe Text)
- updateApp_autoBranchCreationConfig :: Lens' UpdateApp (Maybe AutoBranchCreationConfig)
- updateApp_autoBranchCreationPatterns :: Lens' UpdateApp (Maybe [Text])
- updateApp_basicAuthCredentials :: Lens' UpdateApp (Maybe Text)
- updateApp_buildSpec :: Lens' UpdateApp (Maybe Text)
- updateApp_customHeaders :: Lens' UpdateApp (Maybe Text)
- updateApp_customRules :: Lens' UpdateApp (Maybe [CustomRule])
- updateApp_description :: Lens' UpdateApp (Maybe Text)
- updateApp_enableAutoBranchCreation :: Lens' UpdateApp (Maybe Bool)
- updateApp_enableBasicAuth :: Lens' UpdateApp (Maybe Bool)
- updateApp_enableBranchAutoBuild :: Lens' UpdateApp (Maybe Bool)
- updateApp_enableBranchAutoDeletion :: Lens' UpdateApp (Maybe Bool)
- updateApp_environmentVariables :: Lens' UpdateApp (Maybe (HashMap Text Text))
- updateApp_iamServiceRoleArn :: Lens' UpdateApp (Maybe Text)
- updateApp_name :: Lens' UpdateApp (Maybe Text)
- updateApp_oauthToken :: Lens' UpdateApp (Maybe Text)
- updateApp_platform :: Lens' UpdateApp (Maybe Platform)
- updateApp_repository :: Lens' UpdateApp (Maybe Text)
- updateApp_appId :: Lens' UpdateApp Text
- data UpdateAppResponse = UpdateAppResponse' {
- httpStatus :: Int
- app :: App
- newUpdateAppResponse :: Int -> App -> UpdateAppResponse
- updateAppResponse_httpStatus :: Lens' UpdateAppResponse Int
- updateAppResponse_app :: Lens' UpdateAppResponse App
Creating a Request
The request structure for the update app request.
See: newUpdateApp
smart constructor.
UpdateApp' | |
|
Instances
Create a value of UpdateApp
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accessToken:UpdateApp'
, updateApp_accessToken
- The personal access token for a GitHub repository for an Amplify app.
The personal access token is used to authorize access to a GitHub
repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a
repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you update an
app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
UpdateApp
, updateApp_autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.
UpdateApp
, updateApp_autoBranchCreationPatterns
- Describes the automated branch creation glob patterns for an Amplify
app.
UpdateApp
, updateApp_basicAuthCredentials
- The basic authorization credentials for an Amplify app. You must
base64-encode the authorization credentials and provide them in the
format user:password
.
UpdateApp
, updateApp_buildSpec
- The build specification (build spec) for an Amplify app.
UpdateApp
, updateApp_customHeaders
- The custom HTTP headers for an Amplify app.
UpdateApp
, updateApp_customRules
- The custom redirect and rewrite rules for an Amplify app.
UpdateApp
, updateApp_description
- The description for an Amplify app.
UpdateApp
, updateApp_enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.
UpdateApp
, updateApp_enableBasicAuth
- Enables basic authorization for an Amplify app.
UpdateApp
, updateApp_enableBranchAutoBuild
- Enables branch auto-building for an Amplify app.
UpdateApp
, updateApp_enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify Console when you
delete a branch from your Git repository.
UpdateApp
, updateApp_environmentVariables
- The environment variables for an Amplify app.
UpdateApp
, updateApp_iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify
app.
UpdateApp
, updateApp_name
- The name for an Amplify app.
$sel:oauthToken:UpdateApp'
, updateApp_oauthToken
- The OAuth token for a third-party source control system for an Amplify
app. The OAuth token is used to create a webhook and a read-only deploy
key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as
Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use
accessToken
.
You must specify either oauthToken
or accessToken
when you update an
app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
UpdateApp
, updateApp_platform
- The platform for the Amplify app. For a static app, set the platform
type to WEB
. For a dynamic server-side rendered (SSR) app, set the
platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's
original SSR support only, set the platform type to WEB_DYNAMIC
.
UpdateApp
, updateApp_repository
- The name of the repository for an Amplify app
UpdateApp
, updateApp_appId
- The unique ID for an Amplify app.
Request Lenses
updateApp_accessToken :: Lens' UpdateApp (Maybe Text) Source #
The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a
repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you update an
app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
updateApp_autoBranchCreationConfig :: Lens' UpdateApp (Maybe AutoBranchCreationConfig) Source #
The automated branch creation configuration for an Amplify app.
updateApp_autoBranchCreationPatterns :: Lens' UpdateApp (Maybe [Text]) Source #
Describes the automated branch creation glob patterns for an Amplify app.
updateApp_basicAuthCredentials :: Lens' UpdateApp (Maybe Text) Source #
The basic authorization credentials for an Amplify app. You must
base64-encode the authorization credentials and provide them in the
format user:password
.
updateApp_buildSpec :: Lens' UpdateApp (Maybe Text) Source #
The build specification (build spec) for an Amplify app.
updateApp_customHeaders :: Lens' UpdateApp (Maybe Text) Source #
The custom HTTP headers for an Amplify app.
updateApp_customRules :: Lens' UpdateApp (Maybe [CustomRule]) Source #
The custom redirect and rewrite rules for an Amplify app.
updateApp_enableAutoBranchCreation :: Lens' UpdateApp (Maybe Bool) Source #
Enables automated branch creation for an Amplify app.
updateApp_enableBasicAuth :: Lens' UpdateApp (Maybe Bool) Source #
Enables basic authorization for an Amplify app.
updateApp_enableBranchAutoBuild :: Lens' UpdateApp (Maybe Bool) Source #
Enables branch auto-building for an Amplify app.
updateApp_enableBranchAutoDeletion :: Lens' UpdateApp (Maybe Bool) Source #
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
updateApp_environmentVariables :: Lens' UpdateApp (Maybe (HashMap Text Text)) Source #
The environment variables for an Amplify app.
updateApp_iamServiceRoleArn :: Lens' UpdateApp (Maybe Text) Source #
The AWS Identity and Access Management (IAM) service role for an Amplify app.
updateApp_oauthToken :: Lens' UpdateApp (Maybe Text) Source #
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as
Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use
accessToken
.
You must specify either oauthToken
or accessToken
when you update an
app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
updateApp_platform :: Lens' UpdateApp (Maybe Platform) Source #
The platform for the Amplify app. For a static app, set the platform
type to WEB
. For a dynamic server-side rendered (SSR) app, set the
platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's
original SSR support only, set the platform type to WEB_DYNAMIC
.
updateApp_repository :: Lens' UpdateApp (Maybe Text) Source #
The name of the repository for an Amplify app
Destructuring the Response
data UpdateAppResponse Source #
The result structure for an Amplify app update request.
See: newUpdateAppResponse
smart constructor.
UpdateAppResponse' | |
|
Instances
Create a value of UpdateAppResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateAppResponse'
, updateAppResponse_httpStatus
- The response's http status code.
$sel:app:UpdateAppResponse'
, updateAppResponse_app
- Represents the updated Amplify app.
Response Lenses
updateAppResponse_httpStatus :: Lens' UpdateAppResponse Int Source #
The response's http status code.
updateAppResponse_app :: Lens' UpdateAppResponse App Source #
Represents the updated Amplify app.