UNPKG

32.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class QLDB extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: QLDB.Types.ClientConfiguration)
13 config: Config & QLDB.Types.ClientConfiguration;
14 /**
15 * Creates a new ledger in your AWS account.
16 */
17 createLedger(params: QLDB.Types.CreateLedgerRequest, callback?: (err: AWSError, data: QLDB.Types.CreateLedgerResponse) => void): Request<QLDB.Types.CreateLedgerResponse, AWSError>;
18 /**
19 * Creates a new ledger in your AWS account.
20 */
21 createLedger(callback?: (err: AWSError, data: QLDB.Types.CreateLedgerResponse) => void): Request<QLDB.Types.CreateLedgerResponse, AWSError>;
22 /**
23 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
24 */
25 deleteLedger(params: QLDB.Types.DeleteLedgerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
26 /**
27 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
28 */
29 deleteLedger(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
30 /**
31 * Returns information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters. 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.
32 */
33 describeJournalS3Export(params: QLDB.Types.DescribeJournalS3ExportRequest, callback?: (err: AWSError, data: QLDB.Types.DescribeJournalS3ExportResponse) => void): Request<QLDB.Types.DescribeJournalS3ExportResponse, AWSError>;
34 /**
35 * Returns information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters. 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.
36 */
37 describeJournalS3Export(callback?: (err: AWSError, data: QLDB.Types.DescribeJournalS3ExportResponse) => void): Request<QLDB.Types.DescribeJournalS3ExportResponse, AWSError>;
38 /**
39 * Returns information about a ledger, including its state and when it was created.
40 */
41 describeLedger(params: QLDB.Types.DescribeLedgerRequest, callback?: (err: AWSError, data: QLDB.Types.DescribeLedgerResponse) => void): Request<QLDB.Types.DescribeLedgerResponse, AWSError>;
42 /**
43 * Returns information about a ledger, including its state and when it was created.
44 */
45 describeLedger(callback?: (err: AWSError, data: QLDB.Types.DescribeLedgerResponse) => void): Request<QLDB.Types.DescribeLedgerResponse, AWSError>;
46 /**
47 * 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.
48 */
49 exportJournalToS3(params: QLDB.Types.ExportJournalToS3Request, callback?: (err: AWSError, data: QLDB.Types.ExportJournalToS3Response) => void): Request<QLDB.Types.ExportJournalToS3Response, AWSError>;
50 /**
51 * 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.
52 */
53 exportJournalToS3(callback?: (err: AWSError, data: QLDB.Types.ExportJournalToS3Response) => void): Request<QLDB.Types.ExportJournalToS3Response, AWSError>;
54 /**
55 * Returns a journal block object at a specified address in a ledger. Also returns a proof of the specified block for verification if DigestTipAddress is provided. 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.
56 */
57 getBlock(params: QLDB.Types.GetBlockRequest, callback?: (err: AWSError, data: QLDB.Types.GetBlockResponse) => void): Request<QLDB.Types.GetBlockResponse, AWSError>;
58 /**
59 * Returns a journal block object at a specified address in a ledger. Also returns a proof of the specified block for verification if DigestTipAddress is provided. 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.
60 */
61 getBlock(callback?: (err: AWSError, data: QLDB.Types.GetBlockResponse) => void): Request<QLDB.Types.GetBlockResponse, AWSError>;
62 /**
63 * 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.
64 */
65 getDigest(params: QLDB.Types.GetDigestRequest, callback?: (err: AWSError, data: QLDB.Types.GetDigestResponse) => void): Request<QLDB.Types.GetDigestResponse, AWSError>;
66 /**
67 * 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.
68 */
69 getDigest(callback?: (err: AWSError, data: QLDB.Types.GetDigestResponse) => void): Request<QLDB.Types.GetDigestResponse, AWSError>;
70 /**
71 * 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.
72 */
73 getRevision(params: QLDB.Types.GetRevisionRequest, callback?: (err: AWSError, data: QLDB.Types.GetRevisionResponse) => void): Request<QLDB.Types.GetRevisionResponse, AWSError>;
74 /**
75 * 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.
76 */
77 getRevision(callback?: (err: AWSError, data: QLDB.Types.GetRevisionResponse) => void): Request<QLDB.Types.GetRevisionResponse, AWSError>;
78 /**
79 * Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS 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.
80 */
81 listJournalS3Exports(params: QLDB.Types.ListJournalS3ExportsRequest, callback?: (err: AWSError, data: QLDB.Types.ListJournalS3ExportsResponse) => void): Request<QLDB.Types.ListJournalS3ExportsResponse, AWSError>;
82 /**
83 * Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS 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.
84 */
85 listJournalS3Exports(callback?: (err: AWSError, data: QLDB.Types.ListJournalS3ExportsResponse) => void): Request<QLDB.Types.ListJournalS3ExportsResponse, AWSError>;
86 /**
87 * 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.
88 */
89 listJournalS3ExportsForLedger(params: QLDB.Types.ListJournalS3ExportsForLedgerRequest, callback?: (err: AWSError, data: QLDB.Types.ListJournalS3ExportsForLedgerResponse) => void): Request<QLDB.Types.ListJournalS3ExportsForLedgerResponse, AWSError>;
90 /**
91 * 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.
92 */
93 listJournalS3ExportsForLedger(callback?: (err: AWSError, data: QLDB.Types.ListJournalS3ExportsForLedgerResponse) => void): Request<QLDB.Types.ListJournalS3ExportsForLedgerResponse, AWSError>;
94 /**
95 * Returns an array of ledger summaries that are associated with the current AWS 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.
96 */
97 listLedgers(params: QLDB.Types.ListLedgersRequest, callback?: (err: AWSError, data: QLDB.Types.ListLedgersResponse) => void): Request<QLDB.Types.ListLedgersResponse, AWSError>;
98 /**
99 * Returns an array of ledger summaries that are associated with the current AWS 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.
100 */
101 listLedgers(callback?: (err: AWSError, data: QLDB.Types.ListLedgersResponse) => void): Request<QLDB.Types.ListLedgersResponse, AWSError>;
102 /**
103 * Returns all tags for a specified Amazon QLDB resource.
104 */
105 listTagsForResource(params: QLDB.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: QLDB.Types.ListTagsForResourceResponse) => void): Request<QLDB.Types.ListTagsForResourceResponse, AWSError>;
106 /**
107 * Returns all tags for a specified Amazon QLDB resource.
108 */
109 listTagsForResource(callback?: (err: AWSError, data: QLDB.Types.ListTagsForResourceResponse) => void): Request<QLDB.Types.ListTagsForResourceResponse, AWSError>;
110 /**
111 * 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.
112 */
113 tagResource(params: QLDB.Types.TagResourceRequest, callback?: (err: AWSError, data: QLDB.Types.TagResourceResponse) => void): Request<QLDB.Types.TagResourceResponse, AWSError>;
114 /**
115 * 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.
116 */
117 tagResource(callback?: (err: AWSError, data: QLDB.Types.TagResourceResponse) => void): Request<QLDB.Types.TagResourceResponse, AWSError>;
118 /**
119 * Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
120 */
121 untagResource(params: QLDB.Types.UntagResourceRequest, callback?: (err: AWSError, data: QLDB.Types.UntagResourceResponse) => void): Request<QLDB.Types.UntagResourceResponse, AWSError>;
122 /**
123 * Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
124 */
125 untagResource(callback?: (err: AWSError, data: QLDB.Types.UntagResourceResponse) => void): Request<QLDB.Types.UntagResourceResponse, AWSError>;
126 /**
127 * Updates properties on a ledger.
128 */
129 updateLedger(params: QLDB.Types.UpdateLedgerRequest, callback?: (err: AWSError, data: QLDB.Types.UpdateLedgerResponse) => void): Request<QLDB.Types.UpdateLedgerResponse, AWSError>;
130 /**
131 * Updates properties on a ledger.
132 */
133 updateLedger(callback?: (err: AWSError, data: QLDB.Types.UpdateLedgerResponse) => void): Request<QLDB.Types.UpdateLedgerResponse, AWSError>;
134}
135declare namespace QLDB {
136 export type Arn = string;
137 export interface CreateLedgerRequest {
138 /**
139 * The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
140 */
141 Name: LedgerName;
142 /**
143 * 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.
144 */
145 Tags?: Tags;
146 /**
147 * The permissions mode to assign to the ledger that you want to create.
148 */
149 PermissionsMode: PermissionsMode;
150 /**
151 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
152 */
153 DeletionProtection?: DeletionProtection;
154 }
155 export interface CreateLedgerResponse {
156 /**
157 * The name of the ledger.
158 */
159 Name?: LedgerName;
160 /**
161 * The Amazon Resource Name (ARN) for the ledger.
162 */
163 Arn?: Arn;
164 /**
165 * The current status of the ledger.
166 */
167 State?: LedgerState;
168 /**
169 * 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.)
170 */
171 CreationDateTime?: Timestamp;
172 /**
173 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
174 */
175 DeletionProtection?: DeletionProtection;
176 }
177 export interface DeleteLedgerRequest {
178 /**
179 * The name of the ledger that you want to delete.
180 */
181 Name: LedgerName;
182 }
183 export type DeletionProtection = boolean;
184 export interface DescribeJournalS3ExportRequest {
185 /**
186 * The name of the ledger.
187 */
188 Name: LedgerName;
189 /**
190 * The unique ID of the journal export job that you want to describe.
191 */
192 ExportId: UniqueId;
193 }
194 export interface DescribeJournalS3ExportResponse {
195 /**
196 * Information about the journal export job returned by a DescribeJournalS3Export request.
197 */
198 ExportDescription: JournalS3ExportDescription;
199 }
200 export interface DescribeLedgerRequest {
201 /**
202 * The name of the ledger that you want to describe.
203 */
204 Name: LedgerName;
205 }
206 export interface DescribeLedgerResponse {
207 /**
208 * The name of the ledger.
209 */
210 Name?: LedgerName;
211 /**
212 * The Amazon Resource Name (ARN) for the ledger.
213 */
214 Arn?: Arn;
215 /**
216 * The current status of the ledger.
217 */
218 State?: LedgerState;
219 /**
220 * 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.)
221 */
222 CreationDateTime?: Timestamp;
223 /**
224 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
225 */
226 DeletionProtection?: DeletionProtection;
227 }
228 export type Digest = Buffer|Uint8Array|Blob|string;
229 export interface ExportJournalToS3Request {
230 /**
231 * The name of the ledger.
232 */
233 Name: LedgerName;
234 /**
235 * The inclusive start date and time for the range of journal contents that you want 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.
236 */
237 InclusiveStartTime: Timestamp;
238 /**
239 * The exclusive end date and time for the range of journal contents that you want 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.
240 */
241 ExclusiveEndTime: Timestamp;
242 /**
243 * The configuration settings of the Amazon S3 bucket destination for your export request.
244 */
245 S3ExportConfiguration: S3ExportConfiguration;
246 /**
247 * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following: Write objects into your Amazon Simple Storage Service (Amazon S3) bucket. (Optional) Use your customer master key (CMK) in AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
248 */
249 RoleArn: Arn;
250 }
251 export interface ExportJournalToS3Response {
252 /**
253 * The unique ID 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.
254 */
255 ExportId: UniqueId;
256 }
257 export type ExportStatus = "IN_PROGRESS"|"COMPLETED"|"CANCELLED"|string;
258 export interface GetBlockRequest {
259 /**
260 * The name of the ledger.
261 */
262 Name: LedgerName;
263 /**
264 * 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}
265 */
266 BlockAddress: ValueHolder;
267 /**
268 * 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}
269 */
270 DigestTipAddress?: ValueHolder;
271 }
272 export interface GetBlockResponse {
273 /**
274 * The block data object in Amazon Ion format.
275 */
276 Block: ValueHolder;
277 /**
278 * 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.
279 */
280 Proof?: ValueHolder;
281 }
282 export interface GetDigestRequest {
283 /**
284 * The name of the ledger.
285 */
286 Name: LedgerName;
287 }
288 export interface GetDigestResponse {
289 /**
290 * The 256-bit hash value representing the digest returned by a GetDigest request.
291 */
292 Digest: Digest;
293 /**
294 * 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.
295 */
296 DigestTipAddress: ValueHolder;
297 }
298 export interface GetRevisionRequest {
299 /**
300 * The name of the ledger.
301 */
302 Name: LedgerName;
303 /**
304 * 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}
305 */
306 BlockAddress: ValueHolder;
307 /**
308 * The unique ID of the document to be verified.
309 */
310 DocumentId: UniqueId;
311 /**
312 * 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}
313 */
314 DigestTipAddress?: ValueHolder;
315 }
316 export interface GetRevisionResponse {
317 /**
318 * 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.
319 */
320 Proof?: ValueHolder;
321 /**
322 * The document revision data object in Amazon Ion format.
323 */
324 Revision: ValueHolder;
325 }
326 export type IonText = string;
327 export interface JournalS3ExportDescription {
328 /**
329 * The name of the ledger.
330 */
331 LedgerName: LedgerName;
332 /**
333 * The unique ID of the journal export job.
334 */
335 ExportId: UniqueId;
336 /**
337 * 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.)
338 */
339 ExportCreationTime: Timestamp;
340 /**
341 * The current state of the journal export job.
342 */
343 Status: ExportStatus;
344 /**
345 * The inclusive start date and time for the range of journal contents that are specified in the original export request.
346 */
347 InclusiveStartTime: Timestamp;
348 /**
349 * The exclusive end date and time for the range of journal contents that are specified in the original export request.
350 */
351 ExclusiveEndTime: Timestamp;
352 S3ExportConfiguration: S3ExportConfiguration;
353 /**
354 * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following: Write objects into your Amazon Simple Storage Service (Amazon S3) bucket. (Optional) Use your customer master key (CMK) in AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
355 */
356 RoleArn: Arn;
357 }
358 export type JournalS3ExportList = JournalS3ExportDescription[];
359 export type LedgerList = LedgerSummary[];
360 export type LedgerName = string;
361 export type LedgerState = "CREATING"|"ACTIVE"|"DELETING"|"DELETED"|string;
362 export interface LedgerSummary {
363 /**
364 * The name of the ledger.
365 */
366 Name?: LedgerName;
367 /**
368 * The current status of the ledger.
369 */
370 State?: LedgerState;
371 /**
372 * 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.)
373 */
374 CreationDateTime?: Timestamp;
375 }
376 export interface ListJournalS3ExportsForLedgerRequest {
377 /**
378 * The name of the ledger.
379 */
380 Name: LedgerName;
381 /**
382 * The maximum number of results to return in a single ListJournalS3ExportsForLedger request. (The actual number of results returned might be fewer.)
383 */
384 MaxResults?: MaxResults;
385 /**
386 * 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.
387 */
388 NextToken?: NextToken;
389 }
390 export interface ListJournalS3ExportsForLedgerResponse {
391 /**
392 * The array of journal export job descriptions that are associated with the specified ledger.
393 */
394 JournalS3Exports?: JournalS3ExportList;
395 /**
396 * If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved. If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListJournalS3ExportsForLedger call.
397 */
398 NextToken?: NextToken;
399 }
400 export interface ListJournalS3ExportsRequest {
401 /**
402 * The maximum number of results to return in a single ListJournalS3Exports request. (The actual number of results returned might be fewer.)
403 */
404 MaxResults?: MaxResults;
405 /**
406 * 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.
407 */
408 NextToken?: NextToken;
409 }
410 export interface ListJournalS3ExportsResponse {
411 /**
412 * The array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region.
413 */
414 JournalS3Exports?: JournalS3ExportList;
415 /**
416 * If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved. If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListJournalS3Exports call.
417 */
418 NextToken?: NextToken;
419 }
420 export interface ListLedgersRequest {
421 /**
422 * The maximum number of results to return in a single ListLedgers request. (The actual number of results returned might be fewer.)
423 */
424 MaxResults?: MaxResults;
425 /**
426 * 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.
427 */
428 NextToken?: NextToken;
429 }
430 export interface ListLedgersResponse {
431 /**
432 * The array of ledger summaries that are associated with the current AWS account and Region.
433 */
434 Ledgers?: LedgerList;
435 /**
436 * A pagination token, indicating whether there are more results available: If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved. If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListLedgers call.
437 */
438 NextToken?: NextToken;
439 }
440 export interface ListTagsForResourceRequest {
441 /**
442 * The Amazon Resource Name (ARN) for which you want to list the tags. For example: arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
443 */
444 ResourceArn: Arn;
445 }
446 export interface ListTagsForResourceResponse {
447 /**
448 * The tags that are currently associated with the specified Amazon QLDB resource.
449 */
450 Tags?: Tags;
451 }
452 export type MaxResults = number;
453 export type NextToken = string;
454 export type PermissionsMode = "ALLOW_ALL"|string;
455 export type S3Bucket = string;
456 export interface S3EncryptionConfiguration {
457 /**
458 * 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.
459 */
460 ObjectEncryptionType: S3ObjectEncryptionType;
461 /**
462 * The Amazon Resource Name (ARN) for a customer master key (CMK) in AWS Key Management Service (AWS KMS). 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.
463 */
464 KmsKeyArn?: Arn;
465 }
466 export interface S3ExportConfiguration {
467 /**
468 * 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.
469 */
470 Bucket: S3Bucket;
471 /**
472 * 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: JournalExports-ForMyLedger/Testing/ JournalExports My:Tests/
473 */
474 Prefix: S3Prefix;
475 /**
476 * The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.
477 */
478 EncryptionConfiguration: S3EncryptionConfiguration;
479 }
480 export type S3ObjectEncryptionType = "SSE_KMS"|"SSE_S3"|"NO_ENCRYPTION"|string;
481 export type S3Prefix = string;
482 export type TagKey = string;
483 export type TagKeyList = TagKey[];
484 export interface TagResourceRequest {
485 /**
486 * The Amazon Resource Name (ARN) to which you want to add the tags. For example: arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
487 */
488 ResourceArn: Arn;
489 /**
490 * 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.
491 */
492 Tags: Tags;
493 }
494 export interface TagResourceResponse {
495 }
496 export type TagValue = string;
497 export type Tags = {[key: string]: TagValue};
498 export type Timestamp = Date;
499 export type UniqueId = string;
500 export interface UntagResourceRequest {
501 /**
502 * The Amazon Resource Name (ARN) from which you want to remove the tags. For example: arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
503 */
504 ResourceArn: Arn;
505 /**
506 * The list of tag keys that you want to remove.
507 */
508 TagKeys: TagKeyList;
509 }
510 export interface UntagResourceResponse {
511 }
512 export interface UpdateLedgerRequest {
513 /**
514 * The name of the ledger.
515 */
516 Name: LedgerName;
517 /**
518 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
519 */
520 DeletionProtection?: DeletionProtection;
521 }
522 export interface UpdateLedgerResponse {
523 /**
524 * The name of the ledger.
525 */
526 Name?: LedgerName;
527 /**
528 * The Amazon Resource Name (ARN) for the ledger.
529 */
530 Arn?: Arn;
531 /**
532 * The current status of the ledger.
533 */
534 State?: LedgerState;
535 /**
536 * 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.)
537 */
538 CreationDateTime?: Timestamp;
539 /**
540 * 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 using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
541 */
542 DeletionProtection?: DeletionProtection;
543 }
544 export interface ValueHolder {
545 /**
546 * An Amazon Ion plaintext value contained in a ValueHolder structure.
547 */
548 IonText?: IonText;
549 }
550 /**
551 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
552 */
553 export type apiVersion = "2019-01-02"|"latest"|string;
554 export interface ClientApiVersions {
555 /**
556 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
557 */
558 apiVersion?: apiVersion;
559 }
560 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
561 /**
562 * Contains interfaces for use with the QLDB client.
563 */
564 export import Types = QLDB;
565}
566export = QLDB;