Class: Aws::Plugins::EC2CopyEncryptedSnapshot::PresignHandler Private

Inherits:
Seahorse::Client::Handler show all
Defined in:
lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This handler intentionally does NOT call the next handler in the stack. It generates a presigned url from the request and returns it as the response data.

Before signing:

  • The HTTP method is changed from POST to GET

  • The url-encoded body is moved to the querystring

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



54
55
56
57
58
59
# File 'lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb', line 54

def call(context)
  convert_post_2_get(context)
  Seahorse::Client::Response.new(
    context: context,
    data: presigned_url(context.http_request, context.config))
end