Interface QldbClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface QldbClient extends AwsClient
Service client for accessing QLDB. This can be created using the staticbuilder()method.The resource management API for Amazon QLDB
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static QldbClientBuilderbuilder()Create a builder that can be used to configure and create aQldbClient.default CancelJournalKinesisStreamResponsecancelJournalKinesisStream(Consumer<CancelJournalKinesisStreamRequest.Builder> cancelJournalKinesisStreamRequest)Ends a given Amazon QLDB journal stream.default CancelJournalKinesisStreamResponsecancelJournalKinesisStream(CancelJournalKinesisStreamRequest cancelJournalKinesisStreamRequest)Ends a given Amazon QLDB journal stream.static QldbClientcreate()Create aQldbClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateLedgerResponsecreateLedger(Consumer<CreateLedgerRequest.Builder> createLedgerRequest)Creates a new ledger in your Amazon Web Services account in the current Region.default CreateLedgerResponsecreateLedger(CreateLedgerRequest createLedgerRequest)Creates a new ledger in your Amazon Web Services account in the current Region.default DeleteLedgerResponsedeleteLedger(Consumer<DeleteLedgerRequest.Builder> deleteLedgerRequest)Deletes a ledger and all of its contents.default DeleteLedgerResponsedeleteLedger(DeleteLedgerRequest deleteLedgerRequest)Deletes a ledger and all of its contents.default DescribeJournalKinesisStreamResponsedescribeJournalKinesisStream(Consumer<DescribeJournalKinesisStreamRequest.Builder> describeJournalKinesisStreamRequest)Returns detailed information about a given Amazon QLDB journal stream.default DescribeJournalKinesisStreamResponsedescribeJournalKinesisStream(DescribeJournalKinesisStreamRequest describeJournalKinesisStreamRequest)Returns detailed information about a given Amazon QLDB journal stream.default DescribeJournalS3ExportResponsedescribeJournalS3Export(Consumer<DescribeJournalS3ExportRequest.Builder> describeJournalS3ExportRequest)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.default DescribeJournalS3ExportResponsedescribeJournalS3Export(DescribeJournalS3ExportRequest describeJournalS3ExportRequest)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.default DescribeLedgerResponsedescribeLedger(Consumer<DescribeLedgerRequest.Builder> describeLedgerRequest)Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.default DescribeLedgerResponsedescribeLedger(DescribeLedgerRequest describeLedgerRequest)Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.default ExportJournalToS3ResponseexportJournalToS3(Consumer<ExportJournalToS3Request.Builder> exportJournalToS3Request)Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket.default ExportJournalToS3ResponseexportJournalToS3(ExportJournalToS3Request exportJournalToS3Request)Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket.default GetBlockResponsegetBlock(Consumer<GetBlockRequest.Builder> getBlockRequest)Returns a block object at a specified address in a journal.default GetBlockResponsegetBlock(GetBlockRequest getBlockRequest)Returns a block object at a specified address in a journal.default GetDigestResponsegetDigest(Consumer<GetDigestRequest.Builder> getDigestRequest)Returns the digest of a ledger at the latest committed block in the journal.default GetDigestResponsegetDigest(GetDigestRequest getDigestRequest)Returns the digest of a ledger at the latest committed block in the journal.default GetRevisionResponsegetRevision(Consumer<GetRevisionRequest.Builder> getRevisionRequest)Returns a revision data object for a specified document ID and block address.default GetRevisionResponsegetRevision(GetRevisionRequest getRevisionRequest)Returns a revision data object for a specified document ID and block address.default ListJournalKinesisStreamsForLedgerResponselistJournalKinesisStreamsForLedger(Consumer<ListJournalKinesisStreamsForLedgerRequest.Builder> listJournalKinesisStreamsForLedgerRequest)Returns all Amazon QLDB journal streams for a given ledger.default ListJournalKinesisStreamsForLedgerResponselistJournalKinesisStreamsForLedger(ListJournalKinesisStreamsForLedgerRequest listJournalKinesisStreamsForLedgerRequest)Returns all Amazon QLDB journal streams for a given ledger.default ListJournalKinesisStreamsForLedgerIterablelistJournalKinesisStreamsForLedgerPaginator(Consumer<ListJournalKinesisStreamsForLedgerRequest.Builder> listJournalKinesisStreamsForLedgerRequest)This is a variant oflistJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation.default ListJournalKinesisStreamsForLedgerIterablelistJournalKinesisStreamsForLedgerPaginator(ListJournalKinesisStreamsForLedgerRequest listJournalKinesisStreamsForLedgerRequest)This is a variant oflistJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation.default ListJournalS3ExportsResponselistJournalS3Exports(Consumer<ListJournalS3ExportsRequest.Builder> listJournalS3ExportsRequest)Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services account and Region.default ListJournalS3ExportsResponselistJournalS3Exports(ListJournalS3ExportsRequest listJournalS3ExportsRequest)Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services account and Region.default ListJournalS3ExportsForLedgerResponselistJournalS3ExportsForLedger(Consumer<ListJournalS3ExportsForLedgerRequest.Builder> listJournalS3ExportsForLedgerRequest)Returns all journal export jobs for a specified ledger.default ListJournalS3ExportsForLedgerResponselistJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest)Returns all journal export jobs for a specified ledger.default ListJournalS3ExportsForLedgerIterablelistJournalS3ExportsForLedgerPaginator(Consumer<ListJournalS3ExportsForLedgerRequest.Builder> listJournalS3ExportsForLedgerRequest)This is a variant oflistJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation.default ListJournalS3ExportsForLedgerIterablelistJournalS3ExportsForLedgerPaginator(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest)This is a variant oflistJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation.default ListJournalS3ExportsIterablelistJournalS3ExportsPaginator(Consumer<ListJournalS3ExportsRequest.Builder> listJournalS3ExportsRequest)This is a variant oflistJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation.default ListJournalS3ExportsIterablelistJournalS3ExportsPaginator(ListJournalS3ExportsRequest listJournalS3ExportsRequest)This is a variant oflistJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation.default ListLedgersResponselistLedgers(Consumer<ListLedgersRequest.Builder> listLedgersRequest)Returns all ledgers that are associated with the current Amazon Web Services account and Region.default ListLedgersResponselistLedgers(ListLedgersRequest listLedgersRequest)Returns all ledgers that are associated with the current Amazon Web Services account and Region.default ListLedgersIterablelistLedgersPaginator(Consumer<ListLedgersRequest.Builder> listLedgersRequest)This is a variant oflistLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation.default ListLedgersIterablelistLedgersPaginator(ListLedgersRequest listLedgersRequest)This is a variant oflistLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Returns all tags for a specified Amazon QLDB resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Returns all tags for a specified Amazon QLDB resource.default QldbServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default StreamJournalToKinesisResponsestreamJournalToKinesis(Consumer<StreamJournalToKinesisRequest.Builder> streamJournalToKinesisRequest)Creates a journal stream for a given Amazon QLDB ledger.default StreamJournalToKinesisResponsestreamJournalToKinesis(StreamJournalToKinesisRequest streamJournalToKinesisRequest)Creates a journal stream for a given Amazon QLDB ledger.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Adds one or more tags to a specified Amazon QLDB resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Adds one or more tags to a specified Amazon QLDB resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes one or more tags from a specified Amazon QLDB resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes one or more tags from a specified Amazon QLDB resource.default UpdateLedgerResponseupdateLedger(Consumer<UpdateLedgerRequest.Builder> updateLedgerRequest)Updates properties on a ledger.default UpdateLedgerResponseupdateLedger(UpdateLedgerRequest updateLedgerRequest)Updates properties on a ledger.default UpdateLedgerPermissionsModeResponseupdateLedgerPermissionsMode(Consumer<UpdateLedgerPermissionsModeRequest.Builder> updateLedgerPermissionsModeRequest)Updates the permissions mode of a ledger.default UpdateLedgerPermissionsModeResponseupdateLedgerPermissionsMode(UpdateLedgerPermissionsModeRequest updateLedgerPermissionsModeRequest)Updates the permissions mode of a ledger.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
cancelJournalKinesisStream
default CancelJournalKinesisStreamResponse cancelJournalKinesisStream(CancelJournalKinesisStreamRequest cancelJournalKinesisStreamRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
- Parameters:
cancelJournalKinesisStreamRequest-- Returns:
- Result of the CancelJournalKinesisStream operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
cancelJournalKinesisStream
default CancelJournalKinesisStreamResponse cancelJournalKinesisStream(Consumer<CancelJournalKinesisStreamRequest.Builder> cancelJournalKinesisStreamRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
This is a convenience which creates an instance of the
CancelJournalKinesisStreamRequest.Builderavoiding the need to create one manually viaCancelJournalKinesisStreamRequest.builder()- Parameters:
cancelJournalKinesisStreamRequest- AConsumerthat will call methods onCancelJournalKinesisStreamRequest.Builderto create a request.- Returns:
- Result of the CancelJournalKinesisStream operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createLedger
default CreateLedgerResponse createLedger(CreateLedgerRequest createLedgerRequest) throws InvalidParameterException, ResourceAlreadyExistsException, LimitExceededException, ResourceInUseException, AwsServiceException, SdkClientException, QldbException
Creates a new ledger in your Amazon Web Services account in the current Region.
- Parameters:
createLedgerRequest-- Returns:
- Result of the CreateLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceAlreadyExistsException- The specified resource already exists.LimitExceededException- You have reached the limit on the maximum number of resources allowed.ResourceInUseException- The specified resource can't be modified at this time.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createLedger
default CreateLedgerResponse createLedger(Consumer<CreateLedgerRequest.Builder> createLedgerRequest) throws InvalidParameterException, ResourceAlreadyExistsException, LimitExceededException, ResourceInUseException, AwsServiceException, SdkClientException, QldbException
Creates a new ledger in your Amazon Web Services account in the current Region.
This is a convenience which creates an instance of the
CreateLedgerRequest.Builderavoiding the need to create one manually viaCreateLedgerRequest.builder()- Parameters:
createLedgerRequest- AConsumerthat will call methods onCreateLedgerRequest.Builderto create a request.- Returns:
- Result of the CreateLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceAlreadyExistsException- The specified resource already exists.LimitExceededException- You have reached the limit on the maximum number of resources allowed.ResourceInUseException- The specified resource can't be modified at this time.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLedger
default DeleteLedgerResponse deleteLedger(DeleteLedgerRequest deleteLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourceInUseException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
UpdateLedgeroperation to set this parameter tofalse.- Parameters:
deleteLedgerRequest-- Returns:
- Result of the DeleteLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourceInUseException- The specified resource can't be modified at this time.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLedger
default DeleteLedgerResponse deleteLedger(Consumer<DeleteLedgerRequest.Builder> deleteLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourceInUseException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
UpdateLedgeroperation to set this parameter tofalse.
This is a convenience which creates an instance of the
DeleteLedgerRequest.Builderavoiding the need to create one manually viaDeleteLedgerRequest.builder()- Parameters:
deleteLedgerRequest- AConsumerthat will call methods onDeleteLedgerRequest.Builderto create a request.- Returns:
- Result of the DeleteLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourceInUseException- The specified resource can't be modified at this time.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeJournalKinesisStream
default DescribeJournalKinesisStreamResponse describeJournalKinesisStream(DescribeJournalKinesisStreamRequest describeJournalKinesisStreamRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
- Parameters:
describeJournalKinesisStreamRequest-- Returns:
- Result of the DescribeJournalKinesisStream operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeJournalKinesisStream
default DescribeJournalKinesisStreamResponse describeJournalKinesisStream(Consumer<DescribeJournalKinesisStreamRequest.Builder> describeJournalKinesisStreamRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
This is a convenience which creates an instance of the
DescribeJournalKinesisStreamRequest.Builderavoiding the need to create one manually viaDescribeJournalKinesisStreamRequest.builder()- Parameters:
describeJournalKinesisStreamRequest- AConsumerthat will call methods onDescribeJournalKinesisStreamRequest.Builderto create a request.- Returns:
- Result of the DescribeJournalKinesisStream operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeJournalS3Export
default DescribeJournalS3ExportResponse describeJournalS3Export(DescribeJournalS3ExportRequest describeJournalS3ExportRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
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
ExportIddoesn't exist, then throwsResourceNotFoundException.If the ledger with the given
Namedoesn't exist, then throwsResourceNotFoundException.- Parameters:
describeJournalS3ExportRequest-- Returns:
- Result of the DescribeJournalS3Export operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeJournalS3Export
default DescribeJournalS3ExportResponse describeJournalS3Export(Consumer<DescribeJournalS3ExportRequest.Builder> describeJournalS3ExportRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
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
ExportIddoesn't exist, then throwsResourceNotFoundException.If the ledger with the given
Namedoesn't exist, then throwsResourceNotFoundException.
This is a convenience which creates an instance of the
DescribeJournalS3ExportRequest.Builderavoiding the need to create one manually viaDescribeJournalS3ExportRequest.builder()- Parameters:
describeJournalS3ExportRequest- AConsumerthat will call methods onDescribeJournalS3ExportRequest.Builderto create a request.- Returns:
- Result of the DescribeJournalS3Export operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeLedger
default DescribeLedgerResponse describeLedger(DescribeLedgerRequest describeLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
- Parameters:
describeLedgerRequest-- Returns:
- Result of the DescribeLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeLedger
default DescribeLedgerResponse describeLedger(Consumer<DescribeLedgerRequest.Builder> describeLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
This is a convenience which creates an instance of the
DescribeLedgerRequest.Builderavoiding the need to create one manually viaDescribeLedgerRequest.builder()- Parameters:
describeLedgerRequest- AConsumerthat will call methods onDescribeLedgerRequest.Builderto create a request.- Returns:
- Result of the DescribeLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
exportJournalToS3
default ExportJournalToS3Response exportJournalToS3(ExportJournalToS3Request exportJournalToS3Request) throws ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
Namedoesn't exist, then throwsResourceNotFoundException.If the ledger with the given
Nameis inCREATINGstatus, then throwsResourcePreconditionNotMetException.You can initiate up to two concurrent journal export requests for each ledger. Beyond this limit, journal export requests throw
LimitExceededException.- Parameters:
exportJournalToS3Request-- Returns:
- Result of the ExportJournalToS3 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
exportJournalToS3
default ExportJournalToS3Response exportJournalToS3(Consumer<ExportJournalToS3Request.Builder> exportJournalToS3Request) throws ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
Namedoesn't exist, then throwsResourceNotFoundException.If the ledger with the given
Nameis inCREATINGstatus, then throwsResourcePreconditionNotMetException.You can initiate up to two concurrent journal export requests for each ledger. Beyond this limit, journal export requests throw
LimitExceededException.
This is a convenience which creates an instance of the
ExportJournalToS3Request.Builderavoiding the need to create one manually viaExportJournalToS3Request.builder()- Parameters:
exportJournalToS3Request- AConsumerthat will call methods onExportJournalToS3Request.Builderto create a request.- Returns:
- Result of the ExportJournalToS3 operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getBlock
default GetBlockResponse getBlock(GetBlockRequest getBlockRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for verification if
DigestTipAddressis 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
DELETINGstatus, then throwsResourceNotFoundException.If the specified ledger is in
CREATINGstatus, then throwsResourcePreconditionNotMetException.If no block exists with the specified address, then throws
InvalidParameterException.- Parameters:
getBlockRequest-- Returns:
- Result of the GetBlock operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getBlock
default GetBlockResponse getBlock(Consumer<GetBlockRequest.Builder> getBlockRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for verification if
DigestTipAddressis 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
DELETINGstatus, then throwsResourceNotFoundException.If the specified ledger is in
CREATINGstatus, then throwsResourcePreconditionNotMetException.If no block exists with the specified address, then throws
InvalidParameterException.
This is a convenience which creates an instance of the
GetBlockRequest.Builderavoiding the need to create one manually viaGetBlockRequest.builder()- Parameters:
getBlockRequest- AConsumerthat will call methods onGetBlockRequest.Builderto create a request.- Returns:
- Result of the GetBlock operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDigest
default GetDigestResponse getDigest(GetDigestRequest getDigestRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
- Parameters:
getDigestRequest-- Returns:
- Result of the GetDigest operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDigest
default GetDigestResponse getDigest(Consumer<GetDigestRequest.Builder> getDigestRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
This is a convenience which creates an instance of the
GetDigestRequest.Builderavoiding the need to create one manually viaGetDigestRequest.builder()- Parameters:
getDigestRequest- AConsumerthat will call methods onGetDigestRequest.Builderto create a request.- Returns:
- Result of the GetDigest operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRevision
default GetRevisionResponse getRevision(GetRevisionRequest getRevisionRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
Returns a revision data object for a specified document ID and block address. Also returns a proof of the specified revision for verification if
DigestTipAddressis provided.- Parameters:
getRevisionRequest-- Returns:
- Result of the GetRevision operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRevision
default GetRevisionResponse getRevision(Consumer<GetRevisionRequest.Builder> getRevisionRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
Returns a revision data object for a specified document ID and block address. Also returns a proof of the specified revision for verification if
DigestTipAddressis provided.
This is a convenience which creates an instance of the
GetRevisionRequest.Builderavoiding the need to create one manually viaGetRevisionRequest.builder()- Parameters:
getRevisionRequest- AConsumerthat will call methods onGetRevisionRequest.Builderto create a request.- Returns:
- Result of the GetRevision operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalKinesisStreamsForLedger
default ListJournalKinesisStreamsForLedgerResponse listJournalKinesisStreamsForLedger(ListJournalKinesisStreamsForLedgerRequest listJournalKinesisStreamsForLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
MaxResultsitems. It is paginated so that you can retrieve all the items by callingListJournalKinesisStreamsForLedgermultiple times.- Parameters:
listJournalKinesisStreamsForLedgerRequest-- Returns:
- Result of the ListJournalKinesisStreamsForLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalKinesisStreamsForLedger
default ListJournalKinesisStreamsForLedgerResponse listJournalKinesisStreamsForLedger(Consumer<ListJournalKinesisStreamsForLedgerRequest.Builder> listJournalKinesisStreamsForLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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
MaxResultsitems. It is paginated so that you can retrieve all the items by callingListJournalKinesisStreamsForLedgermultiple times.
This is a convenience which creates an instance of the
ListJournalKinesisStreamsForLedgerRequest.Builderavoiding the need to create one manually viaListJournalKinesisStreamsForLedgerRequest.builder()- Parameters:
listJournalKinesisStreamsForLedgerRequest- AConsumerthat will call methods onListJournalKinesisStreamsForLedgerRequest.Builderto create a request.- Returns:
- Result of the ListJournalKinesisStreamsForLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalKinesisStreamsForLedgerPaginator
default ListJournalKinesisStreamsForLedgerIterable listJournalKinesisStreamsForLedgerPaginator(ListJournalKinesisStreamsForLedgerRequest listJournalKinesisStreamsForLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client.listJournalKinesisStreamsForLedgerPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client .listJournalKinesisStreamsForLedgerPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client.listJournalKinesisStreamsForLedgerPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation.- Parameters:
listJournalKinesisStreamsForLedgerRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalKinesisStreamsForLedgerPaginator
default ListJournalKinesisStreamsForLedgerIterable listJournalKinesisStreamsForLedgerPaginator(Consumer<ListJournalKinesisStreamsForLedgerRequest.Builder> listJournalKinesisStreamsForLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client.listJournalKinesisStreamsForLedgerPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client .listJournalKinesisStreamsForLedgerPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalKinesisStreamsForLedgerIterable responses = client.listJournalKinesisStreamsForLedgerPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalKinesisStreamsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalKinesisStreamsForLedgerRequest)operation.
This is a convenience which creates an instance of the
ListJournalKinesisStreamsForLedgerRequest.Builderavoiding the need to create one manually viaListJournalKinesisStreamsForLedgerRequest.builder()- Parameters:
listJournalKinesisStreamsForLedgerRequest- AConsumerthat will call methods onListJournalKinesisStreamsForLedgerRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3Exports
default ListJournalS3ExportsResponse listJournalS3Exports(ListJournalS3ExportsRequest listJournalS3ExportsRequest) throws AwsServiceException, SdkClientException, QldbException
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
MaxResultsitems, and is paginated so that you can retrieve all the items by callingListJournalS3Exportsmultiple times.This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
- Parameters:
listJournalS3ExportsRequest-- Returns:
- Result of the ListJournalS3Exports operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3Exports
default ListJournalS3ExportsResponse listJournalS3Exports(Consumer<ListJournalS3ExportsRequest.Builder> listJournalS3ExportsRequest) throws AwsServiceException, SdkClientException, QldbException
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
MaxResultsitems, and is paginated so that you can retrieve all the items by callingListJournalS3Exportsmultiple times.This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
This is a convenience which creates an instance of the
ListJournalS3ExportsRequest.Builderavoiding the need to create one manually viaListJournalS3ExportsRequest.builder()- Parameters:
listJournalS3ExportsRequest- AConsumerthat will call methods onListJournalS3ExportsRequest.Builderto create a request.- Returns:
- Result of the ListJournalS3Exports operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsPaginator
default ListJournalS3ExportsIterable listJournalS3ExportsPaginator(ListJournalS3ExportsRequest listJournalS3ExportsRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client.listJournalS3ExportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client .listJournalS3ExportsPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client.listJournalS3ExportsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation.- Parameters:
listJournalS3ExportsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsPaginator
default ListJournalS3ExportsIterable listJournalS3ExportsPaginator(Consumer<ListJournalS3ExportsRequest.Builder> listJournalS3ExportsRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client.listJournalS3ExportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client .listJournalS3ExportsPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsIterable responses = client.listJournalS3ExportsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalS3Exports(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsRequest)operation.
This is a convenience which creates an instance of the
ListJournalS3ExportsRequest.Builderavoiding the need to create one manually viaListJournalS3ExportsRequest.builder()- Parameters:
listJournalS3ExportsRequest- AConsumerthat will call methods onListJournalS3ExportsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsForLedger
default ListJournalS3ExportsForLedgerResponse listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest) throws AwsServiceException, SdkClientException, QldbException
Returns all journal export jobs for a specified ledger.
This action returns a maximum of
MaxResultsitems, and is paginated so that you can retrieve all the items by callingListJournalS3ExportsForLedgermultiple times.This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
- Parameters:
listJournalS3ExportsForLedgerRequest-- Returns:
- Result of the ListJournalS3ExportsForLedger operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsForLedger
default ListJournalS3ExportsForLedgerResponse listJournalS3ExportsForLedger(Consumer<ListJournalS3ExportsForLedgerRequest.Builder> listJournalS3ExportsForLedgerRequest) throws AwsServiceException, SdkClientException, QldbException
Returns all journal export jobs for a specified ledger.
This action returns a maximum of
MaxResultsitems, and is paginated so that you can retrieve all the items by callingListJournalS3ExportsForLedgermultiple times.This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
This is a convenience which creates an instance of the
ListJournalS3ExportsForLedgerRequest.Builderavoiding the need to create one manually viaListJournalS3ExportsForLedgerRequest.builder()- Parameters:
listJournalS3ExportsForLedgerRequest- AConsumerthat will call methods onListJournalS3ExportsForLedgerRequest.Builderto create a request.- Returns:
- Result of the ListJournalS3ExportsForLedger operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsForLedgerPaginator
default ListJournalS3ExportsForLedgerIterable listJournalS3ExportsForLedgerPaginator(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client.listJournalS3ExportsForLedgerPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client .listJournalS3ExportsForLedgerPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client.listJournalS3ExportsForLedgerPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation.- Parameters:
listJournalS3ExportsForLedgerRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listJournalS3ExportsForLedgerPaginator
default ListJournalS3ExportsForLedgerIterable listJournalS3ExportsForLedgerPaginator(Consumer<ListJournalS3ExportsForLedgerRequest.Builder> listJournalS3ExportsForLedgerRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client.listJournalS3ExportsForLedgerPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client .listJournalS3ExportsForLedgerPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListJournalS3ExportsForLedgerIterable responses = client.listJournalS3ExportsForLedgerPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listJournalS3ExportsForLedger(software.amazon.awssdk.services.qldb.model.ListJournalS3ExportsForLedgerRequest)operation.
This is a convenience which creates an instance of the
ListJournalS3ExportsForLedgerRequest.Builderavoiding the need to create one manually viaListJournalS3ExportsForLedgerRequest.builder()- Parameters:
listJournalS3ExportsForLedgerRequest- AConsumerthat will call methods onListJournalS3ExportsForLedgerRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLedgers
default ListLedgersResponse listLedgers(ListLedgersRequest listLedgersRequest) throws AwsServiceException, SdkClientException, QldbException
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of
MaxResultsitems and is paginated so that you can retrieve all the items by callingListLedgersmultiple times.- Parameters:
listLedgersRequest-- Returns:
- Result of the ListLedgers operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLedgers
default ListLedgersResponse listLedgers(Consumer<ListLedgersRequest.Builder> listLedgersRequest) throws AwsServiceException, SdkClientException, QldbException
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of
MaxResultsitems and is paginated so that you can retrieve all the items by callingListLedgersmultiple times.
This is a convenience which creates an instance of the
ListLedgersRequest.Builderavoiding the need to create one manually viaListLedgersRequest.builder()- Parameters:
listLedgersRequest- AConsumerthat will call methods onListLedgersRequest.Builderto create a request.- Returns:
- Result of the ListLedgers operation returned by the service.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLedgersPaginator
default ListLedgersIterable listLedgersPaginator(ListLedgersRequest listLedgersRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListLedgersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation.- Parameters:
listLedgersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listLedgersPaginator
default ListLedgersIterable listLedgersPaginator(Consumer<ListLedgersRequest.Builder> listLedgersRequest) throws AwsServiceException, SdkClientException, QldbException
This is a variant of
listLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); for (software.amazon.awssdk.services.qldb.model.ListLedgersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.qldb.paginators.ListLedgersIterable responses = client.listLedgersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLedgers(software.amazon.awssdk.services.qldb.model.ListLedgersRequest)operation.
This is a convenience which creates an instance of the
ListLedgersRequest.Builderavoiding the need to create one manually viaListLedgersRequest.builder()- Parameters:
listLedgersRequest- AConsumerthat will call methods onListLedgersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Returns all tags for a specified Amazon QLDB resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Returns all tags for a specified Amazon QLDB resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
streamJournalToKinesis
default StreamJournalToKinesisResponse streamJournalToKinesis(StreamJournalToKinesisRequest streamJournalToKinesisRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
- Parameters:
streamJournalToKinesisRequest-- Returns:
- Result of the StreamJournalToKinesis operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
streamJournalToKinesis
default StreamJournalToKinesisResponse streamJournalToKinesis(Consumer<StreamJournalToKinesisRequest.Builder> streamJournalToKinesisRequest) throws InvalidParameterException, ResourceNotFoundException, ResourcePreconditionNotMetException, AwsServiceException, SdkClientException, QldbException
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.
This is a convenience which creates an instance of the
StreamJournalToKinesisRequest.Builderavoiding the need to create one manually viaStreamJournalToKinesisRequest.builder()- Parameters:
streamJournalToKinesisRequest- AConsumerthat will call methods onStreamJournalToKinesisRequest.Builderto create a request.- Returns:
- Result of the StreamJournalToKinesis operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.ResourcePreconditionNotMetException- The operation failed because a condition wasn't satisfied in advance.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
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.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
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.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLedger
default UpdateLedgerResponse updateLedger(UpdateLedgerRequest updateLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Updates properties on a ledger.
- Parameters:
updateLedgerRequest-- Returns:
- Result of the UpdateLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLedger
default UpdateLedgerResponse updateLedger(Consumer<UpdateLedgerRequest.Builder> updateLedgerRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Updates properties on a ledger.
This is a convenience which creates an instance of the
UpdateLedgerRequest.Builderavoiding the need to create one manually viaUpdateLedgerRequest.builder()- Parameters:
updateLedgerRequest- AConsumerthat will call methods onUpdateLedgerRequest.Builderto create a request.- Returns:
- Result of the UpdateLedger operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLedgerPermissionsMode
default UpdateLedgerPermissionsModeResponse updateLedgerPermissionsMode(UpdateLedgerPermissionsModeRequest updateLedgerPermissionsModeRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Updates the permissions mode of a ledger.
Before you switch to the
STANDARDpermissions 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.- Parameters:
updateLedgerPermissionsModeRequest-- Returns:
- Result of the UpdateLedgerPermissionsMode operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateLedgerPermissionsMode
default UpdateLedgerPermissionsModeResponse updateLedgerPermissionsMode(Consumer<UpdateLedgerPermissionsModeRequest.Builder> updateLedgerPermissionsModeRequest) throws InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, QldbException
Updates the permissions mode of a ledger.
Before you switch to the
STANDARDpermissions 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.
This is a convenience which creates an instance of the
UpdateLedgerPermissionsModeRequest.Builderavoiding the need to create one manually viaUpdateLedgerPermissionsModeRequest.builder()- Parameters:
updateLedgerPermissionsModeRequest- AConsumerthat will call methods onUpdateLedgerPermissionsModeRequest.Builderto create a request.- Returns:
- Result of the UpdateLedgerPermissionsMode operation returned by the service.
- Throws:
InvalidParameterException- One or more parameters in the request aren't valid.ResourceNotFoundException- The specified resource doesn't exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static QldbClient create()
Create aQldbClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static QldbClientBuilder builder()
Create a builder that can be used to configure and create aQldbClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default QldbServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-