/
CdkCommand.go
29 lines (26 loc) · 1.15 KB
/
CdkCommand.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package cloudassemblyschema
// Represents a cdk command i.e. `synth`, `deploy`, & `destroy`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cdkCommand := &CdkCommand{
// Enabled: jsii.Boolean(false),
// ExpectedMessage: jsii.String("expectedMessage"),
// ExpectError: jsii.Boolean(false),
// }
//
// Experimental.
type CdkCommand struct {
// 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.
// Experimental.
Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"`
// This can be used in combination with `expectedError` to validate that a specific message is returned.
// Experimental.
ExpectedMessage *string `field:"optional" json:"expectedMessage" yaml:"expectedMessage"`
// If the runner should expect this command to fail.
// Experimental.
ExpectError *bool `field:"optional" json:"expectError" yaml:"expectError"`
}