@aws-sdk/client-dynamodb 3.212.0 → 3.214.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.
@@ -5,8 +5,16 @@ export interface ArchivalSummary {
5
5
  ArchivalReason?: string;
6
6
  ArchivalBackupArn?: string;
7
7
  }
8
- export declare type AttributeAction = "ADD" | "DELETE" | "PUT";
9
- export declare type ScalarAttributeType = "B" | "N" | "S";
8
+ export declare enum AttributeAction {
9
+ ADD = "ADD",
10
+ DELETE = "DELETE",
11
+ PUT = "PUT",
12
+ }
13
+ export declare enum ScalarAttributeType {
14
+ B = "B",
15
+ N = "N",
16
+ S = "S",
17
+ }
10
18
  export interface AttributeDefinition {
11
19
  AttributeName: string | undefined;
12
20
  AttributeType: ScalarAttributeType | string | undefined;
@@ -47,7 +55,11 @@ export interface AutoScalingSettingsUpdate {
47
55
  AutoScalingRoleArn?: string;
48
56
  ScalingPolicyUpdate?: AutoScalingPolicyUpdate;
49
57
  }
50
- export declare type BackupStatus = "AVAILABLE" | "CREATING" | "DELETED";
58
+ export declare enum BackupStatus {
59
+ AVAILABLE = "AVAILABLE",
60
+ CREATING = "CREATING",
61
+ DELETED = "DELETED",
62
+ }
51
63
  export declare enum BackupType {
52
64
  AWS_BACKUP = "AWS_BACKUP",
53
65
  SYSTEM = "SYSTEM",
@@ -62,8 +74,14 @@ export interface BackupDetails {
62
74
  BackupCreationDateTime: Date | undefined;
63
75
  BackupExpiryDateTime?: Date;
64
76
  }
65
- export declare type BillingMode = "PAY_PER_REQUEST" | "PROVISIONED";
66
- export declare type KeyType = "HASH" | "RANGE";
77
+ export declare enum BillingMode {
78
+ PAY_PER_REQUEST = "PAY_PER_REQUEST",
79
+ PROVISIONED = "PROVISIONED",
80
+ }
81
+ export declare enum KeyType {
82
+ HASH = "HASH",
83
+ RANGE = "RANGE",
84
+ }
67
85
  export interface KeySchemaElement {
68
86
  AttributeName: string | undefined;
69
87
  KeyType: KeyType | string | undefined;
@@ -83,7 +101,11 @@ export interface SourceTableDetails {
83
101
  ItemCount?: number;
84
102
  BillingMode?: BillingMode | string;
85
103
  }
86
- export declare type ProjectionType = "ALL" | "INCLUDE" | "KEYS_ONLY";
104
+ export declare enum ProjectionType {
105
+ ALL = "ALL",
106
+ INCLUDE = "INCLUDE",
107
+ KEYS_ONLY = "KEYS_ONLY",
108
+ }
87
109
  export interface Projection {
88
110
  ProjectionType?: ProjectionType | string;
89
111
  NonKeyAttributes?: string[];
@@ -99,33 +121,39 @@ export interface LocalSecondaryIndexInfo {
99
121
  KeySchema?: KeySchemaElement[];
100
122
  Projection?: Projection;
101
123
  }
102
- export declare type SSEType = "AES256" | "KMS";
103
- export declare type SSEStatus =
104
- | "DISABLED"
105
- | "DISABLING"
106
- | "ENABLED"
107
- | "ENABLING"
108
- | "UPDATING";
124
+ export declare enum SSEType {
125
+ AES256 = "AES256",
126
+ KMS = "KMS",
127
+ }
128
+ export declare enum SSEStatus {
129
+ DISABLED = "DISABLED",
130
+ DISABLING = "DISABLING",
131
+ ENABLED = "ENABLED",
132
+ ENABLING = "ENABLING",
133
+ UPDATING = "UPDATING",
134
+ }
109
135
  export interface SSEDescription {
110
136
  Status?: SSEStatus | string;
111
137
  SSEType?: SSEType | string;
112
138
  KMSMasterKeyArn?: string;
113
139
  InaccessibleEncryptionDateTime?: Date;
114
140
  }
115
- export declare type StreamViewType =
116
- | "KEYS_ONLY"
117
- | "NEW_AND_OLD_IMAGES"
118
- | "NEW_IMAGE"
119
- | "OLD_IMAGE";
141
+ export declare enum StreamViewType {
142
+ KEYS_ONLY = "KEYS_ONLY",
143
+ NEW_AND_OLD_IMAGES = "NEW_AND_OLD_IMAGES",
144
+ NEW_IMAGE = "NEW_IMAGE",
145
+ OLD_IMAGE = "OLD_IMAGE",
146
+ }
120
147
  export interface StreamSpecification {
121
148
  StreamEnabled: boolean | undefined;
122
149
  StreamViewType?: StreamViewType | string;
123
150
  }
124
- export declare type TimeToLiveStatus =
125
- | "DISABLED"
126
- | "DISABLING"
127
- | "ENABLED"
128
- | "ENABLING";
151
+ export declare enum TimeToLiveStatus {
152
+ DISABLED = "DISABLED",
153
+ DISABLING = "DISABLING",
154
+ ENABLED = "ENABLED",
155
+ ENABLING = "ENABLING",
156
+ }
129
157
  export interface TimeToLiveDescription {
130
158
  TimeToLiveStatus?: TimeToLiveStatus | string;
131
159
  AttributeName?: string;
@@ -174,7 +202,11 @@ export declare enum BackupTypeFilter {
174
202
  SYSTEM = "SYSTEM",
175
203
  USER = "USER",
176
204
  }
177
- export declare type ReturnConsumedCapacity = "INDEXES" | "NONE" | "TOTAL";
205
+ export declare enum ReturnConsumedCapacity {
206
+ INDEXES = "INDEXES",
207
+ NONE = "NONE",
208
+ TOTAL = "TOTAL",
209
+ }
178
210
  export interface Capacity {
179
211
  ReadCapacityUnits?: number;
180
212
  WriteCapacityUnits?: number;
@@ -245,7 +277,10 @@ export declare class ResourceNotFoundException extends __BaseException {
245
277
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
246
278
  );
247
279
  }
248
- export declare type ReturnItemCollectionMetrics = "NONE" | "SIZE";
280
+ export declare enum ReturnItemCollectionMetrics {
281
+ NONE = "NONE",
282
+ SIZE = "SIZE",
283
+ }
249
284
  export declare class ItemCollectionSizeLimitExceededException extends __BaseException {
250
285
  readonly name: "ItemCollectionSizeLimitExceededException";
251
286
  readonly $fault: "client";
@@ -260,20 +295,21 @@ export interface BillingModeSummary {
260
295
  BillingMode?: BillingMode | string;
261
296
  LastUpdateToPayPerRequestDateTime?: Date;
262
297
  }
263
- export declare type ComparisonOperator =
264
- | "BEGINS_WITH"
265
- | "BETWEEN"
266
- | "CONTAINS"
267
- | "EQ"
268
- | "GE"
269
- | "GT"
270
- | "IN"
271
- | "LE"
272
- | "LT"
273
- | "NE"
274
- | "NOT_CONTAINS"
275
- | "NOT_NULL"
276
- | "NULL";
298
+ export declare enum ComparisonOperator {
299
+ BEGINS_WITH = "BEGINS_WITH",
300
+ BETWEEN = "BETWEEN",
301
+ CONTAINS = "CONTAINS",
302
+ EQ = "EQ",
303
+ GE = "GE",
304
+ GT = "GT",
305
+ IN = "IN",
306
+ LE = "LE",
307
+ LT = "LT",
308
+ NE = "NE",
309
+ NOT_CONTAINS = "NOT_CONTAINS",
310
+ NOT_NULL = "NOT_NULL",
311
+ NULL = "NULL",
312
+ }
277
313
  export declare class ConditionalCheckFailedException extends __BaseException {
278
314
  readonly name: "ConditionalCheckFailedException";
279
315
  readonly $fault: "client";
@@ -284,10 +320,22 @@ export declare class ConditionalCheckFailedException extends __BaseException {
284
320
  >
285
321
  );
286
322
  }
287
- export declare type ConditionalOperator = "AND" | "OR";
288
- export declare type ReturnValuesOnConditionCheckFailure = "ALL_OLD" | "NONE";
289
- export declare type ContinuousBackupsStatus = "DISABLED" | "ENABLED";
290
- export declare type PointInTimeRecoveryStatus = "DISABLED" | "ENABLED";
323
+ export declare enum ConditionalOperator {
324
+ AND = "AND",
325
+ OR = "OR",
326
+ }
327
+ export declare enum ReturnValuesOnConditionCheckFailure {
328
+ ALL_OLD = "ALL_OLD",
329
+ NONE = "NONE",
330
+ }
331
+ export declare enum ContinuousBackupsStatus {
332
+ DISABLED = "DISABLED",
333
+ ENABLED = "ENABLED",
334
+ }
335
+ export declare enum PointInTimeRecoveryStatus {
336
+ DISABLED = "DISABLED",
337
+ ENABLED = "ENABLED",
338
+ }
291
339
  export interface PointInTimeRecoveryDescription {
292
340
  PointInTimeRecoveryStatus?: PointInTimeRecoveryStatus | string;
293
341
  EarliestRestorableDateTime?: Date;
@@ -307,13 +355,17 @@ export declare class ContinuousBackupsUnavailableException extends __BaseExcepti
307
355
  >
308
356
  );
309
357
  }
310
- export declare type ContributorInsightsAction = "DISABLE" | "ENABLE";
311
- export declare type ContributorInsightsStatus =
312
- | "DISABLED"
313
- | "DISABLING"
314
- | "ENABLED"
315
- | "ENABLING"
316
- | "FAILED";
358
+ export declare enum ContributorInsightsAction {
359
+ DISABLE = "DISABLE",
360
+ ENABLE = "ENABLE",
361
+ }
362
+ export declare enum ContributorInsightsStatus {
363
+ DISABLED = "DISABLED",
364
+ DISABLING = "DISABLING",
365
+ ENABLED = "ENABLED",
366
+ ENABLING = "ENABLING",
367
+ FAILED = "FAILED",
368
+ }
317
369
  export interface ContributorInsightsSummary {
318
370
  TableName?: string;
319
371
  IndexName?: string;
@@ -360,11 +412,12 @@ export interface CreateGlobalTableInput {
360
412
  GlobalTableName: string | undefined;
361
413
  ReplicationGroup: Replica[] | undefined;
362
414
  }
363
- export declare type GlobalTableStatus =
364
- | "ACTIVE"
365
- | "CREATING"
366
- | "DELETING"
367
- | "UPDATING";
415
+ export declare enum GlobalTableStatus {
416
+ ACTIVE = "ACTIVE",
417
+ CREATING = "CREATING",
418
+ DELETING = "DELETING",
419
+ UPDATING = "UPDATING",
420
+ }
368
421
  export interface ProvisionedThroughputOverride {
369
422
  ReadCapacityUnits?: number;
370
423
  }
@@ -372,14 +425,15 @@ export interface ReplicaGlobalSecondaryIndexDescription {
372
425
  IndexName?: string;
373
426
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
374
427
  }
375
- export declare type ReplicaStatus =
376
- | "ACTIVE"
377
- | "CREATING"
378
- | "CREATION_FAILED"
379
- | "DELETING"
380
- | "INACCESSIBLE_ENCRYPTION_CREDENTIALS"
381
- | "REGION_DISABLED"
382
- | "UPDATING";
428
+ export declare enum ReplicaStatus {
429
+ ACTIVE = "ACTIVE",
430
+ CREATING = "CREATING",
431
+ CREATION_FAILED = "CREATION_FAILED",
432
+ DELETING = "DELETING",
433
+ INACCESSIBLE_ENCRYPTION_CREDENTIALS = "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
434
+ REGION_DISABLED = "REGION_DISABLED",
435
+ UPDATING = "UPDATING",
436
+ }
383
437
  export declare enum TableClass {
384
438
  STANDARD = "STANDARD",
385
439
  STANDARD_INFREQUENT_ACCESS = "STANDARD_INFREQUENT_ACCESS",
@@ -466,11 +520,12 @@ export interface CreateTableInput {
466
520
  Tags?: Tag[];
467
521
  TableClass?: TableClass | string;
468
522
  }
469
- export declare type IndexStatus =
470
- | "ACTIVE"
471
- | "CREATING"
472
- | "DELETING"
473
- | "UPDATING";
523
+ export declare enum IndexStatus {
524
+ ACTIVE = "ACTIVE",
525
+ CREATING = "CREATING",
526
+ DELETING = "DELETING",
527
+ UPDATING = "UPDATING",
528
+ }
474
529
  export interface ProvisionedThroughputDescription {
475
530
  LastIncreaseDateTime?: Date;
476
531
  LastDecreaseDateTime?: Date;
@@ -503,14 +558,15 @@ export interface RestoreSummary {
503
558
  RestoreDateTime: Date | undefined;
504
559
  RestoreInProgress: boolean | undefined;
505
560
  }
506
- export declare type TableStatus =
507
- | "ACTIVE"
508
- | "ARCHIVED"
509
- | "ARCHIVING"
510
- | "CREATING"
511
- | "DELETING"
512
- | "INACCESSIBLE_ENCRYPTION_CREDENTIALS"
513
- | "UPDATING";
561
+ export declare enum TableStatus {
562
+ ACTIVE = "ACTIVE",
563
+ ARCHIVED = "ARCHIVED",
564
+ ARCHIVING = "ARCHIVING",
565
+ CREATING = "CREATING",
566
+ DELETING = "DELETING",
567
+ INACCESSIBLE_ENCRYPTION_CREDENTIALS = "INACCESSIBLE_ENCRYPTION_CREDENTIALS",
568
+ UPDATING = "UPDATING",
569
+ }
514
570
  export interface TableDescription {
515
571
  AttributeDefinitions?: AttributeDefinition[];
516
572
  TableName?: string;
@@ -558,12 +614,13 @@ export interface DeleteBackupOutput {
558
614
  export interface DeleteGlobalSecondaryIndexAction {
559
615
  IndexName: string | undefined;
560
616
  }
561
- export declare type ReturnValue =
562
- | "ALL_NEW"
563
- | "ALL_OLD"
564
- | "NONE"
565
- | "UPDATED_NEW"
566
- | "UPDATED_OLD";
617
+ export declare enum ReturnValue {
618
+ ALL_NEW = "ALL_NEW",
619
+ ALL_OLD = "ALL_OLD",
620
+ NONE = "NONE",
621
+ UPDATED_NEW = "UPDATED_NEW",
622
+ UPDATED_OLD = "UPDATED_OLD",
623
+ }
567
624
  export declare class TransactionConflictException extends __BaseException {
568
625
  readonly name: "TransactionConflictException";
569
626
  readonly $fault: "client";
@@ -631,7 +688,10 @@ export declare enum ExportStatus {
631
688
  FAILED = "FAILED",
632
689
  IN_PROGRESS = "IN_PROGRESS",
633
690
  }
634
- export declare type S3SseAlgorithm = "AES256" | "KMS";
691
+ export declare enum S3SseAlgorithm {
692
+ AES256 = "AES256",
693
+ KMS = "KMS",
694
+ }
635
695
  export interface ExportDescription {
636
696
  ExportArn?: string;
637
697
  ExportStatus?: ExportStatus | string;
@@ -773,12 +833,13 @@ export declare class ImportNotFoundException extends __BaseException {
773
833
  export interface DescribeKinesisStreamingDestinationInput {
774
834
  TableName: string | undefined;
775
835
  }
776
- export declare type DestinationStatus =
777
- | "ACTIVE"
778
- | "DISABLED"
779
- | "DISABLING"
780
- | "ENABLE_FAILED"
781
- | "ENABLING";
836
+ export declare enum DestinationStatus {
837
+ ACTIVE = "ACTIVE",
838
+ DISABLED = "DISABLED",
839
+ DISABLING = "DISABLING",
840
+ ENABLE_FAILED = "ENABLE_FAILED",
841
+ ENABLING = "ENABLING",
842
+ }
782
843
  export interface KinesisDataStreamDestination {
783
844
  StreamArn?: string;
784
845
  DestinationStatus?: DestinationStatus | string;
@@ -1004,11 +1065,12 @@ export interface ListTagsOfResourceOutput {
1004
1065
  Tags?: Tag[];
1005
1066
  NextToken?: string;
1006
1067
  }
1007
- export declare type Select =
1008
- | "ALL_ATTRIBUTES"
1009
- | "ALL_PROJECTED_ATTRIBUTES"
1010
- | "COUNT"
1011
- | "SPECIFIC_ATTRIBUTES";
1068
+ export declare enum Select {
1069
+ ALL_ATTRIBUTES = "ALL_ATTRIBUTES",
1070
+ ALL_PROJECTED_ATTRIBUTES = "ALL_PROJECTED_ATTRIBUTES",
1071
+ COUNT = "COUNT",
1072
+ SPECIFIC_ATTRIBUTES = "SPECIFIC_ATTRIBUTES",
1073
+ }
1012
1074
  export interface RestoreTableFromBackupInput {
1013
1075
  TargetTableName: string | undefined;
1014
1076
  BackupArn: string | undefined;
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.212.0",
4
+ "version": "3.214.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",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.212.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
23
  "@aws-sdk/config-resolver": "3.212.0",
24
24
  "@aws-sdk/credential-provider-node": "3.212.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.212.0",