class Aws::Plugins::IdempotencyToken::Handler
@api private
Public Instance Methods
call(context)
click to toggle source
# File lib/aws-sdk-core/plugins/idempotency_token.rb, line 17 def call(context) auto_fill(context.params, context.operation.input) @handler.call(context) end
Private Instance Methods
auto_fill(params, ref)
click to toggle source
# File lib/aws-sdk-core/plugins/idempotency_token.rb, line 24 def auto_fill(params, ref) ref.shape.members.each do |name, member_ref| if member_ref['idempotencyToken'] params[name] ||= SecureRandom.uuid end end end