@aws-sdk/client-dynamodb 3.774.0 → 3.777.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/DynamoDBClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +1 -0
- package/dist-types/commands/BatchGetItemCommand.d.ts +27 -27
- package/dist-types/commands/BatchWriteItemCommand.d.ts +32 -29
- package/dist-types/commands/CreateBackupCommand.d.ts +1 -0
- package/dist-types/commands/CreateGlobalTableCommand.d.ts +1 -0
- package/dist-types/commands/CreateTableCommand.d.ts +1 -70
- package/dist-types/commands/DeleteBackupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteItemCommand.d.ts +12 -12
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteTableCommand.d.ts +13 -13
- package/dist-types/commands/DescribeBackupCommand.d.ts +1 -0
- package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeExportCommand.d.ts +1 -0
- package/dist-types/commands/DescribeGlobalTableCommand.d.ts +1 -0
- package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeImportCommand.d.ts +1 -0
- package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +1 -0
- package/dist-types/commands/DescribeLimitsCommand.d.ts +8 -8
- package/dist-types/commands/DescribeTableCommand.d.ts +1 -47
- package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +1 -0
- package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +1 -0
- package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +1 -0
- package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +1 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +1 -0
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +1 -0
- package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +1 -0
- package/dist-types/commands/GetItemCommand.d.ts +16 -16
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/ImportTableCommand.d.ts +1 -0
- package/dist-types/commands/ListBackupsCommand.d.ts +1 -0
- package/dist-types/commands/ListContributorInsightsCommand.d.ts +1 -0
- package/dist-types/commands/ListExportsCommand.d.ts +1 -0
- package/dist-types/commands/ListGlobalTablesCommand.d.ts +1 -0
- package/dist-types/commands/ListImportsCommand.d.ts +1 -0
- package/dist-types/commands/ListTablesCommand.d.ts +5 -5
- package/dist-types/commands/ListTagsOfResourceCommand.d.ts +1 -0
- package/dist-types/commands/PutItemCommand.d.ts +15 -15
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/QueryCommand.d.ts +15 -15
- package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +1 -0
- package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +1 -0
- package/dist-types/commands/ScanCommand.d.ts +24 -24
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/TransactGetItemsCommand.d.ts +1 -0
- package/dist-types/commands/TransactWriteItemsCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateGlobalTableCommand.d.ts +1 -0
- package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateItemCommand.d.ts +28 -28
- package/dist-types/commands/UpdateKinesisStreamingDestinationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTableCommand.d.ts +1 -52
- package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +1 -0
- package/package.json +35 -35
|
@@ -129,24 +129,24 @@ declare const DescribeLimitsCommand_base: {
|
|
|
129
129
|
* @throws {@link DynamoDBServiceException}
|
|
130
130
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
131
131
|
*
|
|
132
|
-
*
|
|
132
|
+
*
|
|
133
133
|
* @example To determine capacity limits per table and account, in the current AWS region
|
|
134
134
|
* ```javascript
|
|
135
135
|
* // The following example returns the maximum read and write capacity units per table, and for the AWS account, in the current AWS region.
|
|
136
|
-
* const input = {};
|
|
136
|
+
* const input = { /* empty *\/ };
|
|
137
137
|
* const command = new DescribeLimitsCommand(input);
|
|
138
138
|
* const response = await client.send(command);
|
|
139
|
-
* /* response
|
|
139
|
+
* /* response is
|
|
140
140
|
* {
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
141
|
+
* AccountMaxReadCapacityUnits: 20000,
|
|
142
|
+
* AccountMaxWriteCapacityUnits: 20000,
|
|
143
|
+
* TableMaxReadCapacityUnits: 10000,
|
|
144
|
+
* TableMaxWriteCapacityUnits: 10000
|
|
145
145
|
* }
|
|
146
146
|
* *\/
|
|
147
|
-
* // example id: to-determine-capacity-limits-per-table-and-account-in-the-current-aws-region-1475884162064
|
|
148
147
|
* ```
|
|
149
148
|
*
|
|
149
|
+
* @public
|
|
150
150
|
*/
|
|
151
151
|
export declare class DescribeLimitsCommand extends DescribeLimitsCommand_base {
|
|
152
152
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -245,54 +245,8 @@ declare const DescribeTableCommand_base: {
|
|
|
245
245
|
* @throws {@link DynamoDBServiceException}
|
|
246
246
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
247
247
|
*
|
|
248
|
-
* @public
|
|
249
|
-
* @example To describe a table
|
|
250
|
-
* ```javascript
|
|
251
|
-
* // This example describes the Music table.
|
|
252
|
-
* const input = {
|
|
253
|
-
* "TableName": "Music"
|
|
254
|
-
* };
|
|
255
|
-
* const command = new DescribeTableCommand(input);
|
|
256
|
-
* const response = await client.send(command);
|
|
257
|
-
* /* response ==
|
|
258
|
-
* {
|
|
259
|
-
* "Table": {
|
|
260
|
-
* "AttributeDefinitions": [
|
|
261
|
-
* {
|
|
262
|
-
* "AttributeName": "Artist",
|
|
263
|
-
* "AttributeType": "S"
|
|
264
|
-
* },
|
|
265
|
-
* {
|
|
266
|
-
* "AttributeName": "SongTitle",
|
|
267
|
-
* "AttributeType": "S"
|
|
268
|
-
* }
|
|
269
|
-
* ],
|
|
270
|
-
* "CreationDateTime": "1421866952.062",
|
|
271
|
-
* "ItemCount": 0,
|
|
272
|
-
* "KeySchema": [
|
|
273
|
-
* {
|
|
274
|
-
* "AttributeName": "Artist",
|
|
275
|
-
* "KeyType": "HASH"
|
|
276
|
-
* },
|
|
277
|
-
* {
|
|
278
|
-
* "AttributeName": "SongTitle",
|
|
279
|
-
* "KeyType": "RANGE"
|
|
280
|
-
* }
|
|
281
|
-
* ],
|
|
282
|
-
* "ProvisionedThroughput": {
|
|
283
|
-
* "NumberOfDecreasesToday": 1,
|
|
284
|
-
* "ReadCapacityUnits": 5,
|
|
285
|
-
* "WriteCapacityUnits": 5
|
|
286
|
-
* },
|
|
287
|
-
* "TableName": "Music",
|
|
288
|
-
* "TableSizeBytes": 0,
|
|
289
|
-
* "TableStatus": "ACTIVE"
|
|
290
|
-
* }
|
|
291
|
-
* }
|
|
292
|
-
* *\/
|
|
293
|
-
* // example id: to-describe-a-table-1475884440502
|
|
294
|
-
* ```
|
|
295
248
|
*
|
|
249
|
+
* @public
|
|
296
250
|
*/
|
|
297
251
|
export declare class DescribeTableCommand extends DescribeTableCommand_base {
|
|
298
252
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -148,6 +148,7 @@ declare const DescribeTableReplicaAutoScalingCommand_base: {
|
|
|
148
148
|
* @throws {@link DynamoDBServiceException}
|
|
149
149
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
150
150
|
*
|
|
151
|
+
*
|
|
151
152
|
* @public
|
|
152
153
|
*/
|
|
153
154
|
export declare class DescribeTableReplicaAutoScalingCommand extends DescribeTableReplicaAutoScalingCommand_base {
|
|
@@ -66,6 +66,7 @@ declare const DescribeTimeToLiveCommand_base: {
|
|
|
66
66
|
* @throws {@link DynamoDBServiceException}
|
|
67
67
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
68
68
|
*
|
|
69
|
+
*
|
|
69
70
|
* @public
|
|
70
71
|
*/
|
|
71
72
|
export declare class DescribeTimeToLiveCommand extends DescribeTimeToLiveCommand_base {
|
|
@@ -104,6 +104,7 @@ declare const DisableKinesisStreamingDestinationCommand_base: {
|
|
|
104
104
|
* @throws {@link DynamoDBServiceException}
|
|
105
105
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
106
106
|
*
|
|
107
|
+
*
|
|
107
108
|
* @public
|
|
108
109
|
*/
|
|
109
110
|
export declare class DisableKinesisStreamingDestinationCommand extends DisableKinesisStreamingDestinationCommand_base {
|
|
@@ -106,6 +106,7 @@ declare const EnableKinesisStreamingDestinationCommand_base: {
|
|
|
106
106
|
* @throws {@link DynamoDBServiceException}
|
|
107
107
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
108
108
|
*
|
|
109
|
+
*
|
|
109
110
|
* @public
|
|
110
111
|
*/
|
|
111
112
|
export declare class EnableKinesisStreamingDestinationCommand extends EnableKinesisStreamingDestinationCommand_base {
|
|
@@ -224,6 +224,7 @@ declare const ExecuteStatementCommand_base: {
|
|
|
224
224
|
* @throws {@link DynamoDBServiceException}
|
|
225
225
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
226
226
|
*
|
|
227
|
+
*
|
|
227
228
|
* @public
|
|
228
229
|
*/
|
|
229
230
|
export declare class ExecuteStatementCommand extends ExecuteStatementCommand_base {
|
|
@@ -515,6 +515,7 @@ declare const ExecuteTransactionCommand_base: {
|
|
|
515
515
|
* @throws {@link DynamoDBServiceException}
|
|
516
516
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
517
517
|
*
|
|
518
|
+
*
|
|
518
519
|
* @public
|
|
519
520
|
*/
|
|
520
521
|
export declare class ExecuteTransactionCommand extends ExecuteTransactionCommand_base {
|
|
@@ -129,6 +129,7 @@ declare const ExportTableToPointInTimeCommand_base: {
|
|
|
129
129
|
* @throws {@link DynamoDBServiceException}
|
|
130
130
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
131
131
|
*
|
|
132
|
+
*
|
|
132
133
|
* @public
|
|
133
134
|
*/
|
|
134
135
|
export declare class ExportTableToPointInTimeCommand extends ExportTableToPointInTimeCommand_base {
|
|
@@ -204,41 +204,41 @@ declare const GetItemCommand_base: {
|
|
|
204
204
|
* @throws {@link DynamoDBServiceException}
|
|
205
205
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
206
206
|
*
|
|
207
|
-
*
|
|
207
|
+
*
|
|
208
208
|
* @example To read an item from a table
|
|
209
209
|
* ```javascript
|
|
210
210
|
* // This example retrieves an item from the Music table. The table has a partition key and a sort key (Artist and SongTitle), so you must specify both of these attributes.
|
|
211
211
|
* const input = {
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
212
|
+
* Key: {
|
|
213
|
+
* Artist: {
|
|
214
|
+
* S: "Acme Band"
|
|
215
215
|
* },
|
|
216
|
-
*
|
|
217
|
-
*
|
|
216
|
+
* SongTitle: {
|
|
217
|
+
* S: "Happy Day"
|
|
218
218
|
* }
|
|
219
219
|
* },
|
|
220
|
-
*
|
|
220
|
+
* TableName: "Music"
|
|
221
221
|
* };
|
|
222
222
|
* const command = new GetItemCommand(input);
|
|
223
223
|
* const response = await client.send(command);
|
|
224
|
-
* /* response
|
|
224
|
+
* /* response is
|
|
225
225
|
* {
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
226
|
+
* Item: {
|
|
227
|
+
* AlbumTitle: {
|
|
228
|
+
* S: "Songs About Life"
|
|
229
229
|
* },
|
|
230
|
-
*
|
|
231
|
-
*
|
|
230
|
+
* Artist: {
|
|
231
|
+
* S: "Acme Band"
|
|
232
232
|
* },
|
|
233
|
-
*
|
|
234
|
-
*
|
|
233
|
+
* SongTitle: {
|
|
234
|
+
* S: "Happy Day"
|
|
235
235
|
* }
|
|
236
236
|
* }
|
|
237
237
|
* }
|
|
238
238
|
* *\/
|
|
239
|
-
* // example id: to-read-an-item-from-a-table-1475884258350
|
|
240
239
|
* ```
|
|
241
240
|
*
|
|
241
|
+
* @public
|
|
242
242
|
*/
|
|
243
243
|
export declare class GetItemCommand extends GetItemCommand_base {
|
|
244
244
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -103,6 +103,7 @@ declare const GetResourcePolicyCommand_base: {
|
|
|
103
103
|
* @throws {@link DynamoDBServiceException}
|
|
104
104
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
105
105
|
*
|
|
106
|
+
*
|
|
106
107
|
* @public
|
|
107
108
|
*/
|
|
108
109
|
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
@@ -253,6 +253,7 @@ declare const ImportTableCommand_base: {
|
|
|
253
253
|
* @throws {@link DynamoDBServiceException}
|
|
254
254
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
255
255
|
*
|
|
256
|
+
*
|
|
256
257
|
* @public
|
|
257
258
|
*/
|
|
258
259
|
export declare class ImportTableCommand extends ImportTableCommand_base {
|
|
@@ -89,6 +89,7 @@ declare const ListBackupsCommand_base: {
|
|
|
89
89
|
* @throws {@link DynamoDBServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class ListBackupsCommand extends ListBackupsCommand_base {
|
|
@@ -71,6 +71,7 @@ declare const ListContributorInsightsCommand_base: {
|
|
|
71
71
|
* @throws {@link DynamoDBServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
74
75
|
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class ListContributorInsightsCommand extends ListContributorInsightsCommand_base {
|
|
@@ -82,6 +82,7 @@ declare const ListExportsCommand_base: {
|
|
|
82
82
|
* @throws {@link DynamoDBServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
84
84
|
*
|
|
85
|
+
*
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
88
|
export declare class ListExportsCommand extends ListExportsCommand_base {
|
|
@@ -75,6 +75,7 @@ declare const ListGlobalTablesCommand_base: {
|
|
|
75
75
|
* @throws {@link DynamoDBServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
77
77
|
*
|
|
78
|
+
*
|
|
78
79
|
* @public
|
|
79
80
|
*/
|
|
80
81
|
export declare class ListGlobalTablesCommand extends ListGlobalTablesCommand_base {
|
|
@@ -88,6 +88,7 @@ declare const ListImportsCommand_base: {
|
|
|
88
88
|
* @throws {@link DynamoDBServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
90
90
|
*
|
|
91
|
+
*
|
|
91
92
|
* @public
|
|
92
93
|
*/
|
|
93
94
|
export declare class ListImportsCommand extends ListImportsCommand_base {
|
|
@@ -65,16 +65,16 @@ declare const ListTablesCommand_base: {
|
|
|
65
65
|
* @throws {@link DynamoDBServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To list tables
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // This example lists all of the tables associated with the current AWS account and endpoint.
|
|
72
|
-
* const input = {};
|
|
72
|
+
* const input = { /* empty *\/ };
|
|
73
73
|
* const command = new ListTablesCommand(input);
|
|
74
74
|
* const response = await client.send(command);
|
|
75
|
-
* /* response
|
|
75
|
+
* /* response is
|
|
76
76
|
* {
|
|
77
|
-
*
|
|
77
|
+
* TableNames: [
|
|
78
78
|
* "Forum",
|
|
79
79
|
* "ProductCatalog",
|
|
80
80
|
* "Reply",
|
|
@@ -82,9 +82,9 @@ declare const ListTablesCommand_base: {
|
|
|
82
82
|
* ]
|
|
83
83
|
* }
|
|
84
84
|
* *\/
|
|
85
|
-
* // example id: to-list-tables-1475884741238
|
|
86
85
|
* ```
|
|
87
86
|
*
|
|
87
|
+
* @public
|
|
88
88
|
*/
|
|
89
89
|
export declare class ListTablesCommand extends ListTablesCommand_base {
|
|
90
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -73,6 +73,7 @@ declare const ListTagsOfResourceCommand_base: {
|
|
|
73
73
|
* @throws {@link DynamoDBServiceException}
|
|
74
74
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
75
75
|
*
|
|
76
|
+
*
|
|
76
77
|
* @public
|
|
77
78
|
*/
|
|
78
79
|
export declare class ListTagsOfResourceCommand extends ListTagsOfResourceCommand_base {
|
|
@@ -252,38 +252,38 @@ declare const PutItemCommand_base: {
|
|
|
252
252
|
* @throws {@link DynamoDBServiceException}
|
|
253
253
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
254
254
|
*
|
|
255
|
-
*
|
|
255
|
+
*
|
|
256
256
|
* @example To add an item to a table
|
|
257
257
|
* ```javascript
|
|
258
258
|
* // This example adds a new item to the Music table.
|
|
259
259
|
* const input = {
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
260
|
+
* Item: {
|
|
261
|
+
* AlbumTitle: {
|
|
262
|
+
* S: "Somewhat Famous"
|
|
263
263
|
* },
|
|
264
|
-
*
|
|
265
|
-
*
|
|
264
|
+
* Artist: {
|
|
265
|
+
* S: "No One You Know"
|
|
266
266
|
* },
|
|
267
|
-
*
|
|
268
|
-
*
|
|
267
|
+
* SongTitle: {
|
|
268
|
+
* S: "Call Me Today"
|
|
269
269
|
* }
|
|
270
270
|
* },
|
|
271
|
-
*
|
|
272
|
-
*
|
|
271
|
+
* ReturnConsumedCapacity: "TOTAL",
|
|
272
|
+
* TableName: "Music"
|
|
273
273
|
* };
|
|
274
274
|
* const command = new PutItemCommand(input);
|
|
275
275
|
* const response = await client.send(command);
|
|
276
|
-
* /* response
|
|
276
|
+
* /* response is
|
|
277
277
|
* {
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
278
|
+
* ConsumedCapacity: {
|
|
279
|
+
* CapacityUnits: 1,
|
|
280
|
+
* TableName: "Music"
|
|
281
281
|
* }
|
|
282
282
|
* }
|
|
283
283
|
* *\/
|
|
284
|
-
* // example id: to-add-an-item-to-a-table-1476116191110
|
|
285
284
|
* ```
|
|
286
285
|
*
|
|
286
|
+
* @public
|
|
287
287
|
*/
|
|
288
288
|
export declare class PutItemCommand extends PutItemCommand_base {
|
|
289
289
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -122,6 +122,7 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
122
122
|
* @throws {@link DynamoDBServiceException}
|
|
123
123
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
124
124
|
*
|
|
125
|
+
*
|
|
125
126
|
* @public
|
|
126
127
|
*/
|
|
127
128
|
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
|
|
@@ -280,39 +280,39 @@ declare const QueryCommand_base: {
|
|
|
280
280
|
* @throws {@link DynamoDBServiceException}
|
|
281
281
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
282
282
|
*
|
|
283
|
-
*
|
|
283
|
+
*
|
|
284
284
|
* @example To query an item
|
|
285
285
|
* ```javascript
|
|
286
286
|
* // This example queries items in the Music table. The table has a partition key and sort key (Artist and SongTitle), but this query only specifies the partition key value. It returns song titles by the artist named "No One You Know".
|
|
287
287
|
* const input = {
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
288
|
+
* ExpressionAttributeValues: {
|
|
289
|
+
* :v1: {
|
|
290
|
+
* S: "No One You Know"
|
|
291
291
|
* }
|
|
292
292
|
* },
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
293
|
+
* KeyConditionExpression: "Artist = :v1",
|
|
294
|
+
* ProjectionExpression: "SongTitle",
|
|
295
|
+
* TableName: "Music"
|
|
296
296
|
* };
|
|
297
297
|
* const command = new QueryCommand(input);
|
|
298
298
|
* const response = await client.send(command);
|
|
299
|
-
* /* response
|
|
299
|
+
* /* response is
|
|
300
300
|
* {
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
301
|
+
* ConsumedCapacity: { /* empty *\/ },
|
|
302
|
+
* Count: 2,
|
|
303
|
+
* Items: [
|
|
304
304
|
* {
|
|
305
|
-
*
|
|
306
|
-
*
|
|
305
|
+
* SongTitle: {
|
|
306
|
+
* S: "Call Me Today"
|
|
307
307
|
* }
|
|
308
308
|
* }
|
|
309
309
|
* ],
|
|
310
|
-
*
|
|
310
|
+
* ScannedCount: 2
|
|
311
311
|
* }
|
|
312
312
|
* *\/
|
|
313
|
-
* // example id: to-query-an-item-1475883874631
|
|
314
313
|
* ```
|
|
315
314
|
*
|
|
315
|
+
* @public
|
|
316
316
|
*/
|
|
317
317
|
export declare class QueryCommand extends QueryCommand_base {
|
|
318
318
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -343,6 +343,7 @@ declare const RestoreTableFromBackupCommand_base: {
|
|
|
343
343
|
* @throws {@link DynamoDBServiceException}
|
|
344
344
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
345
345
|
*
|
|
346
|
+
*
|
|
346
347
|
* @public
|
|
347
348
|
*/
|
|
348
349
|
export declare class RestoreTableFromBackupCommand extends RestoreTableFromBackupCommand_base {
|
|
@@ -375,6 +375,7 @@ declare const RestoreTableToPointInTimeCommand_base: {
|
|
|
375
375
|
* @throws {@link DynamoDBServiceException}
|
|
376
376
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
377
377
|
*
|
|
378
|
+
*
|
|
378
379
|
* @public
|
|
379
380
|
*/
|
|
380
381
|
export declare class RestoreTableToPointInTimeCommand extends RestoreTableToPointInTimeCommand_base {
|
|
@@ -264,54 +264,54 @@ declare const ScanCommand_base: {
|
|
|
264
264
|
* @throws {@link DynamoDBServiceException}
|
|
265
265
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
266
266
|
*
|
|
267
|
-
*
|
|
267
|
+
*
|
|
268
268
|
* @example To scan a table
|
|
269
269
|
* ```javascript
|
|
270
270
|
* // This example scans the entire Music table, and then narrows the results to songs by the artist "No One You Know". For each item, only the album title and song title are returned.
|
|
271
271
|
* const input = {
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
272
|
+
* ExpressionAttributeNames: {
|
|
273
|
+
* #AT: "AlbumTitle",
|
|
274
|
+
* #ST: "SongTitle"
|
|
275
275
|
* },
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
276
|
+
* ExpressionAttributeValues: {
|
|
277
|
+
* :a: {
|
|
278
|
+
* S: "No One You Know"
|
|
279
279
|
* }
|
|
280
280
|
* },
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
281
|
+
* FilterExpression: "Artist = :a",
|
|
282
|
+
* ProjectionExpression: "#ST, #AT",
|
|
283
|
+
* TableName: "Music"
|
|
284
284
|
* };
|
|
285
285
|
* const command = new ScanCommand(input);
|
|
286
286
|
* const response = await client.send(command);
|
|
287
|
-
* /* response
|
|
287
|
+
* /* response is
|
|
288
288
|
* {
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
289
|
+
* ConsumedCapacity: { /* empty *\/ },
|
|
290
|
+
* Count: 2,
|
|
291
|
+
* Items: [
|
|
292
292
|
* {
|
|
293
|
-
*
|
|
294
|
-
*
|
|
293
|
+
* AlbumTitle: {
|
|
294
|
+
* S: "Somewhat Famous"
|
|
295
295
|
* },
|
|
296
|
-
*
|
|
297
|
-
*
|
|
296
|
+
* SongTitle: {
|
|
297
|
+
* S: "Call Me Today"
|
|
298
298
|
* }
|
|
299
299
|
* },
|
|
300
300
|
* {
|
|
301
|
-
*
|
|
302
|
-
*
|
|
301
|
+
* AlbumTitle: {
|
|
302
|
+
* S: "Blue Sky Blues"
|
|
303
303
|
* },
|
|
304
|
-
*
|
|
305
|
-
*
|
|
304
|
+
* SongTitle: {
|
|
305
|
+
* S: "Scared of My Shadow"
|
|
306
306
|
* }
|
|
307
307
|
* }
|
|
308
308
|
* ],
|
|
309
|
-
*
|
|
309
|
+
* ScannedCount: 3
|
|
310
310
|
* }
|
|
311
311
|
* *\/
|
|
312
|
-
* // example id: to-scan-a-table-1475883652470
|
|
313
312
|
* ```
|
|
314
313
|
*
|
|
314
|
+
* @public
|
|
315
315
|
*/
|
|
316
316
|
export declare class ScanCommand extends ScanCommand_base {
|
|
317
317
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -112,6 +112,7 @@ declare const TagResourceCommand_base: {
|
|
|
112
112
|
* @throws {@link DynamoDBServiceException}
|
|
113
113
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
114
114
|
*
|
|
115
|
+
*
|
|
115
116
|
* @public
|
|
116
117
|
*/
|
|
117
118
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
@@ -471,6 +471,7 @@ declare const TransactGetItemsCommand_base: {
|
|
|
471
471
|
* @throws {@link DynamoDBServiceException}
|
|
472
472
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
473
473
|
*
|
|
474
|
+
*
|
|
474
475
|
* @public
|
|
475
476
|
*/
|
|
476
477
|
export declare class TransactGetItemsCommand extends TransactGetItemsCommand_base {
|
|
@@ -640,6 +640,7 @@ declare const TransactWriteItemsCommand_base: {
|
|
|
640
640
|
* @throws {@link DynamoDBServiceException}
|
|
641
641
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
642
642
|
*
|
|
643
|
+
*
|
|
643
644
|
* @public
|
|
644
645
|
*/
|
|
645
646
|
export declare class TransactWriteItemsCommand extends TransactWriteItemsCommand_base {
|
|
@@ -107,6 +107,7 @@ declare const UntagResourceCommand_base: {
|
|
|
107
107
|
* @throws {@link DynamoDBServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
109
109
|
*
|
|
110
|
+
*
|
|
110
111
|
* @public
|
|
111
112
|
*/
|
|
112
113
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
@@ -89,6 +89,7 @@ declare const UpdateContinuousBackupsCommand_base: {
|
|
|
89
89
|
* @throws {@link DynamoDBServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class UpdateContinuousBackupsCommand extends UpdateContinuousBackupsCommand_base {
|
|
@@ -71,6 +71,7 @@ declare const UpdateContributorInsightsCommand_base: {
|
|
|
71
71
|
* @throws {@link DynamoDBServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
73
73
|
*
|
|
74
|
+
*
|
|
74
75
|
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class UpdateContributorInsightsCommand extends UpdateContributorInsightsCommand_base {
|
|
@@ -158,6 +158,7 @@ declare const UpdateGlobalTableCommand_base: {
|
|
|
158
158
|
* @throws {@link DynamoDBServiceException}
|
|
159
159
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
160
160
|
*
|
|
161
|
+
*
|
|
161
162
|
* @public
|
|
162
163
|
*/
|
|
163
164
|
export declare class UpdateGlobalTableCommand extends UpdateGlobalTableCommand_base {
|
|
@@ -262,6 +262,7 @@ declare const UpdateGlobalTableSettingsCommand_base: {
|
|
|
262
262
|
* @throws {@link DynamoDBServiceException}
|
|
263
263
|
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
|
|
264
264
|
*
|
|
265
|
+
*
|
|
265
266
|
* @public
|
|
266
267
|
*/
|
|
267
268
|
export declare class UpdateGlobalTableSettingsCommand extends UpdateGlobalTableSettingsCommand_base {
|