module Aws::Templates::Utils::Parametrized::Transformation::Dsl

Syntax sugar for transformations definition

It injects the methods as class-scope methods into mixing classes. The methods are factories to create particular type of transformation

Public Instance Methods

as_boolean() click to toggle source

Convert input into boolean

alias for AsBoolean class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 69
def as_boolean
  Parametrized::Transformation::AsBoolean.instance
end
as_chain(*components) click to toggle source

Chain a few transformations into a single one

alias for AsChain class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 21
def as_chain(*components)
  Parametrized::Transformation::AsChain.new(components)
end
as_hash(&blk) click to toggle source

Convert input into hash

alias for AsHash class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 77
def as_hash(&blk)
  Parametrized::Transformation::AsHash.new(self, &blk)
end
as_integer() click to toggle source

Convert input into integer

alias for AsInteger class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 53
def as_integer
  Parametrized::Transformation::AsInteger.instance
end
as_list(parameters = nil) click to toggle source

Transform the value into a list

alias for AsList class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 37
def as_list(parameters = nil)
  Parametrized::Transformation::AsList.new(self, parameters)
end
as_module() click to toggle source

Convert input into a class

alias for AsModule class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 85
def as_module
  Parametrized::Transformation::AsModule.instance
end
as_object(klass = nil, &definition) click to toggle source

Transform the value into an object

alias for AsObject class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 29
def as_object(klass = nil, &definition)
  Parametrized::Transformation::AsObject.new(self, klass, &definition)
end
as_rendered(render_type, params = nil, &params_block) click to toggle source

Transform value with the specified render

alias for AsRendered class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 45
def as_rendered(render_type, params = nil, &params_block)
  Parametrized::Transformation::AsRendered.new(render_type, params || params_block)
end
as_string() click to toggle source

Convert input into string

alias for AsString class

# File lib/aws/templates/utils/parametrized/transformation/dsl.rb, line 61
def as_string
  Parametrized::Transformation::AsString.instance
end