Interface ICloudAssemblyDirectoryProducer
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ICloudAssemblyDirectoryProducer.Jsii$Default
- All Known Implementing Classes:
ICloudAssemblyDirectoryProducer.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-24T10:56:41.747Z")
@Stability(Experimental)
public interface ICloudAssemblyDirectoryProducer
extends software.amazon.jsii.JsiiSerializable
(experimental) A class returning the path to a Cloud Assembly Directory when its
produce
method is invoked with the current context AWS CDK apps might need to be synthesized multiple times with additional context values before they are ready.
When running the CLI from inside a directory, this is implemented by invoking the app multiple times.
Here the produce()
method provides this multi-pass ability.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forICloudAssemblyDirectoryProducer
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiondefault String
(experimental) The working directory used to run the Cloud Assembly from.(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
-
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
-
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(); } }
- Parameters:
context
- This parameter is required.
-