RequireApproval

class aws_cdk.cloud_assembly_schema.RequireApproval(value)

Bases: enum.Enum

In what scenarios should the CLI ask for approval.

ExampleMetadata

infused

Example:

app = App()

stack_under_test = Stack(app, "StackUnderTest")

stack = Stack(app, "stack")

test_case = IntegTest(app, "CustomizedDeploymentWorkflow",
    test_cases=[stack_under_test],
    diff_assets=True,
    stack_update_workflow=True,
    cdk_command_options=CdkCommands(
        deploy=DeployCommand(
            args=DeployOptions(
                require_approval=RequireApproval.NEVER,
                json=True
            )
        ),
        destroy=DestroyCommand(
            args=DestroyOptions(
                force=True
            )
        )
    )
)

Attributes

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.