App
Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
Contents
- appArn
-
The Amazon Resource Name (ARN) of the Amplify app.
Type: String
Length Constraints: Maximum length of 1000.
Required: Yes
- appId
-
The unique ID of the Amplify app.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern:
d[a-z0-9]+
Required: Yes
- createTime
-
Creates a date and time for the Amplify app.
Type: Timestamp
Required: Yes
- defaultDomain
-
The default domain for the Amplify app.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1000.
Required: Yes
- description
-
The description for the Amplify app.
Type: String
Length Constraints: Maximum length of 1000.
Pattern:
(?s).*
Required: Yes
- enableBasicAuth
-
Enables basic authorization for the Amplify app's branches.
Type: Boolean
Required: Yes
- enableBranchAutoBuild
-
Enables the auto-building of branches for the Amplify app.
Type: Boolean
Required: Yes
- environmentVariables
-
The environment variables for the Amplify app.
For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.
Type: String to string map
Key Length Constraints: Maximum length of 255.
Key Pattern:
(?s).*
Value Length Constraints: Maximum length of 5500.
Value Pattern:
(?s).*
Required: Yes
- name
-
The name for the Amplify app.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
(?s).+
Required: Yes
- 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 14 or later, you must use the platform type
WEB_COMPUTE
.Type: String
Valid Values:
WEB | WEB_DYNAMIC | WEB_COMPUTE
Required: Yes
- repository
-
The Git repository for the Amplify app.
Type: String
Length Constraints: Maximum length of 1000.
Pattern:
(?s).*
Required: Yes
- updateTime
-
Updates the date and time for the Amplify app.
Type: Timestamp
Required: Yes
- autoBranchCreationConfig
-
Describes the automated branch creation configuration for the Amplify app.
Type: AutoBranchCreationConfig object
Required: No
- autoBranchCreationPatterns
-
Describes the automated branch creation glob patterns for the Amplify app.
Type: Array of strings
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
(?s).+
Required: No
- basicAuthCredentials
-
The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format
user:password
.Type: String
Length Constraints: Maximum length of 2000.
Pattern:
(?s).*
Required: No
- buildSpec
-
Describes the content of the build specification (build spec) for the Amplify app.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 25000.
Pattern:
(?s).+
Required: No
- cacheConfig
-
The cache configuration for the Amplify app. If you don't specify the cache configuration
type
, Amplify uses the defaultAMPLIFY_MANAGED
setting.Type: CacheConfig object
Required: No
- customHeaders
-
Describes the custom HTTP headers for the Amplify app.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 25000.
Pattern:
(?s).*
Required: No
- customRules
-
Describes the custom redirect and rewrite rules for the Amplify app.
Type: Array of CustomRule objects
Required: No
- enableAutoBranchCreation
-
Enables automated branch creation for the Amplify app.
Type: Boolean
Required: No
- enableBranchAutoDeletion
-
Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.
Type: Boolean
Required: No
- iamServiceRoleArn
-
The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Pattern:
(?s).*
Required: No
- productionBranch
-
Describes the information about a production branch of the Amplify app.
Type: ProductionBranch object
Required: No
- repositoryCloneMethod
-
Note
This is for internal use.
The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies
TOKEN
for a GitHub repository,SIGV4
for an AWS CodeCommit repository, andSSH
for GitLab and Bitbucket repositories.Type: String
Valid Values:
SSH | TOKEN | SIGV4
Required: No
-
The tag for the Amplify app.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern:
^(?!aws:)[a-zA-Z+-=._:/]+$
Value Length Constraints: Maximum length of 256.
Value Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: