Class: AWSCDK::CloudAssemblySchema::IntegManifest
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::IntegManifest
- Defined in:
- cloud_assembly_schema/integ_manifest.rb
Overview
Definitions for the integration testing manifest.
Instance Attribute Summary collapse
-
#enable_lookups ⇒ Boolean?
readonly
Enable lookups for this test.
-
#synth_context ⇒ Hash{String => String}?
readonly
Additional context to use when performing a synth.
-
#test_cases ⇒ Hash{String => AWSCDK::CloudAssemblySchema::TestCase}
readonly
test cases.
-
#version ⇒ String
readonly
Version of the manifest.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_cases:, version:, enable_lookups: nil, synth_context: nil) ⇒ IntegManifest
constructor
A new instance of IntegManifest.
- #to_jsii ⇒ Object
Constructor Details
#initialize(test_cases:, version:, enable_lookups: nil, synth_context: nil) ⇒ IntegManifest
Returns a new instance of IntegManifest.
11 12 13 14 15 16 17 18 19 20 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 11 def initialize(test_cases:, version:, enable_lookups: nil, synth_context: nil) @test_cases = test_cases.is_a?(Hash) ? test_cases.transform_values { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::TestCase.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : test_cases Jsii::Type.check_type(@test_cases, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmNsb3VkX2Fzc2VtYmx5X3NjaGVtYS5UZXN0Q2FzZSJ9LCJraW5kIjoibWFwIn19")), "testCases") @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") @enable_lookups = enable_lookups Jsii::Type.check_type(@enable_lookups, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableLookups") unless @enable_lookups.nil? @synth_context = synth_context Jsii::Type.check_type(@synth_context, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "synthContext") unless @synth_context.nil? end |
Instance Attribute Details
#enable_lookups ⇒ Boolean? (readonly)
Note:
Default: false
Enable lookups for this test.
If lookups are enabled
then stack_update_workflow must be set to false.
Lookups should only be enabled when you are explicitly testing
lookups.
39 40 41 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 39 def enable_lookups @enable_lookups end |
#synth_context ⇒ Hash{String => String}? (readonly)
Note:
Default: - no additional context
Additional context to use when performing a synth.
Any context provided here will override any default context
47 48 49 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 47 def synth_context @synth_context end |
#test_cases ⇒ Hash{String => AWSCDK::CloudAssemblySchema::TestCase} (readonly)
test cases.
25 26 27 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 25 def test_cases @test_cases end |
#version ⇒ String (readonly)
Version of the manifest.
29 30 31 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 29 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 49 def self.jsii_properties { :test_cases => "testCases", :version => "version", :enable_lookups => "enableLookups", :synth_context => "synthContext", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'cloud_assembly_schema/integ_manifest.rb', line 58 def to_jsii result = {} result.merge!({ "testCases" => @test_cases, "version" => @version, "enableLookups" => @enable_lookups, "synthContext" => @synth_context, }) result.compact end |