Class: Aws::ImportExport::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ImportExport::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb
Overview
An API client for ImportExport. To construct a client, you need to configure a :region and :credentials.
client = Aws::ImportExport::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#cancel_job(params = {}) ⇒ Types::CancelJobOutput
This operation cancels a specified job.
-
#create_job(params = {}) ⇒ Types::CreateJobOutput
This operation initiates the process of scheduling an upload or download of your data.
-
#get_shipping_label(params = {}) ⇒ Types::GetShippingLabelOutput
This operation generates a pre-paid UPS shipping label that you will use to ship your device to AWS for processing.
-
#get_status(params = {}) ⇒ Types::GetStatusOutput
This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job.
-
#list_jobs(params = {}) ⇒ Types::ListJobsOutput
This operation returns the jobs associated with the requester.
-
#update_job(params = {}) ⇒ Types::UpdateJobOutput
You use this operation to change the parameters specified in the original manifest file by supplying a new manifest file.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#cancel_job(params = {}) ⇒ Types::CancelJobOutput
This operation cancels a specified job. Only the job owner can cancel it. The operation fails if the job has already started or is complete.
505 506 507 508 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 505 def cancel_job(params = {}, = {}) req = build_request(:cancel_job, params) req.send_request() end |
#create_job(params = {}) ⇒ Types::CreateJobOutput
This operation initiates the process of scheduling an upload or download of your data. You include in the request a manifest that describes the data transfer specifics. The response to the request includes a job ID, which you can use in other operations, a signature that you use to identify your storage device, and the address where you should ship your storage device.
565 566 567 568 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 565 def create_job(params = {}, = {}) req = build_request(:create_job, params) req.send_request() end |
#get_shipping_label(params = {}) ⇒ Types::GetShippingLabelOutput
This operation generates a pre-paid UPS shipping label that you will use to ship your device to AWS for processing.
643 644 645 646 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 643 def get_shipping_label(params = {}, = {}) req = build_request(:get_shipping_label, params) req.send_request() end |
#get_status(params = {}) ⇒ Types::GetStatusOutput
This operation returns information about a job, including where the job is in the processing pipeline, the status of the results, and the signature value associated with the job. You can only return information about jobs you own.
708 709 710 711 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 708 def get_status(params = {}, = {}) req = build_request(:get_status, params) req.send_request() end |
#list_jobs(params = {}) ⇒ Types::ListJobsOutput
This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return Test2 followed by Test1.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
759 760 761 762 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 759 def list_jobs(params = {}, = {}) req = build_request(:list_jobs, params) req.send_request() end |
#update_job(params = {}) ⇒ Types::UpdateJobOutput
You use this operation to change the parameters specified in the original manifest file by supplying a new manifest file. The manifest file attached to this request replaces the original manifest file. You can only use the operation after a CreateJob request but before the data transfer starts and you can only use it on jobs you own.
812 813 814 815 |
# File 'gems/aws-sdk-importexport/lib/aws-sdk-importexport/client.rb', line 812 def update_job(params = {}, = {}) req = build_request(:update_job, params) req.send_request() end |