Class: Aws::S3::Plugins::ObjectLambdaEndpoint::Handler

Inherits:
Seahorse::Client::Handler show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



11
12
13
14
15
16
17
18
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb', line 11

def call(context)
  if context.config.regional_endpoint
    host = context.http_request.endpoint.host
    host = host.sub('s3.', 's3-object-lambda.')
    context.http_request.endpoint.host = host
  end
  @handler.call(context)
end