@aws-sdk/client-dynamodb-streams 3.183.0 → 3.185.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,67 +1,68 @@
1
+ import { __assign, __extends, __read } from "tslib";
1
2
  import { DynamoDBStreamsServiceException as __BaseException } from "./DynamoDBStreamsServiceException";
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);
3
+ var InternalServerError = (function (_super) {
4
+ __extends(InternalServerError, _super);
5
+ function InternalServerError(opts) {
6
+ var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
7
+ _this.name = "InternalServerError";
8
+ _this.$fault = "server";
9
+ Object.setPrototypeOf(_this, InternalServerError.prototype);
10
+ return _this;
12
11
  }
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);
12
+ return InternalServerError;
13
+ }(__BaseException));
14
+ export { InternalServerError };
15
+ var ResourceNotFoundException = (function (_super) {
16
+ __extends(ResourceNotFoundException, _super);
17
+ function ResourceNotFoundException(opts) {
18
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
19
+ _this.name = "ResourceNotFoundException";
20
+ _this.$fault = "client";
21
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
22
+ return _this;
24
23
  }
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);
24
+ return ResourceNotFoundException;
25
+ }(__BaseException));
26
+ export { ResourceNotFoundException };
27
+ var ExpiredIteratorException = (function (_super) {
28
+ __extends(ExpiredIteratorException, _super);
29
+ function ExpiredIteratorException(opts) {
30
+ var _this = _super.call(this, __assign({ name: "ExpiredIteratorException", $fault: "client" }, opts)) || this;
31
+ _this.name = "ExpiredIteratorException";
32
+ _this.$fault = "client";
33
+ Object.setPrototypeOf(_this, ExpiredIteratorException.prototype);
34
+ return _this;
36
35
  }
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);
36
+ return ExpiredIteratorException;
37
+ }(__BaseException));
38
+ export { ExpiredIteratorException };
39
+ var LimitExceededException = (function (_super) {
40
+ __extends(LimitExceededException, _super);
41
+ function LimitExceededException(opts) {
42
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
43
+ _this.name = "LimitExceededException";
44
+ _this.$fault = "client";
45
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
46
+ return _this;
48
47
  }
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);
48
+ return LimitExceededException;
49
+ }(__BaseException));
50
+ export { LimitExceededException };
51
+ var TrimmedDataAccessException = (function (_super) {
52
+ __extends(TrimmedDataAccessException, _super);
53
+ function TrimmedDataAccessException(opts) {
54
+ var _this = _super.call(this, __assign({ name: "TrimmedDataAccessException", $fault: "client" }, opts)) || this;
55
+ _this.name = "TrimmedDataAccessException";
56
+ _this.$fault = "client";
57
+ Object.setPrototypeOf(_this, TrimmedDataAccessException.prototype);
58
+ return _this;
60
59
  }
61
- }
60
+ return TrimmedDataAccessException;
61
+ }(__BaseException));
62
+ export { TrimmedDataAccessException };
62
63
  export var AttributeValue;
63
64
  (function (AttributeValue) {
64
- AttributeValue.visit = (value, visitor) => {
65
+ AttributeValue.visit = function (value, visitor) {
65
66
  if (value.S !== undefined)
66
67
  return visitor.S(value.S);
67
68
  if (value.N !== undefined)
@@ -85,46 +86,21 @@ export var AttributeValue;
85
86
  return visitor._(value.$unknown[0], value.$unknown[1]);
86
87
  };
87
88
  })(AttributeValue || (AttributeValue = {}));
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) => {
89
+ export var DescribeStreamInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
+ export var KeySchemaElementFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
+ export var SequenceNumberRangeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
+ export var ShardFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
+ export var StreamDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
+ export var DescribeStreamOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
+ export var GetRecordsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
+ export var IdentityFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
+ export var GetShardIteratorInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
+ export var GetShardIteratorOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
+ export var ListStreamsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
+ export var _StreamFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
+ export var ListStreamsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
+ export var AttributeValueFilterSensitiveLog = function (obj) {
103
+ var _a;
128
104
  if (obj.S !== undefined)
129
105
  return { S: obj.S };
130
106
  if (obj.N !== undefined)
@@ -139,46 +115,39 @@ export const AttributeValueFilterSensitiveLog = (obj) => {
139
115
  return { BS: obj.BS };
140
116
  if (obj.M !== undefined)
141
117
  return {
142
- M: Object.entries(obj.M).reduce((acc, [key, value]) => ({
143
- ...acc,
144
- [key]: AttributeValueFilterSensitiveLog(value),
145
- }), {}),
118
+ M: Object.entries(obj.M).reduce(function (acc, _a) {
119
+ var _b;
120
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
121
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = AttributeValueFilterSensitiveLog(value), _b)));
122
+ }, {}),
146
123
  };
147
124
  if (obj.L !== undefined)
148
- return { L: obj.L.map((item) => AttributeValueFilterSensitiveLog(item)) };
125
+ return { L: obj.L.map(function (item) { return AttributeValueFilterSensitiveLog(item); }) };
149
126
  if (obj.NULL !== undefined)
150
127
  return { NULL: obj.NULL };
151
128
  if (obj.BOOL !== undefined)
152
129
  return { BOOL: obj.BOOL };
153
130
  if (obj.$unknown !== undefined)
154
- return { [obj.$unknown[0]]: "UNKNOWN" };
131
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
155
132
  };
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
- });
133
+ export var StreamRecordFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Keys && {
134
+ Keys: Object.entries(obj.Keys).reduce(function (acc, _a) {
135
+ var _b;
136
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
137
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = AttributeValueFilterSensitiveLog(value), _b)));
138
+ }, {}),
139
+ })), (obj.NewImage && {
140
+ NewImage: Object.entries(obj.NewImage).reduce(function (acc, _a) {
141
+ var _b;
142
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
143
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = AttributeValueFilterSensitiveLog(value), _b)));
144
+ }, {}),
145
+ })), (obj.OldImage && {
146
+ OldImage: Object.entries(obj.OldImage).reduce(function (acc, _a) {
147
+ var _b;
148
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
149
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = AttributeValueFilterSensitiveLog(value), _b)));
150
+ }, {}),
151
+ }))); };
152
+ export var _RecordFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.dynamodb && { dynamodb: StreamRecordFilterSensitiveLog(obj.dynamodb) }))); };
153
+ export var GetRecordsOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Records && { Records: obj.Records.map(function (item) { return _RecordFilterSensitiveLog(item); }) }))); };