Class: Jets::Resource::ChildStack::ApiGateway

Inherits:
Base
  • Object
show all
Defined in:
lib/jets/resource/child_stack/api_gateway.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #outputs, #template_url

Methods inherited from Base

#replacements, #resource

Constructor Details

This class inherits a constructor from Jets::Resource::ChildStack::Base

Instance Method Details

#definitionObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/jets/resource/child_stack/api_gateway.rb', line 8

def definition
  {
    api_gateway: {
      type: "AWS::CloudFormation::Stack",
      properties: {
        template_url: template_url,
      }
    }
  }
end

#template_filenameObject



19
20
21
# File 'lib/jets/resource/child_stack/api_gateway.rb', line 19

def template_filename
  "#{Jets.config.project_namespace}-api-gateway.yml"
end