Sha256: 8cf0b86dd96b51904bcf6144cdd4b765cac7c87db5b12acde34f8248b82fad14
Contents?: true
Size: 803 Bytes
Versions: 36
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true module Aws module S3 module Plugins # WriteGetObjectResponse is called from Lambda after a data transform. # If there is no custom endpoint, we change the endpoint from s3 to # s3-object-lambda just for this operation. class ObjectLambdaEndpoint < Seahorse::Client::Plugin class Handler < Seahorse::Client::Handler 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 end handler(Handler, operations: [:write_get_object_response]) end end end end
Version data entries
36 entries across 36 versions & 1 rubygems