@aws-sdk/lib-dynamodb 3.721.0 → 3.724.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,6 +1,7 @@
1
1
  import { Client as __Client } from "@smithy/smithy-client";
2
2
  export { __Client };
3
3
  export class DynamoDBDocumentClient extends __Client {
4
+ config;
4
5
  constructor(client, translateConfig) {
5
6
  super(client.config);
6
7
  this.config = client.config;
@@ -2,6 +2,10 @@ import { setFeature } from "@aws-sdk/core";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { marshallInput, unmarshallOutput } from "../commands/utils";
4
4
  export class DynamoDBDocumentClientCommand extends $Command {
5
+ static defaultLogFilterOverrides = {
6
+ overrideInputFilterSensitiveLog(...args) { },
7
+ overrideOutputFilterSensitiveLog(...args) { },
8
+ };
5
9
  addMarshallingMiddleware(configuration) {
6
10
  const { marshallOptions = {}, unmarshallOptions = {} } = configuration.translateConfig || {};
7
11
  marshallOptions.convertTopLevelContainer = marshallOptions.convertTopLevelContainer ?? true;
@@ -40,7 +44,3 @@ export class DynamoDBDocumentClientCommand extends $Command {
40
44
  });
41
45
  }
42
46
  }
43
- DynamoDBDocumentClientCommand.defaultLogFilterOverrides = {
44
- overrideInputFilterSensitiveLog(...args) { },
45
- overrideOutputFilterSensitiveLog(...args) { },
46
- };
@@ -4,26 +4,29 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- this.inputKeyNodes = {
11
- Statements: {
12
- "*": {
13
- Parameters: ALL_MEMBERS,
14
- },
7
+ input;
8
+ inputKeyNodes = {
9
+ Statements: {
10
+ "*": {
11
+ Parameters: ALL_MEMBERS,
15
12
  },
16
- };
17
- this.outputKeyNodes = {
18
- Responses: {
19
- "*": {
20
- Error: {
21
- Item: ALL_VALUES,
22
- },
13
+ },
14
+ };
15
+ outputKeyNodes = {
16
+ Responses: {
17
+ "*": {
18
+ Error: {
23
19
  Item: ALL_VALUES,
24
20
  },
21
+ Item: ALL_VALUES,
25
22
  },
26
- };
23
+ },
24
+ };
25
+ clientCommand;
26
+ middlewareStack;
27
+ constructor(input) {
28
+ super();
29
+ this.input = input;
27
30
  this.clientCommand = new __BatchExecuteStatementCommand(this.input);
28
31
  this.middlewareStack = this.clientCommand.middlewareStack;
29
32
  }
@@ -4,32 +4,35 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class BatchGetCommand extends DynamoDBDocumentClientCommand {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- this.inputKeyNodes = {
11
- RequestItems: {
12
- "*": {
13
- Keys: {
14
- "*": ALL_VALUES,
15
- },
16
- },
17
- },
18
- };
19
- this.outputKeyNodes = {
20
- Responses: {
21
- "*": {
7
+ input;
8
+ inputKeyNodes = {
9
+ RequestItems: {
10
+ "*": {
11
+ Keys: {
22
12
  "*": ALL_VALUES,
23
13
  },
24
14
  },
25
- UnprocessedKeys: {
26
- "*": {
27
- Keys: {
28
- "*": ALL_VALUES,
29
- },
15
+ },
16
+ };
17
+ outputKeyNodes = {
18
+ Responses: {
19
+ "*": {
20
+ "*": ALL_VALUES,
21
+ },
22
+ },
23
+ UnprocessedKeys: {
24
+ "*": {
25
+ Keys: {
26
+ "*": ALL_VALUES,
30
27
  },
31
28
  },
32
- };
29
+ },
30
+ };
31
+ clientCommand;
32
+ middlewareStack;
33
+ constructor(input) {
34
+ super();
35
+ this.input = input;
33
36
  this.clientCommand = new __BatchGetItemCommand(this.input);
34
37
  this.middlewareStack = this.clientCommand.middlewareStack;
35
38
  }
@@ -4,44 +4,47 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class BatchWriteCommand extends DynamoDBDocumentClientCommand {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- this.inputKeyNodes = {
11
- RequestItems: {
7
+ input;
8
+ inputKeyNodes = {
9
+ RequestItems: {
10
+ "*": {
12
11
  "*": {
13
- "*": {
14
- PutRequest: {
15
- Item: ALL_VALUES,
16
- },
17
- DeleteRequest: {
18
- Key: ALL_VALUES,
19
- },
12
+ PutRequest: {
13
+ Item: ALL_VALUES,
14
+ },
15
+ DeleteRequest: {
16
+ Key: ALL_VALUES,
20
17
  },
21
18
  },
22
19
  },
23
- };
24
- this.outputKeyNodes = {
25
- UnprocessedItems: {
20
+ },
21
+ };
22
+ outputKeyNodes = {
23
+ UnprocessedItems: {
24
+ "*": {
26
25
  "*": {
27
- "*": {
28
- PutRequest: {
29
- Item: ALL_VALUES,
30
- },
31
- DeleteRequest: {
32
- Key: ALL_VALUES,
33
- },
26
+ PutRequest: {
27
+ Item: ALL_VALUES,
28
+ },
29
+ DeleteRequest: {
30
+ Key: ALL_VALUES,
34
31
  },
35
32
  },
36
33
  },
37
- ItemCollectionMetrics: {
34
+ },
35
+ ItemCollectionMetrics: {
36
+ "*": {
38
37
  "*": {
39
- "*": {
40
- ItemCollectionKey: ALL_VALUES,
41
- },
38
+ ItemCollectionKey: ALL_VALUES,
42
39
  },
43
40
  },
44
- };
41
+ },
42
+ };
43
+ clientCommand;
44
+ middlewareStack;
45
+ constructor(input) {
46
+ super();
47
+ this.input = input;
45
48
  this.clientCommand = new __BatchWriteItemCommand(this.input);
46
49
  this.middlewareStack = this.clientCommand.middlewareStack;
47
50
  }
@@ -4,25 +4,28 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class DeleteCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ Key: ALL_VALUES,
10
+ Expected: {
11
+ "*": {
12
+ Value: SELF,
13
+ AttributeValueList: ALL_MEMBERS,
14
+ },
15
+ },
16
+ ExpressionAttributeValues: ALL_VALUES,
17
+ };
18
+ outputKeyNodes = {
19
+ Attributes: ALL_VALUES,
20
+ ItemCollectionMetrics: {
21
+ ItemCollectionKey: ALL_VALUES,
22
+ },
23
+ };
24
+ clientCommand;
25
+ middlewareStack;
7
26
  constructor(input) {
8
27
  super();
9
28
  this.input = input;
10
- this.inputKeyNodes = {
11
- Key: ALL_VALUES,
12
- Expected: {
13
- "*": {
14
- Value: SELF,
15
- AttributeValueList: ALL_MEMBERS,
16
- },
17
- },
18
- ExpressionAttributeValues: ALL_VALUES,
19
- };
20
- this.outputKeyNodes = {
21
- Attributes: ALL_VALUES,
22
- ItemCollectionMetrics: {
23
- ItemCollectionKey: ALL_VALUES,
24
- },
25
- };
26
29
  this.clientCommand = new __DeleteItemCommand(this.input);
27
30
  this.middlewareStack = this.clientCommand.middlewareStack;
28
31
  }
@@ -4,18 +4,21 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class ExecuteStatementCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ Parameters: ALL_MEMBERS,
10
+ };
11
+ outputKeyNodes = {
12
+ Items: {
13
+ "*": ALL_VALUES,
14
+ },
15
+ LastEvaluatedKey: ALL_VALUES,
16
+ };
17
+ clientCommand;
18
+ middlewareStack;
7
19
  constructor(input) {
8
20
  super();
9
21
  this.input = input;
10
- this.inputKeyNodes = {
11
- Parameters: ALL_MEMBERS,
12
- };
13
- this.outputKeyNodes = {
14
- Items: {
15
- "*": ALL_VALUES,
16
- },
17
- LastEvaluatedKey: ALL_VALUES,
18
- };
19
22
  this.clientCommand = new __ExecuteStatementCommand(this.input);
20
23
  this.middlewareStack = this.clientCommand.middlewareStack;
21
24
  }
@@ -4,23 +4,26 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ TransactStatements: {
10
+ "*": {
11
+ Parameters: ALL_MEMBERS,
12
+ },
13
+ },
14
+ };
15
+ outputKeyNodes = {
16
+ Responses: {
17
+ "*": {
18
+ Item: ALL_VALUES,
19
+ },
20
+ },
21
+ };
22
+ clientCommand;
23
+ middlewareStack;
7
24
  constructor(input) {
8
25
  super();
9
26
  this.input = input;
10
- this.inputKeyNodes = {
11
- TransactStatements: {
12
- "*": {
13
- Parameters: ALL_MEMBERS,
14
- },
15
- },
16
- };
17
- this.outputKeyNodes = {
18
- Responses: {
19
- "*": {
20
- Item: ALL_VALUES,
21
- },
22
- },
23
- };
24
27
  this.clientCommand = new __ExecuteTransactionCommand(this.input);
25
28
  this.middlewareStack = this.clientCommand.middlewareStack;
26
29
  }
@@ -4,15 +4,18 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class GetCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ Key: ALL_VALUES,
10
+ };
11
+ outputKeyNodes = {
12
+ Item: ALL_VALUES,
13
+ };
14
+ clientCommand;
15
+ middlewareStack;
7
16
  constructor(input) {
8
17
  super();
9
18
  this.input = input;
10
- this.inputKeyNodes = {
11
- Key: ALL_VALUES,
12
- };
13
- this.outputKeyNodes = {
14
- Item: ALL_VALUES,
15
- };
16
19
  this.clientCommand = new __GetItemCommand(this.input);
17
20
  this.middlewareStack = this.clientCommand.middlewareStack;
18
21
  }
@@ -4,25 +4,28 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class PutCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ Item: ALL_VALUES,
10
+ Expected: {
11
+ "*": {
12
+ Value: SELF,
13
+ AttributeValueList: ALL_MEMBERS,
14
+ },
15
+ },
16
+ ExpressionAttributeValues: ALL_VALUES,
17
+ };
18
+ outputKeyNodes = {
19
+ Attributes: ALL_VALUES,
20
+ ItemCollectionMetrics: {
21
+ ItemCollectionKey: ALL_VALUES,
22
+ },
23
+ };
24
+ clientCommand;
25
+ middlewareStack;
7
26
  constructor(input) {
8
27
  super();
9
28
  this.input = input;
10
- this.inputKeyNodes = {
11
- Item: ALL_VALUES,
12
- Expected: {
13
- "*": {
14
- Value: SELF,
15
- AttributeValueList: ALL_MEMBERS,
16
- },
17
- },
18
- ExpressionAttributeValues: ALL_VALUES,
19
- };
20
- this.outputKeyNodes = {
21
- Attributes: ALL_VALUES,
22
- ItemCollectionMetrics: {
23
- ItemCollectionKey: ALL_VALUES,
24
- },
25
- };
26
29
  this.clientCommand = new __PutItemCommand(this.input);
27
30
  this.middlewareStack = this.clientCommand.middlewareStack;
28
31
  }
@@ -4,29 +4,32 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class QueryCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ KeyConditions: {
10
+ "*": {
11
+ AttributeValueList: ALL_MEMBERS,
12
+ },
13
+ },
14
+ QueryFilter: {
15
+ "*": {
16
+ AttributeValueList: ALL_MEMBERS,
17
+ },
18
+ },
19
+ ExclusiveStartKey: ALL_VALUES,
20
+ ExpressionAttributeValues: ALL_VALUES,
21
+ };
22
+ outputKeyNodes = {
23
+ Items: {
24
+ "*": ALL_VALUES,
25
+ },
26
+ LastEvaluatedKey: ALL_VALUES,
27
+ };
28
+ clientCommand;
29
+ middlewareStack;
7
30
  constructor(input) {
8
31
  super();
9
32
  this.input = input;
10
- this.inputKeyNodes = {
11
- KeyConditions: {
12
- "*": {
13
- AttributeValueList: ALL_MEMBERS,
14
- },
15
- },
16
- QueryFilter: {
17
- "*": {
18
- AttributeValueList: ALL_MEMBERS,
19
- },
20
- },
21
- ExclusiveStartKey: ALL_VALUES,
22
- ExpressionAttributeValues: ALL_VALUES,
23
- };
24
- this.outputKeyNodes = {
25
- Items: {
26
- "*": ALL_VALUES,
27
- },
28
- LastEvaluatedKey: ALL_VALUES,
29
- };
30
33
  this.clientCommand = new __QueryCommand(this.input);
31
34
  this.middlewareStack = this.clientCommand.middlewareStack;
32
35
  }
@@ -4,24 +4,27 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class ScanCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ ScanFilter: {
10
+ "*": {
11
+ AttributeValueList: ALL_MEMBERS,
12
+ },
13
+ },
14
+ ExclusiveStartKey: ALL_VALUES,
15
+ ExpressionAttributeValues: ALL_VALUES,
16
+ };
17
+ outputKeyNodes = {
18
+ Items: {
19
+ "*": ALL_VALUES,
20
+ },
21
+ LastEvaluatedKey: ALL_VALUES,
22
+ };
23
+ clientCommand;
24
+ middlewareStack;
7
25
  constructor(input) {
8
26
  super();
9
27
  this.input = input;
10
- this.inputKeyNodes = {
11
- ScanFilter: {
12
- "*": {
13
- AttributeValueList: ALL_MEMBERS,
14
- },
15
- },
16
- ExclusiveStartKey: ALL_VALUES,
17
- ExpressionAttributeValues: ALL_VALUES,
18
- };
19
- this.outputKeyNodes = {
20
- Items: {
21
- "*": ALL_VALUES,
22
- },
23
- LastEvaluatedKey: ALL_VALUES,
24
- };
25
28
  this.clientCommand = new __ScanCommand(this.input);
26
29
  this.middlewareStack = this.clientCommand.middlewareStack;
27
30
  }
@@ -4,25 +4,28 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class TransactGetCommand extends DynamoDBDocumentClientCommand {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- this.inputKeyNodes = {
11
- TransactItems: {
12
- "*": {
13
- Get: {
14
- Key: ALL_VALUES,
15
- },
7
+ input;
8
+ inputKeyNodes = {
9
+ TransactItems: {
10
+ "*": {
11
+ Get: {
12
+ Key: ALL_VALUES,
16
13
  },
17
14
  },
18
- };
19
- this.outputKeyNodes = {
20
- Responses: {
21
- "*": {
22
- Item: ALL_VALUES,
23
- },
15
+ },
16
+ };
17
+ outputKeyNodes = {
18
+ Responses: {
19
+ "*": {
20
+ Item: ALL_VALUES,
24
21
  },
25
- };
22
+ },
23
+ };
24
+ clientCommand;
25
+ middlewareStack;
26
+ constructor(input) {
27
+ super();
28
+ this.input = input;
26
29
  this.clientCommand = new __TransactGetItemsCommand(this.input);
27
30
  this.middlewareStack = this.clientCommand.middlewareStack;
28
31
  }
@@ -4,40 +4,43 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_VALUES } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class TransactWriteCommand extends DynamoDBDocumentClientCommand {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- this.inputKeyNodes = {
11
- TransactItems: {
12
- "*": {
13
- ConditionCheck: {
14
- Key: ALL_VALUES,
15
- ExpressionAttributeValues: ALL_VALUES,
16
- },
17
- Put: {
18
- Item: ALL_VALUES,
19
- ExpressionAttributeValues: ALL_VALUES,
20
- },
21
- Delete: {
22
- Key: ALL_VALUES,
23
- ExpressionAttributeValues: ALL_VALUES,
24
- },
25
- Update: {
26
- Key: ALL_VALUES,
27
- ExpressionAttributeValues: ALL_VALUES,
28
- },
7
+ input;
8
+ inputKeyNodes = {
9
+ TransactItems: {
10
+ "*": {
11
+ ConditionCheck: {
12
+ Key: ALL_VALUES,
13
+ ExpressionAttributeValues: ALL_VALUES,
14
+ },
15
+ Put: {
16
+ Item: ALL_VALUES,
17
+ ExpressionAttributeValues: ALL_VALUES,
18
+ },
19
+ Delete: {
20
+ Key: ALL_VALUES,
21
+ ExpressionAttributeValues: ALL_VALUES,
22
+ },
23
+ Update: {
24
+ Key: ALL_VALUES,
25
+ ExpressionAttributeValues: ALL_VALUES,
29
26
  },
30
27
  },
31
- };
32
- this.outputKeyNodes = {
33
- ItemCollectionMetrics: {
28
+ },
29
+ };
30
+ outputKeyNodes = {
31
+ ItemCollectionMetrics: {
32
+ "*": {
34
33
  "*": {
35
- "*": {
36
- ItemCollectionKey: ALL_VALUES,
37
- },
34
+ ItemCollectionKey: ALL_VALUES,
38
35
  },
39
36
  },
40
- };
37
+ },
38
+ };
39
+ clientCommand;
40
+ middlewareStack;
41
+ constructor(input) {
42
+ super();
43
+ this.input = input;
41
44
  this.clientCommand = new __TransactWriteItemsCommand(this.input);
42
45
  this.middlewareStack = this.clientCommand.middlewareStack;
43
46
  }
@@ -4,30 +4,33 @@ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentCl
4
4
  import { ALL_MEMBERS, ALL_VALUES, SELF } from "../commands/utils";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class UpdateCommand extends DynamoDBDocumentClientCommand {
7
+ input;
8
+ inputKeyNodes = {
9
+ Key: ALL_VALUES,
10
+ AttributeUpdates: {
11
+ "*": {
12
+ Value: SELF,
13
+ },
14
+ },
15
+ Expected: {
16
+ "*": {
17
+ Value: SELF,
18
+ AttributeValueList: ALL_MEMBERS,
19
+ },
20
+ },
21
+ ExpressionAttributeValues: ALL_VALUES,
22
+ };
23
+ outputKeyNodes = {
24
+ Attributes: ALL_VALUES,
25
+ ItemCollectionMetrics: {
26
+ ItemCollectionKey: ALL_VALUES,
27
+ },
28
+ };
29
+ clientCommand;
30
+ middlewareStack;
7
31
  constructor(input) {
8
32
  super();
9
33
  this.input = input;
10
- this.inputKeyNodes = {
11
- Key: ALL_VALUES,
12
- AttributeUpdates: {
13
- "*": {
14
- Value: SELF,
15
- },
16
- },
17
- Expected: {
18
- "*": {
19
- Value: SELF,
20
- AttributeValueList: ALL_MEMBERS,
21
- },
22
- },
23
- ExpressionAttributeValues: ALL_VALUES,
24
- };
25
- this.outputKeyNodes = {
26
- Attributes: ALL_VALUES,
27
- ItemCollectionMetrics: {
28
- ItemCollectionKey: ALL_VALUES,
29
- },
30
- };
31
34
  this.clientCommand = new __UpdateItemCommand(this.input);
32
35
  this.middlewareStack = this.clientCommand.middlewareStack;
33
36
  }