enum RequireApproval
Language | Type name |
---|---|
![]() | Amazon.CDK.CloudAssembly.Schema.RequireApproval |
![]() | software.amazon.awscdk.cloudassembly.schema.RequireApproval |
![]() | aws_cdk.cloud_assembly_schema.RequireApproval |
![]() | @aws-cdk/cloud-assembly-schema » RequireApproval |
In what scenarios should the CLI ask for approval.
Example
const app = new App();
const stackUnderTest = new Stack(app, 'StackUnderTest', /* ... */);
const stack = new Stack(app, 'stack');
const testCase = new IntegTest(app, 'CustomizedDeploymentWorkflow', {
testCases: [stackUnderTest],
diffAssets: true,
stackUpdateWorkflow: true,
cdkCommandOptions: {
deploy: {
args: {
requireApproval: RequireApproval.NEVER,
json: true,
},
},
destroy: {
args: {
force: true,
},
},
},
});
Members
Name | Description |
---|---|
NEVER | Never ask for approval. |
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.
ANYCHANGE
Prompt for approval for any type of change to the stack.
BROADENING
Only prompt for approval if there are security related changes.