Stage
An abstract application modeling unit consisting of Stacks that should be deployed together.
Derive a subclass of 'Stage' and use it to model a single instance of your application.
You can then instantiate your subclass multiple times to model multiple copies of your application which should be be deployed to different environments.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewStage(scope Construct, id *string, props StageProps) Stage
Name | Type | Description |
---|---|---|
scope |
Construct |
No description. |
id |
*string |
No description. |
props |
StageProps |
No description. |
scope
Required
- Type: Construct
id
Required
- Type: *string
props
Optional
- Type: StageProps
Methods
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
Synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
Synth |
Synthesize this stage into a cloud assembly. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ISynthesisSession
The synthesis session.
Synth
func Synth(options StageSynthesisOptions) CloudAssembly
Synthesize this stage into a cloud assembly.
Once an assembly has been synthesized, it cannot be modified. Subsequent calls will return the same assembly.
- Type: StageSynthesisOptions
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsStage |
Test whether the given construct is a stage. |
Of |
Return the stage this construct is contained with, if available. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.Stage_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
IsStage
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.Stage_IsStage(x interface{}) *bool
Test whether the given construct is a stage.
- Type: interface{}
Of
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.Stage_Of(construct IConstruct) Stage
Return the stage this construct is contained with, if available.
If called on a nested stage, returns its parent.
- Type: IConstruct
Properties
Name | Type | Description |
---|---|---|
Node |
ConstructNode |
The construct tree node associated with this construct. |
ArtifactId |
*string |
Artifact ID of the assembly if it is a nested stage. The root stage app will return an empty string. |
AssetOutdir |
*string |
The cloud assembly asset output directory. |
Outdir |
*string |
The cloud assembly output directory. |
StageName |
*string |
The name of the stage. |
Account |
*string |
The default account for all resources defined within this stage. |
ParentStage |
Stage |
The parent stage or 'undefined' if this is the app. |
Region |
*string |
The default region for all resources defined within this stage. |
Node
Required
func Node() ConstructNode
- Type: ConstructNode
The construct tree node associated with this construct.
ArtifactId
Required
func ArtifactId() *string
- Type: *string
Artifact ID of the assembly if it is a nested stage. The root stage app will return an empty string.
Derived from the construct path.
AssetOutdir
Required
func AssetOutdir() *string
- Type: *string
The cloud assembly asset output directory.
Outdir
Required
func Outdir() *string
- Type: *string
The cloud assembly output directory.
StageName
Required
func StageName() *string
- Type: *string
The name of the stage.
Based on names of the parent stages separated by hypens.
Account
Optional
func Account() *string
- Type: *string
The default account for all resources defined within this stage.
ParentStage
Optional
func ParentStage() Stage
- Type: Stage
The parent stage or 'undefined' if this is the app.
*
Region
Optional
func Region() *string
- Type: *string
The default region for all resources defined within this stage.