Class: AWSCDK::CloudFormationInclude::IncludedNestedStack

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(included_template:, stack:) ⇒ IncludedNestedStack

Returns a new instance of IncludedNestedStack.

Parameters:



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_templateAWSCDK::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

#stackAWSCDK::NestedStack (readonly)

The NestedStack object which represents the scope of the template.

Returns:



23
24
25
# File 'cloud_formation_include/included_nested_stack.rb', line 23

def stack
  @stack
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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