Class: AWSCDK::CloudFormationInclude::IncludedNestedStack
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFormationInclude::IncludedNestedStack
- Defined in:
- cloud_formation_include/included_nested_stack.rb
Overview
The type returned from CfnInclude.getNestedStack. Contains both the NestedStack object and CfnInclude representations of the child stack.
Instance Attribute Summary collapse
-
#included_template ⇒ AWSCDK::CloudFormationInclude::CfnInclude
readonly
The CfnInclude that represents the template, which can be used to access Resources and other template elements.
-
#stack ⇒ AWSCDK::NestedStack
readonly
The NestedStack object which represents the scope of the template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(included_template:, stack:) ⇒ IncludedNestedStack
constructor
A new instance of IncludedNestedStack.
- #to_jsii ⇒ Object
Constructor Details
#initialize(included_template:, stack:) ⇒ IncludedNestedStack
Returns a new instance of IncludedNestedStack.
9 10 11 12 13 14 |
# File 'cloud_formation_include/included_nested_stack.rb', line 9 def initialize(included_template:, stack:) @included_template = included_template Jsii::Type.check_type(@included_template, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZGZvcm1hdGlvbl9pbmNsdWRlLkNmbkluY2x1ZGUifQ==")), "includedTemplate") @stack = stack Jsii::Type.check_type(@stack, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5OZXN0ZWRTdGFjayJ9")), "stack") end |
Instance Attribute Details
#included_template ⇒ AWSCDK::CloudFormationInclude::CfnInclude (readonly)
The CfnInclude that represents the template, which can be used to access Resources and other template elements.
19 20 21 |
# File 'cloud_formation_include/included_nested_stack.rb', line 19 def included_template @included_template end |
#stack ⇒ AWSCDK::NestedStack (readonly)
The NestedStack object which represents the scope of the template.
23 24 25 |
# File 'cloud_formation_include/included_nested_stack.rb', line 23 def stack @stack end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'cloud_formation_include/included_nested_stack.rb', line 25 def self.jsii_properties { :included_template => "includedTemplate", :stack => "stack", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'cloud_formation_include/included_nested_stack.rb', line 32 def to_jsii result = {} result.merge!({ "includedTemplate" => @included_template, "stack" => @stack, }) result.compact end |