Interface CustomFactoryOptions
- All Superinterfaces:
AppStagingSynthesizerOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomFactoryOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.91.0 (build 1b1f239)",
date="2023-11-16T22:34:12.671Z")
@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 class
A builder forCustomFactoryOptions
static final class
An implementation forCustomFactoryOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFactoryOptions.Builder
builder()
(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, getDeploymentIdentities
Methods 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.Builder
ofCustomFactoryOptions
-