CdkCommand Struct
Represents a cdk command i.e. synth, deploy, & destroy.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const cdkCommand: cloud_assembly_schema.CdkCommand = {
enabled: false,
expectedMessage: 'expectedMessage',
expectError: false,
};
Properties
enabledoptionalbooleanenabledoptionalboolenabledoptionalBooleanEnabledoptionalboolEnabledoptional*bool= true#Whether or not to run this command as part of the workflow This can be used if you only want to test some of the workflow for example enable `synth` and disable `deploy` & `destroy` in order to limit the test to synthesis.
expectedMessageoptionalstringexpected_messageoptionalstrexpectedMessageoptionalStringExpectedMessageoptionalstringExpectedMessageoptional*string#This can be used in combination with `expectedError` to validate that a specific message is returned.
Default: do not validate message
expectErroroptionalbooleanexpect_erroroptionalboolexpectErroroptionalBooleanExpectErroroptionalboolExpectErroroptional*bool= false#If the runner should expect this command to fail.