/
DeployCommand.go
49 lines (46 loc) · 1.71 KB
/
DeployCommand.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package cloudassemblyschema
// Represents a cdk deploy command.
//
// Example:
// app := awscdk.NewApp()
//
// stackUnderTest := awscdk.NewStack(app, jsii.String("StackUnderTest"))
//
// stack := awscdk.NewStack(app, jsii.String("stack"))
//
// testCase := awscdk.NewIntegTest(app, jsii.String("CustomizedDeploymentWorkflow"), &IntegTestProps{
// TestCases: []stack{
// stackUnderTest,
// },
// DiffAssets: jsii.Boolean(true),
// StackUpdateWorkflow: jsii.Boolean(true),
// CdkCommandOptions: &CdkCommands{
// Deploy: &DeployCommand{
// Args: &DeployOptions{
// RequireApproval: awscdk.RequireApproval_NEVER,
// Json: jsii.Boolean(true),
// },
// },
// Destroy: &DestroyCommand{
// Args: &DestroyOptions{
// Force: jsii.Boolean(true),
// },
// },
// },
// })
//
// Experimental.
type DeployCommand 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"`
// Additional arguments to pass to the command This can be used to test specific CLI functionality.
// Experimental.
Args *DeployOptions `field:"optional" json:"args" yaml:"args"`
}