Class: Aws::EC2::Plugins::CopyEncryptedSnapshot::Handler Private

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

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.

Instance Method Summary collapse

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.

[View source]

22
23
24
25
26
27
28
29
30
31
# File 'lib/aws-sdk-ec2/plugins/copy_encrypted_snapshot.rb', line 22

def call(context)
  params = context.params
  unless params[:source_region]
    raise ArgumentError,
          'Source region is required for copy_snapshot'
  end
  params[:destination_region] = context.config.region
  params[:presigned_url] = presigned_url(context, params)
  @handler.call(context)
end