@aws-sdk/client-dynamodb-streams 3.901.0 → 3.907.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/index.js +626 -734
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,762 +1,654 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InternalServerError: () => InternalServerError,
|
|
33
|
-
KeyType: () => KeyType,
|
|
34
|
-
LimitExceededException: () => LimitExceededException,
|
|
35
|
-
ListStreamsCommand: () => ListStreamsCommand,
|
|
36
|
-
OperationType: () => OperationType,
|
|
37
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
38
|
-
ShardFilterType: () => ShardFilterType,
|
|
39
|
-
ShardIteratorType: () => ShardIteratorType,
|
|
40
|
-
StreamStatus: () => StreamStatus,
|
|
41
|
-
StreamViewType: () => StreamViewType,
|
|
42
|
-
TrimmedDataAccessException: () => TrimmedDataAccessException,
|
|
43
|
-
__Client: () => import_smithy_client.Client
|
|
44
|
-
});
|
|
45
|
-
module.exports = __toCommonJS(index_exports);
|
|
46
|
-
|
|
47
|
-
// src/DynamoDBStreamsClient.ts
|
|
48
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
49
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
50
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
51
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
52
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
53
|
-
var import_core = require("@smithy/core");
|
|
54
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
55
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
56
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
57
|
-
|
|
58
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
59
|
-
|
|
60
|
-
// src/endpoint/EndpointParameters.ts
|
|
61
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
62
|
-
return Object.assign(options, {
|
|
63
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
64
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
65
|
-
defaultSigningName: "dynamodb"
|
|
66
|
-
});
|
|
67
|
-
}, "resolveClientEndpointParameters");
|
|
68
|
-
var commonParams = {
|
|
69
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
70
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
71
|
-
Region: { type: "builtInParams", name: "region" },
|
|
72
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "dynamodb",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
73
32
|
};
|
|
74
33
|
|
|
75
|
-
|
|
76
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
77
72
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
82
78
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
79
|
+
class DynamoDBStreamsClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDynamoDBStreamsHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
114
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
115
|
-
return {
|
|
116
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
117
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
118
|
-
credentials: config.credentials()
|
|
119
|
-
};
|
|
120
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
121
112
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
129
|
-
);
|
|
130
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
131
|
-
return Object.assign(
|
|
132
|
-
runtimeConfig,
|
|
133
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
134
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
135
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
136
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
137
|
-
);
|
|
138
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class DynamoDBStreamsServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
139
119
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
static {
|
|
143
|
-
__name(this, "DynamoDBStreamsClient");
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The resolved configuration of DynamoDBStreamsClient class. This is resolved and normalized from the {@link DynamoDBStreamsClientConfig | constructor configuration interface}.
|
|
147
|
-
*/
|
|
148
|
-
config;
|
|
149
|
-
constructor(...[configuration]) {
|
|
150
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
151
|
-
super(_config_0);
|
|
152
|
-
this.initConfig = _config_0;
|
|
153
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
154
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
155
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
156
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
157
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
158
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
159
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
160
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
161
|
-
this.config = _config_8;
|
|
162
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
163
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
164
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
165
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
166
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
167
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
168
|
-
this.middlewareStack.use(
|
|
169
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
170
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDynamoDBStreamsHttpAuthSchemeParametersProvider,
|
|
171
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
172
|
-
"aws.auth#sigv4": config.credentials
|
|
173
|
-
}), "identityProviderConfigProvider")
|
|
174
|
-
})
|
|
175
|
-
);
|
|
176
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
180
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
181
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
182
|
-
*/
|
|
183
|
-
destroy() {
|
|
184
|
-
super.destroy();
|
|
185
|
-
}
|
|
120
|
+
const ShardFilterType = {
|
|
121
|
+
CHILD_SHARDS: "CHILD_SHARDS",
|
|
186
122
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
// src/commands/DescribeStreamCommand.ts
|
|
192
|
-
|
|
193
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
// src/protocols/Aws_json1_0.ts
|
|
197
|
-
var import_core2 = require("@aws-sdk/core");
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// src/models/DynamoDBStreamsServiceException.ts
|
|
202
|
-
|
|
203
|
-
var DynamoDBStreamsServiceException = class _DynamoDBStreamsServiceException extends import_smithy_client.ServiceException {
|
|
204
|
-
static {
|
|
205
|
-
__name(this, "DynamoDBStreamsServiceException");
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
constructor(options) {
|
|
211
|
-
super(options);
|
|
212
|
-
Object.setPrototypeOf(this, _DynamoDBStreamsServiceException.prototype);
|
|
213
|
-
}
|
|
123
|
+
const KeyType = {
|
|
124
|
+
HASH: "HASH",
|
|
125
|
+
RANGE: "RANGE",
|
|
214
126
|
};
|
|
127
|
+
const StreamStatus = {
|
|
128
|
+
DISABLED: "DISABLED",
|
|
129
|
+
DISABLING: "DISABLING",
|
|
130
|
+
ENABLED: "ENABLED",
|
|
131
|
+
ENABLING: "ENABLING",
|
|
132
|
+
};
|
|
133
|
+
const StreamViewType = {
|
|
134
|
+
KEYS_ONLY: "KEYS_ONLY",
|
|
135
|
+
NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
|
|
136
|
+
NEW_IMAGE: "NEW_IMAGE",
|
|
137
|
+
OLD_IMAGE: "OLD_IMAGE",
|
|
138
|
+
};
|
|
139
|
+
class InternalServerError extends DynamoDBStreamsServiceException {
|
|
140
|
+
name = "InternalServerError";
|
|
141
|
+
$fault = "server";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "InternalServerError",
|
|
145
|
+
$fault: "server",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
152
|
+
name = "ResourceNotFoundException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "ResourceNotFoundException",
|
|
157
|
+
$fault: "client",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
164
|
+
name = "ExpiredIteratorException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "ExpiredIteratorException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const OperationType = {
|
|
176
|
+
INSERT: "INSERT",
|
|
177
|
+
MODIFY: "MODIFY",
|
|
178
|
+
REMOVE: "REMOVE",
|
|
179
|
+
};
|
|
180
|
+
class LimitExceededException extends DynamoDBStreamsServiceException {
|
|
181
|
+
name = "LimitExceededException";
|
|
182
|
+
$fault = "client";
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "LimitExceededException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts,
|
|
188
|
+
});
|
|
189
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
193
|
+
name = "TrimmedDataAccessException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "TrimmedDataAccessException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const ShardIteratorType = {
|
|
205
|
+
AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
|
|
206
|
+
AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
|
|
207
|
+
LATEST: "LATEST",
|
|
208
|
+
TRIM_HORIZON: "TRIM_HORIZON",
|
|
209
|
+
};
|
|
210
|
+
exports.AttributeValue = void 0;
|
|
211
|
+
(function (AttributeValue) {
|
|
212
|
+
AttributeValue.visit = (value, visitor) => {
|
|
213
|
+
if (value.S !== undefined)
|
|
214
|
+
return visitor.S(value.S);
|
|
215
|
+
if (value.N !== undefined)
|
|
216
|
+
return visitor.N(value.N);
|
|
217
|
+
if (value.B !== undefined)
|
|
218
|
+
return visitor.B(value.B);
|
|
219
|
+
if (value.SS !== undefined)
|
|
220
|
+
return visitor.SS(value.SS);
|
|
221
|
+
if (value.NS !== undefined)
|
|
222
|
+
return visitor.NS(value.NS);
|
|
223
|
+
if (value.BS !== undefined)
|
|
224
|
+
return visitor.BS(value.BS);
|
|
225
|
+
if (value.M !== undefined)
|
|
226
|
+
return visitor.M(value.M);
|
|
227
|
+
if (value.L !== undefined)
|
|
228
|
+
return visitor.L(value.L);
|
|
229
|
+
if (value.NULL !== undefined)
|
|
230
|
+
return visitor.NULL(value.NULL);
|
|
231
|
+
if (value.BOOL !== undefined)
|
|
232
|
+
return visitor.BOOL(value.BOOL);
|
|
233
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
234
|
+
};
|
|
235
|
+
})(exports.AttributeValue || (exports.AttributeValue = {}));
|
|
215
236
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
* @internal
|
|
244
|
-
*/
|
|
245
|
-
constructor(opts) {
|
|
246
|
-
super({
|
|
247
|
-
name: "InternalServerError",
|
|
248
|
-
$fault: "server",
|
|
249
|
-
...opts
|
|
250
|
-
});
|
|
251
|
-
Object.setPrototypeOf(this, _InternalServerError.prototype);
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
255
|
-
static {
|
|
256
|
-
__name(this, "ResourceNotFoundException");
|
|
257
|
-
}
|
|
258
|
-
name = "ResourceNotFoundException";
|
|
259
|
-
$fault = "client";
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
constructor(opts) {
|
|
264
|
-
super({
|
|
265
|
-
name: "ResourceNotFoundException",
|
|
266
|
-
$fault: "client",
|
|
267
|
-
...opts
|
|
268
|
-
});
|
|
269
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
var ExpiredIteratorException = class _ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
273
|
-
static {
|
|
274
|
-
__name(this, "ExpiredIteratorException");
|
|
275
|
-
}
|
|
276
|
-
name = "ExpiredIteratorException";
|
|
277
|
-
$fault = "client";
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
*/
|
|
281
|
-
constructor(opts) {
|
|
282
|
-
super({
|
|
283
|
-
name: "ExpiredIteratorException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
...opts
|
|
286
|
-
});
|
|
287
|
-
Object.setPrototypeOf(this, _ExpiredIteratorException.prototype);
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
var OperationType = {
|
|
291
|
-
INSERT: "INSERT",
|
|
292
|
-
MODIFY: "MODIFY",
|
|
293
|
-
REMOVE: "REMOVE"
|
|
294
|
-
};
|
|
295
|
-
var LimitExceededException = class _LimitExceededException extends DynamoDBStreamsServiceException {
|
|
296
|
-
static {
|
|
297
|
-
__name(this, "LimitExceededException");
|
|
298
|
-
}
|
|
299
|
-
name = "LimitExceededException";
|
|
300
|
-
$fault = "client";
|
|
301
|
-
/**
|
|
302
|
-
* @internal
|
|
303
|
-
*/
|
|
304
|
-
constructor(opts) {
|
|
305
|
-
super({
|
|
306
|
-
name: "LimitExceededException",
|
|
307
|
-
$fault: "client",
|
|
308
|
-
...opts
|
|
309
|
-
});
|
|
310
|
-
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
var TrimmedDataAccessException = class _TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
314
|
-
static {
|
|
315
|
-
__name(this, "TrimmedDataAccessException");
|
|
316
|
-
}
|
|
317
|
-
name = "TrimmedDataAccessException";
|
|
318
|
-
$fault = "client";
|
|
319
|
-
/**
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
322
|
-
constructor(opts) {
|
|
323
|
-
super({
|
|
324
|
-
name: "TrimmedDataAccessException",
|
|
325
|
-
$fault: "client",
|
|
326
|
-
...opts
|
|
327
|
-
});
|
|
328
|
-
Object.setPrototypeOf(this, _TrimmedDataAccessException.prototype);
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
var ShardIteratorType = {
|
|
332
|
-
AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
|
|
333
|
-
AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
|
|
334
|
-
LATEST: "LATEST",
|
|
335
|
-
TRIM_HORIZON: "TRIM_HORIZON"
|
|
336
|
-
};
|
|
337
|
-
var AttributeValue;
|
|
338
|
-
((AttributeValue3) => {
|
|
339
|
-
AttributeValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
340
|
-
if (value.S !== void 0) return visitor.S(value.S);
|
|
341
|
-
if (value.N !== void 0) return visitor.N(value.N);
|
|
342
|
-
if (value.B !== void 0) return visitor.B(value.B);
|
|
343
|
-
if (value.SS !== void 0) return visitor.SS(value.SS);
|
|
344
|
-
if (value.NS !== void 0) return visitor.NS(value.NS);
|
|
345
|
-
if (value.BS !== void 0) return visitor.BS(value.BS);
|
|
346
|
-
if (value.M !== void 0) return visitor.M(value.M);
|
|
347
|
-
if (value.L !== void 0) return visitor.L(value.L);
|
|
348
|
-
if (value.NULL !== void 0) return visitor.NULL(value.NULL);
|
|
349
|
-
if (value.BOOL !== void 0) return visitor.BOOL(value.BOOL);
|
|
350
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
351
|
-
}, "visit");
|
|
352
|
-
})(AttributeValue || (AttributeValue = {}));
|
|
353
|
-
|
|
354
|
-
// src/protocols/Aws_json1_0.ts
|
|
355
|
-
var se_DescribeStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("DescribeStream");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
360
|
-
}, "se_DescribeStreamCommand");
|
|
361
|
-
var se_GetRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("GetRecords");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
366
|
-
}, "se_GetRecordsCommand");
|
|
367
|
-
var se_GetShardIteratorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("GetShardIterator");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
372
|
-
}, "se_GetShardIteratorCommand");
|
|
373
|
-
var se_ListStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
374
|
-
const headers = sharedHeaders("ListStreams");
|
|
375
|
-
let body;
|
|
376
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
377
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
378
|
-
}, "se_ListStreamsCommand");
|
|
379
|
-
var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
|
-
if (output.statusCode >= 300) {
|
|
381
|
-
return de_CommandError(output, context);
|
|
382
|
-
}
|
|
383
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
384
|
-
let contents = {};
|
|
385
|
-
contents = de_DescribeStreamOutput(data, context);
|
|
386
|
-
const response = {
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
...contents
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
}, "de_DescribeStreamCommand");
|
|
392
|
-
var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = de_GetRecordsOutput(data, context);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
}, "de_GetRecordsCommand");
|
|
405
|
-
var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
406
|
-
if (output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
410
|
-
let contents = {};
|
|
411
|
-
contents = (0, import_smithy_client._json)(data);
|
|
412
|
-
const response = {
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
...contents
|
|
415
|
-
};
|
|
416
|
-
return response;
|
|
417
|
-
}, "de_GetShardIteratorCommand");
|
|
418
|
-
var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
419
|
-
if (output.statusCode >= 300) {
|
|
420
|
-
return de_CommandError(output, context);
|
|
421
|
-
}
|
|
422
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
423
|
-
let contents = {};
|
|
424
|
-
contents = (0, import_smithy_client._json)(data);
|
|
425
|
-
const response = {
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
...contents
|
|
428
|
-
};
|
|
429
|
-
return response;
|
|
430
|
-
}, "de_ListStreamsCommand");
|
|
431
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
432
|
-
const parsedOutput = {
|
|
433
|
-
...output,
|
|
434
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
435
|
-
};
|
|
436
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
437
|
-
switch (errorCode) {
|
|
438
|
-
case "InternalServerError":
|
|
439
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
440
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
441
|
-
case "ResourceNotFoundException":
|
|
442
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ExpiredIteratorException":
|
|
445
|
-
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
446
|
-
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
447
|
-
case "LimitExceededException":
|
|
448
|
-
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
449
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
450
|
-
case "TrimmedDataAccessException":
|
|
451
|
-
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
452
|
-
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
453
|
-
default:
|
|
454
|
-
const parsedBody = parsedOutput.body;
|
|
455
|
-
return throwDefaultError({
|
|
456
|
-
output,
|
|
457
|
-
parsedBody,
|
|
458
|
-
errorCode
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}, "de_CommandError");
|
|
462
|
-
var de_ExpiredIteratorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
463
|
-
const body = parsedOutput.body;
|
|
464
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
465
|
-
const exception = new ExpiredIteratorException({
|
|
466
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
467
|
-
...deserialized
|
|
468
|
-
});
|
|
469
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
470
|
-
}, "de_ExpiredIteratorExceptionRes");
|
|
471
|
-
var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
472
|
-
const body = parsedOutput.body;
|
|
473
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
474
|
-
const exception = new InternalServerError({
|
|
475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
476
|
-
...deserialized
|
|
477
|
-
});
|
|
478
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
479
|
-
}, "de_InternalServerErrorRes");
|
|
480
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
481
|
-
const body = parsedOutput.body;
|
|
482
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
483
|
-
const exception = new LimitExceededException({
|
|
484
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
485
|
-
...deserialized
|
|
486
|
-
});
|
|
487
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
488
|
-
}, "de_LimitExceededExceptionRes");
|
|
489
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
490
|
-
const body = parsedOutput.body;
|
|
491
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
492
|
-
const exception = new ResourceNotFoundException({
|
|
493
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
494
|
-
...deserialized
|
|
495
|
-
});
|
|
496
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
497
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
498
|
-
var de_TrimmedDataAccessExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
499
|
-
const body = parsedOutput.body;
|
|
500
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
501
|
-
const exception = new TrimmedDataAccessException({
|
|
502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
503
|
-
...deserialized
|
|
504
|
-
});
|
|
505
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
506
|
-
}, "de_TrimmedDataAccessExceptionRes");
|
|
507
|
-
var de_AttributeMap = /* @__PURE__ */ __name((output, context) => {
|
|
508
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
509
|
-
if (value === null) {
|
|
510
|
-
return acc;
|
|
237
|
+
const se_DescribeStreamCommand = async (input, context) => {
|
|
238
|
+
const headers = sharedHeaders("DescribeStream");
|
|
239
|
+
let body;
|
|
240
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
241
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
242
|
+
};
|
|
243
|
+
const se_GetRecordsCommand = async (input, context) => {
|
|
244
|
+
const headers = sharedHeaders("GetRecords");
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
const se_GetShardIteratorCommand = async (input, context) => {
|
|
250
|
+
const headers = sharedHeaders("GetShardIterator");
|
|
251
|
+
let body;
|
|
252
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
253
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
+
};
|
|
255
|
+
const se_ListStreamsCommand = async (input, context) => {
|
|
256
|
+
const headers = sharedHeaders("ListStreams");
|
|
257
|
+
let body;
|
|
258
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
259
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
+
};
|
|
261
|
+
const de_DescribeStreamCommand = async (output, context) => {
|
|
262
|
+
if (output.statusCode >= 300) {
|
|
263
|
+
return de_CommandError(output, context);
|
|
511
264
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
return {
|
|
519
|
-
B: context.base64Decoder(output.B)
|
|
265
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
266
|
+
let contents = {};
|
|
267
|
+
contents = de_DescribeStreamOutput(data);
|
|
268
|
+
const response = {
|
|
269
|
+
$metadata: deserializeMetadata(output),
|
|
270
|
+
...contents,
|
|
520
271
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
272
|
+
return response;
|
|
273
|
+
};
|
|
274
|
+
const de_GetRecordsCommand = async (output, context) => {
|
|
275
|
+
if (output.statusCode >= 300) {
|
|
276
|
+
return de_CommandError(output, context);
|
|
277
|
+
}
|
|
278
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
279
|
+
let contents = {};
|
|
280
|
+
contents = de_GetRecordsOutput(data, context);
|
|
281
|
+
const response = {
|
|
282
|
+
$metadata: deserializeMetadata(output),
|
|
283
|
+
...contents,
|
|
528
284
|
};
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
285
|
+
return response;
|
|
286
|
+
};
|
|
287
|
+
const de_GetShardIteratorCommand = async (output, context) => {
|
|
288
|
+
if (output.statusCode >= 300) {
|
|
289
|
+
return de_CommandError(output, context);
|
|
290
|
+
}
|
|
291
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
292
|
+
let contents = {};
|
|
293
|
+
contents = smithyClient._json(data);
|
|
294
|
+
const response = {
|
|
295
|
+
$metadata: deserializeMetadata(output),
|
|
296
|
+
...contents,
|
|
533
297
|
};
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
298
|
+
return response;
|
|
299
|
+
};
|
|
300
|
+
const de_ListStreamsCommand = async (output, context) => {
|
|
301
|
+
if (output.statusCode >= 300) {
|
|
302
|
+
return de_CommandError(output, context);
|
|
303
|
+
}
|
|
304
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
305
|
+
let contents = {};
|
|
306
|
+
contents = smithyClient._json(data);
|
|
307
|
+
const response = {
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
...contents,
|
|
538
310
|
};
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
NS: (0, import_smithy_client._json)(output.NS)
|
|
311
|
+
return response;
|
|
312
|
+
};
|
|
313
|
+
const de_CommandError = async (output, context) => {
|
|
314
|
+
const parsedOutput = {
|
|
315
|
+
...output,
|
|
316
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
546
317
|
};
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
318
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
|
+
switch (errorCode) {
|
|
320
|
+
case "InternalServerError":
|
|
321
|
+
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
322
|
+
throw await de_InternalServerErrorRes(parsedOutput);
|
|
323
|
+
case "ResourceNotFoundException":
|
|
324
|
+
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
325
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
326
|
+
case "ExpiredIteratorException":
|
|
327
|
+
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
328
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput);
|
|
329
|
+
case "LimitExceededException":
|
|
330
|
+
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
331
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
332
|
+
case "TrimmedDataAccessException":
|
|
333
|
+
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
334
|
+
throw await de_TrimmedDataAccessExceptionRes(parsedOutput);
|
|
335
|
+
default:
|
|
336
|
+
const parsedBody = parsedOutput.body;
|
|
337
|
+
return throwDefaultError({
|
|
338
|
+
output,
|
|
339
|
+
parsedBody,
|
|
340
|
+
errorCode,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
const de_ExpiredIteratorExceptionRes = async (parsedOutput, context) => {
|
|
345
|
+
const body = parsedOutput.body;
|
|
346
|
+
const deserialized = smithyClient._json(body);
|
|
347
|
+
const exception = new ExpiredIteratorException({
|
|
348
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
349
|
+
...deserialized,
|
|
350
|
+
});
|
|
351
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
352
|
+
};
|
|
353
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
354
|
+
const body = parsedOutput.body;
|
|
355
|
+
const deserialized = smithyClient._json(body);
|
|
356
|
+
const exception = new InternalServerError({
|
|
357
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
358
|
+
...deserialized,
|
|
359
|
+
});
|
|
360
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
361
|
+
};
|
|
362
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
363
|
+
const body = parsedOutput.body;
|
|
364
|
+
const deserialized = smithyClient._json(body);
|
|
365
|
+
const exception = new LimitExceededException({
|
|
366
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
367
|
+
...deserialized,
|
|
368
|
+
});
|
|
369
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
370
|
+
};
|
|
371
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
372
|
+
const body = parsedOutput.body;
|
|
373
|
+
const deserialized = smithyClient._json(body);
|
|
374
|
+
const exception = new ResourceNotFoundException({
|
|
375
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
376
|
+
...deserialized,
|
|
377
|
+
});
|
|
378
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
379
|
+
};
|
|
380
|
+
const de_TrimmedDataAccessExceptionRes = async (parsedOutput, context) => {
|
|
381
|
+
const body = parsedOutput.body;
|
|
382
|
+
const deserialized = smithyClient._json(body);
|
|
383
|
+
const exception = new TrimmedDataAccessException({
|
|
384
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
385
|
+
...deserialized,
|
|
386
|
+
});
|
|
387
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
388
|
+
};
|
|
389
|
+
const de_AttributeMap = (output, context) => {
|
|
390
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
391
|
+
if (value === null) {
|
|
392
|
+
return acc;
|
|
393
|
+
}
|
|
394
|
+
acc[key] = de_AttributeValue(core$1.awsExpectUnion(value), context);
|
|
395
|
+
return acc;
|
|
396
|
+
}, {});
|
|
397
|
+
};
|
|
398
|
+
const de_AttributeValue = (output, context) => {
|
|
399
|
+
if (output.B != null) {
|
|
400
|
+
return {
|
|
401
|
+
B: context.base64Decoder(output.B),
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
if (smithyClient.expectBoolean(output.BOOL) !== undefined) {
|
|
405
|
+
return { BOOL: smithyClient.expectBoolean(output.BOOL) };
|
|
406
|
+
}
|
|
407
|
+
if (output.BS != null) {
|
|
408
|
+
return {
|
|
409
|
+
BS: de_BinarySetAttributeValue(output.BS, context),
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
if (output.L != null) {
|
|
413
|
+
return {
|
|
414
|
+
L: de_ListAttributeValue(output.L, context),
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
if (output.M != null) {
|
|
418
|
+
return {
|
|
419
|
+
M: de_MapAttributeValue(output.M, context),
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
if (smithyClient.expectString(output.N) !== undefined) {
|
|
423
|
+
return { N: smithyClient.expectString(output.N) };
|
|
424
|
+
}
|
|
425
|
+
if (output.NS != null) {
|
|
426
|
+
return {
|
|
427
|
+
NS: smithyClient._json(output.NS),
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
if (smithyClient.expectBoolean(output.NULL) !== undefined) {
|
|
431
|
+
return { NULL: smithyClient.expectBoolean(output.NULL) };
|
|
432
|
+
}
|
|
433
|
+
if (smithyClient.expectString(output.S) !== undefined) {
|
|
434
|
+
return { S: smithyClient.expectString(output.S) };
|
|
435
|
+
}
|
|
436
|
+
if (output.SS != null) {
|
|
437
|
+
return {
|
|
438
|
+
SS: smithyClient._json(output.SS),
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
return { $unknown: Object.entries(output)[0] };
|
|
442
|
+
};
|
|
443
|
+
const de_BinarySetAttributeValue = (output, context) => {
|
|
444
|
+
const retVal = (output || [])
|
|
445
|
+
.filter((e) => e != null)
|
|
446
|
+
.map((entry) => {
|
|
447
|
+
return context.base64Decoder(entry);
|
|
448
|
+
});
|
|
449
|
+
return retVal;
|
|
450
|
+
};
|
|
451
|
+
const de_DescribeStreamOutput = (output, context) => {
|
|
452
|
+
return smithyClient.take(output, {
|
|
453
|
+
StreamDescription: (_) => de_StreamDescription(_),
|
|
454
|
+
});
|
|
455
|
+
};
|
|
456
|
+
const de_GetRecordsOutput = (output, context) => {
|
|
457
|
+
return smithyClient.take(output, {
|
|
458
|
+
NextShardIterator: smithyClient.expectString,
|
|
459
|
+
Records: (_) => de_RecordList(_, context),
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
const de_ListAttributeValue = (output, context) => {
|
|
463
|
+
const retVal = (output || [])
|
|
464
|
+
.filter((e) => e != null)
|
|
465
|
+
.map((entry) => {
|
|
466
|
+
return de_AttributeValue(core$1.awsExpectUnion(entry), context);
|
|
467
|
+
});
|
|
468
|
+
return retVal;
|
|
469
|
+
};
|
|
470
|
+
const de_MapAttributeValue = (output, context) => {
|
|
471
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
472
|
+
if (value === null) {
|
|
473
|
+
return acc;
|
|
474
|
+
}
|
|
475
|
+
acc[key] = de_AttributeValue(core$1.awsExpectUnion(value), context);
|
|
476
|
+
return acc;
|
|
477
|
+
}, {});
|
|
478
|
+
};
|
|
479
|
+
const de__Record = (output, context) => {
|
|
480
|
+
return smithyClient.take(output, {
|
|
481
|
+
awsRegion: smithyClient.expectString,
|
|
482
|
+
dynamodb: (_) => de_StreamRecord(_, context),
|
|
483
|
+
eventID: smithyClient.expectString,
|
|
484
|
+
eventName: smithyClient.expectString,
|
|
485
|
+
eventSource: smithyClient.expectString,
|
|
486
|
+
eventVersion: smithyClient.expectString,
|
|
487
|
+
userIdentity: smithyClient._json,
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
const de_RecordList = (output, context) => {
|
|
491
|
+
const retVal = (output || [])
|
|
492
|
+
.filter((e) => e != null)
|
|
493
|
+
.map((entry) => {
|
|
494
|
+
return de__Record(entry, context);
|
|
495
|
+
});
|
|
496
|
+
return retVal;
|
|
497
|
+
};
|
|
498
|
+
const de_StreamDescription = (output, context) => {
|
|
499
|
+
return smithyClient.take(output, {
|
|
500
|
+
CreationRequestDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
501
|
+
KeySchema: smithyClient._json,
|
|
502
|
+
LastEvaluatedShardId: smithyClient.expectString,
|
|
503
|
+
Shards: smithyClient._json,
|
|
504
|
+
StreamArn: smithyClient.expectString,
|
|
505
|
+
StreamLabel: smithyClient.expectString,
|
|
506
|
+
StreamStatus: smithyClient.expectString,
|
|
507
|
+
StreamViewType: smithyClient.expectString,
|
|
508
|
+
TableName: smithyClient.expectString,
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
const de_StreamRecord = (output, context) => {
|
|
512
|
+
return smithyClient.take(output, {
|
|
513
|
+
ApproximateCreationDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
514
|
+
Keys: (_) => de_AttributeMap(_, context),
|
|
515
|
+
NewImage: (_) => de_AttributeMap(_, context),
|
|
516
|
+
OldImage: (_) => de_AttributeMap(_, context),
|
|
517
|
+
SequenceNumber: smithyClient.expectString,
|
|
518
|
+
SizeBytes: smithyClient.expectLong,
|
|
519
|
+
StreamViewType: smithyClient.expectString,
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
const deserializeMetadata = (output) => ({
|
|
523
|
+
httpStatusCode: output.statusCode,
|
|
524
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
525
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
526
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
527
|
+
});
|
|
528
|
+
const throwDefaultError = smithyClient.withBaseException(DynamoDBStreamsServiceException);
|
|
529
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
530
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
531
|
+
const contents = {
|
|
532
|
+
protocol,
|
|
533
|
+
hostname,
|
|
534
|
+
port,
|
|
535
|
+
method: "POST",
|
|
536
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
537
|
+
headers,
|
|
557
538
|
};
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}, "de_AttributeValue");
|
|
561
|
-
var de_BinarySetAttributeValue = /* @__PURE__ */ __name((output, context) => {
|
|
562
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
563
|
-
return context.base64Decoder(entry);
|
|
564
|
-
});
|
|
565
|
-
return retVal;
|
|
566
|
-
}, "de_BinarySetAttributeValue");
|
|
567
|
-
var de_DescribeStreamOutput = /* @__PURE__ */ __name((output, context) => {
|
|
568
|
-
return (0, import_smithy_client.take)(output, {
|
|
569
|
-
StreamDescription: /* @__PURE__ */ __name((_) => de_StreamDescription(_, context), "StreamDescription")
|
|
570
|
-
});
|
|
571
|
-
}, "de_DescribeStreamOutput");
|
|
572
|
-
var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
573
|
-
return (0, import_smithy_client.take)(output, {
|
|
574
|
-
NextShardIterator: import_smithy_client.expectString,
|
|
575
|
-
Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
|
|
576
|
-
});
|
|
577
|
-
}, "de_GetRecordsOutput");
|
|
578
|
-
var de_ListAttributeValue = /* @__PURE__ */ __name((output, context) => {
|
|
579
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
580
|
-
return de_AttributeValue((0, import_core2.awsExpectUnion)(entry), context);
|
|
581
|
-
});
|
|
582
|
-
return retVal;
|
|
583
|
-
}, "de_ListAttributeValue");
|
|
584
|
-
var de_MapAttributeValue = /* @__PURE__ */ __name((output, context) => {
|
|
585
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
586
|
-
if (value === null) {
|
|
587
|
-
return acc;
|
|
539
|
+
if (body !== undefined) {
|
|
540
|
+
contents.body = body;
|
|
588
541
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}, {});
|
|
592
|
-
}, "de_MapAttributeValue");
|
|
593
|
-
var de__Record = /* @__PURE__ */ __name((output, context) => {
|
|
594
|
-
return (0, import_smithy_client.take)(output, {
|
|
595
|
-
awsRegion: import_smithy_client.expectString,
|
|
596
|
-
dynamodb: /* @__PURE__ */ __name((_) => de_StreamRecord(_, context), "dynamodb"),
|
|
597
|
-
eventID: import_smithy_client.expectString,
|
|
598
|
-
eventName: import_smithy_client.expectString,
|
|
599
|
-
eventSource: import_smithy_client.expectString,
|
|
600
|
-
eventVersion: import_smithy_client.expectString,
|
|
601
|
-
userIdentity: import_smithy_client._json
|
|
602
|
-
});
|
|
603
|
-
}, "de__Record");
|
|
604
|
-
var de_RecordList = /* @__PURE__ */ __name((output, context) => {
|
|
605
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
606
|
-
return de__Record(entry, context);
|
|
607
|
-
});
|
|
608
|
-
return retVal;
|
|
609
|
-
}, "de_RecordList");
|
|
610
|
-
var de_StreamDescription = /* @__PURE__ */ __name((output, context) => {
|
|
611
|
-
return (0, import_smithy_client.take)(output, {
|
|
612
|
-
CreationRequestDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationRequestDateTime"),
|
|
613
|
-
KeySchema: import_smithy_client._json,
|
|
614
|
-
LastEvaluatedShardId: import_smithy_client.expectString,
|
|
615
|
-
Shards: import_smithy_client._json,
|
|
616
|
-
StreamArn: import_smithy_client.expectString,
|
|
617
|
-
StreamLabel: import_smithy_client.expectString,
|
|
618
|
-
StreamStatus: import_smithy_client.expectString,
|
|
619
|
-
StreamViewType: import_smithy_client.expectString,
|
|
620
|
-
TableName: import_smithy_client.expectString
|
|
621
|
-
});
|
|
622
|
-
}, "de_StreamDescription");
|
|
623
|
-
var de_StreamRecord = /* @__PURE__ */ __name((output, context) => {
|
|
624
|
-
return (0, import_smithy_client.take)(output, {
|
|
625
|
-
ApproximateCreationDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ApproximateCreationDateTime"),
|
|
626
|
-
Keys: /* @__PURE__ */ __name((_) => de_AttributeMap(_, context), "Keys"),
|
|
627
|
-
NewImage: /* @__PURE__ */ __name((_) => de_AttributeMap(_, context), "NewImage"),
|
|
628
|
-
OldImage: /* @__PURE__ */ __name((_) => de_AttributeMap(_, context), "OldImage"),
|
|
629
|
-
SequenceNumber: import_smithy_client.expectString,
|
|
630
|
-
SizeBytes: import_smithy_client.expectLong,
|
|
631
|
-
StreamViewType: import_smithy_client.expectString
|
|
632
|
-
});
|
|
633
|
-
}, "de_StreamRecord");
|
|
634
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
635
|
-
httpStatusCode: output.statusCode,
|
|
636
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
637
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
638
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
639
|
-
}), "deserializeMetadata");
|
|
640
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(DynamoDBStreamsServiceException);
|
|
641
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
642
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
643
|
-
const contents = {
|
|
644
|
-
protocol,
|
|
645
|
-
hostname,
|
|
646
|
-
port,
|
|
647
|
-
method: "POST",
|
|
648
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
649
|
-
headers
|
|
650
|
-
};
|
|
651
|
-
if (resolvedHostname !== void 0) {
|
|
652
|
-
contents.hostname = resolvedHostname;
|
|
653
|
-
}
|
|
654
|
-
if (body !== void 0) {
|
|
655
|
-
contents.body = body;
|
|
656
|
-
}
|
|
657
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
658
|
-
}, "buildHttpRpcRequest");
|
|
542
|
+
return new protocolHttp.HttpRequest(contents);
|
|
543
|
+
};
|
|
659
544
|
function sharedHeaders(operation) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
545
|
+
return {
|
|
546
|
+
"content-type": "application/x-amz-json-1.0",
|
|
547
|
+
"x-amz-target": `DynamoDBStreams_20120810.${operation}`,
|
|
548
|
+
};
|
|
664
549
|
}
|
|
665
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
666
|
-
|
|
667
|
-
// src/commands/DescribeStreamCommand.ts
|
|
668
|
-
var DescribeStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
669
|
-
return [
|
|
670
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
671
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
672
|
-
];
|
|
673
|
-
}).s("DynamoDBStreams_20120810", "DescribeStream", {}).n("DynamoDBStreamsClient", "DescribeStreamCommand").f(void 0, void 0).ser(se_DescribeStreamCommand).de(de_DescribeStreamCommand).build() {
|
|
674
|
-
static {
|
|
675
|
-
__name(this, "DescribeStreamCommand");
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
// src/commands/GetRecordsCommand.ts
|
|
680
550
|
|
|
551
|
+
class DescribeStreamCommand extends smithyClient.Command
|
|
552
|
+
.classBuilder()
|
|
553
|
+
.ep(commonParams)
|
|
554
|
+
.m(function (Command, cs, config, o) {
|
|
555
|
+
return [
|
|
556
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
557
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
558
|
+
];
|
|
559
|
+
})
|
|
560
|
+
.s("DynamoDBStreams_20120810", "DescribeStream", {})
|
|
561
|
+
.n("DynamoDBStreamsClient", "DescribeStreamCommand")
|
|
562
|
+
.f(void 0, void 0)
|
|
563
|
+
.ser(se_DescribeStreamCommand)
|
|
564
|
+
.de(de_DescribeStreamCommand)
|
|
565
|
+
.build() {
|
|
566
|
+
}
|
|
681
567
|
|
|
568
|
+
class GetRecordsCommand extends smithyClient.Command
|
|
569
|
+
.classBuilder()
|
|
570
|
+
.ep(commonParams)
|
|
571
|
+
.m(function (Command, cs, config, o) {
|
|
572
|
+
return [
|
|
573
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
574
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
575
|
+
];
|
|
576
|
+
})
|
|
577
|
+
.s("DynamoDBStreams_20120810", "GetRecords", {})
|
|
578
|
+
.n("DynamoDBStreamsClient", "GetRecordsCommand")
|
|
579
|
+
.f(void 0, void 0)
|
|
580
|
+
.ser(se_GetRecordsCommand)
|
|
581
|
+
.de(de_GetRecordsCommand)
|
|
582
|
+
.build() {
|
|
583
|
+
}
|
|
682
584
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
(
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
return [
|
|
700
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
701
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
702
|
-
];
|
|
703
|
-
}).s("DynamoDBStreams_20120810", "GetShardIterator", {}).n("DynamoDBStreamsClient", "GetShardIteratorCommand").f(void 0, void 0).ser(se_GetShardIteratorCommand).de(de_GetShardIteratorCommand).build() {
|
|
704
|
-
static {
|
|
705
|
-
__name(this, "GetShardIteratorCommand");
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
// src/commands/ListStreamsCommand.ts
|
|
710
|
-
|
|
585
|
+
class GetShardIteratorCommand extends smithyClient.Command
|
|
586
|
+
.classBuilder()
|
|
587
|
+
.ep(commonParams)
|
|
588
|
+
.m(function (Command, cs, config, o) {
|
|
589
|
+
return [
|
|
590
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
591
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
592
|
+
];
|
|
593
|
+
})
|
|
594
|
+
.s("DynamoDBStreams_20120810", "GetShardIterator", {})
|
|
595
|
+
.n("DynamoDBStreamsClient", "GetShardIteratorCommand")
|
|
596
|
+
.f(void 0, void 0)
|
|
597
|
+
.ser(se_GetShardIteratorCommand)
|
|
598
|
+
.de(de_GetShardIteratorCommand)
|
|
599
|
+
.build() {
|
|
600
|
+
}
|
|
711
601
|
|
|
602
|
+
class ListStreamsCommand extends smithyClient.Command
|
|
603
|
+
.classBuilder()
|
|
604
|
+
.ep(commonParams)
|
|
605
|
+
.m(function (Command, cs, config, o) {
|
|
606
|
+
return [
|
|
607
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
608
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
609
|
+
];
|
|
610
|
+
})
|
|
611
|
+
.s("DynamoDBStreams_20120810", "ListStreams", {})
|
|
612
|
+
.n("DynamoDBStreamsClient", "ListStreamsCommand")
|
|
613
|
+
.f(void 0, void 0)
|
|
614
|
+
.ser(se_ListStreamsCommand)
|
|
615
|
+
.de(de_ListStreamsCommand)
|
|
616
|
+
.build() {
|
|
617
|
+
}
|
|
712
618
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}).s("DynamoDBStreams_20120810", "ListStreams", {}).n("DynamoDBStreamsClient", "ListStreamsCommand").f(void 0, void 0).ser(se_ListStreamsCommand).de(de_ListStreamsCommand).build() {
|
|
719
|
-
static {
|
|
720
|
-
__name(this, "ListStreamsCommand");
|
|
721
|
-
}
|
|
619
|
+
const commands = {
|
|
620
|
+
DescribeStreamCommand,
|
|
621
|
+
GetRecordsCommand,
|
|
622
|
+
GetShardIteratorCommand,
|
|
623
|
+
ListStreamsCommand,
|
|
722
624
|
};
|
|
625
|
+
class DynamoDBStreams extends DynamoDBStreamsClient {
|
|
626
|
+
}
|
|
627
|
+
smithyClient.createAggregatedClient(commands, DynamoDBStreams);
|
|
723
628
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
GetRecordsCommand,
|
|
728
|
-
GetShardIteratorCommand,
|
|
729
|
-
ListStreamsCommand
|
|
730
|
-
};
|
|
731
|
-
var DynamoDBStreams = class extends DynamoDBStreamsClient {
|
|
732
|
-
static {
|
|
733
|
-
__name(this, "DynamoDBStreams");
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
(0, import_smithy_client.createAggregatedClient)(commands, DynamoDBStreams);
|
|
737
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
738
|
-
|
|
739
|
-
0 && (module.exports = {
|
|
740
|
-
DynamoDBStreamsServiceException,
|
|
741
|
-
__Client,
|
|
742
|
-
DynamoDBStreamsClient,
|
|
743
|
-
DynamoDBStreams,
|
|
744
|
-
$Command,
|
|
745
|
-
DescribeStreamCommand,
|
|
746
|
-
GetRecordsCommand,
|
|
747
|
-
GetShardIteratorCommand,
|
|
748
|
-
ListStreamsCommand,
|
|
749
|
-
ShardFilterType,
|
|
750
|
-
KeyType,
|
|
751
|
-
StreamStatus,
|
|
752
|
-
StreamViewType,
|
|
753
|
-
InternalServerError,
|
|
754
|
-
ResourceNotFoundException,
|
|
755
|
-
ExpiredIteratorException,
|
|
756
|
-
OperationType,
|
|
757
|
-
LimitExceededException,
|
|
758
|
-
TrimmedDataAccessException,
|
|
759
|
-
ShardIteratorType,
|
|
760
|
-
AttributeValue
|
|
629
|
+
Object.defineProperty(exports, "$Command", {
|
|
630
|
+
enumerable: true,
|
|
631
|
+
get: function () { return smithyClient.Command; }
|
|
761
632
|
});
|
|
762
|
-
|
|
633
|
+
Object.defineProperty(exports, "__Client", {
|
|
634
|
+
enumerable: true,
|
|
635
|
+
get: function () { return smithyClient.Client; }
|
|
636
|
+
});
|
|
637
|
+
exports.DescribeStreamCommand = DescribeStreamCommand;
|
|
638
|
+
exports.DynamoDBStreams = DynamoDBStreams;
|
|
639
|
+
exports.DynamoDBStreamsClient = DynamoDBStreamsClient;
|
|
640
|
+
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
|
|
641
|
+
exports.ExpiredIteratorException = ExpiredIteratorException;
|
|
642
|
+
exports.GetRecordsCommand = GetRecordsCommand;
|
|
643
|
+
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
644
|
+
exports.InternalServerError = InternalServerError;
|
|
645
|
+
exports.KeyType = KeyType;
|
|
646
|
+
exports.LimitExceededException = LimitExceededException;
|
|
647
|
+
exports.ListStreamsCommand = ListStreamsCommand;
|
|
648
|
+
exports.OperationType = OperationType;
|
|
649
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
650
|
+
exports.ShardFilterType = ShardFilterType;
|
|
651
|
+
exports.ShardIteratorType = ShardIteratorType;
|
|
652
|
+
exports.StreamStatus = StreamStatus;
|
|
653
|
+
exports.StreamViewType = StreamViewType;
|
|
654
|
+
exports.TrimmedDataAccessException = TrimmedDataAccessException;
|