@aws-cdk_app-staging-synthesizer-alpha.IStagingResourcesFactory

interface IStagingResourcesFactory 🔹

LanguageType name
.NETAmazon.CDK.AppStagingSynthesizer.Alpha.IStagingResourcesFactory
Javasoftware.amazon.awscdk.app.staging.synthesizer.alpha.IStagingResourcesFactory
Pythonaws_cdk.app_staging_synthesizer_alpha.IStagingResourcesFactory
TypeScript (source)@aws-cdk/app-staging-synthesizer-alpha » IStagingResourcesFactory

Obtainable from DefaultStagingStack.factory()

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

NameDescription
obtainStagingResources(stack, context)🔹Return an object that will manage staging resources for the given stack.

obtainStagingResources(stack, context)🔹

public obtainStagingResources(stack: Stack, context: ObtainStagingResourcesContext): IStagingResources

Parameters

  • stack Stack — - stack to return an appropriate IStagingStack for.
  • context ObtainStagingResourcesContext

Returns

  • IStagingResources

Return an object that will manage staging resources for the given stack.

This is called whenever the 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.