{ "version":"2.0", "metadata":{ "apiVersion":"2019-01-02", "endpointPrefix":"qldb", "jsonVersion":"1.0", "protocol":"rest-json", "serviceAbbreviation":"QLDB", "serviceFullName":"Amazon QLDB", "serviceId":"QLDB", "signatureVersion":"v4", "signingName":"qldb", "uid":"qldb-2019-01-02" }, "operations":{ "CancelJournalKinesisStream":{ "name":"CancelJournalKinesisStream", "http":{ "method":"DELETE", "requestUri":"/ledgers/{name}/journal-kinesis-streams/{streamId}" }, "input":{"shape":"CancelJournalKinesisStreamRequest"}, "output":{"shape":"CancelJournalKinesisStreamResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "CreateLedger":{ "name":"CreateLedger", "http":{ "method":"POST", "requestUri":"/ledgers" }, "input":{"shape":"CreateLedgerRequest"}, "output":{"shape":"CreateLedgerResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"LimitExceededException"}, {"shape":"ResourceInUseException"} ], "documentation":"

Creates a new ledger in your account in the current Region.

" }, "DeleteLedger":{ "name":"DeleteLedger", "http":{ "method":"DELETE", "requestUri":"/ledgers/{name}" }, "input":{"shape":"DeleteLedgerRequest"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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 the flag to false.

" }, "DescribeJournalKinesisStream":{ "name":"DescribeJournalKinesisStream", "http":{ "method":"GET", "requestUri":"/ledgers/{name}/journal-kinesis-streams/{streamId}" }, "input":{"shape":"DescribeJournalKinesisStreamRequest"}, "output":{"shape":"DescribeJournalKinesisStreamResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "DescribeJournalS3Export":{ "name":"DescribeJournalS3Export", "http":{ "method":"GET", "requestUri":"/ledgers/{name}/journal-s3-exports/{exportId}" }, "input":{"shape":"DescribeJournalS3ExportRequest"}, "output":{"shape":"DescribeJournalS3ExportResponse"}, "errors":[ {"shape":"ResourceNotFoundException"} ], "documentation":"

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.

" }, "DescribeLedger":{ "name":"DescribeLedger", "http":{ "method":"GET", "requestUri":"/ledgers/{name}" }, "input":{"shape":"DescribeLedgerRequest"}, "output":{"shape":"DescribeLedgerResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.

" }, "ExportJournalToS3":{ "name":"ExportJournalToS3", "http":{ "method":"POST", "requestUri":"/ledgers/{name}/journal-s3-exports" }, "input":{"shape":"ExportJournalToS3Request"}, "output":{"shape":"ExportJournalToS3Response"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. The data is written as files in Amazon Ion 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.

" }, "GetBlock":{ "name":"GetBlock", "http":{ "method":"POST", "requestUri":"/ledgers/{name}/block" }, "input":{"shape":"GetBlockRequest"}, "output":{"shape":"GetBlockResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "GetDigest":{ "name":"GetDigest", "http":{ "method":"POST", "requestUri":"/ledgers/{name}/digest" }, "input":{"shape":"GetDigestRequest"}, "output":{"shape":"GetDigestResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "GetRevision":{ "name":"GetRevision", "http":{ "method":"POST", "requestUri":"/ledgers/{name}/revision" }, "input":{"shape":"GetRevisionRequest"}, "output":{"shape":"GetRevisionResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "ListJournalKinesisStreamsForLedger":{ "name":"ListJournalKinesisStreamsForLedger", "http":{ "method":"GET", "requestUri":"/ledgers/{name}/journal-kinesis-streams" }, "input":{"shape":"ListJournalKinesisStreamsForLedgerRequest"}, "output":{"shape":"ListJournalKinesisStreamsForLedgerResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

Returns an array of all Amazon QLDB journal stream descriptors for a given ledger. The output of each stream descriptor includes the same details that are returned by DescribeJournalKinesisStream.

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.

" }, "ListJournalS3Exports":{ "name":"ListJournalS3Exports", "http":{ "method":"GET", "requestUri":"/journal-s3-exports" }, "input":{"shape":"ListJournalS3ExportsRequest"}, "output":{"shape":"ListJournalS3ExportsResponse"}, "documentation":"

Returns an array of journal export job descriptions for all ledgers that are associated with the current 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.

" }, "ListJournalS3ExportsForLedger":{ "name":"ListJournalS3ExportsForLedger", "http":{ "method":"GET", "requestUri":"/ledgers/{name}/journal-s3-exports" }, "input":{"shape":"ListJournalS3ExportsForLedgerRequest"}, "output":{"shape":"ListJournalS3ExportsForLedgerResponse"}, "documentation":"

Returns an array of journal export job descriptions 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.

" }, "ListLedgers":{ "name":"ListLedgers", "http":{ "method":"GET", "requestUri":"/ledgers" }, "input":{"shape":"ListLedgersRequest"}, "output":{"shape":"ListLedgersResponse"}, "documentation":"

Returns an array of ledger summaries that are associated with the current account and Region.

This action returns a maximum of 100 items and is paginated so that you can retrieve all the items by calling ListLedgers multiple times.

" }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ "method":"GET", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Returns all tags for a specified Amazon QLDB resource.

" }, "StreamJournalToKinesis":{ "name":"StreamJournalToKinesis", "http":{ "method":"POST", "requestUri":"/ledgers/{name}/journal-kinesis-streams" }, "input":{"shape":"StreamJournalToKinesisRequest"}, "output":{"shape":"StreamJournalToKinesisResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourcePreconditionNotMetException"} ], "documentation":"

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.

" }, "TagResource":{ "name":"TagResource", "http":{ "method":"POST", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"TagResourceRequest"}, "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

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.

" }, "UntagResource":{ "name":"UntagResource", "http":{ "method":"DELETE", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"UntagResourceRequest"}, "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.

" }, "UpdateLedger":{ "name":"UpdateLedger", "http":{ "method":"PATCH", "requestUri":"/ledgers/{name}" }, "input":{"shape":"UpdateLedgerRequest"}, "output":{"shape":"UpdateLedgerResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Updates properties on a ledger.

" }, "UpdateLedgerPermissionsMode":{ "name":"UpdateLedgerPermissionsMode", "http":{ "method":"PATCH", "requestUri":"/ledgers/{name}/permissions-mode" }, "input":{"shape":"UpdateLedgerPermissionsModeRequest"}, "output":{"shape":"UpdateLedgerPermissionsModeResponse"}, "errors":[ {"shape":"InvalidParameterException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

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.

" } }, "shapes":{ "Arn":{ "type":"string", "max":1600, "min":20 }, "Boolean":{"type":"boolean"}, "CancelJournalKinesisStreamRequest":{ "type":"structure", "required":[ "LedgerName", "StreamId" ], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "StreamId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the QLDB journal stream to be canceled.

", "location":"uri", "locationName":"streamId" } } }, "CancelJournalKinesisStreamResponse":{ "type":"structure", "members":{ "StreamId":{ "shape":"UniqueId", "documentation":"

The UUID (Base62-encoded text) of the canceled QLDB journal stream.

" } } }, "CreateLedgerRequest":{ "type":"structure", "required":[ "Name", "PermissionsMode" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger that you want to create. The name must be unique among all of the ledgers in your account in the current Region.

Naming constraints for ledger names are defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.

" }, "Tags":{ "shape":"Tags", "documentation":"

The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.

" }, "PermissionsMode":{ "shape":"PermissionsMode", "documentation":"

The permissions mode to assign to the ledger that you want to create. This parameter can have one of the following values:

We strongly recommend using the STANDARD permissions mode to maximize the security of your ledger data.

" }, "DeletionProtection":{ "shape":"DeletionProtection", "documentation":"

The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true) by default.

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 the flag to false.

" }, "KmsKey":{ "shape":"KmsKey", "documentation":"

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For more information, see Encryption at rest in the Amazon QLDB Developer Guide.

Use one of the following options to specify this parameter:

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a key in a different account, you must use the key ARN or alias ARN.

For example:

For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.

" } } }, "CreateLedgerResponse":{ "type":"structure", "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "Arn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) for the ledger.

" }, "State":{ "shape":"LedgerState", "documentation":"

The current status of the ledger.

" }, "CreationDateTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" }, "PermissionsMode":{ "shape":"PermissionsMode", "documentation":"

The permissions mode of the ledger that you created.

" }, "DeletionProtection":{ "shape":"DeletionProtection", "documentation":"

The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true) by default.

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 the flag to false.

" }, "KmsKeyArn":{ "shape":"Arn", "documentation":"

The ARN of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.

" } } }, "DeleteLedgerRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger that you want to delete.

", "location":"uri", "locationName":"name" } } }, "DeletionProtection":{"type":"boolean"}, "DescribeJournalKinesisStreamRequest":{ "type":"structure", "required":[ "LedgerName", "StreamId" ], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "StreamId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the QLDB journal stream to describe.

", "location":"uri", "locationName":"streamId" } } }, "DescribeJournalKinesisStreamResponse":{ "type":"structure", "members":{ "Stream":{ "shape":"JournalKinesisStreamDescription", "documentation":"

Information about the QLDB journal stream returned by a DescribeJournalS3Export request.

" } } }, "DescribeJournalS3ExportRequest":{ "type":"structure", "required":[ "Name", "ExportId" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "ExportId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the journal export job to describe.

", "location":"uri", "locationName":"exportId" } } }, "DescribeJournalS3ExportResponse":{ "type":"structure", "required":["ExportDescription"], "members":{ "ExportDescription":{ "shape":"JournalS3ExportDescription", "documentation":"

Information about the journal export job returned by a DescribeJournalS3Export request.

" } } }, "DescribeLedgerRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger that you want to describe.

", "location":"uri", "locationName":"name" } } }, "DescribeLedgerResponse":{ "type":"structure", "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "Arn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) for the ledger.

" }, "State":{ "shape":"LedgerState", "documentation":"

The current status of the ledger.

" }, "CreationDateTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" }, "PermissionsMode":{ "shape":"PermissionsMode", "documentation":"

The permissions mode of the ledger.

" }, "DeletionProtection":{ "shape":"DeletionProtection", "documentation":"

The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true) by default.

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 the flag to false.

" }, "EncryptionDescription":{ "shape":"LedgerEncryptionDescription", "documentation":"

Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

" } } }, "Digest":{ "type":"blob", "max":32, "min":32 }, "EncryptionStatus":{ "type":"string", "enum":[ "ENABLED", "UPDATING", "KMS_KEY_INACCESSIBLE" ] }, "ErrorCause":{ "type":"string", "enum":[ "KINESIS_STREAM_NOT_FOUND", "IAM_PERMISSION_REVOKED" ] }, "ErrorMessage":{"type":"string"}, "ExportJournalToS3Request":{ "type":"structure", "required":[ "Name", "InclusiveStartTime", "ExclusiveEndTime", "S3ExportConfiguration", "RoleArn" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "InclusiveStartTime":{ "shape":"Timestamp", "documentation":"

The inclusive start date and time for the range of journal contents to export.

The InclusiveStartTime must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z.

The InclusiveStartTime must be before ExclusiveEndTime.

If you provide an InclusiveStartTime that is before the ledger's CreationDateTime, Amazon QLDB defaults it to the ledger's CreationDateTime.

" }, "ExclusiveEndTime":{ "shape":"Timestamp", "documentation":"

The exclusive end date and time for the range of journal contents to export.

The ExclusiveEndTime must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z.

The ExclusiveEndTime must be less than or equal to the current UTC date and time.

" }, "S3ExportConfiguration":{ "shape":"S3ExportConfiguration", "documentation":"

The configuration settings of the Amazon S3 bucket destination for your export request.

" }, "RoleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:

" } } }, "ExportJournalToS3Response":{ "type":"structure", "required":["ExportId"], "members":{ "ExportId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) that QLDB assigns to each journal export job.

To describe your export request and check the status of the job, you can use ExportId to call DescribeJournalS3Export.

" } } }, "ExportStatus":{ "type":"string", "enum":[ "IN_PROGRESS", "COMPLETED", "CANCELLED" ] }, "GetBlockRequest":{ "type":"structure", "required":[ "Name", "BlockAddress" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "BlockAddress":{ "shape":"ValueHolder", "documentation":"

The location of the block that you want to request. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo.

For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:14}.

" }, "DigestTipAddress":{ "shape":"ValueHolder", "documentation":"

The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo.

For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:49}.

" } } }, "GetBlockResponse":{ "type":"structure", "required":["Block"], "members":{ "Block":{ "shape":"ValueHolder", "documentation":"

The block data object in Amazon Ion format.

" }, "Proof":{ "shape":"ValueHolder", "documentation":"

The proof object in Amazon Ion format returned by a GetBlock request. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.

" } } }, "GetDigestRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" } } }, "GetDigestResponse":{ "type":"structure", "required":[ "Digest", "DigestTipAddress" ], "members":{ "Digest":{ "shape":"Digest", "documentation":"

The 256-bit hash value representing the digest returned by a GetDigest request.

" }, "DigestTipAddress":{ "shape":"ValueHolder", "documentation":"

The latest block location covered by the digest that you requested. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo.

" } } }, "GetRevisionRequest":{ "type":"structure", "required":[ "Name", "BlockAddress", "DocumentId" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "BlockAddress":{ "shape":"ValueHolder", "documentation":"

The block location of the document revision to be verified. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo.

For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:14}.

