interface IApplication
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppConfig.IApplication |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappconfig#IApplication |
Java | software.amazon.awscdk.services.appconfig.IApplication |
Python | aws_cdk.aws_appconfig.IApplication |
TypeScript (source) | aws-cdk-lib » aws_appconfig » IApplication |
Implemented by
Application
Obtainable from
Application
.fromApplicationArn()
, Application
.fromApplicationId()
Properties
Name | Type | Description |
---|---|---|
application | string | The Amazon Resource Name (ARN) of the application. |
application | string | The ID of the application. |
env | Resource | The environment this resource belongs to. |
node | Node | The tree node. |
stack | Stack | The stack in which this resource is defined. |
description? | string | The description of the application. |
name? | string | The name of the application. |
applicationArn
Type:
string
The Amazon Resource Name (ARN) of the application.
applicationId
Type:
string
The ID of the application.
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
description?
Type:
string
(optional)
The description of the application.
name?
Type:
string
(optional)
The name of the application.
Methods
Name | Description |
---|---|
add | Adds an environment. |
add | Adds an existing environment. |
add | Adds an extension association to the application. |
add | Adds a hosted configuration. |
add | Adds a sourced configuration. |
apply | Apply the given removal policy to this resource. |
environments() | Returns the list of associated environments. |
on(actionPoint, eventDestination, options?) | Adds an extension defined by the action point and event destination and also creates an extension association to an application. |
on | Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application. |
on | Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application. |
on | Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application. |
on | Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application. |
on | Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application. |
pre | Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application. |
pre | Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application. |
Environment(id, options?)
addpublic addEnvironment(id: string, options?: EnvironmentOptions): IEnvironment
Parameters
- id
string
— The name of the environment construct. - options
Environment
— The options for the environment construct.Options
Returns
Adds an environment.
ExistingEnvironment(environment)
addpublic addExistingEnvironment(environment: IEnvironment): void
Parameters
- environment
IEnvironment
— The environment.
Adds an existing environment.
Extension(extension)
addpublic addExtension(extension: IExtension): void
Parameters
- extension
IExtension
— The extension to create an association for.
Adds an extension association to the application.
HostedConfiguration(id, options)
addpublic addHostedConfiguration(id: string, options: HostedConfigurationOptions): HostedConfiguration
Parameters
- id
string
— The name of the hosted configuration construct. - options
Hosted
— The options for the hosted configuration construct.Configuration Options
Returns
Adds a hosted configuration.
SourcedConfiguration(id, options)
addpublic addSourcedConfiguration(id: string, options: SourcedConfigurationOptions): SourcedConfiguration
Parameters
- id
string
— The name of the sourced configuration construct. - options
Sourced
— The options for the sourced configuration construct.Configuration Options
Returns
Adds a sourced configuration.
RemovalPolicy(policy)
applypublic applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
Policy
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
environments()
public environments(): IEnvironment[]
Returns
Returns the list of associated environments.
on(actionPoint, eventDestination, options?)
public on(actionPoint: ActionPoint, eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- actionPoint
Action
— The action point which triggers the event.Point - eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an extension defined by the action point and event destination and also creates an extension association to an application.
DeploymentBaking(eventDestination, options?)
onpublic onDeploymentBaking(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to an application.
DeploymentComplete(eventDestination, options?)
onpublic onDeploymentComplete(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to an application.
DeploymentRolledBack(eventDestination, options?)
onpublic onDeploymentRolledBack(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to an application.
DeploymentStart(eventDestination, options?)
onpublic onDeploymentStart(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to an application.
DeploymentStep(eventDestination, options?)
onpublic onDeploymentStep(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to an application.
CreateHostedConfigurationVersion(eventDestination, options?)
prepublic preCreateHostedConfigurationVersion(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to an application.
StartDeployment(eventDestination, options?)
prepublic preStartDeployment(eventDestination: IEventDestination, options?: ExtensionOptions): void
Parameters
- eventDestination
IEvent
— The event that occurs during the extension.Destination - options
Extension
— Options for the extension.Options
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to an application.