Class: Aws::EBS::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::EBS::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb
Overview
An API client for EBS. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::EBS::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
-
#complete_snapshot(params = {}) ⇒ Types::CompleteSnapshotResponse
Seals and completes the snapshot after all of the required blocks of data have been written to it.
-
#get_snapshot_block(params = {}) ⇒ Types::GetSnapshotBlockResponse
Returns the data in a block in an Amazon Elastic Block Store snapshot.
-
#list_changed_blocks(params = {}) ⇒ Types::ListChangedBlocksResponse
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
-
#list_snapshot_blocks(params = {}) ⇒ Types::ListSnapshotBlocksResponse
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
-
#put_snapshot_block(params = {}) ⇒ Types::PutSnapshotBlockResponse
Writes a block of data to a snapshot.
-
#start_snapshot(params = {}) ⇒ Types::StartSnapshotResponse
Creates a new Amazon EBS snapshot.
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.
444 445 446 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 444 def initialize(*args) super end |
Instance Method Details
#complete_snapshot(params = {}) ⇒ Types::CompleteSnapshotResponse
Seals and completes the snapshot after all of the required blocks of
data have been written to it. Completing the snapshot changes the
status to completed
. You cannot write new blocks to a snapshot after
it has been completed.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
512 513 514 515 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 512 def complete_snapshot(params = {}, = {}) req = build_request(:complete_snapshot, params) req.send_request() end |
#get_snapshot_block(params = {}) ⇒ Types::GetSnapshotBlockResponse
Returns the data in a block in an Amazon Elastic Block Store snapshot.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
580 581 582 583 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 580 def get_snapshot_block(params = {}, = {}, &block) req = build_request(:get_snapshot_block, params) req.send_request(, &block) end |
#list_changed_blocks(params = {}) ⇒ Types::ListChangedBlocksResponse
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
671 672 673 674 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 671 def list_changed_blocks(params = {}, = {}) req = build_request(:list_changed_blocks, params) req.send_request() end |
#list_snapshot_blocks(params = {}) ⇒ Types::ListSnapshotBlocksResponse
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
750 751 752 753 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 750 def list_snapshot_blocks(params = {}, = {}) req = build_request(:list_snapshot_blocks, params) req.send_request() end |
#put_snapshot_block(params = {}) ⇒ Types::PutSnapshotBlockResponse
Writes a block of data to a snapshot. If the specified block contains
data, the existing data is overwritten. The target snapshot must be in
the pending
state.
Data written to a snapshot must be aligned with 512-KiB sectors.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
853 854 855 856 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 853 def put_snapshot_block(params = {}, = {}) req = build_request(:put_snapshot_block, params) req.send_request() end |
#start_snapshot(params = {}) ⇒ Types::StartSnapshotResponse
Creates a new Amazon EBS snapshot. The new snapshot enters the
pending
state after the request completes.
After creating the snapshot, use PutSnapshotBlock to write blocks of data to the snapshot.
5xx
) error
responses, and ThrottlingException
and RequestThrottledException
client error responses. For more information see Error retries in
the Amazon Elastic Compute Cloud User Guide.
1038 1039 1040 1041 |
# File 'gems/aws-sdk-ebs/lib/aws-sdk-ebs/client.rb', line 1038 def start_snapshot(params = {}, = {}) req = build_request(:start_snapshot, params) req.send_request() end |