@Stability(value=Stable) public static final class StageProps.Builder extends Object implements software.amazon.jsii.Builder<StageProps>
StageProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StageProps |
build()
Builds the configured instance.
|
StageProps.Builder |
env(Environment env)
Sets the value of
StageProps.getEnv() |
StageProps.Builder |
outdir(String outdir)
Sets the value of
StageProps.getOutdir() |
@Stability(value=Stable) public StageProps.Builder env(Environment env)
StageProps.getEnv()env - Default AWS environment (account/region) for `Stack`s in this `Stage`.
Stacks defined inside this Stage with either region or account missing
from its env will use the corresponding field given here.
If either region or accountis is not configured for Stack (either on
the Stack itself or on the containing Stage), the Stack will be
environment-agnostic.
Environment-agnostic stacks can be deployed to any environment, may not be able to take advantage of all features of the CDK. For example, they will not be able to use environmental context lookups, will not automatically translate Service Principals to the right format based on the environment's AWS partition, and other such enhancements.
this@Stability(value=Stable) public StageProps.Builder outdir(String outdir)
StageProps.getOutdir()outdir - The output directory into which to emit synthesized artifacts.
Can only be specified if this stage is the root stage (the app). If this is
specified and this stage is nested within another stage, an error will be
thrown.this@Stability(value=Stable) public StageProps build()
build in interface software.amazon.jsii.Builder<StageProps>StagePropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.