Class App
A construct which represents an entire CDK app. This construct is normally the root of the construct tree.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class App : Stage
Syntax (vb)
Public Class App
Inherits Stage
Remarks
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.
See: https://docs.aws.amazon.com/cdk/latest/guide/apps.html
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.S3;
IBucket bucket;
var app = new App();
var stack = new Stack(app, "Stack");
new Table(stack, "Table", new TableProps {
PartitionKey = new Attribute {
Name = "id",
Type = AttributeType.STRING
},
ImportSource = new ImportSourceSpecification {
CompressionType = InputCompressionType.GZIP,
InputFormat = InputFormat.Csv(new CsvOptions {
Delimiter = ",",
HeaderList = new [] { "id", "name" }
}),
Bucket = bucket,
KeyPrefix = "prefix"
}
});
Synopsis
Constructors
App(IApp |
Initializes a CDK application. |
App(By |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
App(Deputy |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Is |
Checks if an object is an instance of the |
Constructors
App(IAppProps)
Initializes a CDK application.
public App(IAppProps props = null)
Parameters
- props IApp
Props initialization properties.
App(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected App(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
App(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected App(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
IsApp(Object)
Checks if an object is an instance of the App
class.
public static bool IsApp(object obj)
Parameters
- obj System.
Object The object to evaluate.
Returns
System.
true
if obj
is an App
.