@Stability(value=Stable) public static final class StackProps.Builder extends Object implements software.amazon.jsii.Builder<StackProps>
StackProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StackProps |
build()
Builds the configured instance.
|
StackProps.Builder |
description(String description)
Sets the value of
StackProps.getDescription() |
StackProps.Builder |
env(Environment env)
Sets the value of
StackProps.getEnv() |
StackProps.Builder |
stackName(String stackName)
Sets the value of
StackProps.getStackName() |
StackProps.Builder |
synthesizer(IStackSynthesizer synthesizer)
Sets the value of
StackProps.getSynthesizer() |
StackProps.Builder |
tags(Map<String,String> tags)
Sets the value of
StackProps.getTags() |
StackProps.Builder |
terminationProtection(Boolean terminationProtection)
Sets the value of
StackProps.getTerminationProtection() |
@Stability(value=Stable) public StackProps.Builder description(String description)
StackProps.getDescription()description - A description of the stack.this@Stability(value=Stable) public StackProps.Builder env(Environment env)
StackProps.getEnv()env - The AWS environment (account/region) where this stack will be deployed.
Set the region/account fields of env to either a concrete value to
select the indicated environment (recommended for production stacks), or to
the values of environment variables
CDK_DEFAULT_REGION/CDK_DEFAULT_ACCOUNT to let the target environment
depend on the AWS credentials/configuration that the CDK CLI is executed
under (recommended for development stacks).
If the Stack is instantiated inside a Stage, any undefined
region/account fields from env will default to the same field on the
encompassing Stage, if configured there.
If either region or account are not set nor inherited from Stage, the
Stack will be considered "environment-agnostic"". Environment-agnostic
stacks can be deployed to any environment but 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 such as ec2.Vpc.fromLookup and 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 StackProps.Builder stackName(String stackName)
StackProps.getStackName()stackName - Name to deploy the stack with.this@Stability(value=Stable) public StackProps.Builder synthesizer(IStackSynthesizer synthesizer)
StackProps.getSynthesizer()synthesizer - Synthesis method to use while deploying this stack.this@Stability(value=Stable) public StackProps.Builder tags(Map<String,String> tags)
StackProps.getTags()tags - Stack tags that will be applied to all the taggable resources and the stack itself.this@Stability(value=Stable) public StackProps.Builder terminationProtection(Boolean terminationProtection)
StackProps.getTerminationProtection()terminationProtection - Whether to enable termination protection for this stack.this@Stability(value=Stable) public StackProps build()
build in interface software.amazon.jsii.Builder<StackProps>StackPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.