Class Application
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appconfig.Application
- All Implemented Interfaces:
IEnvironmentAware,IResource,IApplication,IExtensible,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:33.752Z")
@Stability(Stable)
public class Application
extends Resource
implements IApplication, IExtensible
An AWS AppConfig application.
Example:
Application app = new Application(this, "MyApp");
Environment env = Environment.Builder.create(this, "MyEnv")
.application(app)
.build();
HostedConfiguration.Builder.create(this, "MyHostedConfig")
.application(app)
.deployTo(List.of(env))
.content(ConfigurationContent.fromInlineText("This is my configuration content."))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IApplication
IApplication.Jsii$Default, IApplication.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IExtensible
IExtensible.Jsii$Default, IExtensible.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApplication(software.amazon.jsii.JsiiObjectRef objRef) Application(software.constructs.Construct scope, String id) Application(software.constructs.Construct scope, String id, ApplicationProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAgentToEcs(TaskDefinition taskDef) Adds the AWS AppConfig Agent as a container to the provided ECS task definition.addEnvironment(String id) Adds an environment.addEnvironment(String id, EnvironmentOptions options) Adds an environment.voidaddExistingEnvironment(IEnvironment environment) Adds an existing environment.voidaddExtension(IExtension extension) Adds an extension association to the application.addHostedConfiguration(String id, HostedConfigurationOptions options) Adds a hosted configuration.addSourcedConfiguration(String id, SourcedConfigurationOptions options) Adds a sourced configuration.voidatDeploymentTick(IEventDestination eventDestination) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.voidatDeploymentTick(IEventDestination eventDestination, ExtensionOptions options) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.Returns the list of associated environments.static IApplicationfromApplicationArn(software.constructs.Construct scope, String id, String applicationArn) Imports an AWS AppConfig application into the CDK using its Amazon Resource Name (ARN).static IApplicationfromApplicationId(software.constructs.Construct scope, String id, String applicationId) Imports an AWS AppConfig application into the CDK using its ID.The Amazon Resource Name (ARN) of the application.The ID of the application.The description of the application.protected ExtensibleBasestatic StringgetLambdaLayerVersionArn(String region) Retrieves the Lambda layer version Amazon Resource Name (ARN) for the AWS AppConfig Lambda extension.static StringgetLambdaLayerVersionArn(String region, Platform platform) Retrieves the Lambda layer version Amazon Resource Name (ARN) for the AWS AppConfig Lambda extension.getName()The name of the application.voidon(ActionPoint actionPoint, IEventDestination eventDestination) Adds an extension defined by the action point and event destination and also creates an extension association to an application.voidon(ActionPoint actionPoint, IEventDestination eventDestination, ExtensionOptions options) Adds an extension defined by the action point and event destination and also creates an extension association to an application.voidonDeploymentBaking(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application.voidonDeploymentBaking(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application.voidonDeploymentComplete(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application.voidonDeploymentComplete(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application.voidonDeploymentRolledBack(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application.voidonDeploymentRolledBack(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application.voidonDeploymentStart(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application.voidonDeploymentStart(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application.voidonDeploymentStep(IEventDestination eventDestination) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application.voidonDeploymentStep(IEventDestination eventDestination, ExtensionOptions options) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application.voidpreCreateHostedConfigurationVersion(IEventDestination eventDestination) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application.voidpreCreateHostedConfigurationVersion(IEventDestination eventDestination, ExtensionOptions options) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application.voidpreStartDeployment(IEventDestination eventDestination) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application.voidpreStartDeployment(IEventDestination eventDestination, ExtensionOptions options) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application.protected voidsetExtensible(ExtensibleBase value) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
Application
protected Application(software.amazon.jsii.JsiiObjectRef objRef) -
Application
protected Application(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Application
@Stability(Stable) public Application(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ApplicationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
Application
@Stability(Stable) public Application(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
addAgentToEcs
Adds the AWS AppConfig Agent as a container to the provided ECS task definition.- Parameters:
taskDef- The ECS task definition [disable-awslint:ref-via-interface]. This parameter is required.
-
fromApplicationArn
@Stability(Stable) @NotNull public static IApplication fromApplicationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String applicationArn) Imports an AWS AppConfig application into the CDK using its Amazon Resource Name (ARN).- Parameters:
scope- The parent construct. This parameter is required.id- The name of the application construct. This parameter is required.applicationArn- The Amazon Resource Name (ARN) of the application. This parameter is required.
-
fromApplicationId
@Stability(Stable) @NotNull public static IApplication fromApplicationId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String applicationId) Imports an AWS AppConfig application into the CDK using its ID.- Parameters:
scope- The parent construct. This parameter is required.id- The name of the application construct. This parameter is required.applicationId- The ID of the application. This parameter is required.
-
getLambdaLayerVersionArn
@Stability(Stable) @NotNull public static String getLambdaLayerVersionArn(@NotNull String region, @Nullable Platform platform) Retrieves the Lambda layer version Amazon Resource Name (ARN) for the AWS AppConfig Lambda extension.- Parameters:
region- The region for the Lambda layer (for example, 'us-east-1'). This parameter is required.platform- The platform for the Lambda layer (default is Platform.X86_64).- Returns:
- Lambda layer version ARN
-
getLambdaLayerVersionArn
Retrieves the Lambda layer version Amazon Resource Name (ARN) for the AWS AppConfig Lambda extension.- Parameters:
region- The region for the Lambda layer (for example, 'us-east-1'). This parameter is required.- Returns:
- Lambda layer version ARN
-
addEnvironment
@Stability(Stable) @NotNull public IEnvironment addEnvironment(@NotNull String id, @Nullable EnvironmentOptions options) Adds an environment.- Specified by:
addEnvironmentin interfaceIApplication- Parameters:
id- This parameter is required.options-
-
addEnvironment
Adds an environment.- Specified by:
addEnvironmentin interfaceIApplication- Parameters:
id- This parameter is required.
-
addExistingEnvironment
Adds an existing environment.- Specified by:
addExistingEnvironmentin interfaceIApplication- Parameters:
environment- This parameter is required.
-
addExtension
Adds an extension association to the application.- Specified by:
addExtensionin interfaceIApplication- Specified by:
addExtensionin interfaceIExtensible- Parameters:
extension- The extension to create an association for. This parameter is required.
-
addHostedConfiguration
@Stability(Stable) @NotNull public HostedConfiguration addHostedConfiguration(@NotNull String id, @NotNull HostedConfigurationOptions options) Adds a hosted configuration.- Specified by:
addHostedConfigurationin interfaceIApplication- Parameters:
id- This parameter is required.options- This parameter is required.
-
addSourcedConfiguration
@Stability(Stable) @NotNull public SourcedConfiguration addSourcedConfiguration(@NotNull String id, @NotNull SourcedConfigurationOptions options) Adds a sourced configuration.- Specified by:
addSourcedConfigurationin interfaceIApplication- Parameters:
id- This parameter is required.options- This parameter is required.
-
atDeploymentTick
@Stability(Stable) public void atDeploymentTick(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.- Specified by:
atDeploymentTickin interfaceIApplication- Specified by:
atDeploymentTickin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
atDeploymentTick
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.- Specified by:
atDeploymentTickin interfaceIApplication- Specified by:
atDeploymentTickin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
environments
Returns the list of associated environments.- Specified by:
environmentsin interfaceIApplication
-
on
@Stability(Stable) public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an extension defined by the action point and event destination and also creates an extension association to an application.- Specified by:
onin interfaceIApplication- Specified by:
onin interfaceIExtensible- Parameters:
actionPoint- The action point which triggers the event. This parameter is required.eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
on
@Stability(Stable) public void on(@NotNull ActionPoint actionPoint, @NotNull IEventDestination eventDestination) Adds an extension defined by the action point and event destination and also creates an extension association to an application.- Specified by:
onin interfaceIApplication- Specified by:
onin interfaceIExtensible- Parameters:
actionPoint- The action point which triggers the event. This parameter is required.eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentBaking
@Stability(Stable) public void onDeploymentBaking(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentBakingin interfaceIApplication- Specified by:
onDeploymentBakingin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentBaking
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentBakingin interfaceIApplication- Specified by:
onDeploymentBakingin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentComplete
@Stability(Stable) public void onDeploymentComplete(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentCompletein interfaceIApplication- Specified by:
onDeploymentCompletein interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentComplete
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentCompletein interfaceIApplication- Specified by:
onDeploymentCompletein interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentRolledBack
@Stability(Stable) public void onDeploymentRolledBack(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentRolledBackin interfaceIApplication- Specified by:
onDeploymentRolledBackin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentRolledBack
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentRolledBackin interfaceIApplication- Specified by:
onDeploymentRolledBackin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentStart
@Stability(Stable) public void onDeploymentStart(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentStartin interfaceIApplication- Specified by:
onDeploymentStartin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentStart
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentStartin interfaceIApplication- Specified by:
onDeploymentStartin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
onDeploymentStep
@Stability(Stable) public void onDeploymentStep(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentStepin interfaceIApplication- Specified by:
onDeploymentStepin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
onDeploymentStep
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application.- Specified by:
onDeploymentStepin interfaceIApplication- Specified by:
onDeploymentStepin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
preCreateHostedConfigurationVersion
@Stability(Stable) public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application.- Specified by:
preCreateHostedConfigurationVersionin interfaceIApplication- Specified by:
preCreateHostedConfigurationVersionin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
preCreateHostedConfigurationVersion
@Stability(Stable) public void preCreateHostedConfigurationVersion(@NotNull IEventDestination eventDestination) Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application.- Specified by:
preCreateHostedConfigurationVersionin interfaceIApplication- Specified by:
preCreateHostedConfigurationVersionin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
preStartDeployment
@Stability(Stable) public void preStartDeployment(@NotNull IEventDestination eventDestination, @Nullable ExtensionOptions options) Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application.- Specified by:
preStartDeploymentin interfaceIApplication- Specified by:
preStartDeploymentin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.options- Options for the extension.
-
preStartDeployment
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application.- Specified by:
preStartDeploymentin interfaceIApplication- Specified by:
preStartDeploymentin interfaceIExtensible- Parameters:
eventDestination- The event that occurs during the extension. This parameter is required.
-
getApplicationArn
The Amazon Resource Name (ARN) of the application.- Specified by:
getApplicationArnin interfaceIApplication
-
getApplicationId
The ID of the application.- Specified by:
getApplicationIdin interfaceIApplication
-
getDescription
The description of the application.- Specified by:
getDescriptionin interfaceIApplication
-
getName
The name of the application.- Specified by:
getNamein interfaceIApplication
-
getExtensible
-
setExtensible
-