Class UpdateAppRequest
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<UpdateAppRequest.Builder,
UpdateAppRequest>
The request structure for the update app request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The personal access token for a GitHub repository for an Amplify app.final String
appId()
The unique ID for an Amplify app.final AutoBranchCreationConfig
The automated branch creation configuration for an Amplify app.Describes the automated branch creation glob patterns for an Amplify app.final String
The basic authorization credentials for an Amplify app.static UpdateAppRequest.Builder
builder()
final String
The build specification (build spec) for an Amplify app.final CacheConfig
The cache configuration for the Amplify app.final String
The custom HTTP headers for an Amplify app.final List
<CustomRule> The custom redirect and rewrite rules for an Amplify app.final String
The description for an Amplify app.final Boolean
Enables automated branch creation for an Amplify app.final Boolean
Enables basic authorization for an Amplify app.final Boolean
Enables branch auto-building for an Amplify app.final Boolean
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.The environment variables for an Amplify app.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest
.final boolean
For responses, this returns true if the service returned a value for the AutoBranchCreationPatterns property.final boolean
For responses, this returns true if the service returned a value for the CustomRules property.final boolean
For responses, this returns true if the service returned a value for the EnvironmentVariables property.final int
hashCode()
final String
The AWS Identity and Access Management (IAM) service role for an Amplify app.final String
name()
The name for an Amplify app.final String
The OAuth token for a third-party source control system for an Amplify app.final Platform
platform()
The platform for the Amplify app.final String
The platform for the Amplify app.final String
The name of the Git repository for an Amplify app.static Class
<? extends UpdateAppRequest.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
appId
The unique ID for an Amplify app.
- Returns:
- The unique ID for an Amplify app.
-
name
-
description
The description for an Amplify app.
- Returns:
- The description for an Amplify app.
-
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 toWEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC
.If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to
WEB_COMPUTE
.If the service returns an enum value that is not available in the current SDK version,
platform
will returnPlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- 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 toWEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC
.If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to
WEB_COMPUTE
. - See Also:
-
platformAsString
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 toWEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC
.If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to
WEB_COMPUTE
.If the service returns an enum value that is not available in the current SDK version,
platform
will returnPlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromplatformAsString()
.- Returns:
- 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 toWEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type toWEB_DYNAMIC
.If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to
WEB_COMPUTE
. - See Also:
-
iamServiceRoleArn
The AWS Identity and Access Management (IAM) service role for an Amplify app.
- Returns:
- The AWS Identity and Access Management (IAM) service role for an Amplify app.
-
hasEnvironmentVariables
public final boolean hasEnvironmentVariables()For responses, this returns true if the service returned a value for the EnvironmentVariables property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
environmentVariables
The environment variables for an Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEnvironmentVariables()
method.- Returns:
- The environment variables for an Amplify app.
-
enableBranchAutoBuild
Enables branch auto-building for an Amplify app.
- Returns:
- Enables branch auto-building for an Amplify app.
-
enableBranchAutoDeletion
Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
- Returns:
- Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
-
enableBasicAuth
Enables basic authorization for an Amplify app.
- Returns:
- Enables basic authorization for an Amplify app.
-
basicAuthCredentials
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format
user:password
.- Returns:
- The basic authorization credentials for an Amplify app. You must base64-encode the authorization
credentials and provide them in the format
user:password
.
-
hasCustomRules
public final boolean hasCustomRules()For responses, this returns true if the service returned a value for the CustomRules property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
customRules
The custom redirect and rewrite rules for an Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCustomRules()
method.- Returns:
- The custom redirect and rewrite rules for an Amplify app.
-
buildSpec
The build specification (build spec) for an Amplify app.
- Returns:
- The build specification (build spec) for an Amplify app.
-
customHeaders
The custom HTTP headers for an Amplify app.
- Returns:
- The custom HTTP headers for an Amplify app.
-
enableAutoBranchCreation
Enables automated branch creation for an Amplify app.
- Returns:
- Enables automated branch creation for an Amplify app.
-
hasAutoBranchCreationPatterns
public final boolean hasAutoBranchCreationPatterns()For responses, this returns true if the service returned a value for the AutoBranchCreationPatterns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
autoBranchCreationPatterns
Describes the automated branch creation glob patterns for an Amplify app.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAutoBranchCreationPatterns()
method.- Returns:
- Describes the automated branch creation glob patterns for an Amplify app.
-
autoBranchCreationConfig
The automated branch creation configuration for an Amplify app.
- Returns:
- The automated branch creation configuration for an Amplify app.
-
repository
The name of the Git repository for an Amplify app.
- Returns:
- The name of the Git repository for an Amplify app.
-
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
oraccessToken
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 .
- Returns:
- 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
oraccessToken
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, useoauthToken
.You must specify either
accessToken
oroauthToken
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 .
- Returns:
- 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, useoauthToken
.You must specify either
accessToken
oroauthToken
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 .
-
cacheConfig
The cache configuration for the Amplify app.
- Returns:
- The cache configuration for the Amplify app.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<UpdateAppRequest.Builder,
UpdateAppRequest> - Specified by:
toBuilder
in classAmplifyRequest
- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAwsRequest
-
equals
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequest
Used to retrieve the value of a field from any class that extendsSdkRequest
. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)
method will again be available.- Overrides:
getValueForField
in classSdkRequest
- Parameters:
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-