Class: AWSCDK::CloudAssemblySchema::DestroyOptions
- Inherits:
-
DefaultCDKOptions
- Object
- DefaultCDKOptions
- AWSCDK::CloudAssemblySchema::DestroyOptions
- Defined in:
- cloud_assembly_schema/destroy_options.rb
Overview
Options to use with cdk destroy.
Instance Attribute Summary collapse
-
#all ⇒ Boolean?
readonly
Deploy all stacks.
-
#app ⇒ String?
readonly
command-line for executing your app or a cloud assembly directory e.g.
-
#asset_metadata ⇒ Boolean?
readonly
Include "aws:asset:*" CloudFormation metadata for resources that use assets.
-
#ca_bundle_path ⇒ String?
readonly
Path to CA certificate to use when validating HTTPS requests.
-
#color ⇒ Boolean?
readonly
Show colors and other style from console output.
-
#context ⇒ Hash{String => String}?
readonly
Additional context.
-
#debug ⇒ Boolean?
readonly
enable emission of additional debugging information, such as creation stack traces of tokens.
-
#ec2_creds ⇒ Boolean?
readonly
Force trying to fetch EC2 instance credentials.
-
#exclusively ⇒ Boolean?
readonly
Only destroy the given stack.
-
#force ⇒ Boolean?
readonly
Do not ask for permission before destroying stacks.
-
#ignore_errors ⇒ Boolean?
readonly
Ignores synthesis errors, which will likely produce an invalid output.
-
#json ⇒ Boolean?
readonly
Use JSON output instead of YAML when templates are printed to STDOUT.
-
#lookups ⇒ Boolean?
readonly
Perform context lookups.
-
#notices ⇒ Boolean?
readonly
Show relevant notices.
-
#output ⇒ String?
readonly
Emits the synthesized cloud assembly into a directory.
-
#path_metadata ⇒ Boolean?
readonly
Include "aws:cdk:path" CloudFormation metadata for each resource.
-
#profile ⇒ String?
readonly
Use the indicated AWS profile as the default environment.
-
#proxy ⇒ String?
readonly
Use the indicated proxy.
-
#role_arn ⇒ String?
readonly
Role to pass to CloudFormation for deployment.
-
#stacks ⇒ Array<String>?
readonly
List of stacks to deploy.
-
#staging ⇒ Boolean?
readonly
Copy assets to the output directory.
-
#strict ⇒ Boolean?
readonly
Do not construct stacks with warnings.
-
#trace ⇒ Boolean?
readonly
Print trace for stack warnings.
-
#verbose ⇒ Boolean?
readonly
show debug logs.
-
#version_reporting ⇒ Boolean?
readonly
Include "AWS::CDK::Metadata" resource in synthesized templates.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(all: nil, app: nil, asset_metadata: nil, ca_bundle_path: nil, color: nil, context: nil, debug: nil, ec2_creds: nil, ignore_errors: nil, json: nil, lookups: nil, notices: nil, output: nil, path_metadata: nil, profile: nil, proxy: nil, role_arn: nil, stacks: nil, staging: nil, strict: nil, trace: nil, verbose: nil, version_reporting: nil, exclusively: nil, force: nil) ⇒ DestroyOptions
constructor
A new instance of DestroyOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(all: nil, app: nil, asset_metadata: nil, ca_bundle_path: nil, color: nil, context: nil, debug: nil, ec2_creds: nil, ignore_errors: nil, json: nil, lookups: nil, notices: nil, output: nil, path_metadata: nil, profile: nil, proxy: nil, role_arn: nil, stacks: nil, staging: nil, strict: nil, trace: nil, verbose: nil, version_reporting: nil, exclusively: nil, force: nil) ⇒ DestroyOptions
Returns a new instance of DestroyOptions.
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 |
# File 'cloud_assembly_schema/destroy_options.rb', line 32 def initialize(all: nil, app: nil, asset_metadata: nil, ca_bundle_path: nil, color: nil, context: nil, debug: nil, ec2_creds: nil, ignore_errors: nil, json: nil, lookups: nil, notices: nil, output: nil, path_metadata: nil, profile: nil, proxy: nil, role_arn: nil, stacks: nil, staging: nil, strict: nil, trace: nil, verbose: nil, version_reporting: nil, exclusively: nil, force: nil) @all = all Jsii::Type.check_type(@all, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "all") unless @all.nil? @app = app Jsii::Type.check_type(@app, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "app") unless @app.nil? @asset_metadata = Jsii::Type.check_type(@asset_metadata, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "assetMetadata") unless @asset_metadata.nil? @ca_bundle_path = ca_bundle_path Jsii::Type.check_type(@ca_bundle_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "caBundlePath") unless @ca_bundle_path.nil? @color = color Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "color") unless @color.nil? @context = context Jsii::Type.check_type(@context, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "context") unless @context.nil? @debug = debug Jsii::Type.check_type(@debug, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "debug") unless @debug.nil? @ec2_creds = ec2_creds Jsii::Type.check_type(@ec2_creds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "ec2Creds") unless @ec2_creds.nil? @ignore_errors = ignore_errors Jsii::Type.check_type(@ignore_errors, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "ignoreErrors") unless @ignore_errors.nil? @json = json Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "json") unless @json.nil? @lookups = lookups Jsii::Type.check_type(@lookups, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "lookups") unless @lookups.nil? @notices = notices Jsii::Type.check_type(@notices, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "notices") unless @notices.nil? @output = output Jsii::Type.check_type(@output, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "output") unless @output.nil? @path_metadata = Jsii::Type.check_type(@path_metadata, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "pathMetadata") unless @path_metadata.nil? @profile = profile Jsii::Type.check_type(@profile, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profile") unless @profile.nil? @proxy = proxy Jsii::Type.check_type(@proxy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "proxy") unless @proxy.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @stacks = stacks Jsii::Type.check_type(@stacks, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stacks") unless @stacks.nil? @staging = staging Jsii::Type.check_type(@staging, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "staging") unless @staging.nil? @strict = strict Jsii::Type.check_type(@strict, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "strict") unless @strict.nil? @trace = trace Jsii::Type.check_type(@trace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "trace") unless @trace.nil? @verbose = verbose Jsii::Type.check_type(@verbose, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "verbose") unless @verbose.nil? @version_reporting = version_reporting Jsii::Type.check_type(@version_reporting, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "versionReporting") unless @version_reporting.nil? @exclusively = exclusively Jsii::Type.check_type(@exclusively, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "exclusively") unless @exclusively.nil? @force = force Jsii::Type.check_type(@force, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "force") unless @force.nil? end |
Instance Attribute Details
#all ⇒ Boolean? (readonly)
Default: - false
Deploy all stacks.
Requried if stacks is not set
91 92 93 |
# File 'cloud_assembly_schema/destroy_options.rb', line 91 def all @all end |
#app ⇒ String? (readonly)
Default: - read from cdk.json
command-line for executing your app or a cloud assembly directory e.g. "node bin/my-app.js" or "cdk.out".
96 97 98 |
# File 'cloud_assembly_schema/destroy_options.rb', line 96 def app @app end |
#asset_metadata ⇒ Boolean? (readonly)
Default: true
Include "aws:asset:*" CloudFormation metadata for resources that use assets.
101 102 103 |
# File 'cloud_assembly_schema/destroy_options.rb', line 101 def @asset_metadata end |
#ca_bundle_path ⇒ String? (readonly)
Default: - read from AWS_CA_BUNDLE environment variable
Path to CA certificate to use when validating HTTPS requests.
106 107 108 |
# File 'cloud_assembly_schema/destroy_options.rb', line 106 def ca_bundle_path @ca_bundle_path end |
#color ⇒ Boolean? (readonly)
Default: true
Show colors and other style from console output.
111 112 113 |
# File 'cloud_assembly_schema/destroy_options.rb', line 111 def color @color end |
#context ⇒ Hash{String => String}? (readonly)
Default: - no additional context
Additional context.
116 117 118 |
# File 'cloud_assembly_schema/destroy_options.rb', line 116 def context @context end |
#debug ⇒ Boolean? (readonly)
Default: false
enable emission of additional debugging information, such as creation stack traces of tokens.
121 122 123 |
# File 'cloud_assembly_schema/destroy_options.rb', line 121 def debug @debug end |
#ec2_creds ⇒ Boolean? (readonly)
Default: - guess EC2 instance status
Force trying to fetch EC2 instance credentials.
126 127 128 |
# File 'cloud_assembly_schema/destroy_options.rb', line 126 def ec2_creds @ec2_creds end |
#exclusively ⇒ Boolean? (readonly)
Default: false
Only destroy the given stack.
216 217 218 |
# File 'cloud_assembly_schema/destroy_options.rb', line 216 def exclusively @exclusively end |
#force ⇒ Boolean? (readonly)
Default: false
Do not ask for permission before destroying stacks.
221 222 223 |
# File 'cloud_assembly_schema/destroy_options.rb', line 221 def force @force end |
#ignore_errors ⇒ Boolean? (readonly)
Default: false
Ignores synthesis errors, which will likely produce an invalid output.
131 132 133 |
# File 'cloud_assembly_schema/destroy_options.rb', line 131 def ignore_errors @ignore_errors end |
#json ⇒ Boolean? (readonly)
Default: false
Use JSON output instead of YAML when templates are printed to STDOUT.
136 137 138 |
# File 'cloud_assembly_schema/destroy_options.rb', line 136 def json @json end |
#lookups ⇒ Boolean? (readonly)
Default: true
Perform context lookups.
Synthesis fails if this is disabled and context lookups need to be performed
144 145 146 |
# File 'cloud_assembly_schema/destroy_options.rb', line 144 def lookups @lookups end |
#notices ⇒ Boolean? (readonly)
Default: true
Show relevant notices.
149 150 151 |
# File 'cloud_assembly_schema/destroy_options.rb', line 149 def notices @notices end |
#output ⇒ String? (readonly)
Default: cdk.out
Emits the synthesized cloud assembly into a directory.
154 155 156 |
# File 'cloud_assembly_schema/destroy_options.rb', line 154 def output @output end |
#path_metadata ⇒ Boolean? (readonly)
Default: true
Include "aws:cdk:path" CloudFormation metadata for each resource.
159 160 161 |
# File 'cloud_assembly_schema/destroy_options.rb', line 159 def @path_metadata end |
#profile ⇒ String? (readonly)
Default: - no profile is used
Use the indicated AWS profile as the default environment.
164 165 166 |
# File 'cloud_assembly_schema/destroy_options.rb', line 164 def profile @profile end |
#proxy ⇒ String? (readonly)
Default: - no proxy
Use the indicated proxy.
Will read from HTTPS_PROXY environment if specified
172 173 174 |
# File 'cloud_assembly_schema/destroy_options.rb', line 172 def proxy @proxy end |
#role_arn ⇒ String? (readonly)
Default: - use the bootstrap cfn-exec role
Role to pass to CloudFormation for deployment.
177 178 179 |
# File 'cloud_assembly_schema/destroy_options.rb', line 177 def role_arn @role_arn end |
#stacks ⇒ Array<String>? (readonly)
Default: - []
List of stacks to deploy.
Requried if all is not set
184 185 186 |
# File 'cloud_assembly_schema/destroy_options.rb', line 184 def stacks @stacks end |
#staging ⇒ Boolean? (readonly)
Default: false
Copy assets to the output directory.
Needed for local debugging the source files with SAM CLI
191 192 193 |
# File 'cloud_assembly_schema/destroy_options.rb', line 191 def staging @staging end |
#strict ⇒ Boolean? (readonly)
Default: false
Do not construct stacks with warnings.
196 197 198 |
# File 'cloud_assembly_schema/destroy_options.rb', line 196 def strict @strict end |
#trace ⇒ Boolean? (readonly)
Default: false
Print trace for stack warnings.
201 202 203 |
# File 'cloud_assembly_schema/destroy_options.rb', line 201 def trace @trace end |
#verbose ⇒ Boolean? (readonly)
Default: false
show debug logs.
206 207 208 |
# File 'cloud_assembly_schema/destroy_options.rb', line 206 def verbose @verbose end |
#version_reporting ⇒ Boolean? (readonly)
Default: true
Include "AWS::CDK::Metadata" resource in synthesized templates.
211 212 213 |
# File 'cloud_assembly_schema/destroy_options.rb', line 211 def version_reporting @version_reporting end |
Class Method Details
.jsii_properties ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'cloud_assembly_schema/destroy_options.rb', line 223 def self.jsii_properties { :all => "all", :app => "app", :asset_metadata => "assetMetadata", :ca_bundle_path => "caBundlePath", :color => "color", :context => "context", :debug => "debug", :ec2_creds => "ec2Creds", :ignore_errors => "ignoreErrors", :json => "json", :lookups => "lookups", :notices => "notices", :output => "output", :path_metadata => "pathMetadata", :profile => "profile", :proxy => "proxy", :role_arn => "roleArn", :stacks => "stacks", :staging => "staging", :strict => "strict", :trace => "trace", :verbose => "verbose", :version_reporting => "versionReporting", :exclusively => "exclusively", :force => "force", } end |
Instance Method Details
#to_jsii ⇒ Object
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'cloud_assembly_schema/destroy_options.rb', line 253 def to_jsii result = {} result.merge!(super) result.merge!({ "all" => @all, "app" => @app, "assetMetadata" => @asset_metadata, "caBundlePath" => @ca_bundle_path, "color" => @color, "context" => @context, "debug" => @debug, "ec2Creds" => @ec2_creds, "ignoreErrors" => @ignore_errors, "json" => @json, "lookups" => @lookups, "notices" => @notices, "output" => @output, "pathMetadata" => @path_metadata, "profile" => @profile, "proxy" => @proxy, "roleArn" => @role_arn, "stacks" => @stacks, "staging" => @staging, "strict" => @strict, "trace" => @trace, "verbose" => @verbose, "versionReporting" => @version_reporting, "exclusively" => @exclusively, "force" => @force, }) result.compact end |