@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.864Z") @Stability(value=Stable) public enum RequireApproval extends Enum<RequireApproval>
Example:
App app = new App();
Stack stackUnderTest = new Stack(app, "StackUnderTest");
Stack stack = new Stack(app, "stack");
IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow")
.testCases(List.of(stackUnderTest))
.diffAssets(true)
.stackUpdateWorkflow(true)
.cdkCommandOptions(CdkCommands.builder()
.deploy(DeployCommand.builder()
.args(DeployOptions.builder()
.requireApproval(RequireApproval.NEVER)
.json(true)
.build())
.build())
.destroy(DestroyCommand.builder()
.args(DestroyOptions.builder()
.force(true)
.build())
.build())
.build())
.build();
| Enum Constant and Description |
|---|
ANYCHANGE
Prompt for approval for any type of change to the stack.
|
BROADENING
Only prompt for approval if there are security related changes.
|
NEVER
Never ask for approval.
|
| Modifier and Type | Method and Description |
|---|---|
static RequireApproval |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequireApproval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final RequireApproval NEVER
@Stability(value=Stable) public static final RequireApproval ANYCHANGE
@Stability(value=Stable) public static final RequireApproval BROADENING
public static RequireApproval[] values()
for (RequireApproval c : RequireApproval.values()) System.out.println(c);
public static RequireApproval valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.