| Modifier and Type | Method and Description |
|---|---|
Stack |
build() |
static Stack.Builder |
create() |
static Stack.Builder |
create(Construct scope) |
static Stack.Builder |
create(Construct scope,
String id) |
Stack.Builder |
description(String description)
A description of the stack.
|
Stack.Builder |
env(Environment env)
The AWS environment (account/region) where this stack will be deployed.
|
Stack.Builder |
stackName(String stackName)
Name to deploy the stack with.
|
Stack.Builder |
synthesizer(IStackSynthesizer synthesizer)
Synthesis method to use while deploying this stack.
|
Stack.Builder |
tags(Map<String,String> tags)
Stack tags that will be applied to all the taggable resources and the stack itself.
|
Stack.Builder |
terminationProtection(Boolean terminationProtection)
Whether to enable termination protection for this stack.
|
@Stability(value=Stable) public static Stack.Builder create(Construct scope, String id)
scope - Parent of this stack, usually a Program instance.id - The construct ID of this stack.Stack.Builder.@Stability(value=Stable) public static Stack.Builder create(Construct scope)
scope - Parent of this stack, usually a Program instance.Stack.Builder.@Stability(value=Stable) public static Stack.Builder create()
Stack.Builder.@Stability(value=Stable) public Stack.Builder description(String description)
Default: - No description.
description - A description of the stack. This parameter is required.this@Stability(value=Stable) public Stack.Builder env(Environment env)
Default: - The `default-account` and `default-region` context parameters will be used. If they are undefined, it will not be possible to deploy the stack.
env - The AWS environment (account/region) where this stack will be deployed. This parameter is required.this@Stability(value=Stable) public Stack.Builder stackName(String stackName)
Default: - Derived from construct path.
stackName - Name to deploy the stack with. This parameter is required.this@Stability(value=Stable) public Stack.Builder synthesizer(IStackSynthesizer synthesizer)
Default: - `DefaultStackSynthesizer` if the `@aws-cdk/core:newStyleStackSynthesis` feature flag is set, `LegacyStackSynthesizer` otherwise.
synthesizer - Synthesis method to use while deploying this stack. This parameter is required.this@Stability(value=Stable) public Stack.Builder tags(Map<String,String> tags)
Default: {}
tags - Stack tags that will be applied to all the taggable resources and the stack itself. This parameter is required.this@Stability(value=Stable) public Stack.Builder terminationProtection(Boolean terminationProtection)
Default: false
terminationProtection - Whether to enable termination protection for this stack. This parameter is required.this@Stability(value=Stable) public Stack build()
Copyright © 2020. All rights reserved.