DefaultStackSynthesizer
- Implements: IReusableStackSynthesizer, IBoundStackSynthesizer
Uses conventionally named roles and reify asset storage locations.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewDefaultStackSynthesizer(props DefaultStackSynthesizerProps) DefaultStackSynthesizer
Name | Type | Description |
---|---|---|
props |
DefaultStackSynthesizerProps |
No description. |
props
Optional
Methods
Name | Description |
---|---|
AddFileAsset |
Register a File Asset. |
Bind |
Bind to the stack this environment is going to be used on. |
Synthesize |
Synthesize the associated stack to the session. |
ReusableBind |
Produce a bound Stack Synthesizer for the given stack. |
SynthesizeStackArtifacts |
No description. |
AddFileAsset
func AddFileAsset(asset FileAssetSource) FileAssetLocation
Register a File Asset.
Returns the parameters that can be used to refer to the asset inside the template.
The synthesizer must rely on some out-of-band mechanism to make sure the given files
are actually placed in the returned location before the deployment happens. This can
be by writing the instructions to the asset manifest (for use by the cdk-assets
tool),
by relying on the CLI to upload files (legacy behavior), or some other operator controlled
mechanism.
- Type: FileAssetSource
Bind
func Bind(stack Stack)
Bind to the stack this environment is going to be used on.
Must be called before any of the other methods are called.
- Type: Stack
Synthesize
func Synthesize(session ISynthesisSession)
Synthesize the associated stack to the session.
- Type: ISynthesisSession
ReusableBind
func ReusableBind(stack Stack) IBoundStackSynthesizer
Produce a bound Stack Synthesizer for the given stack.
This method may be called more than once on the same object.
- Type: Stack
SynthesizeStackArtifacts
func SynthesizeStackArtifacts(session ISynthesisSession)
- Type: ISynthesisSession
Constants
Name | Type | Description |
---|---|---|
DefaultFileAssetPrefix |
*string |
Default file asset prefix. |
DefaultFileAssetsBucketName |
*string |
Default file assets bucket name. |
DefaultQualifier |
*string |
Default ARN qualifier. |
DefaultFileAssetPrefix
Required
func DefaultFileAssetPrefix() *string
- Type: *string
Default file asset prefix.
DefaultFileAssetsBucketName
Required
func DefaultFileAssetsBucketName() *string
- Type: *string
Default file assets bucket name.
DefaultQualifier
Required
func DefaultQualifier() *string
- Type: *string
Default ARN qualifier.