aws-cdk-lib.cloud_assembly_schema.RequireApproval

enum RequireApproval

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.RequireApproval
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema#RequireApproval
Javasoftware.amazon.awscdk.cloudassembly.schema.RequireApproval
Pythonaws_cdk.cloud_assembly_schema.RequireApproval
TypeScript (source)aws-cdk-lib » 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

NameDescription
NEVERNever ask for approval.
ANYCHANGEPrompt for approval for any type of change to the stack.
BROADENINGOnly 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.