Class: AWSCDK::CloudAssemblySchema::CDKCommands
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::CDKCommands
- Defined in:
- cloud_assembly_schema/cdk_commands.rb
Overview
Options for specific cdk commands that are run as part of the integration test workflow.
Instance Attribute Summary collapse
-
#deploy ⇒ AWSCDK::CloudAssemblySchema::DeployCommand?
readonly
Options to for the cdk deploy command.
-
#destroy ⇒ AWSCDK::CloudAssemblySchema::DestroyCommand?
readonly
Options to for the cdk destroy command.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deploy: nil, destroy: nil) ⇒ CDKCommands
constructor
A new instance of CDKCommands.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deploy: nil, destroy: nil) ⇒ CDKCommands
Returns a new instance of CDKCommands.
9 10 11 12 13 14 |
# File 'cloud_assembly_schema/cdk_commands.rb', line 9 def initialize(deploy: nil, destroy: nil) @deploy = deploy.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::DeployCommand.new(**deploy.transform_keys(&:to_sym)) : deploy Jsii::Type.check_type(@deploy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZF9hc3NlbWJseV9zY2hlbWEuRGVwbG95Q29tbWFuZCJ9")), "deploy") unless @deploy.nil? @destroy = destroy.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::DestroyCommand.new(**destroy.transform_keys(&:to_sym)) : destroy Jsii::Type.check_type(@destroy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZF9hc3NlbWJseV9zY2hlbWEuRGVzdHJveUNvbW1hbmQifQ==")), "destroy") unless @destroy.nil? end |
Instance Attribute Details
#deploy ⇒ AWSCDK::CloudAssemblySchema::DeployCommand? (readonly)
Note:
Default: - default deploy options
Options to for the cdk deploy command.
20 21 22 |
# File 'cloud_assembly_schema/cdk_commands.rb', line 20 def deploy @deploy end |
#destroy ⇒ AWSCDK::CloudAssemblySchema::DestroyCommand? (readonly)
Note:
Default: - default destroy options
Options to for the cdk destroy command.
25 26 27 |
# File 'cloud_assembly_schema/cdk_commands.rb', line 25 def destroy @destroy end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'cloud_assembly_schema/cdk_commands.rb', line 27 def self.jsii_properties { :deploy => "deploy", :destroy => "destroy", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'cloud_assembly_schema/cdk_commands.rb', line 34 def to_jsii result = {} result.merge!({ "deploy" => @deploy, "destroy" => @destroy, }) result.compact end |