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

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

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object


11
12
13
14
15
16
17
18
# File '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