Package software.amazon.awscdk.core
Class StageProps.Builder
java.lang.Object
software.amazon.awscdk.core.StageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StageProps>
- Enclosing interface:
StageProps
@Stability(Stable)
public static final class StageProps.Builder
extends Object
implements software.amazon.jsii.Builder<StageProps>
A builder for
StageProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.env
(Environment env) Sets the value ofStageProps.getEnv()
Sets the value ofStageProps.getOutdir()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
env
Sets the value ofStageProps.getEnv()
- Parameters:
env
- Default AWS environment (account/region) forStack
s in thisStage
. Stacks defined inside thisStage
with eitherregion
oraccount
missing from its env will use the corresponding field given here.If either
region
oraccount
is is not configured forStack
(either on theStack
itself or on the containingStage
), 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.
- Returns:
this
-
outdir
Sets the value ofStageProps.getOutdir()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StageProps>
- Returns:
- a new instance of
StageProps
- Throws:
NullPointerException
- if any required attribute was not provided
-