Interface CustomFactoryOptions
- All Superinterfaces:
AppStagingSynthesizerOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomFactoryOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:06.461Z")
@Stability(Experimental)
public interface CustomFactoryOptions
extends software.amazon.jsii.JsiiSerializable, AppStagingSynthesizerOptions
(experimental) Properties for customFactory static method.
Example:
public class CustomFactory implements IStagingResourcesFactory {
public CustomStagingStack obtainStagingResources(Stack stack, ObtainStagingResourcesContext context) {
Stage myApp = App.of(stack);
return new CustomStagingStack(myApp, String.format("CustomStagingStack-%s", context.getEnvironmentString()), new CustomStagingStackProps());
}
}
App app = App.Builder.create()
.defaultStackSynthesizer(AppStagingSynthesizer.customFactory(CustomFactoryOptions.builder()
.factory(new CustomFactory())
.oncePerEnv(true)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCustomFactoryOptionsstatic final classAn implementation forCustomFactoryOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFactoryOptions.Builderbuilder()(experimental) The factory that will be used to return staging resources for each stack.default Boolean(experimental) Reuse the answer from the factory for stacks in the same environment.Methods inherited from interface software.amazon.awscdk.app.staging.synthesizer.alpha.AppStagingSynthesizerOptions
getBootstrapQualifier, getDeploymentIdentitiesMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFactory
(experimental) The factory that will be used to return staging resources for each stack. -
getOncePerEnv
(experimental) Reuse the answer from the factory for stacks in the same environment.Default: true
-
builder
- Returns:
- a
CustomFactoryOptions.BuilderofCustomFactoryOptions
-