interface IStagingResourcesFactory
Language | Type name |
---|---|
![]() | Amazon.CDK.AppStagingSynthesizer.Alpha.IStagingResourcesFactory |
![]() | software.amazon.awscdk.app.staging.synthesizer.alpha.IStagingResourcesFactory |
![]() | aws_cdk.app_staging_synthesizer_alpha.IStagingResourcesFactory |
![]() | @aws-cdk/app-staging-synthesizer-alpha » IStagingResourcesFactory |
Obtainable from
Default
.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
Name | Description |
---|---|
obtain | 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
Obtain
Staging Resources Context
Returns
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.