" }, "DocumentId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the document to be verified.

" }, "DigestTipAddress":{ "shape":"ValueHolder", "documentation":"

The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo.

For example: {strandId:\"BlFTjlSXze9BIh1KOszcE3\",sequenceNo:49}.

" } } }, "GetRevisionResponse":{ "type":"structure", "required":["Revision"], "members":{ "Proof":{ "shape":"ValueHolder", "documentation":"

The proof object in Amazon Ion format returned by a GetRevision request. A proof contains the list of hash values that are required to recalculate the specified digest using a Merkle tree, starting with the specified document revision.

" }, "Revision":{ "shape":"ValueHolder", "documentation":"

The document revision data object in Amazon Ion format.

" } } }, "InvalidParameterException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ParameterName":{ "shape":"ParameterName", "documentation":"

The name of the invalid parameter.

" } }, "documentation":"

One or more parameters in the request aren't valid.

", "error":{"httpStatusCode":400}, "exception":true }, "IonText":{ "type":"string", "max":1048576, "min":1, "sensitive":true }, "JournalKinesisStreamDescription":{ "type":"structure", "required":[ "LedgerName", "RoleArn", "StreamId", "Status", "KinesisConfiguration", "StreamName" ], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "CreationTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the QLDB journal stream was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" }, "InclusiveStartTime":{ "shape":"Timestamp", "documentation":"

The inclusive start date and time from which to start streaming journal data.

" }, "ExclusiveEndTime":{ "shape":"Timestamp", "documentation":"

The exclusive date and time that specifies when the stream ends. If this parameter is undefined, the stream runs indefinitely until you cancel it.

" }, "RoleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource.

" }, "StreamId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the QLDB journal stream.

" }, "Arn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the QLDB journal stream.

" }, "Status":{ "shape":"StreamStatus", "documentation":"

The current state of the QLDB journal stream.

" }, "KinesisConfiguration":{ "shape":"KinesisConfiguration", "documentation":"

The configuration settings of the Amazon Kinesis Data Streams destination for a QLDB journal stream.

" }, "ErrorCause":{ "shape":"ErrorCause", "documentation":"

The error message that describes the reason that a stream has a status of IMPAIRED or FAILED. This is not applicable to streams that have other status values.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The user-defined name of the QLDB journal stream.

" } }, "documentation":"

Information about an Amazon QLDB journal stream, including the Amazon Resource Name (ARN), stream name, creation time, current status, and the parameters of the original stream creation request.

" }, "JournalKinesisStreamDescriptionList":{ "type":"list", "member":{"shape":"JournalKinesisStreamDescription"} }, "JournalS3ExportDescription":{ "type":"structure", "required":[ "LedgerName", "ExportId", "ExportCreationTime", "Status", "InclusiveStartTime", "ExclusiveEndTime", "S3ExportConfiguration", "RoleArn" ], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "ExportId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) of the journal export job.

