class Aws::Plugins::DynamoDBSimpleAttributes::Handler

Public Instance Methods

call(context) click to toggle source
# File lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb, line 110
def call(context)
  context.params = translate_input(context)
  @handler.call(context).on(200) do |response|
    response.data = translate_output(response)
  end
end

Private Instance Methods

translate_input(context) click to toggle source
# File lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb, line 119
def translate_input(context)
  if shape = context.operation.input
    ValueTranslator.new(shape, :marshal).apply(context.params)
  else
    context.params
  end
end
translate_output(response) click to toggle source
# File lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb, line 127
def translate_output(response)
  if shape = response.context.operation.output
    ValueTranslator.new(shape, :unmarshal).apply(response.data)
  else
    response.data
  end
end