@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:22.857Z") @Stability(value=Experimental) public class App extends Resource implements IApp, IGrantable
Example:
App amplifyApp = App.Builder.create(this, "MyApp")
.sourceCodeProvider(GitHubSourceCodeProvider.Builder.create()
.owner("<user>")
.repository("<repo>")
.oauthToken(SecretValue.secretsManager("my-github-token"))
.build())
.autoBranchCreation(AutoBranchCreation.builder() // Automatically connect branches that match a pattern set
.patterns(List.of("feature/*", "test/*")).build())
.autoBranchDeletion(true)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
App.Builder
(experimental) A fluent builder for
App. |
software.amazon.jsii.JsiiObject.InitializationModeIApp.Jsii$Default, IApp.Jsii$ProxyIGrantable.Jsii$Default, IGrantable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
App(software.constructs.Construct scope,
String id,
AppProps props) |
protected |
App(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
App(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
App |
addAutoBranchEnvironment(String name,
String value)
(experimental) Adds an environment variable to the auto created branch.
|
Branch |
addBranch(String id)
(experimental) Adds a branch to this application.
|
Branch |
addBranch(String id,
BranchOptions options)
(experimental) Adds a branch to this application.
|
App |
addCustomRule(CustomRule rule)
(experimental) Adds a custom rewrite/redirect rule to this application.
|
Domain |
addDomain(String id)
(experimental) Adds a domain to this application.
|
Domain |
addDomain(String id,
DomainOptions options)
(experimental) Adds a domain to this application.
|
App |
addEnvironment(String name,
String value)
(experimental) Adds an environment variable to this application.
|
static IApp |
fromAppId(software.constructs.Construct scope,
String id,
String appId)
(experimental) Import an existing application.
|
String |
getAppId()
(experimental) The application id.
|
String |
getAppName()
(experimental) The name of the application.
|
String |
getArn()
(experimental) The ARN of the application.
|
String |
getDefaultDomain()
(experimental) The default domain of the application.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected App(software.amazon.jsii.JsiiObjectRef objRef)
protected App(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static IApp fromAppId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String appId)
scope - This parameter is required.id - This parameter is required.appId - This parameter is required.@Stability(value=Experimental) @NotNull public App addAutoBranchEnvironment(@NotNull String name, @NotNull String value)
All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
name - This parameter is required.value - This parameter is required.@Stability(value=Experimental) @NotNull public Branch addBranch(@NotNull String id, @Nullable BranchOptions options)
id - This parameter is required.options - @Stability(value=Experimental) @NotNull public Branch addBranch(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public App addCustomRule(@NotNull CustomRule rule)
rule - This parameter is required.@Stability(value=Experimental) @NotNull public Domain addDomain(@NotNull String id, @Nullable DomainOptions options)
id - This parameter is required.options - @Stability(value=Experimental) @NotNull public Domain addDomain(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public App addEnvironment(@NotNull String name, @NotNull String value)
All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
name - This parameter is required.value - This parameter is required.@Stability(value=Experimental) @NotNull public String getAppId()
@Stability(value=Experimental) @NotNull public String getAppName()
@Stability(value=Experimental) @NotNull public String getArn()
@Stability(value=Experimental) @NotNull public String getDefaultDomain()
@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantableCopyright © 2022. All rights reserved.