Exception: Aws::Templates::Exception::ParameterAlreadyExist

Inherits:
ParametrizedDSLError show all
Defined in:
lib/aws/templates/exception/parameter_already_exist.rb

Overview

Parameter already exists

If you’re trying to define a parameter in a parametrized artifact and this parameter either already defined for the class or defined in an ancestor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_parameter) ⇒ ParameterAlreadyExist

Returns a new instance of ParameterAlreadyExist.



16
17
18
19
20
21
22
# File 'lib/aws/templates/exception/parameter_already_exist.rb', line 16

def initialize(target_parameter)
  @parameter = target_parameter
  super(
    "Parameter #{target_parameter.name} already in " \
    "#{target_parameter.klass}."
  )
end

Instance Attribute Details

#parameterObject (readonly)

Parameter object of the conflicting parameter



14
15
16
# File 'lib/aws/templates/exception/parameter_already_exist.rb', line 14

def parameter
  @parameter
end