Method: CloudShaped::CoreMethods#parameter

Defined in:
lib/cloud_shaped/core_methods.rb

#parameter(options = {}) ⇒ Object

Returns a CloudFormation Parameter declaration.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :type (String) — default: "String"

    the parameter type

  • :description (String)

    parameter description

  • :default (String)

    a default value



36
37
38
39
40
41
# File 'lib/cloud_shaped/core_methods.rb', line 36

def parameter(options = {})
  defaults = {
    "Type" => "String"
  }
  defaults.merge(options.camelate_keys)
end