@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateAppRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The request structure for the update app request.
NOOP
Constructor and Description |
---|
UpdateAppRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateAppRequest |
addEnvironmentVariablesEntry(String key,
String value)
Add a single EnvironmentVariables entry
|
UpdateAppRequest |
clearEnvironmentVariablesEntries()
Removes all the entries added into EnvironmentVariables.
|
UpdateAppRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccessToken()
The personal access token for a GitHub repository for an Amplify app.
|
String |
getAppId()
The unique ID for an Amplify app.
|
AutoBranchCreationConfig |
getAutoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
|
List<String> |
getAutoBranchCreationPatterns()
Describes the automated branch creation glob patterns for an Amplify app.
|
String |
getBasicAuthCredentials()
The basic authorization credentials for an Amplify app.
|
String |
getBuildSpec()
The build specification (build spec) for an Amplify app.
|
String |
getCustomHeaders()
The custom HTTP headers for an Amplify app.
|
List<CustomRule> |
getCustomRules()
The custom redirect and rewrite rules for an Amplify app.
|
String |
getDescription()
The description for an Amplify app.
|
Boolean |
getEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
|
Boolean |
getEnableBasicAuth()
Enables basic authorization for an Amplify app.
|
Boolean |
getEnableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
|
Boolean |
getEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
|
Map<String,String> |
getEnvironmentVariables()
The environment variables for an Amplify app.
|
String |
getIamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
String |
getName()
The name for an Amplify app.
|
String |
getOauthToken()
The OAuth token for a third-party source control system for an Amplify app.
|
String |
getPlatform()
The platform for the Amplify app.
|
String |
getRepository()
The name of the Git repository for an Amplify app.
|
int |
hashCode() |
Boolean |
isEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
|
Boolean |
isEnableBasicAuth()
Enables basic authorization for an Amplify app.
|
Boolean |
isEnableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
|
Boolean |
isEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
|
void |
setAccessToken(String accessToken)
The personal access token for a GitHub repository for an Amplify app.
|
void |
setAppId(String appId)
The unique ID for an Amplify app.
|
void |
setAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
|
void |
setAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
|
void |
setBasicAuthCredentials(String basicAuthCredentials)
The basic authorization credentials for an Amplify app.
|
void |
setBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
|
void |
setCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
|
void |
setCustomRules(Collection<CustomRule> customRules)
The custom redirect and rewrite rules for an Amplify app.
|
void |
setDescription(String description)
The description for an Amplify app.
|
void |
setEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
|
void |
setEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
|
void |
setEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables branch auto-building for an Amplify app.
|
void |
setEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
|
void |
setEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables for an Amplify app.
|
void |
setIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
void |
setName(String name)
The name for an Amplify app.
|
void |
setOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app.
|
void |
setPlatform(String platform)
The platform for the Amplify app.
|
void |
setRepository(String repository)
The name of the Git repository for an Amplify app.
|
String |
toString()
Returns a string representation of this object.
|
UpdateAppRequest |
withAccessToken(String accessToken)
The personal access token for a GitHub repository for an Amplify app.
|
UpdateAppRequest |
withAppId(String appId)
The unique ID for an Amplify app.
|
UpdateAppRequest |
withAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
|
UpdateAppRequest |
withAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
|
UpdateAppRequest |
withAutoBranchCreationPatterns(String... autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
|
UpdateAppRequest |
withBasicAuthCredentials(String basicAuthCredentials)
The basic authorization credentials for an Amplify app.
|
UpdateAppRequest |
withBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
|
UpdateAppRequest |
withCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
|
UpdateAppRequest |
withCustomRules(Collection<CustomRule> customRules)
The custom redirect and rewrite rules for an Amplify app.
|
UpdateAppRequest |
withCustomRules(CustomRule... customRules)
The custom redirect and rewrite rules for an Amplify app.
|
UpdateAppRequest |
withDescription(String description)
The description for an Amplify app.
|
UpdateAppRequest |
withEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
|
UpdateAppRequest |
withEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
|
UpdateAppRequest |
withEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables branch auto-building for an Amplify app.
|
UpdateAppRequest |
withEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
|
UpdateAppRequest |
withEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables for an Amplify app.
|
UpdateAppRequest |
withIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
|
UpdateAppRequest |
withName(String name)
The name for an Amplify app.
|
UpdateAppRequest |
withOauthToken(String oauthToken)
The OAuth token for a third-party source control system for an Amplify app.
|
UpdateAppRequest |
withPlatform(Platform platform)
The platform for the Amplify app.
|
UpdateAppRequest |
withPlatform(String platform)
The platform for the Amplify app.
|
UpdateAppRequest |
withRepository(String repository)
The name of the Git repository for an Amplify app.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAppId(String appId)
The unique ID for an Amplify app.
appId
- The unique ID for an Amplify app.public String getAppId()
The unique ID for an Amplify app.
public UpdateAppRequest withAppId(String appId)
The unique ID for an Amplify app.
appId
- The unique ID for an Amplify app.public void setName(String name)
The name for an Amplify app.
name
- The name for an Amplify app.public String getName()
The name for an Amplify app.
public UpdateAppRequest withName(String name)
The name for an Amplify app.
name
- The name for an Amplify app.public void setDescription(String description)
The description for an Amplify app.
description
- The description for an Amplify app.public String getDescription()
The description for an Amplify app.
public UpdateAppRequest withDescription(String description)
The description for an Amplify app.
description
- The description for an Amplify app.public void setPlatform(String 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
.
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
.Platform
public String getPlatform()
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
.
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
.Platform
public UpdateAppRequest withPlatform(String 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
.
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
.Platform
public UpdateAppRequest withPlatform(Platform 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
.
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
.Platform
public void setIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify app.public String getIamServiceRoleArn()
The AWS Identity and Access Management (IAM) service role for an Amplify app.
public UpdateAppRequest withIamServiceRoleArn(String iamServiceRoleArn)
The AWS Identity and Access Management (IAM) service role for an Amplify app.
iamServiceRoleArn
- The AWS Identity and Access Management (IAM) service role for an Amplify app.public Map<String,String> getEnvironmentVariables()
The environment variables for an Amplify app.
public void setEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables for an Amplify app.
environmentVariables
- The environment variables for an Amplify app.public UpdateAppRequest withEnvironmentVariables(Map<String,String> environmentVariables)
The environment variables for an Amplify app.
environmentVariables
- The environment variables for an Amplify app.public UpdateAppRequest addEnvironmentVariablesEntry(String key, String value)
public UpdateAppRequest clearEnvironmentVariablesEntries()
public void setEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables branch auto-building for an Amplify app.
enableBranchAutoBuild
- Enables branch auto-building for an Amplify app.public Boolean getEnableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
public UpdateAppRequest withEnableBranchAutoBuild(Boolean enableBranchAutoBuild)
Enables branch auto-building for an Amplify app.
enableBranchAutoBuild
- Enables branch auto-building for an Amplify app.public Boolean isEnableBranchAutoBuild()
Enables branch auto-building for an Amplify app.
public void setEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify console when you delete a branch from your Git
repository.public Boolean getEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
public UpdateAppRequest withEnableBranchAutoDeletion(Boolean enableBranchAutoDeletion)
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
enableBranchAutoDeletion
- Automatically disconnects a branch in the Amplify console when you delete a branch from your Git
repository.public Boolean isEnableBranchAutoDeletion()
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
public void setEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
enableBasicAuth
- Enables basic authorization for an Amplify app.public Boolean getEnableBasicAuth()
Enables basic authorization for an Amplify app.
public UpdateAppRequest withEnableBasicAuth(Boolean enableBasicAuth)
Enables basic authorization for an Amplify app.
enableBasicAuth
- Enables basic authorization for an Amplify app.public Boolean isEnableBasicAuth()
Enables basic authorization for an Amplify app.
public void setBasicAuthCredentials(String basicAuthCredentials)
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and
provide them in the format user:password
.
basicAuthCredentials
- The basic authorization credentials for an Amplify app. You must base64-encode the authorization
credentials and provide them in the format user:password
.public String getBasicAuthCredentials()
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and
provide them in the format user:password
.
user:password
.public UpdateAppRequest withBasicAuthCredentials(String basicAuthCredentials)
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and
provide them in the format user:password
.
basicAuthCredentials
- The basic authorization credentials for an Amplify app. You must base64-encode the authorization
credentials and provide them in the format user:password
.public List<CustomRule> getCustomRules()
The custom redirect and rewrite rules for an Amplify app.
public void setCustomRules(Collection<CustomRule> customRules)
The custom redirect and rewrite rules for an Amplify app.
customRules
- The custom redirect and rewrite rules for an Amplify app.public UpdateAppRequest withCustomRules(CustomRule... customRules)
The custom redirect and rewrite rules for an Amplify app.
NOTE: This method appends the values to the existing list (if any). Use
setCustomRules(java.util.Collection)
or withCustomRules(java.util.Collection)
if you want to
override the existing values.
customRules
- The custom redirect and rewrite rules for an Amplify app.public UpdateAppRequest withCustomRules(Collection<CustomRule> customRules)
The custom redirect and rewrite rules for an Amplify app.
customRules
- The custom redirect and rewrite rules for an Amplify app.public void setBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
buildSpec
- The build specification (build spec) for an Amplify app.public String getBuildSpec()
The build specification (build spec) for an Amplify app.
public UpdateAppRequest withBuildSpec(String buildSpec)
The build specification (build spec) for an Amplify app.
buildSpec
- The build specification (build spec) for an Amplify app.public void setCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
customHeaders
- The custom HTTP headers for an Amplify app.public String getCustomHeaders()
The custom HTTP headers for an Amplify app.
public UpdateAppRequest withCustomHeaders(String customHeaders)
The custom HTTP headers for an Amplify app.
customHeaders
- The custom HTTP headers for an Amplify app.public void setEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.public Boolean getEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
public UpdateAppRequest withEnableAutoBranchCreation(Boolean enableAutoBranchCreation)
Enables automated branch creation for an Amplify app.
enableAutoBranchCreation
- Enables automated branch creation for an Amplify app.public Boolean isEnableAutoBranchCreation()
Enables automated branch creation for an Amplify app.
public List<String> getAutoBranchCreationPatterns()
Describes the automated branch creation glob patterns for an Amplify app.
public void setAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
autoBranchCreationPatterns
- Describes the automated branch creation glob patterns for an Amplify app.public UpdateAppRequest withAutoBranchCreationPatterns(String... autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
NOTE: This method appends the values to the existing list (if any). Use
setAutoBranchCreationPatterns(java.util.Collection)
or
withAutoBranchCreationPatterns(java.util.Collection)
if you want to override the existing values.
autoBranchCreationPatterns
- Describes the automated branch creation glob patterns for an Amplify app.public UpdateAppRequest withAutoBranchCreationPatterns(Collection<String> autoBranchCreationPatterns)
Describes the automated branch creation glob patterns for an Amplify app.
autoBranchCreationPatterns
- Describes the automated branch creation glob patterns for an Amplify app.public void setAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.public AutoBranchCreationConfig getAutoBranchCreationConfig()
The automated branch creation configuration for an Amplify app.
public UpdateAppRequest withAutoBranchCreationConfig(AutoBranchCreationConfig autoBranchCreationConfig)
The automated branch creation configuration for an Amplify app.
autoBranchCreationConfig
- The automated branch creation configuration for an Amplify app.public void setRepository(String repository)
The name of the Git repository for an Amplify app.
repository
- The name of the Git repository for an Amplify app.public String getRepository()
The name of the Git repository for an Amplify app.
public UpdateAppRequest withRepository(String repository)
The name of the Git repository for an Amplify app.
repository
- The name of the Git repository for an Amplify app.public void setOauthToken(String 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 .
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 .
public String getOauthToken()
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 .
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 .
public UpdateAppRequest withOauthToken(String 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 .
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 .
public void setAccessToken(String 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 .
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 .
public String getAccessToken()
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 .
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 .
public UpdateAppRequest withAccessToken(String 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 .
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 .
public String toString()
toString
in class Object
Object.toString()
public UpdateAppRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.