We recommend new projects start with resources from the AWS provider.
aws-native.amplify.getApp
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::Amplify::App resource creates Apps in the Amplify Console. An App is a collection of branches.
Using getApp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
function getAppOutput(args: GetAppOutputArgs, opts?: InvokeOptions): Output<GetAppResult>def get_app(arn: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetAppResult
def get_app_output(arn: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]func LookupApp(ctx *Context, args *LookupAppArgs, opts ...InvokeOption) (*LookupAppResult, error)
func LookupAppOutput(ctx *Context, args *LookupAppOutputArgs, opts ...InvokeOption) LookupAppResultOutput> Note: This function is named LookupApp in the Go SDK.
public static class GetApp 
{
    public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
    public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
public static Output<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:amplify:getApp
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- ARN for the Amplify App.
- Arn string
- ARN for the Amplify App.
- arn String
- ARN for the Amplify App.
- arn string
- ARN for the Amplify App.
- arn str
- ARN for the Amplify App.
- arn String
- ARN for the Amplify App.
getApp Result
The following output properties are available:
- AppId string
- Unique Id for the Amplify App.
- AppName string
- Name for the Amplify App.
- Arn string
- ARN for the Amplify App.
- BuildSpec string
- The build specification (build spec) for an Amplify app.
- CacheConfig Pulumi.Aws Native. Amplify. Outputs. App Cache Config 
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- CustomHeaders string
- The custom HTTP headers for an Amplify app.
- CustomRules List<Pulumi.Aws Native. Amplify. Outputs. App Custom Rule> 
- The custom rewrite and redirect rules for an Amplify app.
- DefaultDomain string
- Default domain for the Amplify App.
- Description string
- The description of the Amplify app.
- EnableBranch boolAuto Deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- EnvironmentVariables List<Pulumi.Aws Native. Amplify. Outputs. App Environment Variable> 
- 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 . 
- IamService stringRole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- Name string
- The name of the Amplify app.
- Platform
Pulumi.Aws Native. 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 to- WEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type to- WEB_DYNAMIC.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- Repository string
- The Git repository for the Amplify app.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The tag for an Amplify app.
- AppId string
- Unique Id for the Amplify App.
- AppName string
- Name for the Amplify App.
- Arn string
- ARN for the Amplify App.
- BuildSpec string
- The build specification (build spec) for an Amplify app.
- CacheConfig AppCache Config 
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- CustomHeaders string
- The custom HTTP headers for an Amplify app.
- CustomRules []AppCustom Rule 
- The custom rewrite and redirect rules for an Amplify app.
- DefaultDomain string
- Default domain for the Amplify App.
- Description string
- The description of the Amplify app.
- EnableBranch boolAuto Deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- EnvironmentVariables []AppEnvironment Variable 
- 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 . 
- IamService stringRole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- Name string
- The name of the Amplify app.
- Platform
AppPlatform 
- 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.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- Repository string
- The Git repository for the Amplify app.
- Tag
- The tag for an Amplify app.
- appId String
- Unique Id for the Amplify App.
- appName String
- Name for the Amplify App.
- arn String
- ARN for the Amplify App.
- buildSpec String
- The build specification (build spec) for an Amplify app.
- cacheConfig AppCache Config 
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- customHeaders String
- The custom HTTP headers for an Amplify app.
- customRules List<AppCustom Rule> 
- The custom rewrite and redirect rules for an Amplify app.
- defaultDomain String
- Default domain for the Amplify App.
- description String
- The description of the Amplify app.
- enableBranch BooleanAuto Deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environmentVariables List<AppEnvironment Variable> 
- 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 . 
- iamService StringRole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- name String
- The name of the Amplify app.
- platform
AppPlatform 
- 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.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- repository String
- The Git repository for the Amplify app.
- List<Tag>
- The tag for an Amplify app.
- appId string
- Unique Id for the Amplify App.
- appName string
- Name for the Amplify App.
- arn string
- ARN for the Amplify App.
- buildSpec string
- The build specification (build spec) for an Amplify app.
- cacheConfig AppCache Config 
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- customHeaders string
- The custom HTTP headers for an Amplify app.
- customRules AppCustom Rule[] 
- The custom rewrite and redirect rules for an Amplify app.
- defaultDomain string
- Default domain for the Amplify App.
- description string
- The description of the Amplify app.
- enableBranch booleanAuto Deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environmentVariables AppEnvironment Variable[] 
- 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 . 
- iamService stringRole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- name string
- The name of the Amplify app.
- platform
AppPlatform 
- 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.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- repository string
- The Git repository for the Amplify app.
- Tag[]
- The tag for an Amplify app.
- app_id str
- Unique Id for the Amplify App.
- app_name str
- Name for the Amplify App.
- arn str
- ARN for the Amplify App.
- build_spec str
- The build specification (build spec) for an Amplify app.
- cache_config AppCache Config 
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- custom_headers str
- The custom HTTP headers for an Amplify app.
- custom_rules Sequence[AppCustom Rule] 
- The custom rewrite and redirect rules for an Amplify app.
- default_domain str
- Default domain for the Amplify App.
- description str
- The description of the Amplify app.
- enable_branch_ boolauto_ deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environment_variables Sequence[AppEnvironment Variable] 
- 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 . 
- iam_service_ strrole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- name str
- The name of the Amplify app.
- platform
AppPlatform 
- 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.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- repository str
- The Git repository for the Amplify app.
- Sequence[root_Tag]
- The tag for an Amplify app.
- appId String
- Unique Id for the Amplify App.
- appName String
- Name for the Amplify App.
- arn String
- ARN for the Amplify App.
- buildSpec String
- The build specification (build spec) for an Amplify app.
- cacheConfig Property Map
- The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the defaultAMPLIFY_MANAGEDsetting.
- customHeaders String
- The custom HTTP headers for an Amplify app.
- customRules List<Property Map>
- The custom rewrite and redirect rules for an Amplify app.
- defaultDomain String
- Default domain for the Amplify App.
- description String
- The description of the Amplify app.
- enableBranch BooleanAuto Deletion 
- Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environmentVariables List<Property Map>
- 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 . 
- iamService StringRole 
- AWS Identity and Access Management ( IAM ) service role for the Amazon Resource Name (ARN) of the Amplify app.
- name String
- The name of the Amplify app.
- platform "WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE"
- 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.- If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to - WEB_COMPUTEand set the artifacts- baseDirectoryto- .nextin the application's build settings. For an example of the build specification settings, see Amplify build settings for a Next.js 14 SSG application in the Amplify Hosting User Guide .
- repository String
- The Git repository for the Amplify app.
- List<Property Map>
- The tag for an Amplify app.
Supporting Types
AppCacheConfig  
- Type
Pulumi.Aws Native. Amplify. App Cache Config Type 
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
- Type
AppCache Config Type 
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
- type
AppCache Config Type 
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
- type
AppCache Config Type 
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
- type
AppCache Config Type 
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
- type "AMPLIFY_MANAGED" | "AMPLIFY_MANAGED_NO_COOKIES"
- The type of cache configuration to use for an Amplify app. - The - AMPLIFY_MANAGEDcache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.- The - AMPLIFY_MANAGED_NO_COOKIEScache configuration type is the same as- AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.
AppCacheConfigType   
AppCustomRule  
- Source string
- The source pattern for a URL rewrite or redirect rule.
- Target string
- The target pattern for a URL rewrite or redirect rule.
- Condition string
- The condition for a URL rewrite or redirect rule, such as a country code.
- Status string
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
- Source string
- The source pattern for a URL rewrite or redirect rule.
- Target string
- The target pattern for a URL rewrite or redirect rule.
- Condition string
- The condition for a URL rewrite or redirect rule, such as a country code.
- Status string
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
- source String
- The source pattern for a URL rewrite or redirect rule.
- target String
- The target pattern for a URL rewrite or redirect rule.
- condition String
- The condition for a URL rewrite or redirect rule, such as a country code.
- status String
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
- source string
- The source pattern for a URL rewrite or redirect rule.
- target string
- The target pattern for a URL rewrite or redirect rule.
- condition string
- The condition for a URL rewrite or redirect rule, such as a country code.
- status string
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
- source str
- The source pattern for a URL rewrite or redirect rule.
- target str
- The target pattern for a URL rewrite or redirect rule.
- condition str
- The condition for a URL rewrite or redirect rule, such as a country code.
- status str
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
- source String
- The source pattern for a URL rewrite or redirect rule.
- target String
- The target pattern for a URL rewrite or redirect rule.
- condition String
- The condition for a URL rewrite or redirect rule, such as a country code.
- status String
- The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
 
AppEnvironmentVariable  
AppPlatform 
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.