@aws-sdk/client-dynamodb 3.418.0 → 3.420.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InputCompressionType = exports.ImportStatus = exports.GlobalTableNotFoundException = exports.ExportNotFoundException = exports.S3SseAlgorithm = exports.ExportStatus = exports.ExportFormat = exports.TransactionConflictException = exports.ReturnValue = exports.ResourceInUseException = exports.TableStatus = exports.IndexStatus = exports.GlobalTableAlreadyExistsException = exports.TableClass = exports.ReplicaStatus = exports.GlobalTableStatus = exports.TableNotFoundException = exports.TableInUseException = exports.LimitExceededException = exports.ContributorInsightsStatus = exports.ContributorInsightsAction = exports.ContinuousBackupsUnavailableException = exports.PointInTimeRecoveryStatus = exports.ContinuousBackupsStatus = exports.ConditionalOperator = exports.ComparisonOperator = exports.ItemCollectionSizeLimitExceededException = exports.ReturnItemCollectionMetrics = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidEndpointException = exports.RequestLimitExceeded = exports.InternalServerError = exports.BatchStatementErrorCodeEnum = exports.ReturnValuesOnConditionCheckFailure = exports.ReturnConsumedCapacity = exports.BackupTypeFilter = exports.BackupNotFoundException = exports.BackupInUseException = exports.TimeToLiveStatus = exports.StreamViewType = exports.SSEStatus = exports.SSEType = exports.ProjectionType = exports.KeyType = exports.BillingMode = exports.BackupType = exports.BackupStatus = exports.ScalarAttributeType = exports.AttributeAction = void 0;
4
- exports.TransactionCanceledException = exports.ConditionalCheckFailedException = exports.AttributeValue = exports.IndexNotFoundException = exports.ReplicaNotFoundException = exports.ReplicaAlreadyExistsException = exports.InvalidRestoreTimeException = exports.TableAlreadyExistsException = exports.Select = exports.ImportConflictException = exports.PointInTimeRecoveryUnavailableException = exports.InvalidExportTimeException = exports.ExportConflictException = exports.TransactionInProgressException = exports.IdempotentParameterMismatchException = exports.DuplicateItemException = exports.DestinationStatus = exports.ImportNotFoundException = exports.InputFormat = void 0;
3
+ exports.GlobalTableNotFoundException = exports.ExportNotFoundException = exports.S3SseAlgorithm = exports.ExportViewType = exports.ExportType = exports.ExportStatus = exports.ExportFormat = exports.TransactionConflictException = exports.ReturnValue = exports.ResourceInUseException = exports.TableStatus = exports.IndexStatus = exports.GlobalTableAlreadyExistsException = exports.TableClass = exports.ReplicaStatus = exports.GlobalTableStatus = exports.TableNotFoundException = exports.TableInUseException = exports.LimitExceededException = exports.ContributorInsightsStatus = exports.ContributorInsightsAction = exports.ContinuousBackupsUnavailableException = exports.PointInTimeRecoveryStatus = exports.ContinuousBackupsStatus = exports.ConditionalOperator = exports.ComparisonOperator = exports.ItemCollectionSizeLimitExceededException = exports.ReturnItemCollectionMetrics = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidEndpointException = exports.RequestLimitExceeded = exports.InternalServerError = exports.BatchStatementErrorCodeEnum = exports.ReturnValuesOnConditionCheckFailure = exports.ReturnConsumedCapacity = exports.BackupTypeFilter = exports.BackupNotFoundException = exports.BackupInUseException = exports.TimeToLiveStatus = exports.StreamViewType = exports.SSEStatus = exports.SSEType = exports.ProjectionType = exports.KeyType = exports.BillingMode = exports.BackupType = exports.BackupStatus = exports.ScalarAttributeType = exports.AttributeAction = void 0;
4
+ exports.TransactionCanceledException = exports.ConditionalCheckFailedException = exports.AttributeValue = exports.IndexNotFoundException = exports.ReplicaNotFoundException = exports.ReplicaAlreadyExistsException = exports.InvalidRestoreTimeException = exports.TableAlreadyExistsException = exports.Select = exports.ImportConflictException = exports.PointInTimeRecoveryUnavailableException = exports.InvalidExportTimeException = exports.ExportConflictException = exports.TransactionInProgressException = exports.IdempotentParameterMismatchException = exports.DuplicateItemException = exports.DestinationStatus = exports.ImportNotFoundException = exports.InputFormat = exports.InputCompressionType = exports.ImportStatus = void 0;
5
5
  const DynamoDBServiceException_1 = require("./DynamoDBServiceException");
