Sha256: 37ccfbf3c2804e726ebc261dab93645f0b14994a6849076afbbf2b333f43eeab
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
module Aws module Plugins class S3ControlDns < Seahorse::Client::Plugin def add_handlers(handlers, config) handlers.add(Handler, step: :build, priority: 1) end class Handler < Seahorse::Client::Handler def call(context) move_account_id_to_subdomain(context) @handler.call(context) end private def move_account_id_to_subdomain(context) account_id = context.params[:account_id] endpoint = context.http_request.endpoint endpoint.host = "#{account_id}.#{endpoint.host}" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems