/
DestroyOptions.go
124 lines (121 loc) · 4.52 KB
/
DestroyOptions.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package cloudassemblyschema
// Options to use with cdk destroy.
//
// 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 DestroyOptions struct {
// Deploy all stacks.
//
// Requried if `stacks` is not set.
// Experimental.
All *bool `field:"optional" json:"all" yaml:"all"`
// command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or "cdk.out".
// Experimental.
App *string `field:"optional" json:"app" yaml:"app"`
// Include "aws:asset:*" CloudFormation metadata for resources that use assets.
// Experimental.
AssetMetadata *bool `field:"optional" json:"assetMetadata" yaml:"assetMetadata"`
// Path to CA certificate to use when validating HTTPS requests.
// Experimental.
CaBundlePath *string `field:"optional" json:"caBundlePath" yaml:"caBundlePath"`
// Show colors and other style from console output.
// Experimental.
Color *bool `field:"optional" json:"color" yaml:"color"`
// Additional context.
// Experimental.
Context *map[string]*string `field:"optional" json:"context" yaml:"context"`
// enable emission of additional debugging information, such as creation stack traces of tokens.
// Experimental.
Debug *bool `field:"optional" json:"debug" yaml:"debug"`
// Force trying to fetch EC2 instance credentials.
// Experimental.
Ec2Creds *bool `field:"optional" json:"ec2Creds" yaml:"ec2Creds"`
// Ignores synthesis errors, which will likely produce an invalid output.
// Experimental.
IgnoreErrors *bool `field:"optional" json:"ignoreErrors" yaml:"ignoreErrors"`
// Use JSON output instead of YAML when templates are printed to STDOUT.
// Experimental.
Json *bool `field:"optional" json:"json" yaml:"json"`
// Perform context lookups.
//
// Synthesis fails if this is disabled and context lookups need
// to be performed.
// Experimental.
Lookups *bool `field:"optional" json:"lookups" yaml:"lookups"`
// Show relevant notices.
// Experimental.
Notices *bool `field:"optional" json:"notices" yaml:"notices"`
// Emits the synthesized cloud assembly into a directory.
// Experimental.
Output *string `field:"optional" json:"output" yaml:"output"`
// Include "aws:cdk:path" CloudFormation metadata for each resource.
// Experimental.
PathMetadata *bool `field:"optional" json:"pathMetadata" yaml:"pathMetadata"`
// Use the indicated AWS profile as the default environment.
// Experimental.
Profile *string `field:"optional" json:"profile" yaml:"profile"`
// Use the indicated proxy.
//
// Will read from
// HTTPS_PROXY environment if specified.
// Experimental.
Proxy *string `field:"optional" json:"proxy" yaml:"proxy"`
// Role to pass to CloudFormation for deployment.
// Experimental.
RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
// List of stacks to deploy.
//
// Requried if `all` is not set.
// Experimental.
Stacks *[]*string `field:"optional" json:"stacks" yaml:"stacks"`
// Copy assets to the output directory.
//
// Needed for local debugging the source files with SAM CLI.
// Experimental.
Staging *bool `field:"optional" json:"staging" yaml:"staging"`
// Do not construct stacks with warnings.
// Experimental.
Strict *bool `field:"optional" json:"strict" yaml:"strict"`
// Print trace for stack warnings.
// Experimental.
Trace *bool `field:"optional" json:"trace" yaml:"trace"`
// show debug logs.
// Experimental.
Verbose *bool `field:"optional" json:"verbose" yaml:"verbose"`
// Include "AWS::CDK::Metadata" resource in synthesized templates.
// Experimental.
VersionReporting *bool `field:"optional" json:"versionReporting" yaml:"versionReporting"`
// Only destroy the given stack.
// Experimental.
Exclusively *bool `field:"optional" json:"exclusively" yaml:"exclusively"`
// Do not ask for permission before destroying stacks.
// Experimental.
Force *bool `field:"optional" json:"force" yaml:"force"`
}