Interface ICloudAssemblyDirectoryProducer.Jsii$Default
- All Superinterfaces:
ICloudAssemblyDirectoryProducer
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ICloudAssemblyDirectoryProducer.Jsii$Proxy
- Enclosing interface:
ICloudAssemblyDirectoryProducer
@Internal
public static interface ICloudAssemblyDirectoryProducer.Jsii$Default
extends ICloudAssemblyDirectoryProducer
Internal default implementation for
ICloudAssemblyDirectoryProducer
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.cli.lib.alpha.ICloudAssemblyDirectoryProducer
ICloudAssemblyDirectoryProducer.Jsii$Default, ICloudAssemblyDirectoryProducer.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
(experimental) The working directory used to run the Cloud Assembly from.default String
(experimental) Synthesize a Cloud Assembly directory for a given context.default void
setWorkingDirectory
(String value) (experimental) The working directory used to run the Cloud Assembly from.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getWorkingDirectory
(experimental) The working directory used to run the Cloud Assembly from.This is were a
cdk.context.json
files will be written.Default: - current working directory
- Specified by:
getWorkingDirectory
in interfaceICloudAssemblyDirectoryProducer
-
setWorkingDirectory
(experimental) The working directory used to run the Cloud Assembly from.This is were a
cdk.context.json
files will be written.Default: - current working directory
- Specified by:
setWorkingDirectory
in interfaceICloudAssemblyDirectoryProducer
-
produce
(experimental) Synthesize a Cloud Assembly directory for a given context.For all features to work correctly,
cdk.App()
must be instantiated with the received context values in the method body. Usually obtained similar to this:public class MyProducer implements ICloudAssemblyDirectoryProducer { public Promise produce(Map<String, Object> context) { App app = App.Builder.create().context(context).build(); // create stacks here return app.synth().getDirectory(); } }
- Specified by:
produce
in interfaceICloudAssemblyDirectoryProducer
- Parameters:
context
- This parameter is required.
-