CdkCommands
- class aws_cdk.cloud_assembly_schema.CdkCommands(*, deploy=None, destroy=None)
Bases:
object
Options for specific cdk commands that are run as part of the integration test workflow.
- Parameters:
deploy (
Union
[DeployCommand
,Dict
[str
,Any
],None
]) – Options to for the cdk deploy command. Default: - default deploy optionsdestroy (
Union
[DestroyCommand
,Dict
[str
,Any
],None
]) – Options to for the cdk destroy command. Default: - default destroy options
- 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
- deploy
Options to for the cdk deploy command.
- Default:
default deploy options
- destroy
Options to for the cdk destroy command.
- Default:
default destroy options