6
6
  exports.AttributeAction = {
7
7
  ADD: "ADD",
@@ -375,6 +375,14 @@ exports.ExportStatus = {
375
375
  FAILED: "FAILED",
376
376
  IN_PROGRESS: "IN_PROGRESS",
377
377
  };
378
+ exports.ExportType = {
379
+ FULL_EXPORT: "FULL_EXPORT",
380
+ INCREMENTAL_EXPORT: "INCREMENTAL_EXPORT",
381
+ };
382
+ exports.ExportViewType = {
383
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
384
+ NEW_IMAGE: "NEW_IMAGE",
385
+ };
378
386
  exports.S3SseAlgorithm = {
379
387
  AES256: "AES256",
380
388
  KMS: "KMS",
@@ -3133,6 +3133,8 @@ const se_ExportTableToPointInTimeInput = (input, context) => {
3133
3133
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
3134
3134
  ExportFormat: [],
3135
3135
  ExportTime: (_) => Math.round(_.getTime() / 1000),
3136
+ ExportType: [],
3137
+ IncrementalExportSpecification: (_) => se_IncrementalExportSpecification(_, context),
3136
3138
  S3Bucket: [],
3137
3139
  S3BucketOwner: [],
3138
3140
  S3Prefix: [],
@@ -3215,6 +3217,13 @@ const se_ImportTableInput = (input, context) => {
3215
3217
  TableCreationParameters: smithy_client_1._json,
3216
3218
  });
3217
3219
  };
3220
+ const se_IncrementalExportSpecification = (input, context) => {
3221
+ return (0, smithy_client_1.take)(input, {
3222
+ ExportFromTime: (_) => Math.round(_.getTime() / 1000),
3223
+ ExportToTime: (_) => Math.round(_.getTime() / 1000),
3224
+ ExportViewType: [],
3225
+ });
3226
+ };
3218
3227
  const se_Key = (input, context) => {
3219
3228
  return Object.entries(input).reduce((acc, [key, value]) => {
3220
3229
  if (value === null) {
@@ -3926,8 +3935,10 @@ const de_ExportDescription = (output, context) => {
3926
3935
  ExportManifest: smithy_client_1.expectString,
3927
3936
  ExportStatus: smithy_client_1.expectString,
3928
3937
  ExportTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3938
+ ExportType: smithy_client_1.expectString,
3929
3939
  FailureCode: smithy_client_1.expectString,
3930
3940
  FailureMessage: smithy_client_1.expectString,
3941
+ IncrementalExportSpecification: (_) => de_IncrementalExportSpecification(_, context),
3931
3942
  ItemCount: smithy_client_1.expectLong,
3932
3943
  S3Bucket: smithy_client_1.expectString,
3933
3944
  S3BucketOwner: smithy_client_1.expectString,
@@ -4028,6 +4039,13 @@ const de_ImportTableOutput = (output, context) => {
4028
4039
  ImportTableDescription: (_) => de_ImportTableDescription(_, context),
4029
4040
  });
4030
4041
  };
4042
+ const de_IncrementalExportSpecification = (output, context) => {
4043
+ return (0, smithy_client_1.take)(output, {
4044
+ ExportFromTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4045
+ ExportToTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4046
+ ExportViewType: smithy_client_1.expectString,
4047
+ });
4048
+ };
4031
4049
  const de_ItemCollectionKeyAttributeMap = (output, context) => {
4032
4050
  return Object.entries(output).reduce((acc, [key, value]) => {
4033
4051
  if (value === null) {
@@ -356,6 +356,14 @@ export const ExportStatus = {
356
356
  FAILED: "FAILED",
357
357
  IN_PROGRESS: "IN_PROGRESS",
358
358
  };
359
+ export const ExportType = {
360
+ FULL_EXPORT: "FULL_EXPORT",
361
+ INCREMENTAL_EXPORT: "INCREMENTAL_EXPORT",
362
+ };
363
+ export const ExportViewType = {
364
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
365
+ NEW_IMAGE: "NEW_IMAGE",
366
+ };
359
367
  export const S3SseAlgorithm = {
360
368
  AES256: "AES256",
361
369
  KMS: "KMS",
@@ -3022,6 +3022,8 @@ const se_ExportTableToPointInTimeInput = (input, context) => {
3022
3022
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
3023
3023
  ExportFormat: [],
3024
3024
  ExportTime: (_) => Math.round(_.getTime() / 1000),
3025
+ ExportType: [],
3026
+ IncrementalExportSpecification: (_) => se_IncrementalExportSpecification(_, context),
3025
3027
  S3Bucket: [],
3026
3028
  S3BucketOwner: [],
3027
3029
  S3Prefix: [],
@@ -3104,6 +3106,13 @@ const se_ImportTableInput = (input, context) => {
3104
3106
  TableCreationParameters: _json,
3105
3107
  });
3106
3108
  };
3109
+ const se_IncrementalExportSpecification = (input, context) => {
3110
+ return take(input, {
3111
+ ExportFromTime: (_) => Math.round(_.getTime() / 1000),
3112
+ ExportToTime: (_) => Math.round(_.getTime() / 1000),
3113
+ ExportViewType: [],
3114
+ });
3115
+ };
3107
3116
  const se_Key = (input, context) => {
3108
3117
  return Object.entries(input).reduce((acc, [key, value]) => {
3109
3118
  if (value === null) {
@@ -3815,8 +3824,10 @@ const de_ExportDescription = (output, context) => {
3815
3824
  ExportManifest: __expectString,
3816
3825
  ExportStatus: __expectString,
3817
3826
  ExportTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3827
+ ExportType: __expectString,
3818
3828
  FailureCode: __expectString,
3819
3829
  FailureMessage: __expectString,
3830
+ IncrementalExportSpecification: (_) => de_IncrementalExportSpecification(_, context),
3820
3831
  ItemCount: __expectLong,
3821
3832
  S3Bucket: __expectString,
3822
3833
  S3BucketOwner: __expectString,
@@ -3917,6 +3928,13 @@ const de_ImportTableOutput = (output, context) => {
3917
3928
  ImportTableDescription: (_) => de_ImportTableDescription(_, context),
3918
3929
  });
3919
3930
  };
3931
+ const de_IncrementalExportSpecification = (output, context) => {
3932
+ return take(output, {
3933
+ ExportFromTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3934
+ ExportToTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3935
+ ExportViewType: __expectString,
3936
+ });
3937
+ };
3920
3938
  const de_ItemCollectionKeyAttributeMap = (output, context) => {
3921
3939
  return Object.entries(output).reduce((acc, [key, value]) => {
3922
3940
  if (value === null) {
@@ -56,6 +56,12 @@ export interface DescribeExportCommandOutput extends DescribeExportOutput, __Met
56
56
  * // ExportFormat: "DYNAMODB_JSON" || "ION",
57
57
  * // BilledSizeBytes: Number("long"),
58
58
  * // ItemCount: Number("long"),
59
+ * // ExportType: "FULL_EXPORT" || "INCREMENTAL_EXPORT",
60
+ * // IncrementalExportSpecification: { // IncrementalExportSpecification
61
+ * // ExportFromTime: new Date("TIMESTAMP"),
62
+ * // ExportToTime: new Date("TIMESTAMP"),
63
+ * // ExportViewType: "NEW_IMAGE" || "NEW_AND_OLD_IMAGES",
64
+ * // },
59
65
  * // },
60
66
  * // };
61
67
  *
@@ -42,6 +42,12 @@ export interface ExportTableToPointInTimeCommandOutput extends ExportTableToPoin
42
42
  * S3SseAlgorithm: "AES256" || "KMS",
43
43
  * S3SseKmsKeyId: "STRING_VALUE",
44
44
  * ExportFormat: "DYNAMODB_JSON" || "ION",
45
+ * ExportType: "FULL_EXPORT" || "INCREMENTAL_EXPORT",
46
+ * IncrementalExportSpecification: { // IncrementalExportSpecification
47
+ * ExportFromTime: new Date("TIMESTAMP"),
48
+ * ExportToTime: new Date("TIMESTAMP"),
49
+ * ExportViewType: "NEW_IMAGE" || "NEW_AND_OLD_IMAGES",
50
+ * },
45
51
  * };
46
52
  * const command = new ExportTableToPointInTimeCommand(input);
47
53
  * const response = await client.send(command);
@@ -66,6 +72,12 @@ export interface ExportTableToPointInTimeCommandOutput extends ExportTableToPoin
66
72
  * // ExportFormat: "DYNAMODB_JSON" || "ION",
67
73
  * // BilledSizeBytes: Number("long"),
68
74
  * // ItemCount: Number("long"),
75
+ * // ExportType: "FULL_EXPORT" || "INCREMENTAL_EXPORT",
76
+ * // IncrementalExportSpecification: { // IncrementalExportSpecification
77
+ * // ExportFromTime: new Date("TIMESTAMP"),
78
+ * // ExportToTime: new Date("TIMESTAMP"),
79
+ * // ExportViewType: "NEW_IMAGE" || "NEW_AND_OLD_IMAGES",
80
+ * // },
69
81
  * // },
70
82
  * // };
71
83
  *
@@ -23,13 +23,16 @@ export interface ListBackupsCommandOutput extends ListBackupsOutput, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>List backups associated with an Amazon Web Services account. To list backups for a
27
- * given table, specify <code>TableName</code>. <code>ListBackups</code> returns a
26
+ * <p>List DynamoDB backups that are associated with an Amazon Web Services account and weren't made with Amazon Web Services Backup.
27
+ * To list these backups for a given table, specify <code>TableName</code>. <code>ListBackups</code> returns a
28
28
  * paginated list of results with at most 1 MB worth of items in a page. You can also
29
29
  * specify a maximum number of entries to be returned in a page.</p>
30
30
  * <p>In the request, start time is inclusive, but end time is exclusive. Note that these
31
31
  * boundaries are for the time at which the original backup was requested.</p>
32
32
  * <p>You can call <code>ListBackups</code> a maximum of five times per second.</p>
33
+ * <p>If you want to retrieve the complete list of backups made with Amazon Web Services Backup, use the
34
+ * <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupJobs.html">Amazon Web Services Backup list API.</a>
35
+ * </p>
33
36
  * @example
34
37
  * Use a bare-bones client and the command you need to make an API call.
35
38
  * ```javascript
@@ -42,6 +42,7 @@ export interface ListExportsCommandOutput extends ListExportsOutput, __MetadataB
42
42
  * // { // ExportSummary
43
43
  * // ExportArn: "STRING_VALUE",
44
44
  * // ExportStatus: "IN_PROGRESS" || "COMPLETED" || "FAILED",
45
+ * // ExportType: "FULL_EXPORT" || "INCREMENTAL_EXPORT",
45
46
  * // },
46
47
  * // ],
47
48
  * // NextToken: "STRING_VALUE",
@@ -3332,6 +3332,51 @@ export declare const ExportStatus: {
3332
3332
  * @public
3333
3333
  */
3334
3334
  export type ExportStatus = (typeof ExportStatus)[keyof typeof ExportStatus];
3335
+ /**
3336
+ * @public
3337
+ * @enum
3338
+ */
3339
+ export declare const ExportType: {
3340
+ readonly FULL_EXPORT: "FULL_EXPORT";
3341
+ readonly INCREMENTAL_EXPORT: "INCREMENTAL_EXPORT";
3342
+ };
3343
+ /**
3344
+ * @public
3345
+ */
3346
+ export type ExportType = (typeof ExportType)[keyof typeof ExportType];
3347
+ /**
3348
+ * @public
3349
+ * @enum
3350
+ */
3351
+ export declare const ExportViewType: {
3352
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
3353
+ readonly NEW_IMAGE: "NEW_IMAGE";
3354
+ };
3355
+ /**
3356
+ * @public
3357
+ */
3358
+ export type ExportViewType = (typeof ExportViewType)[keyof typeof ExportViewType];
3359
+ /**
3360
+ * @public
3361
+ * <p>Optional object containing the parameters specific to an incremental export.</p>
3362
+ */
3363
+ export interface IncrementalExportSpecification {
3364
+ /**
3365
+ * @public
3366
+ * <p>Time in the past which provides the inclusive start range for the export table's data, counted in seconds from the start of the Unix epoch. The incremental export will reflect the table's state including and after this point in time.</p>
3367
+ */
3368
+ ExportFromTime?: Date;
3369
+ /**
3370
+ * @public
3371
+ * <p>Time in the past which provides the exclusive end range for the export table's data, counted in seconds from the start of the Unix epoch. The incremental export will reflect the table's state just prior to this point in time. If this is not provided, the latest time with data available will be used.</p>
3372
+ */
3373
+ ExportToTime?: Date;
3374
+ /**
3375
+ * @public
3376
+ * <p>Choice of whether to output the previous item image prior to the start time of the incremental export. Valid values are <code>NEW_AND_OLD_IMAGES</code> and <code>NEW_IMAGES</code>.</p>
3377
+ */
3378
+ ExportViewType?: ExportViewType | string;
3379
+ }
3335
3380
  /**
3336
3381
  * @public
3337
3382
  * @enum
@@ -3464,6 +3509,16 @@ export interface ExportDescription {
3464
3509
  * <p>The number of items exported.</p>
3465
3510
  */
3466
3511
  ItemCount?: number;
3512
+ /**
3513
+ * @public
3514
+ * <p>Choice of whether to execute as a full export or incremental export. Valid values are <code>FULL_EXPORT</code> or <code>INCREMENTAL_EXPORT</code>. If <code>INCREMENTAL_EXPORT</code> is provided, the <code>IncrementalExportSpecification</code> must also be used.</p>
3515
+ */
3516
+ ExportType?: ExportType | string;
3517
+ /**
3518
+ * @public
3519
+ * <p>Optional object containing the parameters specific to an incremental export.</p>
3520
+ */
3521
+ IncrementalExportSpecification?: IncrementalExportSpecification;
3467
3522
  }
3468
3523
  /**
3469
3524
  * @public
@@ -4478,6 +4533,16 @@ export interface ExportTableToPointInTimeInput {
4478
4533
  * <code>DYNAMODB_JSON</code> or <code>ION</code>.</p>
4479
4534
  */
4480
4535
  ExportFormat?: ExportFormat | string;
4536
+ /**
4537
+ * @public
4538
+ * <p>Choice of whether to execute as a full export or incremental export. Valid values are <code>FULL_EXPORT</code> or <code>INCREMENTAL_EXPORT</code>. If <code>INCREMENTAL_EXPORT</code> is provided, the <code>IncrementalExportSpecification</code> must also be used.</p>
4539
+ */
4540
+ ExportType?: ExportType | string;
4541
+ /**
4542
+ * @public
4543
+ * <p>Optional object containing the parameters specific to an incremental export.</p>
4544
+ */
4545
+ IncrementalExportSpecification?: IncrementalExportSpecification;
4481
4546
  }
4482
4547
  /**
4483
4548
  * @public
@@ -4741,6 +4806,11 @@ export interface ExportSummary {
4741
4806
  * FAILED.</p>
4742
4807
  */
4743
4808
  ExportStatus?: ExportStatus | string;
4809
+ /**
4810
+ * @public
4811
+ * <p>Choice of whether to execute as a full export or incremental export. Valid values are <code>FULL_EXPORT</code> or <code>INCREMENTAL_EXPORT</code>. If <code>INCREMENTAL_EXPORT</code> is provided, the <code>IncrementalExportSpecification</code> must also be used.</p>
4812
+ */
4813
+ ExportType?: ExportType | string;
4744
4814
  }
4745
4815
  /**
4746
4816
  * @public
@@ -723,6 +723,22 @@ export declare const ExportStatus: {
723
723
  readonly IN_PROGRESS: "IN_PROGRESS";
724
724
  };
725
725
  export type ExportStatus = (typeof ExportStatus)[keyof typeof ExportStatus];
726
+ export declare const ExportType: {
727
+ readonly FULL_EXPORT: "FULL_EXPORT";
728
+ readonly INCREMENTAL_EXPORT: "INCREMENTAL_EXPORT";
729
+ };
730
+ export type ExportType = (typeof ExportType)[keyof typeof ExportType];
731
+ export declare const ExportViewType: {
732
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
733
+ readonly NEW_IMAGE: "NEW_IMAGE";
734
+ };
735
+ export type ExportViewType =
736
+ (typeof ExportViewType)[keyof typeof ExportViewType];
737
+ export interface IncrementalExportSpecification {
738
+ ExportFromTime?: Date;
739
+ ExportToTime?: Date;
740
+ ExportViewType?: ExportViewType | string;
741
+ }
726
742
  export declare const S3SseAlgorithm: {
727
743
  readonly AES256: "AES256";
728
744
  readonly KMS: "KMS";
@@ -749,6 +765,8 @@ export interface ExportDescription {
749
765
  ExportFormat?: ExportFormat | string;
750
766
  BilledSizeBytes?: number;
751
767
  ItemCount?: number;
768
+ ExportType?: ExportType | string;
769
+ IncrementalExportSpecification?: IncrementalExportSpecification;
752
770
  }
753
771
  export interface DescribeExportOutput {
754
772
  ExportDescription?: ExportDescription;
@@ -987,6 +1005,8 @@ export interface ExportTableToPointInTimeInput {
987
1005
  S3SseAlgorithm?: S3SseAlgorithm | string;
988
1006
  S3SseKmsKeyId?: string;
989
1007
  ExportFormat?: ExportFormat | string;
1008
+ ExportType?: ExportType | string;
1009
+ IncrementalExportSpecification?: IncrementalExportSpecification;
990
1010
  }
991
1011
  export interface ExportTableToPointInTimeOutput {
992
1012
  ExportDescription?: ExportDescription;
@@ -1055,6 +1075,7 @@ export interface ListExportsInput {
1055
1075
  export interface ExportSummary {
1056
1076
  ExportArn?: string;
1057
1077
  ExportStatus?: ExportStatus | string;
1078
+ ExportType?: ExportType | string;
1058
1079
  }
1059
1080
  export interface ListExportsOutput {
1060
1081
  ExportSummaries?: ExportSummary[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.420.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",