" }, "ExportCreationTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" }, "Status":{ "shape":"ExportStatus", "documentation":"

The current state of the journal export job.

" }, "InclusiveStartTime":{ "shape":"Timestamp", "documentation":"

The inclusive start date and time for the range of journal contents that are specified in the original export request.

" }, "ExclusiveEndTime":{ "shape":"Timestamp", "documentation":"

The exclusive end date and time for the range of journal contents that are specified in the original export request.

" }, "S3ExportConfiguration":{"shape":"S3ExportConfiguration"}, "RoleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:

" } }, "documentation":"

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.

" }, "JournalS3ExportList":{ "type":"list", "member":{"shape":"JournalS3ExportDescription"} }, "KinesisConfiguration":{ "type":"structure", "required":["StreamArn"], "members":{ "StreamArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the Kinesis Data Streams resource.

" }, "AggregationEnabled":{ "shape":"Boolean", "documentation":"

Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call.

This option is enabled by default. Record aggregation has important implications for processing records and requires de-aggregation in your stream consumer. To learn more, see KPL Key Concepts and Consumer De-aggregation in the Amazon Kinesis Data Streams Developer Guide.

" } }, "documentation":"

The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal stream.

" }, "KmsKey":{ "type":"string", "max":1600 }, "LedgerEncryptionDescription":{ "type":"structure", "required":[ "KmsKeyArn", "EncryptionStatus" ], "members":{ "KmsKeyArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the customer managed KMS key that the ledger uses for encryption at rest. If this parameter is undefined, the ledger uses an Amazon Web Services owned KMS key for encryption.

