Skip to content
v2.275.0

Experimental

@aws-cdk/app-staging-synthesizer-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

IStagingResourcesFactory Interface ​

Staging Resource Factory interface.

The function included in this class will be called by the synthesizer to create or reference an IStagingResources construct that has the necessary staging resources for the stack.

Methods ​

obtainStagingResources(stack: Stack, context: ObtainStagingResourcesContext): IStagingResourcesdef obtain_staging_resources(self, stack: Stack, context: ObtainStagingResourcesContext) -> IStagingResourcespublic IStagingResources obtainStagingResources(Stack stack, ObtainStagingResourcesContext context)public IStagingResources ObtainStagingResources(Stack stack, ObtainStagingResourcesContext context)func ObtainStagingResources(Stack Stack, Context ObtainStagingResourcesContext) IStagingResources#
Return an object that will manage staging resources for the given stack.
notes · 1 parameter

This is called whenever the AppStagingSynthesizer binds to a specific stack, and allows selecting where the staging resources go.

This method can choose to either create a new construct (perhaps a stack) and return it, or reference an existing construct.

Parameters

  • stackstackstackstackStack — - stack to return an appropriate IStagingStack for.