Class: Aws::QLDB::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::QLDB::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-qldb/client.rb
Overview
An API client for QLDB. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::QLDB::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#cancel_journal_kinesis_stream(params = {}) ⇒ Types::CancelJournalKinesisStreamResponse
Ends a given Amazon QLDB journal stream.
-
#create_ledger(params = {}) ⇒ Types::CreateLedgerResponse
Creates a new ledger in your Amazon Web Services account in the current Region.
-
#delete_ledger(params = {}) ⇒ Struct
Deletes a ledger and all of its contents.
-
#describe_journal_kinesis_stream(params = {}) ⇒ Types::DescribeJournalKinesisStreamResponse
Returns detailed information about a given Amazon QLDB journal stream.
-
#describe_journal_s3_export(params = {}) ⇒ Types::DescribeJournalS3ExportResponse
Returns information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.
-
#describe_ledger(params = {}) ⇒ Types::DescribeLedgerResponse
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
-
#export_journal_to_s3(params = {}) ⇒ Types::ExportJournalToS3Response
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket.
-
#get_block(params = {}) ⇒ Types::GetBlockResponse
Returns a block object at a specified address in a journal.
-
#get_digest(params = {}) ⇒ Types::GetDigestResponse
Returns the digest of a ledger at the latest committed block in the journal.
-
#get_revision(params = {}) ⇒ Types::GetRevisionResponse
Returns a revision data object for a specified document ID and block address.
-
#list_journal_kinesis_streams_for_ledger(params = {}) ⇒ Types::ListJournalKinesisStreamsForLedgerResponse
Returns all Amazon QLDB journal streams for a given ledger.
-
#list_journal_s3_exports(params = {}) ⇒ Types::ListJournalS3ExportsResponse
Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services account and Region.
-
#list_journal_s3_exports_for_ledger(params = {}) ⇒ Types::ListJournalS3ExportsForLedgerResponse
Returns all journal export jobs for a specified ledger.
-
#list_ledgers(params = {}) ⇒ Types::ListLedgersResponse
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns all tags for a specified Amazon QLDB resource.
-
#stream_journal_to_kinesis(params = {}) ⇒ Types::StreamJournalToKinesisResponse
Creates a journal stream for a given Amazon QLDB ledger.
-
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to a specified Amazon QLDB resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from a specified Amazon QLDB resource.
-
#update_ledger(params = {}) ⇒ Types::UpdateLedgerResponse
Updates properties on a ledger.
-
#update_ledger_permissions_mode(params = {}) ⇒ Types::UpdateLedgerPermissionsModeResponse
Updates the permissions mode of a ledger.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
467 468 469 |
# File 'lib/aws-sdk-qldb/client.rb', line 467 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
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.
1764 1765 1766 |
# File 'lib/aws-sdk-qldb/client.rb', line 1764 def identifier @identifier end |
Class Method Details
.errors_module ⇒ 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.
1767 1768 1769 |
# File 'lib/aws-sdk-qldb/client.rb', line 1767 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ 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.
1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 |
# File 'lib/aws-sdk-qldb/client.rb', line 1737 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::QLDB') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-qldb' context[:gem_version] = '1.54.0' Seahorse::Client::Request.new(handlers, context) end |
#cancel_journal_kinesis_stream(params = {}) ⇒ Types::CancelJournalKinesisStreamResponse
Ends a given Amazon QLDB journal stream. Before a stream can be canceled, its current status must be ‘ACTIVE`.
You can’t restart a stream after you cancel it. Canceled QLDB stream resources are subject to a 7-day retention period, so they are automatically deleted after this limit expires.
506 507 508 509 |
# File 'lib/aws-sdk-qldb/client.rb', line 506 def cancel_journal_kinesis_stream(params = {}, = {}) req = build_request(:cancel_journal_kinesis_stream, params) req.send_request() end |
#create_ledger(params = {}) ⇒ Types::CreateLedgerResponse
Creates a new ledger in your Amazon Web Services account in the current Region.
655 656 657 658 |
# File 'lib/aws-sdk-qldb/client.rb', line 655 def create_ledger(params = {}, = {}) req = build_request(:create_ledger, params) req.send_request() end |
#delete_ledger(params = {}) ⇒ Struct
Deletes a ledger and all of its contents. This action is irreversible.
If deletion protection is enabled, you must first disable it before you can delete the ledger. You can disable it by calling the ‘UpdateLedger` operation to set this parameter to `false`.
681 682 683 684 |
# File 'lib/aws-sdk-qldb/client.rb', line 681 def delete_ledger(params = {}, = {}) req = build_request(:delete_ledger, params) req.send_request() end |
#describe_journal_kinesis_stream(params = {}) ⇒ Types::DescribeJournalKinesisStreamResponse
Returns detailed information about a given Amazon QLDB journal stream. The output includes the Amazon Resource Name (ARN), stream name, current status, creation time, and the parameters of the original stream creation request.
This action does not return any expired journal streams. For more information, see [Expiration for terminal streams] in the *Amazon QLDB Developer Guide*.
[1]: docs.aws.amazon.com/qldb/latest/developerguide/streams.create.html#streams.create.states.expiration
736 737 738 739 |
# File 'lib/aws-sdk-qldb/client.rb', line 736 def describe_journal_kinesis_stream(params = {}, = {}) req = build_request(:describe_journal_kinesis_stream, params) req.send_request() end |
#describe_journal_s3_export(params = {}) ⇒ Types::DescribeJournalS3ExportResponse
Returns information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.
This action does not return any expired export jobs. For more information, see [Export job expiration] in the *Amazon QLDB Developer Guide*.
If the export job with the given ‘ExportId` doesn’t exist, then throws ‘ResourceNotFoundException`.
If the ledger with the given ‘Name` doesn’t exist, then throws ‘ResourceNotFoundException`.
796 797 798 799 |
# File 'lib/aws-sdk-qldb/client.rb', line 796 def describe_journal_s3_export(params = {}, = {}) req = build_request(:describe_journal_s3_export, params) req.send_request() end |
#describe_ledger(params = {}) ⇒ Types::DescribeLedgerResponse
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
839 840 841 842 |
# File 'lib/aws-sdk-qldb/client.rb', line 839 def describe_ledger(params = {}, = {}) req = build_request(:describe_ledger, params) req.send_request() end |
#export_journal_to_s3(params = {}) ⇒ Types::ExportJournalToS3Response
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. A journal export job can write the data objects in either the text or binary representation of Amazon Ion format, or in *JSON Lines* text format.
If the ledger with the given ‘Name` doesn’t exist, then throws ‘ResourceNotFoundException`.
If the ledger with the given ‘Name` is in `CREATING` status, then throws `ResourcePreconditionNotMetException`.
You can initiate up to two concurrent journal export requests for each ledger. Beyond this limit, journal export requests throw ‘LimitExceededException`.
953 954 955 956 |
# File 'lib/aws-sdk-qldb/client.rb', line 953 def export_journal_to_s3(params = {}, = {}) req = build_request(:export_journal_to_s3, params) req.send_request() end |
#get_block(params = {}) ⇒ Types::GetBlockResponse
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for verification if ‘DigestTipAddress` is provided.
For information about the data contents in a block, see [Journal contents] in the *Amazon QLDB Developer Guide*.
If the specified ledger doesn’t exist or is in ‘DELETING` status, then throws `ResourceNotFoundException`.
If the specified ledger is in ‘CREATING` status, then throws `ResourcePreconditionNotMetException`.
If no block exists with the specified address, then throws ‘InvalidParameterException`.
[1]: docs.aws.amazon.com/qldb/latest/developerguide/journal-contents.html
1020 1021 1022 1023 |
# File 'lib/aws-sdk-qldb/client.rb', line 1020 def get_block(params = {}, = {}) req = build_request(:get_block, params) req.send_request() end |
#get_digest(params = {}) ⇒ Types::GetDigestResponse
Returns the digest of a ledger at the latest committed block in the journal. The response includes a 256-bit hash value and a block address.
1052 1053 1054 1055 |
# File 'lib/aws-sdk-qldb/client.rb', line 1052 def get_digest(params = {}, = {}) req = build_request(:get_digest, params) req.send_request() end |
#get_revision(params = {}) ⇒ Types::GetRevisionResponse
Returns a revision data object for a specified document ID and block address. Also returns a proof of the specified revision for verification if ‘DigestTipAddress` is provided.
1109 1110 1111 1112 |
# File 'lib/aws-sdk-qldb/client.rb', line 1109 def get_revision(params = {}, = {}) req = build_request(:get_revision, params) req.send_request() end |
#list_journal_kinesis_streams_for_ledger(params = {}) ⇒ Types::ListJournalKinesisStreamsForLedgerResponse
Returns all Amazon QLDB journal streams for a given ledger.
This action does not return any expired journal streams. For more information, see [Expiration for terminal streams] in the *Amazon QLDB Developer Guide*.
This action returns a maximum of ‘MaxResults` items. It is paginated so that you can retrieve all the items by calling `ListJournalKinesisStreamsForLedger` multiple times.
[1]: docs.aws.amazon.com/qldb/latest/developerguide/streams.create.html#streams.create.states.expiration
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1178 1179 1180 1181 |
# File 'lib/aws-sdk-qldb/client.rb', line 1178 def list_journal_kinesis_streams_for_ledger(params = {}, = {}) req = build_request(:list_journal_kinesis_streams_for_ledger, params) req.send_request() end |
#list_journal_s3_exports(params = {}) ⇒ Types::ListJournalS3ExportsResponse
Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of ‘MaxResults` items, and is paginated so that you can retrieve all the items by calling `ListJournalS3Exports` multiple times.
This action does not return any expired export jobs. For more information, see [Export job expiration] in the *Amazon QLDB Developer Guide*.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1244 1245 1246 1247 |
# File 'lib/aws-sdk-qldb/client.rb', line 1244 def list_journal_s3_exports(params = {}, = {}) req = build_request(:list_journal_s3_exports, params) req.send_request() end |
#list_journal_s3_exports_for_ledger(params = {}) ⇒ Types::ListJournalS3ExportsForLedgerResponse
Returns all journal export jobs for a specified ledger.
This action returns a maximum of ‘MaxResults` items, and is paginated so that you can retrieve all the items by calling `ListJournalS3ExportsForLedger` multiple times.
This action does not return any expired export jobs. For more information, see [Export job expiration] in the *Amazon QLDB Developer Guide*.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1313 1314 1315 1316 |
# File 'lib/aws-sdk-qldb/client.rb', line 1313 def list_journal_s3_exports_for_ledger(params = {}, = {}) req = build_request(:list_journal_s3_exports_for_ledger, params) req.send_request() end |
#list_ledgers(params = {}) ⇒ Types::ListLedgersResponse
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of ‘MaxResults` items and is paginated so that you can retrieve all the items by calling `ListLedgers` multiple times.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1361 1362 1363 1364 |
# File 'lib/aws-sdk-qldb/client.rb', line 1361 def list_ledgers(params = {}, = {}) req = build_request(:list_ledgers, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns all tags for a specified Amazon QLDB resource.
1393 1394 1395 1396 |
# File 'lib/aws-sdk-qldb/client.rb', line 1393 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#stream_journal_to_kinesis(params = {}) ⇒ Types::StreamJournalToKinesisResponse
Creates a journal stream for a given Amazon QLDB ledger. The stream captures every document revision that is committed to the ledger’s journal and delivers the data to a specified Amazon Kinesis Data Streams resource.
1489 1490 1491 1492 |
# File 'lib/aws-sdk-qldb/client.rb', line 1489 def stream_journal_to_kinesis(params = {}, = {}) req = build_request(:stream_journal_to_kinesis, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to a specified Amazon QLDB resource.
A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
1526 1527 1528 1529 |
# File 'lib/aws-sdk-qldb/client.rb', line 1526 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
1556 1557 1558 1559 |
# File 'lib/aws-sdk-qldb/client.rb', line 1556 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_ledger(params = {}) ⇒ Types::UpdateLedgerResponse
Updates properties on a ledger.
1652 1653 1654 1655 |
# File 'lib/aws-sdk-qldb/client.rb', line 1652 def update_ledger(params = {}, = {}) req = build_request(:update_ledger, params) req.send_request() end |
#update_ledger_permissions_mode(params = {}) ⇒ Types::UpdateLedgerPermissionsModeResponse
Updates the permissions mode of a ledger.
Before you switch to the ‘STANDARD` permissions mode, you must first create all required IAM policies and table tags to avoid disruption to your users. To learn more, see [Migrating to the standard permissions mode] in the *Amazon QLDB Developer Guide*.
1728 1729 1730 1731 |
# File 'lib/aws-sdk-qldb/client.rb', line 1728 def (params = {}, = {}) req = build_request(:update_ledger_permissions_mode, params) req.send_request() end |
#waiter_names ⇒ 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.
1757 1758 1759 |
# File 'lib/aws-sdk-qldb/client.rb', line 1757 def waiter_names [] end |