" }, "EncryptionStatus":{ "shape":"EncryptionStatus", "documentation":"

The current state of encryption at rest for the ledger. This can be one of the following values:

" }, "InaccessibleKmsKeyDateTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the KMS key first became inaccessible, in the case of an error. (Epoch time format is the number of seconds that have elapsed since 12:00:00 AM January 1, 1970 UTC.)

This parameter is undefined if the KMS key is accessible.

" } }, "documentation":"

Information about the encryption of data at rest in an Amazon QLDB ledger. This includes the current status, the key in Key Management Service (KMS), and when the key became inaccessible (in the case of an error).

For more information, see Encryption at rest in the Amazon QLDB Developer Guide.

" }, "LedgerList":{ "type":"list", "member":{"shape":"LedgerSummary"} }, "LedgerName":{ "type":"string", "max":32, "min":1, "pattern":"(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$" }, "LedgerState":{ "type":"string", "enum":[ "CREATING", "ACTIVE", "DELETING", "DELETED" ] }, "LedgerSummary":{ "type":"structure", "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "State":{ "shape":"LedgerState", "documentation":"

The current status of the ledger.

" }, "CreationDateTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" } }, "documentation":"

Information about a ledger, including its name, state, and when it was created.

" }, "LimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ResourceType":{ "shape":"ResourceType", "documentation":"

The type of resource.

" } }, "documentation":"

You have reached the limit on the maximum number of resources allowed.

", "error":{"httpStatusCode":400}, "exception":true }, "ListJournalKinesisStreamsForLedgerRequest":{ "type":"structure", "required":["LedgerName"], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return in a single ListJournalKinesisStreamsForLedger request. (The actual number of results returned might be fewer.)

", "location":"querystring", "locationName":"max_results" }, "NextToken":{ "shape":"NextToken", "documentation":"

A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListJournalKinesisStreamsForLedger call, you should use that value as input here.

", "location":"querystring", "locationName":"next_token" } } }, "ListJournalKinesisStreamsForLedgerResponse":{ "type":"structure", "members":{ "Streams":{ "shape":"JournalKinesisStreamDescriptionList", "documentation":"

The array of QLDB journal stream descriptors that are associated with the given ledger.

" }, "NextToken":{ "shape":"NextToken", "documentation":"" } } }, "ListJournalS3ExportsForLedgerRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return in a single ListJournalS3ExportsForLedger request. (The actual number of results returned might be fewer.)

", "location":"querystring", "locationName":"max_results" }, "NextToken":{ "shape":"NextToken", "documentation":"

A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListJournalS3ExportsForLedger call, then you should use that value as input here.

", "location":"querystring", "locationName":"next_token" } } }, "ListJournalS3ExportsForLedgerResponse":{ "type":"structure", "members":{ "JournalS3Exports":{ "shape":"JournalS3ExportList", "documentation":"

The array of journal export job descriptions that are associated with the specified ledger.

" }, "NextToken":{ "shape":"NextToken", "documentation":"" } } }, "ListJournalS3ExportsRequest":{ "type":"structure", "members":{ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return in a single ListJournalS3Exports request. (The actual number of results returned might be fewer.)

", "location":"querystring", "locationName":"max_results" }, "NextToken":{ "shape":"NextToken", "documentation":"

A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListJournalS3Exports call, then you should use that value as input here.

", "location":"querystring", "locationName":"next_token" } } }, "ListJournalS3ExportsResponse":{ "type":"structure", "members":{ "JournalS3Exports":{ "shape":"JournalS3ExportList", "documentation":"

The array of journal export job descriptions for all ledgers that are associated with the current account and Region.

" }, "NextToken":{ "shape":"NextToken", "documentation":"" } } }, "ListLedgersRequest":{ "type":"structure", "members":{ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return in a single ListLedgers request. (The actual number of results returned might be fewer.)

", "location":"querystring", "locationName":"max_results" }, "NextToken":{ "shape":"NextToken", "documentation":"

A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListLedgers call, then you should use that value as input here.

", "location":"querystring", "locationName":"next_token" } } }, "ListLedgersResponse":{ "type":"structure", "members":{ "Ledgers":{ "shape":"LedgerList", "documentation":"

The array of ledger summaries that are associated with the current account and Region.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

A pagination token, indicating whether there are more results available:

" } } }, "ListTagsForResourceRequest":{ "type":"structure", "required":["ResourceArn"], "members":{ "ResourceArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) for which to list the tags. For example:

arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger

", "location":"uri", "locationName":"resourceArn" } } }, "ListTagsForResourceResponse":{ "type":"structure", "members":{ "Tags":{ "shape":"Tags", "documentation":"

The tags that are currently associated with the specified Amazon QLDB resource.

" } } }, "MaxResults":{ "type":"integer", "max":100, "min":1 }, "NextToken":{ "type":"string", "max":1024, "min":4, "pattern":"^[A-Za-z-0-9+/=]+$" }, "ParameterName":{"type":"string"}, "PermissionsMode":{ "type":"string", "enum":[ "ALLOW_ALL", "STANDARD" ] }, "ResourceAlreadyExistsException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ResourceType":{ "shape":"ResourceType", "documentation":"

The type of resource.

" }, "ResourceName":{ "shape":"ResourceName", "documentation":"

The name of the resource.

" } }, "documentation":"

The specified resource already exists.

", "error":{"httpStatusCode":409}, "exception":true }, "ResourceInUseException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ResourceType":{ "shape":"ResourceType", "documentation":"

The type of resource.

" }, "ResourceName":{ "shape":"ResourceName", "documentation":"

The name of the resource.

" } }, "documentation":"

The specified resource can't be modified at this time.

", "error":{"httpStatusCode":409}, "exception":true }, "ResourceName":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ResourceType":{ "shape":"ResourceType", "documentation":"

The type of resource.

" }, "ResourceName":{ "shape":"ResourceName", "documentation":"

The name of the resource.

" } }, "documentation":"

The specified resource doesn't exist.

", "error":{"httpStatusCode":404}, "exception":true }, "ResourcePreconditionNotMetException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "ResourceType":{ "shape":"ResourceType", "documentation":"

The type of resource.

" }, "ResourceName":{ "shape":"ResourceName", "documentation":"

The name of the resource.

" } }, "documentation":"

The operation failed because a condition wasn't satisfied in advance.

", "error":{"httpStatusCode":412}, "exception":true }, "ResourceType":{"type":"string"}, "S3Bucket":{ "type":"string", "max":255, "min":3, "pattern":"^[A-Za-z-0-9-_.]+$" }, "S3EncryptionConfiguration":{ "type":"structure", "required":["ObjectEncryptionType"], "members":{ "ObjectEncryptionType":{ "shape":"S3ObjectEncryptionType", "documentation":"

The Amazon S3 object encryption type.

To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide.

" }, "KmsKeyArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) in Key Management Service (KMS). Amazon S3 does not support asymmetric CMKs.

You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType.

KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType.

" } }, "documentation":"

The encryption settings that are used by a journal export job to write data in an Amazon Simple Storage Service (Amazon S3) bucket.

" }, "S3ExportConfiguration":{ "type":"structure", "required":[ "Bucket", "Prefix", "EncryptionConfiguration" ], "members":{ "Bucket":{ "shape":"S3Bucket", "documentation":"

The Amazon S3 bucket name in which a journal export job writes the journal contents.

The bucket name must comply with the Amazon S3 bucket naming conventions. For more information, see Bucket Restrictions and Limitations in the Amazon S3 Developer Guide.

" }, "Prefix":{ "shape":"S3Prefix", "documentation":"

The prefix for the Amazon S3 bucket in which a journal export job writes the journal contents.

The prefix must comply with Amazon S3 key naming rules and restrictions. For more information, see Object Key and Metadata in the Amazon S3 Developer Guide.

The following are examples of valid Prefix values:

" }, "EncryptionConfiguration":{ "shape":"S3EncryptionConfiguration", "documentation":"

The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.

" } }, "documentation":"

The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal contents.

" }, "S3ObjectEncryptionType":{ "type":"string", "enum":[ "SSE_KMS", "SSE_S3", "NO_ENCRYPTION" ] }, "S3Prefix":{ "type":"string", "max":128, "min":0 }, "StreamJournalToKinesisRequest":{ "type":"structure", "required":[ "LedgerName", "RoleArn", "InclusiveStartTime", "KinesisConfiguration", "StreamName" ], "members":{ "LedgerName":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "RoleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource.

" }, "Tags":{ "shape":"Tags", "documentation":"

The key-value pairs to add as tags to the stream that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.

" }, "InclusiveStartTime":{ "shape":"Timestamp", "documentation":"

The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z.

The InclusiveStartTime cannot be in the future and must be before ExclusiveEndTime.

If you provide an InclusiveStartTime that is before the ledger's CreationDateTime, QLDB effectively defaults it to the ledger's CreationDateTime.

" }, "ExclusiveEndTime":{ "shape":"Timestamp", "documentation":"

The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it.

The ExclusiveEndTime must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z.

" }, "KinesisConfiguration":{ "shape":"KinesisConfiguration", "documentation":"

The configuration settings of the Kinesis Data Streams destination for your stream request.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream.

Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide.

" } } }, "StreamJournalToKinesisResponse":{ "type":"structure", "members":{ "StreamId":{ "shape":"UniqueId", "documentation":"

The UUID (represented in Base62-encoded text) that QLDB assigns to each QLDB journal stream.

" } } }, "StreamName":{ "type":"string", "max":32, "min":1, "pattern":"(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$" }, "StreamStatus":{ "type":"string", "enum":[ "ACTIVE", "COMPLETED", "CANCELED", "FAILED", "IMPAIRED" ] }, "TagKey":{ "type":"string", "max":128, "min":1 }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, "max":200, "min":0 }, "TagResourceRequest":{ "type":"structure", "required":[ "ResourceArn", "Tags" ], "members":{ "ResourceArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) to which you want to add the tags. For example:

arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger

", "location":"uri", "locationName":"resourceArn" }, "Tags":{ "shape":"Tags", "documentation":"

The key-value pairs to add as tags to the specified QLDB resource. Tag keys are case sensitive. If you specify a key that already exists for the resource, your request fails and returns an error. Tag values are case sensitive and can be null.

" } } }, "TagResourceResponse":{ "type":"structure", "members":{ } }, "TagValue":{ "type":"string", "max":256, "min":0 }, "Tags":{ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"}, "max":200, "min":0 }, "Timestamp":{"type":"timestamp"}, "UniqueId":{ "type":"string", "max":22, "min":22, "pattern":"^[A-Za-z-0-9]+$" }, "UntagResourceRequest":{ "type":"structure", "required":[ "ResourceArn", "TagKeys" ], "members":{ "ResourceArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) from which to remove the tags. For example:

arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger

", "location":"uri", "locationName":"resourceArn" }, "TagKeys":{ "shape":"TagKeyList", "documentation":"

The list of tag keys to remove.

", "location":"querystring", "locationName":"tagKeys" } } }, "UntagResourceResponse":{ "type":"structure", "members":{ } }, "UpdateLedgerPermissionsModeRequest":{ "type":"structure", "required":[ "Name", "PermissionsMode" ], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "PermissionsMode":{ "shape":"PermissionsMode", "documentation":"

The permissions mode to assign to the ledger. This parameter can have one of the following values:

We strongly recommend using the STANDARD permissions mode to maximize the security of your ledger data.

" } } }, "UpdateLedgerPermissionsModeResponse":{ "type":"structure", "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "Arn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) for the ledger.

" }, "PermissionsMode":{ "shape":"PermissionsMode", "documentation":"

The current permissions mode of the ledger.

" } } }, "UpdateLedgerRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

", "location":"uri", "locationName":"name" }, "DeletionProtection":{ "shape":"DeletionProtection", "documentation":"

The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true) by default.

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 the flag to false.

" }, "KmsKey":{ "shape":"KmsKey", "documentation":"

The key in Key Management Service (KMS) to use for encryption of data at rest in the ledger. For more information, see Encryption at rest in the Amazon QLDB Developer Guide.

Use one of the following options to specify this parameter:

To specify a customer managed KMS key, you can use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a key in a different account, you must use the key ARN or alias ARN.

For example:

For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.

" } } }, "UpdateLedgerResponse":{ "type":"structure", "members":{ "Name":{ "shape":"LedgerName", "documentation":"

The name of the ledger.

" }, "Arn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) for the ledger.

" }, "State":{ "shape":"LedgerState", "documentation":"

The current status of the ledger.

" }, "CreationDateTime":{ "shape":"Timestamp", "documentation":"

The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)

" }, "DeletionProtection":{ "shape":"DeletionProtection", "documentation":"

The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true) by default.

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 the flag to false.

" }, "EncryptionDescription":{ "shape":"LedgerEncryptionDescription", "documentation":"

Information about the encryption of data at rest in the ledger. This includes the current status, the KMS key, and when the key became inaccessible (in the case of an error).

" } } }, "ValueHolder":{ "type":"structure", "members":{ "IonText":{ "shape":"IonText", "documentation":"

An Amazon Ion plaintext value contained in a ValueHolder structure.

" } }, "documentation":"

A structure that can contain a value in multiple encoding formats.

", "sensitive":true } }, "documentation":"

The control plane for Amazon QLDB

" }