Class: Aws::Plugins::EC2CopyEncryptedSnapshot::PresignHandler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::Plugins::EC2CopyEncryptedSnapshot::PresignHandler
- 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
Instance Method Summary collapse
- #call(context) ⇒ Object private
Methods inherited from Seahorse::Client::Handler
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.
53 54 55 56 57 58 |
# File 'lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb', line 53 def call(context) convert_post_2_get(context) Seahorse::Client::Response.new( context: context, data: presigned_url(context.http_request, context.config)) end |