Class App
A construct which represents an entire CDK app. This construct is normally the root of the construct tree.
You would normally define an App
instance in your program's entrypoint, then define constructs where the app is used as the parent scope.
After all the child constructs are defined within the app, you should call app.synth()
which will emit a "cloud assembly" from this app into the directory specified by outdir
. Cloud assemblies includes artifacts such as CloudFormation templates and assets that are needed to deploy this app into the AWS cloud.
https://docs.aws.amazon.com/cdk/latest/guide/apps.html stable
Synopsis
Constructors
constructor(props) | Initializes a CDK application. |
Methods
isApp(obj) | Checks if an object is an instance of the |
Constructors
constructor(props)
Initializes a CDK application.
Declaration
constructor(props?: AppProps);
Parameters
- props AppProps
Methods
isApp(obj)
Checks if an object is an instance of the App
class.
Declaration
static isApp(obj: any): obj is App;
Parameters
- obj any
Returns
obj is App
true
if obj
is an App
. stable