Class: Jets::Cfn::Resource::Nested::Api::Resources

Inherits:
Page show all
Defined in:
lib/jets/cfn/resource/nested/api/resources.rb

Instance Method Summary collapse

Methods inherited from Page

#initialize

Methods inherited from Base

#initialize, #outputs, #template_filename, #template_url

Methods inherited from Base

#attributes, #logical_id, #outputs, #permission, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type

Methods included from Util::Camelize

#camelize

Constructor Details

This class inherits a constructor from Jets::Cfn::Resource::Nested::Api::Page

Instance Method Details

#definitionObject

interface method



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/jets/cfn/resource/nested/api/resources.rb', line 4

def definition
  {
    "ApiResources#{@page_number}" =>  {
      Type: "AWS::CloudFormation::Stack",
      Properties: {
        TemplateURL: template_url,
        Parameters: parameters,
      }
    }
  }
end

#parametersObject



16
17
18
19
20
# File 'lib/jets/cfn/resource/nested/api/resources.rb', line 16

def parameters
  template_path = Jets::Names.api_resources_template_path(@page_number)
  api_resources = Jets::Cfn::Params::Api::Resources.new(template_path: template_path)
  api_resources.params
end