Sha256: 6d9b07ed3b2a9710f4f5f70b83f7b344301cfc7fbc82c0c303b26e16eb580b23

Contents?: true

Size: 899 Bytes

Versions: 15

Compression:

Stored size: 899 Bytes

Contents

module Jets::Cfn::Resource::Nested::Api
  # interface method
  class Methods < Page
    def definition
      {
        "ApiMethods#{@page_number}" =>  {
          Type: "AWS::CloudFormation::Stack",
          Properties: {
            TemplateURL: template_url,
            Parameters: parameters,
          },
        }
      }
    end

    # Read current paged ApiMethods1 template and see what parameters it needs.
    # Then add them to the params hash from Controller Lambda functions outputs
    # Example:
    #
    # api-methods-1.yml:
    #
    #   params["PostsControllerIndexLambdaFunction"] = "!GetAtt UpController.Outputs.PostsControllerIndexLambdaFunction"
    #
    def parameters
      template_path = Jets::Names.api_methods_template_path(@page_number)
      api_methods = Jets::Cfn::Params::Api::Methods.new(template_path: template_path)
      api_methods.params
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.12 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.11 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.10 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.9 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.8 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.7 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.6 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.5 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.4 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.3 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.2 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.1 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.0 lib/jets/cfn/resource/nested/api/methods.rb
jets-5.0.0.beta1 lib/jets/cfn/resource/nested/api/methods.rb