Class: Jets::Cfn::Resource::Nested::OneController
- Defined in:
- lib/jets/cfn/resource/nested/one_controller.rb
Instance Method Summary collapse
- #authorizer_output(desc) ⇒ Object
- #controller_params ⇒ Object
-
#definition ⇒ Object
interface method.
- #outputs ⇒ Object
- #parameters ⇒ Object
-
#template_filename ⇒ Object
override.
Methods inherited from Base
Methods inherited from Base
#attributes, #logical_id, #permission, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type
Methods included from Util::Camelize
Constructor Details
This class inherits a constructor from Jets::Cfn::Resource::Nested::Base
Instance Method Details
#authorizer_output(desc) ⇒ Object
38 39 40 41 42 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 38 def (desc) , = desc.split('.') # IE: MainAuthorizer.Outputs.ProtectAuthorizer "#{}.Outputs.#{}" end |
#controller_params ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 28 def controller_params if Jets::Router.no_routes? {} else { RestApi: "!GetAtt ApiGateway.Outputs.RestApi", } end end |
#definition ⇒ Object
interface method
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 4 def definition defintion = { JetsController: { Type: "AWS::CloudFormation::Stack", Properties: { TemplateURL: template_url, Parameters: parameters, } } } defintion end |
#outputs ⇒ Object
44 45 46 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 44 def outputs {} end |
#parameters ⇒ Object
22 23 24 25 26 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 22 def parameters params = Jets::Cfn::Params::Common.parameters params.merge!(controller_params) params end |
#template_filename ⇒ Object
override
18 19 20 |
# File 'lib/jets/cfn/resource/nested/one_controller.rb', line 18 def template_filename "jets-controller.yml" end |