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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:amplify:getApp
arguments:
# arguments dictionary
The 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:
- App
Id string - Unique Id for the Amplify App.
- App
Name string - Name for the Amplify App.
- Arn string
- ARN for the Amplify App.
- Build
Spec string - The build specification (build spec) for an Amplify app.
- Cache
Config 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_MANAGED
setting. - Custom
Headers string - The custom HTTP headers for an Amplify app.
- Custom
Rules List<Pulumi.Aws Native. Amplify. Outputs. App Custom Rule> - The custom rewrite and redirect rules for an Amplify app.
- Default
Domain string - Default domain for the Amplify App.
- Description string
- 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 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 .
- Iam
Service 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 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
and set the artifactsbaseDirectory
to.next
in 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.
- App
Id string - Unique Id for the Amplify App.
- App
Name string - Name for the Amplify App.
- Arn string
- ARN for the Amplify App.
- Build
Spec string - 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_MANAGED
setting. - Custom
Headers string - The custom HTTP headers for an Amplify app.
- Custom
Rules []AppCustom Rule - The custom rewrite and redirect rules for an Amplify app.
- Default
Domain string - Default domain for the Amplify App.
- Description string
- 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 []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 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
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
and set the artifactsbaseDirectory
to.next
in 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 String - Unique Id for the Amplify App.
- app
Name String - Name for the Amplify App.
- arn String
- ARN for the Amplify App.
- build
Spec String - 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_MANAGED
setting. - custom
Headers String - The custom HTTP headers for an Amplify app.
- custom
Rules List<AppCustom Rule> - The custom rewrite and redirect rules for an Amplify app.
- default
Domain String - Default domain for the Amplify App.
- description String
- The description of the Amplify app.
- enable
Branch BooleanAuto Deletion - Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environment
Variables 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 .
- iam
Service 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
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
and set the artifactsbaseDirectory
to.next
in 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.
- app
Id string - Unique Id for the Amplify App.
- app
Name string - Name for the Amplify App.
- arn string
- ARN for the Amplify App.
- build
Spec string - 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_MANAGED
setting. - custom
Headers string - The custom HTTP headers for an Amplify app.
- custom
Rules AppCustom Rule[] - The custom rewrite and redirect rules for an Amplify app.
- default
Domain string - Default domain for the Amplify App.
- description string
- The description of the Amplify app.
- enable
Branch booleanAuto Deletion - Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environment
Variables 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 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
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
and set the artifactsbaseDirectory
to.next
in 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_MANAGED
setting. - 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
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
and set the artifactsbaseDirectory
to.next
in 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.
- app
Id String - Unique Id for the Amplify App.
- app
Name String - Name for the Amplify App.
- arn String
- ARN for the Amplify App.
- build
Spec String - The build specification (build spec) for an Amplify app.
- cache
Config Property Map - The cache configuration for the Amplify app. If you don't specify the cache configuration
type
, Amplify uses the defaultAMPLIFY_MANAGED
setting. - custom
Headers String - The custom HTTP headers for an Amplify app.
- custom
Rules List<Property Map> - The custom rewrite and redirect rules for an Amplify app.
- default
Domain String - Default domain for the Amplify App.
- description String
- The description of the Amplify app.
- enable
Branch BooleanAuto Deletion - Automatically disconnect a branch in Amplify Hosting when you delete a branch from your Git repository.
- environment
Variables 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 .
- iam
Service 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 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
and set the artifactsbaseDirectory
to.next
in 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_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_MANAGED
, except that it excludes all cookies from the cache key.
- Type
App
Cache Config Type The type of cache configuration to use for an Amplify app.
The
AMPLIFY_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_MANAGED
, except that it excludes all cookies from the cache key.
- type
App
Cache Config Type The type of cache configuration to use for an Amplify app.
The
AMPLIFY_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_MANAGED
, except that it excludes all cookies from the cache key.
- type
App
Cache Config Type The type of cache configuration to use for an Amplify app.
The
AMPLIFY_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_MANAGED
, except that it excludes all cookies from the cache key.
- type
App
Cache Config Type The type of cache configuration to use for an Amplify app.
The
AMPLIFY_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_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_MANAGED
cache 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_COOKIES
cache configuration type is the same asAMPLIFY_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.