@aws-sdk/client-dynamodb-streams 3.186.0 → 3.190.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/CHANGELOG.md +16 -0
- package/dist-es/DynamoDBStreams.js +18 -25
- package/dist-es/DynamoDBStreamsClient.js +22 -28
- package/dist-es/commands/DescribeStreamCommand.js +21 -28
- package/dist-es/commands/GetRecordsCommand.js +21 -28
- package/dist-es/commands/GetShardIteratorCommand.js +21 -28
- package/dist-es/commands/ListStreamsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DynamoDBStreamsServiceException.js +5 -10
- package/dist-es/models/models_0.js +131 -100
- package/dist-es/protocols/Aws_json1_0.js +359 -453
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,68 +1,67 @@
|
|
|
1
|
-
import { __assign, __extends, __read } from "tslib";
|
|
2
1
|
import { DynamoDBStreamsServiceException as __BaseException } from "./DynamoDBStreamsServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export class InternalServerError extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "InternalServerError",
|
|
6
|
+
$fault: "server",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "InternalServerError";
|
|
10
|
+
this.$fault = "server";
|
|
11
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
}
|
|
14
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "ResourceNotFoundException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts,
|
|
20
|
+
});
|
|
21
|
+
this.name = "ResourceNotFoundException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
}
|
|
26
|
+
export class ExpiredIteratorException extends __BaseException {
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "ExpiredIteratorException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts,
|
|
32
|
+
});
|
|
33
|
+
this.name = "ExpiredIteratorException";
|
|
34
|
+
this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
}
|
|
38
|
+
export class LimitExceededException extends __BaseException {
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "LimitExceededException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
this.name = "LimitExceededException";
|
|
46
|
+
this.$fault = "client";
|
|
47
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
}
|
|
50
|
+
export class TrimmedDataAccessException extends __BaseException {
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "TrimmedDataAccessException",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
this.name = "TrimmedDataAccessException";
|
|
58
|
+
this.$fault = "client";
|
|
59
|
+
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
}(__BaseException));
|
|
62
|
-
export { TrimmedDataAccessException };
|
|
61
|
+
}
|
|
63
62
|
export var AttributeValue;
|
|
64
63
|
(function (AttributeValue) {
|
|
65
|
-
AttributeValue.visit =
|
|
64
|
+
AttributeValue.visit = (value, visitor) => {
|
|
66
65
|
if (value.S !== undefined)
|
|
67
66
|
return visitor.S(value.S);
|
|
68
67
|
if (value.N !== undefined)
|
|
@@ -86,21 +85,46 @@ export var AttributeValue;
|
|
|
86
85
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
87
86
|
};
|
|
88
87
|
})(AttributeValue || (AttributeValue = {}));
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
export const DescribeStreamInputFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
});
|
|
91
|
+
export const KeySchemaElementFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
94
|
+
export const SequenceNumberRangeFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
});
|
|
97
|
+
export const ShardFilterSensitiveLog = (obj) => ({
|
|
98
|
+
...obj,
|
|
99
|
+
});
|
|
100
|
+
export const StreamDescriptionFilterSensitiveLog = (obj) => ({
|
|
101
|
+
...obj,
|
|
102
|
+
});
|
|
103
|
+
export const DescribeStreamOutputFilterSensitiveLog = (obj) => ({
|
|
104
|
+
...obj,
|
|
105
|
+
});
|
|
106
|
+
export const GetRecordsInputFilterSensitiveLog = (obj) => ({
|
|
107
|
+
...obj,
|
|
108
|
+
});
|
|
109
|
+
export const IdentityFilterSensitiveLog = (obj) => ({
|
|
110
|
+
...obj,
|
|
111
|
+
});
|
|
112
|
+
export const GetShardIteratorInputFilterSensitiveLog = (obj) => ({
|
|
113
|
+
...obj,
|
|
114
|
+
});
|
|
115
|
+
export const GetShardIteratorOutputFilterSensitiveLog = (obj) => ({
|
|
116
|
+
...obj,
|
|
117
|
+
});
|
|
118
|
+
export const ListStreamsInputFilterSensitiveLog = (obj) => ({
|
|
119
|
+
...obj,
|
|
120
|
+
});
|
|
121
|
+
export const _StreamFilterSensitiveLog = (obj) => ({
|
|
122
|
+
...obj,
|
|
123
|
+
});
|
|
124
|
+
export const ListStreamsOutputFilterSensitiveLog = (obj) => ({
|
|
125
|
+
...obj,
|
|
126
|
+
});
|
|
127
|
+
export const AttributeValueFilterSensitiveLog = (obj) => {
|
|
104
128
|
if (obj.S !== undefined)
|
|
105
129
|
return { S: obj.S };
|
|
106
130
|
if (obj.N !== undefined)
|
|
@@ -115,39 +139,46 @@ export var AttributeValueFilterSensitiveLog = function (obj) {
|
|
|
115
139
|
return { BS: obj.BS };
|
|
116
140
|
if (obj.M !== undefined)
|
|
117
141
|
return {
|
|
118
|
-
M: Object.entries(obj.M).reduce(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}, {}),
|
|
142
|
+
M: Object.entries(obj.M).reduce((acc, [key, value]) => ({
|
|
143
|
+
...acc,
|
|
144
|
+
[key]: AttributeValueFilterSensitiveLog(value),
|
|
145
|
+
}), {}),
|
|
123
146
|
};
|
|
124
147
|
if (obj.L !== undefined)
|
|
125
|
-
return { L: obj.L.map(
|
|
148
|
+
return { L: obj.L.map((item) => AttributeValueFilterSensitiveLog(item)) };
|
|
126
149
|
if (obj.NULL !== undefined)
|
|
127
150
|
return { NULL: obj.NULL };
|
|
128
151
|
if (obj.BOOL !== undefined)
|
|
129
152
|
return { BOOL: obj.BOOL };
|
|
130
153
|
if (obj.$unknown !== undefined)
|
|
131
|
-
return
|
|
154
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
132
155
|
};
|
|
133
|
-
export
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
})
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
|
|
156
|
+
export const StreamRecordFilterSensitiveLog = (obj) => ({
|
|
157
|
+
...obj,
|
|
158
|
+
...(obj.Keys && {
|
|
159
|
+
Keys: Object.entries(obj.Keys).reduce((acc, [key, value]) => ({
|
|
160
|
+
...acc,
|
|
161
|
+
[key]: AttributeValueFilterSensitiveLog(value),
|
|
162
|
+
}), {}),
|
|
163
|
+
}),
|
|
164
|
+
...(obj.NewImage && {
|
|
165
|
+
NewImage: Object.entries(obj.NewImage).reduce((acc, [key, value]) => ({
|
|
166
|
+
...acc,
|
|
167
|
+
[key]: AttributeValueFilterSensitiveLog(value),
|
|
168
|
+
}), {}),
|
|
169
|
+
}),
|
|
170
|
+
...(obj.OldImage && {
|
|
171
|
+
OldImage: Object.entries(obj.OldImage).reduce((acc, [key, value]) => ({
|
|
172
|
+
...acc,
|
|
173
|
+
[key]: AttributeValueFilterSensitiveLog(value),
|
|
174
|
+
}), {}),
|
|
175
|
+
}),
|
|
176
|
+
});
|
|
177
|
+
export const _RecordFilterSensitiveLog = (obj) => ({
|
|
178
|
+
...obj,
|
|
179
|
+
...(obj.dynamodb && { dynamodb: StreamRecordFilterSensitiveLog(obj.dynamodb) }),
|
|
180
|
+
});
|
|
181
|
+
export const GetRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
182
|
+
...obj,
|
|
183
|
+
...(obj.Records && { Records: obj.Records.map((item) => _RecordFilterSensitiveLog(item)) }),
|
|
184
|
+
});
|