@aws-sdk/client-keyspacesstreams 3.901.0 → 3.906.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 +723 -826
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,854 +1,751 @@
|
|
|
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
|
-
GetRecordsCommand: () => GetRecordsCommand,
|
|
26
|
-
GetShardIteratorCommand: () => GetShardIteratorCommand,
|
|
27
|
-
GetStreamCommand: () => GetStreamCommand,
|
|
28
|
-
InternalServerException: () => InternalServerException,
|
|
29
|
-
KeyspacesCellValue: () => KeyspacesCellValue,
|
|
30
|
-
KeyspacesStreams: () => KeyspacesStreams,
|
|
31
|
-
KeyspacesStreamsClient: () => KeyspacesStreamsClient,
|
|
32
|
-
KeyspacesStreamsServiceException: () => KeyspacesStreamsServiceException,
|
|
33
|
-
ListStreamsCommand: () => ListStreamsCommand,
|
|
34
|
-
OriginType: () => OriginType,
|
|
35
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
36
|
-
ShardFilterType: () => ShardFilterType,
|
|
37
|
-
ShardIteratorType: () => ShardIteratorType,
|
|
38
|
-
StreamStatus: () => StreamStatus,
|
|
39
|
-
StreamViewType: () => StreamViewType,
|
|
40
|
-
ThrottlingException: () => ThrottlingException,
|
|
41
|
-
ValidationException: () => ValidationException,
|
|
42
|
-
ValidationExceptionType: () => ValidationExceptionType,
|
|
43
|
-
__Client: () => import_smithy_client.Client,
|
|
44
|
-
paginateGetStream: () => paginateGetStream,
|
|
45
|
-
paginateListStreams: () => paginateListStreams
|
|
46
|
-
});
|
|
47
|
-
module.exports = __toCommonJS(index_exports);
|
|
48
|
-
|
|
49
|
-
// src/KeyspacesStreamsClient.ts
|
|
50
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
51
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
52
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
53
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
54
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
55
|
-
var import_core = require("@smithy/core");
|
|
56
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
57
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
58
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
59
|
-
|
|
60
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
61
|
-
|
|
62
|
-
// src/endpoint/EndpointParameters.ts
|
|
63
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
64
|
-
return Object.assign(options, {
|
|
65
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
66
|
-
defaultSigningName: "cassandra"
|
|
67
|
-
});
|
|
68
|
-
}, "resolveClientEndpointParameters");
|
|
69
|
-
var commonParams = {
|
|
70
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
71
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
72
|
-
Region: { type: "builtInParams", name: "region" }
|
|
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
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23
|
+
defaultSigningName: "cassandra",
|
|
24
|
+
});
|
|
73
25
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// src/runtimeExtensions.ts
|
|
79
|
-
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
80
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
81
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
82
|
-
|
|
83
|
-
// src/auth/httpAuthExtensionConfiguration.ts
|
|
84
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
85
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
86
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
87
|
-
let _credentials = runtimeConfig.credentials;
|
|
88
|
-
return {
|
|
89
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
90
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
91
|
-
if (index === -1) {
|
|
92
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
93
|
-
} else {
|
|
94
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
httpAuthSchemes() {
|
|
98
|
-
return _httpAuthSchemes;
|
|
99
|
-
},
|
|
100
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
101
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
102
|
-
},
|
|
103
|
-
httpAuthSchemeProvider() {
|
|
104
|
-
return _httpAuthSchemeProvider;
|
|
105
|
-
},
|
|
106
|
-
setCredentials(credentials) {
|
|
107
|
-
_credentials = credentials;
|
|
108
|
-
},
|
|
109
|
-
credentials() {
|
|
110
|
-
return _credentials;
|
|
111
|
-
}
|
|
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");
|
|
121
|
-
|
|
122
|
-
// src/runtimeExtensions.ts
|
|
123
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
124
|
-
const extensionConfiguration = Object.assign(
|
|
125
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
126
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
127
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
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");
|
|
139
|
-
|
|
140
|
-
// src/KeyspacesStreamsClient.ts
|
|
141
|
-
var KeyspacesStreamsClient = class extends import_smithy_client.Client {
|
|
142
|
-
static {
|
|
143
|
-
__name(this, "KeyspacesStreamsClient");
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The resolved configuration of KeyspacesStreamsClient class. This is resolved and normalized from the {@link KeyspacesStreamsClientConfig | 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.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider,
|
|
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
|
-
}
|
|
26
|
+
const commonParams = {
|
|
27
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
28
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
29
|
+
Region: { type: "builtInParams", name: "region" },
|
|
186
30
|
};
|
|
187
31
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
32
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
35
|
+
let _credentials = runtimeConfig.credentials;
|
|
36
|
+
return {
|
|
37
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
38
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
39
|
+
if (index === -1) {
|
|
40
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
httpAuthSchemes() {
|
|
47
|
+
return _httpAuthSchemes;
|
|
48
|
+
},
|
|
49
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
50
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemeProvider() {
|
|
53
|
+
return _httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
setCredentials(credentials) {
|
|
56
|
+
_credentials = credentials;
|
|
57
|
+
},
|
|
58
|
+
credentials() {
|
|
59
|
+
return _credentials;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
64
|
+
return {
|
|
65
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
66
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
67
|
+
credentials: config.credentials(),
|
|
68
|
+
};
|
|
69
|
+
};
|
|
198
70
|
|
|
71
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
|
+
};
|
|
199
76
|
|
|
77
|
+
class KeyspacesStreamsClient extends smithyClient.Client {
|
|
78
|
+
config;
|
|
79
|
+
constructor(...[configuration]) {
|
|
80
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
81
|
+
super(_config_0);
|
|
82
|
+
this.initConfig = _config_0;
|
|
83
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
|
+
this.config = _config_8;
|
|
92
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
99
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider,
|
|
100
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
101
|
+
"aws.auth#sigv4": config.credentials,
|
|
102
|
+
}),
|
|
103
|
+
}));
|
|
104
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
105
|
+
}
|
|
106
|
+
destroy() {
|
|
107
|
+
super.destroy();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
200
110
|
|
|
201
|
-
|
|
111
|
+
class KeyspacesStreamsServiceException extends smithyClient.ServiceException {
|
|
112
|
+
constructor(options) {
|
|
113
|
+
super(options);
|
|
114
|
+
Object.setPrototypeOf(this, KeyspacesStreamsServiceException.prototype);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
202
117
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
118
|
+
class AccessDeniedException extends KeyspacesStreamsServiceException {
|
|
119
|
+
name = "AccessDeniedException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "AccessDeniedException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const OriginType = {
|
|
131
|
+
REPLICATION: "REPLICATION",
|
|
132
|
+
TTL: "TTL",
|
|
133
|
+
USER: "USER",
|
|
134
|
+
};
|
|
135
|
+
class InternalServerException extends KeyspacesStreamsServiceException {
|
|
136
|
+
name = "InternalServerException";
|
|
137
|
+
$fault = "server";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "InternalServerException",
|
|
141
|
+
$fault: "server",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
class ResourceNotFoundException extends KeyspacesStreamsServiceException {
|
|
148
|
+
name = "ResourceNotFoundException";
|
|
149
|
+
$fault = "client";
|
|
150
|
+
constructor(opts) {
|
|
151
|
+
super({
|
|
152
|
+
name: "ResourceNotFoundException",
|
|
153
|
+
$fault: "client",
|
|
154
|
+
...opts,
|
|
155
|
+
});
|
|
156
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
class ThrottlingException extends KeyspacesStreamsServiceException {
|
|
160
|
+
name = "ThrottlingException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "ThrottlingException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const ValidationExceptionType = {
|
|
172
|
+
ExpiredIterator: "ExpiredIterator",
|
|
173
|
+
ExpiredNextToken: "ExpiredNextToken",
|
|
174
|
+
InvalidFormat: "InvalidFormat",
|
|
175
|
+
TrimmedDataAccess: "TrimmedDataAccess",
|
|
176
|
+
};
|
|
177
|
+
class ValidationException extends KeyspacesStreamsServiceException {
|
|
178
|
+
name = "ValidationException";
|
|
179
|
+
$fault = "client";
|
|
180
|
+
errorCode;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ValidationException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
188
|
+
this.errorCode = opts.errorCode;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const ShardIteratorType = {
|
|
192
|
+
AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
|
|
193
|
+
AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
|
|
194
|
+
LATEST: "LATEST",
|
|
195
|
+
TRIM_HORIZON: "TRIM_HORIZON",
|
|
196
|
+
};
|
|
197
|
+
const ShardFilterType = {
|
|
198
|
+
CHILD_SHARDS: "CHILD_SHARDS",
|
|
199
|
+
};
|
|
200
|
+
const StreamStatus = {
|
|
201
|
+
DISABLED: "DISABLED",
|
|
202
|
+
DISABLING: "DISABLING",
|
|
203
|
+
ENABLED: "ENABLED",
|
|
204
|
+
ENABLING: "ENABLING",
|
|
205
|
+
};
|
|
206
|
+
const StreamViewType = {
|
|
207
|
+
KEYS_ONLY: "KEYS_ONLY",
|
|
208
|
+
NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
|
|
209
|
+
NEW_IMAGE: "NEW_IMAGE",
|
|
210
|
+
OLD_IMAGE: "OLD_IMAGE",
|
|
214
211
|
};
|
|
212
|
+
exports.KeyspacesCellValue = void 0;
|
|
213
|
+
(function (KeyspacesCellValue) {
|
|
214
|
+
KeyspacesCellValue.visit = (value, visitor) => {
|
|
215
|
+
if (value.asciiT !== undefined)
|
|
216
|
+
return visitor.asciiT(value.asciiT);
|
|
217
|
+
if (value.bigintT !== undefined)
|
|
218
|
+
return visitor.bigintT(value.bigintT);
|
|
219
|
+
if (value.blobT !== undefined)
|
|
220
|
+
return visitor.blobT(value.blobT);
|
|
221
|
+
if (value.boolT !== undefined)
|
|
222
|
+
return visitor.boolT(value.boolT);
|
|
223
|
+
if (value.counterT !== undefined)
|
|
224
|
+
return visitor.counterT(value.counterT);
|
|
225
|
+
if (value.dateT !== undefined)
|
|
226
|
+
return visitor.dateT(value.dateT);
|
|
227
|
+
if (value.decimalT !== undefined)
|
|
228
|
+
return visitor.decimalT(value.decimalT);
|
|
229
|
+
if (value.doubleT !== undefined)
|
|
230
|
+
return visitor.doubleT(value.doubleT);
|
|
231
|
+
if (value.floatT !== undefined)
|
|
232
|
+
return visitor.floatT(value.floatT);
|
|
233
|
+
if (value.inetT !== undefined)
|
|
234
|
+
return visitor.inetT(value.inetT);
|
|
235
|
+
if (value.intT !== undefined)
|
|
236
|
+
return visitor.intT(value.intT);
|
|
237
|
+
if (value.listT !== undefined)
|
|
238
|
+
return visitor.listT(value.listT);
|
|
239
|
+
if (value.mapT !== undefined)
|
|
240
|
+
return visitor.mapT(value.mapT);
|
|
241
|
+
if (value.setT !== undefined)
|
|
242
|
+
return visitor.setT(value.setT);
|
|
243
|
+
if (value.smallintT !== undefined)
|
|
244
|
+
return visitor.smallintT(value.smallintT);
|
|
245
|
+
if (value.textT !== undefined)
|
|
246
|
+
return visitor.textT(value.textT);
|
|
247
|
+
if (value.timeT !== undefined)
|
|
248
|
+
return visitor.timeT(value.timeT);
|
|
249
|
+
if (value.timestampT !== undefined)
|
|
250
|
+
return visitor.timestampT(value.timestampT);
|
|
251
|
+
if (value.timeuuidT !== undefined)
|
|
252
|
+
return visitor.timeuuidT(value.timeuuidT);
|
|
253
|
+
if (value.tinyintT !== undefined)
|
|
254
|
+
return visitor.tinyintT(value.tinyintT);
|
|
255
|
+
if (value.tupleT !== undefined)
|
|
256
|
+
return visitor.tupleT(value.tupleT);
|
|
257
|
+
if (value.uuidT !== undefined)
|
|
258
|
+
return visitor.uuidT(value.uuidT);
|
|
259
|
+
if (value.varcharT !== undefined)
|
|
260
|
+
return visitor.varcharT(value.varcharT);
|
|
261
|
+
if (value.varintT !== undefined)
|
|
262
|
+
return visitor.varintT(value.varintT);
|
|
263
|
+
if (value.udtT !== undefined)
|
|
264
|
+
return visitor.udtT(value.udtT);
|
|
265
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
266
|
+
};
|
|
267
|
+
})(exports.KeyspacesCellValue || (exports.KeyspacesCellValue = {}));
|
|
215
268
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
269
|
+
const se_GetRecordsCommand = async (input, context) => {
|
|
270
|
+
const headers = sharedHeaders("GetRecords");
|
|
271
|
+
let body;
|
|
272
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
273
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
+
};
|
|
275
|
+
const se_GetShardIteratorCommand = async (input, context) => {
|
|
276
|
+
const headers = sharedHeaders("GetShardIterator");
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
279
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
+
};
|
|
281
|
+
const se_GetStreamCommand = async (input, context) => {
|
|
282
|
+
const headers = sharedHeaders("GetStream");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
287
|
+
const se_ListStreamsCommand = async (input, context) => {
|
|
288
|
+
const headers = sharedHeaders("ListStreams");
|
|
289
|
+
let body;
|
|
290
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
291
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
+
};
|
|
293
|
+
const de_GetRecordsCommand = async (output, context) => {
|
|
294
|
+
if (output.statusCode >= 300) {
|
|
295
|
+
return de_CommandError(output, context);
|
|
296
|
+
}
|
|
297
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
298
|
+
let contents = {};
|
|
299
|
+
contents = de_GetRecordsOutput(data, context);
|
|
300
|
+
const response = {
|
|
301
|
+
$metadata: deserializeMetadata(output),
|
|
302
|
+
...contents,
|
|
303
|
+
};
|
|
304
|
+
return response;
|
|
305
|
+
};
|
|
306
|
+
const de_GetShardIteratorCommand = async (output, context) => {
|
|
307
|
+
if (output.statusCode >= 300) {
|
|
308
|
+
return de_CommandError(output, context);
|
|
309
|
+
}
|
|
310
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
311
|
+
let contents = {};
|
|
312
|
+
contents = smithyClient._json(data);
|
|
313
|
+
const response = {
|
|
314
|
+
$metadata: deserializeMetadata(output),
|
|
315
|
+
...contents,
|
|
316
|
+
};
|
|
317
|
+
return response;
|
|
318
|
+
};
|
|
319
|
+
const de_GetStreamCommand = async (output, context) => {
|
|
320
|
+
if (output.statusCode >= 300) {
|
|
321
|
+
return de_CommandError(output, context);
|
|
322
|
+
}
|
|
323
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
324
|
+
let contents = {};
|
|
325
|
+
contents = de_GetStreamOutput(data);
|
|
326
|
+
const response = {
|
|
327
|
+
$metadata: deserializeMetadata(output),
|
|
328
|
+
...contents,
|
|
329
|
+
};
|
|
330
|
+
return response;
|
|
331
|
+
};
|
|
332
|
+
const de_ListStreamsCommand = async (output, context) => {
|
|
333
|
+
if (output.statusCode >= 300) {
|
|
334
|
+
return de_CommandError(output, context);
|
|
335
|
+
}
|
|
336
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
337
|
+
let contents = {};
|
|
338
|
+
contents = smithyClient._json(data);
|
|
339
|
+
const response = {
|
|
340
|
+
$metadata: deserializeMetadata(output),
|
|
341
|
+
...contents,
|
|
342
|
+
};
|
|
343
|
+
return response;
|
|
344
|
+
};
|
|
345
|
+
const de_CommandError = async (output, context) => {
|
|
346
|
+
const parsedOutput = {
|
|
347
|
+
...output,
|
|
348
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
349
|
+
};
|
|
350
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
switch (errorCode) {
|
|
352
|
+
case "AccessDeniedException":
|
|
353
|
+
case "com.amazonaws.keyspacesstreams#AccessDeniedException":
|
|
354
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
355
|
+
case "InternalServerException":
|
|
356
|
+
case "com.amazonaws.keyspacesstreams#InternalServerException":
|
|
357
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
358
|
+
case "ResourceNotFoundException":
|
|
359
|
+
case "com.amazonaws.keyspacesstreams#ResourceNotFoundException":
|
|
360
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
361
|
+
case "ThrottlingException":
|
|
362
|
+
case "com.amazonaws.keyspacesstreams#ThrottlingException":
|
|
363
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
364
|
+
case "ValidationException":
|
|
365
|
+
case "com.amazonaws.keyspacesstreams#ValidationException":
|
|
366
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
367
|
+
default:
|
|
368
|
+
const parsedBody = parsedOutput.body;
|
|
369
|
+
return throwDefaultError({
|
|
370
|
+
output,
|
|
371
|
+
parsedBody,
|
|
372
|
+
errorCode,
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
377
|
+
const body = parsedOutput.body;
|
|
378
|
+
const deserialized = smithyClient._json(body);
|
|
379
|
+
const exception = new AccessDeniedException({
|
|
380
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
381
|
+
...deserialized,
|
|
231
382
|
});
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
var InternalServerException = class _InternalServerException extends KeyspacesStreamsServiceException {
|
|
241
|
-
static {
|
|
242
|
-
__name(this, "InternalServerException");
|
|
243
|
-
}
|
|
244
|
-
name = "InternalServerException";
|
|
245
|
-
$fault = "server";
|
|
246
|
-
/**
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
|
-
constructor(opts) {
|
|
250
|
-
super({
|
|
251
|
-
name: "InternalServerException",
|
|
252
|
-
$fault: "server",
|
|
253
|
-
...opts
|
|
383
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
384
|
+
};
|
|
385
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
386
|
+
const body = parsedOutput.body;
|
|
387
|
+
const deserialized = smithyClient._json(body);
|
|
388
|
+
const exception = new InternalServerException({
|
|
389
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
390
|
+
...deserialized,
|
|
254
391
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
$fault = "client";
|
|
264
|
-
/**
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
constructor(opts) {
|
|
268
|
-
super({
|
|
269
|
-
name: "ResourceNotFoundException",
|
|
270
|
-
$fault: "client",
|
|
271
|
-
...opts
|
|
392
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
393
|
+
};
|
|
394
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
395
|
+
const body = parsedOutput.body;
|
|
396
|
+
const deserialized = smithyClient._json(body);
|
|
397
|
+
const exception = new ResourceNotFoundException({
|
|
398
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
399
|
+
...deserialized,
|
|
272
400
|
});
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
$fault = "client";
|
|
282
|
-
/**
|
|
283
|
-
* @internal
|
|
284
|
-
*/
|
|
285
|
-
constructor(opts) {
|
|
286
|
-
super({
|
|
287
|
-
name: "ThrottlingException",
|
|
288
|
-
$fault: "client",
|
|
289
|
-
...opts
|
|
401
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
402
|
+
};
|
|
403
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
404
|
+
const body = parsedOutput.body;
|
|
405
|
+
const deserialized = smithyClient._json(body);
|
|
406
|
+
const exception = new ThrottlingException({
|
|
407
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
408
|
+
...deserialized,
|
|
290
409
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
};
|
|
300
|
-
var ValidationException = class _ValidationException extends KeyspacesStreamsServiceException {
|
|
301
|
-
static {
|
|
302
|
-
__name(this, "ValidationException");
|
|
303
|
-
}
|
|
304
|
-
name = "ValidationException";
|
|
305
|
-
$fault = "client";
|
|
306
|
-
/**
|
|
307
|
-
* <p>An error occurred validating your request. See the error message for details.</p>
|
|
308
|
-
* @public
|
|
309
|
-
*/
|
|
310
|
-
errorCode;
|
|
311
|
-
/**
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
constructor(opts) {
|
|
315
|
-
super({
|
|
316
|
-
name: "ValidationException",
|
|
317
|
-
$fault: "client",
|
|
318
|
-
...opts
|
|
410
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
411
|
+
};
|
|
412
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
413
|
+
const body = parsedOutput.body;
|
|
414
|
+
const deserialized = smithyClient._json(body);
|
|
415
|
+
const exception = new ValidationException({
|
|
416
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
417
|
+
...deserialized,
|
|
319
418
|
});
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
531
|
-
return (0, import_smithy_client.take)(output, {
|
|
532
|
-
changeRecords: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "changeRecords"),
|
|
533
|
-
nextShardIterator: import_smithy_client.expectString
|
|
534
|
-
});
|
|
535
|
-
}, "de_GetRecordsOutput");
|
|
536
|
-
var de_GetStreamOutput = /* @__PURE__ */ __name((output, context) => {
|
|
537
|
-
return (0, import_smithy_client.take)(output, {
|
|
538
|
-
creationRequestDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationRequestDateTime"),
|
|
539
|
-
keyspaceName: import_smithy_client.expectString,
|
|
540
|
-
nextToken: import_smithy_client.expectString,
|
|
541
|
-
shards: import_smithy_client._json,
|
|
542
|
-
streamArn: import_smithy_client.expectString,
|
|
543
|
-
streamLabel: import_smithy_client.expectString,
|
|
544
|
-
streamStatus: import_smithy_client.expectString,
|
|
545
|
-
streamViewType: import_smithy_client.expectString,
|
|
546
|
-
tableName: import_smithy_client.expectString
|
|
547
|
-
});
|
|
548
|
-
}, "de_GetStreamOutput");
|
|
549
|
-
var de_KeyspacesCell = /* @__PURE__ */ __name((output, context) => {
|
|
550
|
-
return (0, import_smithy_client.take)(output, {
|
|
551
|
-
metadata: import_smithy_client._json,
|
|
552
|
-
value: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "value")
|
|
553
|
-
});
|
|
554
|
-
}, "de_KeyspacesCell");
|
|
555
|
-
var de_KeyspacesCellList = /* @__PURE__ */ __name((output, context) => {
|
|
556
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
557
|
-
return de_KeyspacesCell(entry, context);
|
|
558
|
-
});
|
|
559
|
-
return retVal;
|
|
560
|
-
}, "de_KeyspacesCellList");
|
|
561
|
-
var de_KeyspacesCellMap = /* @__PURE__ */ __name((output, context) => {
|
|
562
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
563
|
-
return de_KeyspacesCellMapDefinition(entry, context);
|
|
564
|
-
});
|
|
565
|
-
return retVal;
|
|
566
|
-
}, "de_KeyspacesCellMap");
|
|
567
|
-
var de_KeyspacesCellMapDefinition = /* @__PURE__ */ __name((output, context) => {
|
|
568
|
-
return (0, import_smithy_client.take)(output, {
|
|
569
|
-
key: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "key"),
|
|
570
|
-
metadata: import_smithy_client._json,
|
|
571
|
-
value: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "value")
|
|
572
|
-
});
|
|
573
|
-
}, "de_KeyspacesCellMapDefinition");
|
|
574
|
-
var de_KeyspacesCells = /* @__PURE__ */ __name((output, context) => {
|
|
575
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
576
|
-
if (value === null) {
|
|
577
|
-
return acc;
|
|
578
|
-
}
|
|
579
|
-
acc[key] = de_KeyspacesCell(value, context);
|
|
580
|
-
return acc;
|
|
581
|
-
}, {});
|
|
582
|
-
}, "de_KeyspacesCells");
|
|
583
|
-
var de_KeyspacesCellValue = /* @__PURE__ */ __name((output, context) => {
|
|
584
|
-
if ((0, import_smithy_client.expectString)(output.asciiT) !== void 0) {
|
|
585
|
-
return { asciiT: (0, import_smithy_client.expectString)(output.asciiT) };
|
|
586
|
-
}
|
|
587
|
-
if ((0, import_smithy_client.expectString)(output.bigintT) !== void 0) {
|
|
588
|
-
return { bigintT: (0, import_smithy_client.expectString)(output.bigintT) };
|
|
589
|
-
}
|
|
590
|
-
if (output.blobT != null) {
|
|
591
|
-
return {
|
|
592
|
-
blobT: context.base64Decoder(output.blobT)
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
if ((0, import_smithy_client.expectBoolean)(output.boolT) !== void 0) {
|
|
596
|
-
return { boolT: (0, import_smithy_client.expectBoolean)(output.boolT) };
|
|
597
|
-
}
|
|
598
|
-
if ((0, import_smithy_client.expectString)(output.counterT) !== void 0) {
|
|
599
|
-
return { counterT: (0, import_smithy_client.expectString)(output.counterT) };
|
|
600
|
-
}
|
|
601
|
-
if ((0, import_smithy_client.expectString)(output.dateT) !== void 0) {
|
|
602
|
-
return { dateT: (0, import_smithy_client.expectString)(output.dateT) };
|
|
603
|
-
}
|
|
604
|
-
if ((0, import_smithy_client.expectString)(output.decimalT) !== void 0) {
|
|
605
|
-
return { decimalT: (0, import_smithy_client.expectString)(output.decimalT) };
|
|
606
|
-
}
|
|
607
|
-
if ((0, import_smithy_client.expectString)(output.doubleT) !== void 0) {
|
|
608
|
-
return { doubleT: (0, import_smithy_client.expectString)(output.doubleT) };
|
|
609
|
-
}
|
|
610
|
-
if ((0, import_smithy_client.expectString)(output.floatT) !== void 0) {
|
|
611
|
-
return { floatT: (0, import_smithy_client.expectString)(output.floatT) };
|
|
612
|
-
}
|
|
613
|
-
if ((0, import_smithy_client.expectString)(output.inetT) !== void 0) {
|
|
614
|
-
return { inetT: (0, import_smithy_client.expectString)(output.inetT) };
|
|
615
|
-
}
|
|
616
|
-
if ((0, import_smithy_client.expectString)(output.intT) !== void 0) {
|
|
617
|
-
return { intT: (0, import_smithy_client.expectString)(output.intT) };
|
|
618
|
-
}
|
|
619
|
-
if (output.listT != null) {
|
|
620
|
-
return {
|
|
621
|
-
listT: de_KeyspacesCellList(output.listT, context)
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
if (output.mapT != null) {
|
|
625
|
-
return {
|
|
626
|
-
mapT: de_KeyspacesCellMap(output.mapT, context)
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
if (output.setT != null) {
|
|
630
|
-
return {
|
|
631
|
-
setT: de_KeyspacesCellList(output.setT, context)
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
if ((0, import_smithy_client.expectString)(output.smallintT) !== void 0) {
|
|
635
|
-
return { smallintT: (0, import_smithy_client.expectString)(output.smallintT) };
|
|
636
|
-
}
|
|
637
|
-
if ((0, import_smithy_client.expectString)(output.textT) !== void 0) {
|
|
638
|
-
return { textT: (0, import_smithy_client.expectString)(output.textT) };
|
|
639
|
-
}
|
|
640
|
-
if ((0, import_smithy_client.expectString)(output.timeT) !== void 0) {
|
|
641
|
-
return { timeT: (0, import_smithy_client.expectString)(output.timeT) };
|
|
642
|
-
}
|
|
643
|
-
if ((0, import_smithy_client.expectString)(output.timestampT) !== void 0) {
|
|
644
|
-
return { timestampT: (0, import_smithy_client.expectString)(output.timestampT) };
|
|
645
|
-
}
|
|
646
|
-
if ((0, import_smithy_client.expectString)(output.timeuuidT) !== void 0) {
|
|
647
|
-
return { timeuuidT: (0, import_smithy_client.expectString)(output.timeuuidT) };
|
|
648
|
-
}
|
|
649
|
-
if ((0, import_smithy_client.expectString)(output.tinyintT) !== void 0) {
|
|
650
|
-
return { tinyintT: (0, import_smithy_client.expectString)(output.tinyintT) };
|
|
651
|
-
}
|
|
652
|
-
if (output.tupleT != null) {
|
|
653
|
-
return {
|
|
654
|
-
tupleT: de_KeyspacesCellList(output.tupleT, context)
|
|
419
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
420
|
+
};
|
|
421
|
+
const de_GetRecordsOutput = (output, context) => {
|
|
422
|
+
return smithyClient.take(output, {
|
|
423
|
+
changeRecords: (_) => de_RecordList(_, context),
|
|
424
|
+
nextShardIterator: smithyClient.expectString,
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
const de_GetStreamOutput = (output, context) => {
|
|
428
|
+
return smithyClient.take(output, {
|
|
429
|
+
creationRequestDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
430
|
+
keyspaceName: smithyClient.expectString,
|
|
431
|
+
nextToken: smithyClient.expectString,
|
|
432
|
+
shards: smithyClient._json,
|
|
433
|
+
streamArn: smithyClient.expectString,
|
|
434
|
+
streamLabel: smithyClient.expectString,
|
|
435
|
+
streamStatus: smithyClient.expectString,
|
|
436
|
+
streamViewType: smithyClient.expectString,
|
|
437
|
+
tableName: smithyClient.expectString,
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
const de_KeyspacesCell = (output, context) => {
|
|
441
|
+
return smithyClient.take(output, {
|
|
442
|
+
metadata: smithyClient._json,
|
|
443
|
+
value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
const de_KeyspacesCellList = (output, context) => {
|
|
447
|
+
const retVal = (output || [])
|
|
448
|
+
.filter((e) => e != null)
|
|
449
|
+
.map((entry) => {
|
|
450
|
+
return de_KeyspacesCell(entry, context);
|
|
451
|
+
});
|
|
452
|
+
return retVal;
|
|
453
|
+
};
|
|
454
|
+
const de_KeyspacesCellMap = (output, context) => {
|
|
455
|
+
const retVal = (output || [])
|
|
456
|
+
.filter((e) => e != null)
|
|
457
|
+
.map((entry) => {
|
|
458
|
+
return de_KeyspacesCellMapDefinition(entry, context);
|
|
459
|
+
});
|
|
460
|
+
return retVal;
|
|
461
|
+
};
|
|
462
|
+
const de_KeyspacesCellMapDefinition = (output, context) => {
|
|
463
|
+
return smithyClient.take(output, {
|
|
464
|
+
key: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
|
|
465
|
+
metadata: smithyClient._json,
|
|
466
|
+
value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
const de_KeyspacesCells = (output, context) => {
|
|
470
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
471
|
+
if (value === null) {
|
|
472
|
+
return acc;
|
|
473
|
+
}
|
|
474
|
+
acc[key] = de_KeyspacesCell(value, context);
|
|
475
|
+
return acc;
|
|
476
|
+
}, {});
|
|
477
|
+
};
|
|
478
|
+
const de_KeyspacesCellValue = (output, context) => {
|
|
479
|
+
if (smithyClient.expectString(output.asciiT) !== undefined) {
|
|
480
|
+
return { asciiT: smithyClient.expectString(output.asciiT) };
|
|
481
|
+
}
|
|
482
|
+
if (smithyClient.expectString(output.bigintT) !== undefined) {
|
|
483
|
+
return { bigintT: smithyClient.expectString(output.bigintT) };
|
|
484
|
+
}
|
|
485
|
+
if (output.blobT != null) {
|
|
486
|
+
return {
|
|
487
|
+
blobT: context.base64Decoder(output.blobT),
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
if (smithyClient.expectBoolean(output.boolT) !== undefined) {
|
|
491
|
+
return { boolT: smithyClient.expectBoolean(output.boolT) };
|
|
492
|
+
}
|
|
493
|
+
if (smithyClient.expectString(output.counterT) !== undefined) {
|
|
494
|
+
return { counterT: smithyClient.expectString(output.counterT) };
|
|
495
|
+
}
|
|
496
|
+
if (smithyClient.expectString(output.dateT) !== undefined) {
|
|
497
|
+
return { dateT: smithyClient.expectString(output.dateT) };
|
|
498
|
+
}
|
|
499
|
+
if (smithyClient.expectString(output.decimalT) !== undefined) {
|
|
500
|
+
return { decimalT: smithyClient.expectString(output.decimalT) };
|
|
501
|
+
}
|
|
502
|
+
if (smithyClient.expectString(output.doubleT) !== undefined) {
|
|
503
|
+
return { doubleT: smithyClient.expectString(output.doubleT) };
|
|
504
|
+
}
|
|
505
|
+
if (smithyClient.expectString(output.floatT) !== undefined) {
|
|
506
|
+
return { floatT: smithyClient.expectString(output.floatT) };
|
|
507
|
+
}
|
|
508
|
+
if (smithyClient.expectString(output.inetT) !== undefined) {
|
|
509
|
+
return { inetT: smithyClient.expectString(output.inetT) };
|
|
510
|
+
}
|
|
511
|
+
if (smithyClient.expectString(output.intT) !== undefined) {
|
|
512
|
+
return { intT: smithyClient.expectString(output.intT) };
|
|
513
|
+
}
|
|
514
|
+
if (output.listT != null) {
|
|
515
|
+
return {
|
|
516
|
+
listT: de_KeyspacesCellList(output.listT, context),
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
if (output.mapT != null) {
|
|
520
|
+
return {
|
|
521
|
+
mapT: de_KeyspacesCellMap(output.mapT, context),
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
if (output.setT != null) {
|
|
525
|
+
return {
|
|
526
|
+
setT: de_KeyspacesCellList(output.setT, context),
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
if (smithyClient.expectString(output.smallintT) !== undefined) {
|
|
530
|
+
return { smallintT: smithyClient.expectString(output.smallintT) };
|
|
531
|
+
}
|
|
532
|
+
if (smithyClient.expectString(output.textT) !== undefined) {
|
|
533
|
+
return { textT: smithyClient.expectString(output.textT) };
|
|
534
|
+
}
|
|
535
|
+
if (smithyClient.expectString(output.timeT) !== undefined) {
|
|
536
|
+
return { timeT: smithyClient.expectString(output.timeT) };
|
|
537
|
+
}
|
|
538
|
+
if (smithyClient.expectString(output.timestampT) !== undefined) {
|
|
539
|
+
return { timestampT: smithyClient.expectString(output.timestampT) };
|
|
540
|
+
}
|
|
541
|
+
if (smithyClient.expectString(output.timeuuidT) !== undefined) {
|
|
542
|
+
return { timeuuidT: smithyClient.expectString(output.timeuuidT) };
|
|
543
|
+
}
|
|
544
|
+
if (smithyClient.expectString(output.tinyintT) !== undefined) {
|
|
545
|
+
return { tinyintT: smithyClient.expectString(output.tinyintT) };
|
|
546
|
+
}
|
|
547
|
+
if (output.tupleT != null) {
|
|
548
|
+
return {
|
|
549
|
+
tupleT: de_KeyspacesCellList(output.tupleT, context),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
if (output.udtT != null) {
|
|
553
|
+
return {
|
|
554
|
+
udtT: de_KeyspacesUdtMap(output.udtT, context),
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
if (smithyClient.expectString(output.uuidT) !== undefined) {
|
|
558
|
+
return { uuidT: smithyClient.expectString(output.uuidT) };
|
|
559
|
+
}
|
|
560
|
+
if (smithyClient.expectString(output.varcharT) !== undefined) {
|
|
561
|
+
return { varcharT: smithyClient.expectString(output.varcharT) };
|
|
562
|
+
}
|
|
563
|
+
if (smithyClient.expectString(output.varintT) !== undefined) {
|
|
564
|
+
return { varintT: smithyClient.expectString(output.varintT) };
|
|
565
|
+
}
|
|
566
|
+
return { $unknown: Object.entries(output)[0] };
|
|
567
|
+
};
|
|
568
|
+
const de_KeyspacesKeysMap = (output, context) => {
|
|
569
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
570
|
+
if (value === null) {
|
|
571
|
+
return acc;
|
|
572
|
+
}
|
|
573
|
+
acc[key] = de_KeyspacesCellValue(core$1.awsExpectUnion(value), context);
|
|
574
|
+
return acc;
|
|
575
|
+
}, {});
|
|
576
|
+
};
|
|
577
|
+
const de_KeyspacesRow = (output, context) => {
|
|
578
|
+
return smithyClient.take(output, {
|
|
579
|
+
rowMetadata: smithyClient._json,
|
|
580
|
+
staticCells: (_) => de_KeyspacesCells(_, context),
|
|
581
|
+
valueCells: (_) => de_KeyspacesCells(_, context),
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
const de_KeyspacesUdtMap = (output, context) => {
|
|
585
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
586
|
+
if (value === null) {
|
|
587
|
+
return acc;
|
|
588
|
+
}
|
|
589
|
+
acc[key] = de_KeyspacesCell(value, context);
|
|
590
|
+
return acc;
|
|
591
|
+
}, {});
|
|
592
|
+
};
|
|
593
|
+
const de__Record = (output, context) => {
|
|
594
|
+
return smithyClient.take(output, {
|
|
595
|
+
clusteringKeys: (_) => de_KeyspacesKeysMap(_, context),
|
|
596
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
597
|
+
eventVersion: smithyClient.expectString,
|
|
598
|
+
newImage: (_) => de_KeyspacesRow(_, context),
|
|
599
|
+
oldImage: (_) => de_KeyspacesRow(_, context),
|
|
600
|
+
origin: smithyClient.expectString,
|
|
601
|
+
partitionKeys: (_) => de_KeyspacesKeysMap(_, context),
|
|
602
|
+
sequenceNumber: smithyClient.expectString,
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
const de_RecordList = (output, context) => {
|
|
606
|
+
const retVal = (output || [])
|
|
607
|
+
.filter((e) => e != null)
|
|
608
|
+
.map((entry) => {
|
|
609
|
+
return de__Record(entry, context);
|
|
610
|
+
});
|
|
611
|
+
return retVal;
|
|
612
|
+
};
|
|
613
|
+
const deserializeMetadata = (output) => ({
|
|
614
|
+
httpStatusCode: output.statusCode,
|
|
615
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
616
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
617
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
618
|
+
});
|
|
619
|
+
const throwDefaultError = smithyClient.withBaseException(KeyspacesStreamsServiceException);
|
|
620
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
621
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
|
+
const contents = {
|
|
623
|
+
protocol,
|
|
624
|
+
hostname,
|
|
625
|
+
port,
|
|
626
|
+
method: "POST",
|
|
627
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
628
|
+
headers,
|
|
655
629
|
};
|
|
656
|
-
|
|
657
|
-
|
|
630
|
+
if (body !== undefined) {
|
|
631
|
+
contents.body = body;
|
|
632
|
+
}
|
|
633
|
+
return new protocolHttp.HttpRequest(contents);
|
|
634
|
+
};
|
|
635
|
+
function sharedHeaders(operation) {
|
|
658
636
|
return {
|
|
659
|
-
|
|
637
|
+
"content-type": "application/x-amz-json-1.0",
|
|
638
|
+
"x-amz-target": `KeyspacesStreams.${operation}`,
|
|
660
639
|
};
|
|
661
|
-
}
|
|
662
|
-
if ((0, import_smithy_client.expectString)(output.uuidT) !== void 0) {
|
|
663
|
-
return { uuidT: (0, import_smithy_client.expectString)(output.uuidT) };
|
|
664
|
-
}
|
|
665
|
-
if ((0, import_smithy_client.expectString)(output.varcharT) !== void 0) {
|
|
666
|
-
return { varcharT: (0, import_smithy_client.expectString)(output.varcharT) };
|
|
667
|
-
}
|
|
668
|
-
if ((0, import_smithy_client.expectString)(output.varintT) !== void 0) {
|
|
669
|
-
return { varintT: (0, import_smithy_client.expectString)(output.varintT) };
|
|
670
|
-
}
|
|
671
|
-
return { $unknown: Object.entries(output)[0] };
|
|
672
|
-
}, "de_KeyspacesCellValue");
|
|
673
|
-
var de_KeyspacesKeysMap = /* @__PURE__ */ __name((output, context) => {
|
|
674
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
675
|
-
if (value === null) {
|
|
676
|
-
return acc;
|
|
677
|
-
}
|
|
678
|
-
acc[key] = de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(value), context);
|
|
679
|
-
return acc;
|
|
680
|
-
}, {});
|
|
681
|
-
}, "de_KeyspacesKeysMap");
|
|
682
|
-
var de_KeyspacesRow = /* @__PURE__ */ __name((output, context) => {
|
|
683
|
-
return (0, import_smithy_client.take)(output, {
|
|
684
|
-
rowMetadata: import_smithy_client._json,
|
|
685
|
-
staticCells: /* @__PURE__ */ __name((_) => de_KeyspacesCells(_, context), "staticCells"),
|
|
686
|
-
valueCells: /* @__PURE__ */ __name((_) => de_KeyspacesCells(_, context), "valueCells")
|
|
687
|
-
});
|
|
688
|
-
}, "de_KeyspacesRow");
|
|
689
|
-
var de_KeyspacesUdtMap = /* @__PURE__ */ __name((output, context) => {
|
|
690
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
691
|
-
if (value === null) {
|
|
692
|
-
return acc;
|
|
693
|
-
}
|
|
694
|
-
acc[key] = de_KeyspacesCell(value, context);
|
|
695
|
-
return acc;
|
|
696
|
-
}, {});
|
|
697
|
-
}, "de_KeyspacesUdtMap");
|
|
698
|
-
var de__Record = /* @__PURE__ */ __name((output, context) => {
|
|
699
|
-
return (0, import_smithy_client.take)(output, {
|
|
700
|
-
clusteringKeys: /* @__PURE__ */ __name((_) => de_KeyspacesKeysMap(_, context), "clusteringKeys"),
|
|
701
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
702
|
-
eventVersion: import_smithy_client.expectString,
|
|
703
|
-
newImage: /* @__PURE__ */ __name((_) => de_KeyspacesRow(_, context), "newImage"),
|
|
704
|
-
oldImage: /* @__PURE__ */ __name((_) => de_KeyspacesRow(_, context), "oldImage"),
|
|
705
|
-
origin: import_smithy_client.expectString,
|
|
706
|
-
partitionKeys: /* @__PURE__ */ __name((_) => de_KeyspacesKeysMap(_, context), "partitionKeys"),
|
|
707
|
-
sequenceNumber: import_smithy_client.expectString
|
|
708
|
-
});
|
|
709
|
-
}, "de__Record");
|
|
710
|
-
var de_RecordList = /* @__PURE__ */ __name((output, context) => {
|
|
711
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
712
|
-
return de__Record(entry, context);
|
|
713
|
-
});
|
|
714
|
-
return retVal;
|
|
715
|
-
}, "de_RecordList");
|
|
716
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
717
|
-
httpStatusCode: output.statusCode,
|
|
718
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
719
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
720
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
721
|
-
}), "deserializeMetadata");
|
|
722
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(KeyspacesStreamsServiceException);
|
|
723
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
724
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
725
|
-
const contents = {
|
|
726
|
-
protocol,
|
|
727
|
-
hostname,
|
|
728
|
-
port,
|
|
729
|
-
method: "POST",
|
|
730
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
731
|
-
headers
|
|
732
|
-
};
|
|
733
|
-
if (resolvedHostname !== void 0) {
|
|
734
|
-
contents.hostname = resolvedHostname;
|
|
735
|
-
}
|
|
736
|
-
if (body !== void 0) {
|
|
737
|
-
contents.body = body;
|
|
738
|
-
}
|
|
739
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
740
|
-
}, "buildHttpRpcRequest");
|
|
741
|
-
function sharedHeaders(operation) {
|
|
742
|
-
return {
|
|
743
|
-
"content-type": "application/x-amz-json-1.0",
|
|
744
|
-
"x-amz-target": `KeyspacesStreams.${operation}`
|
|
745
|
-
};
|
|
746
640
|
}
|
|
747
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
748
|
-
|
|
749
|
-
// src/commands/GetRecordsCommand.ts
|
|
750
|
-
var GetRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
751
|
-
return [
|
|
752
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
753
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
754
|
-
];
|
|
755
|
-
}).s("KeyspacesStreams", "GetRecords", {}).n("KeyspacesStreamsClient", "GetRecordsCommand").f(void 0, void 0).ser(se_GetRecordsCommand).de(de_GetRecordsCommand).build() {
|
|
756
|
-
static {
|
|
757
|
-
__name(this, "GetRecordsCommand");
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
// src/commands/GetShardIteratorCommand.ts
|
|
762
641
|
|
|
642
|
+
class GetRecordsCommand extends smithyClient.Command
|
|
643
|
+
.classBuilder()
|
|
644
|
+
.ep(commonParams)
|
|
645
|
+
.m(function (Command, cs, config, o) {
|
|
646
|
+
return [
|
|
647
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
648
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
649
|
+
];
|
|
650
|
+
})
|
|
651
|
+
.s("KeyspacesStreams", "GetRecords", {})
|
|
652
|
+
.n("KeyspacesStreamsClient", "GetRecordsCommand")
|
|
653
|
+
.f(void 0, void 0)
|
|
654
|
+
.ser(se_GetRecordsCommand)
|
|
655
|
+
.de(de_GetRecordsCommand)
|
|
656
|
+
.build() {
|
|
657
|
+
}
|
|
763
658
|
|
|
659
|
+
class GetShardIteratorCommand extends smithyClient.Command
|
|
660
|
+
.classBuilder()
|
|
661
|
+
.ep(commonParams)
|
|
662
|
+
.m(function (Command, cs, config, o) {
|
|
663
|
+
return [
|
|
664
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
665
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
666
|
+
];
|
|
667
|
+
})
|
|
668
|
+
.s("KeyspacesStreams", "GetShardIterator", {})
|
|
669
|
+
.n("KeyspacesStreamsClient", "GetShardIteratorCommand")
|
|
670
|
+
.f(void 0, void 0)
|
|
671
|
+
.ser(se_GetShardIteratorCommand)
|
|
672
|
+
.de(de_GetShardIteratorCommand)
|
|
673
|
+
.build() {
|
|
674
|
+
}
|
|
764
675
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
(
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
return [
|
|
782
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
783
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
784
|
-
];
|
|
785
|
-
}).s("KeyspacesStreams", "GetStream", {}).n("KeyspacesStreamsClient", "GetStreamCommand").f(void 0, void 0).ser(se_GetStreamCommand).de(de_GetStreamCommand).build() {
|
|
786
|
-
static {
|
|
787
|
-
__name(this, "GetStreamCommand");
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
// src/commands/ListStreamsCommand.ts
|
|
792
|
-
|
|
676
|
+
class GetStreamCommand extends smithyClient.Command
|
|
677
|
+
.classBuilder()
|
|
678
|
+
.ep(commonParams)
|
|
679
|
+
.m(function (Command, cs, config, o) {
|
|
680
|
+
return [
|
|
681
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
682
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
683
|
+
];
|
|
684
|
+
})
|
|
685
|
+
.s("KeyspacesStreams", "GetStream", {})
|
|
686
|
+
.n("KeyspacesStreamsClient", "GetStreamCommand")
|
|
687
|
+
.f(void 0, void 0)
|
|
688
|
+
.ser(se_GetStreamCommand)
|
|
689
|
+
.de(de_GetStreamCommand)
|
|
690
|
+
.build() {
|
|
691
|
+
}
|
|
793
692
|
|
|
693
|
+
class ListStreamsCommand extends smithyClient.Command
|
|
694
|
+
.classBuilder()
|
|
695
|
+
.ep(commonParams)
|
|
696
|
+
.m(function (Command, cs, config, o) {
|
|
697
|
+
return [
|
|
698
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
699
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
700
|
+
];
|
|
701
|
+
})
|
|
702
|
+
.s("KeyspacesStreams", "ListStreams", {})
|
|
703
|
+
.n("KeyspacesStreamsClient", "ListStreamsCommand")
|
|
704
|
+
.f(void 0, void 0)
|
|
705
|
+
.ser(se_ListStreamsCommand)
|
|
706
|
+
.de(de_ListStreamsCommand)
|
|
707
|
+
.build() {
|
|
708
|
+
}
|
|
794
709
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}).s("KeyspacesStreams", "ListStreams", {}).n("KeyspacesStreamsClient", "ListStreamsCommand").f(void 0, void 0).ser(se_ListStreamsCommand).de(de_ListStreamsCommand).build() {
|
|
801
|
-
static {
|
|
802
|
-
__name(this, "ListStreamsCommand");
|
|
803
|
-
}
|
|
710
|
+
const commands = {
|
|
711
|
+
GetRecordsCommand,
|
|
712
|
+
GetShardIteratorCommand,
|
|
713
|
+
GetStreamCommand,
|
|
714
|
+
ListStreamsCommand,
|
|
804
715
|
};
|
|
716
|
+
class KeyspacesStreams extends KeyspacesStreamsClient {
|
|
717
|
+
}
|
|
718
|
+
smithyClient.createAggregatedClient(commands, KeyspacesStreams);
|
|
805
719
|
|
|
806
|
-
|
|
807
|
-
var commands = {
|
|
808
|
-
GetRecordsCommand,
|
|
809
|
-
GetShardIteratorCommand,
|
|
810
|
-
GetStreamCommand,
|
|
811
|
-
ListStreamsCommand
|
|
812
|
-
};
|
|
813
|
-
var KeyspacesStreams = class extends KeyspacesStreamsClient {
|
|
814
|
-
static {
|
|
815
|
-
__name(this, "KeyspacesStreams");
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
(0, import_smithy_client.createAggregatedClient)(commands, KeyspacesStreams);
|
|
819
|
-
|
|
820
|
-
// src/pagination/GetStreamPaginator.ts
|
|
821
|
-
|
|
822
|
-
var paginateGetStream = (0, import_core.createPaginator)(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
|
|
823
|
-
|
|
824
|
-
// src/pagination/ListStreamsPaginator.ts
|
|
720
|
+
const paginateGetStream = core.createPaginator(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
|
|
825
721
|
|
|
826
|
-
|
|
827
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
722
|
+
const paginateListStreams = core.createPaginator(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
|
|
828
723
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
KeyspacesStreamsClient,
|
|
833
|
-
KeyspacesStreams,
|
|
834
|
-
$Command,
|
|
835
|
-
GetRecordsCommand,
|
|
836
|
-
GetShardIteratorCommand,
|
|
837
|
-
GetStreamCommand,
|
|
838
|
-
ListStreamsCommand,
|
|
839
|
-
paginateGetStream,
|
|
840
|
-
paginateListStreams,
|
|
841
|
-
AccessDeniedException,
|
|
842
|
-
OriginType,
|
|
843
|
-
InternalServerException,
|
|
844
|
-
ResourceNotFoundException,
|
|
845
|
-
ThrottlingException,
|
|
846
|
-
ValidationExceptionType,
|
|
847
|
-
ValidationException,
|
|
848
|
-
ShardIteratorType,
|
|
849
|
-
ShardFilterType,
|
|
850
|
-
StreamStatus,
|
|
851
|
-
StreamViewType,
|
|
852
|
-
KeyspacesCellValue
|
|
724
|
+
Object.defineProperty(exports, "$Command", {
|
|
725
|
+
enumerable: true,
|
|
726
|
+
get: function () { return smithyClient.Command; }
|
|
853
727
|
});
|
|
854
|
-
|
|
728
|
+
Object.defineProperty(exports, "__Client", {
|
|
729
|
+
enumerable: true,
|
|
730
|
+
get: function () { return smithyClient.Client; }
|
|
731
|
+
});
|
|
732
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
733
|
+
exports.GetRecordsCommand = GetRecordsCommand;
|
|
734
|
+
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
735
|
+
exports.GetStreamCommand = GetStreamCommand;
|
|
736
|
+
exports.InternalServerException = InternalServerException;
|
|
737
|
+
exports.KeyspacesStreams = KeyspacesStreams;
|
|
738
|
+
exports.KeyspacesStreamsClient = KeyspacesStreamsClient;
|
|
739
|
+
exports.KeyspacesStreamsServiceException = KeyspacesStreamsServiceException;
|
|
740
|
+
exports.ListStreamsCommand = ListStreamsCommand;
|
|
741
|
+
exports.OriginType = OriginType;
|
|
742
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
743
|
+
exports.ShardFilterType = ShardFilterType;
|
|
744
|
+
exports.ShardIteratorType = ShardIteratorType;
|
|
745
|
+
exports.StreamStatus = StreamStatus;
|
|
746
|
+
exports.StreamViewType = StreamViewType;
|
|
747
|
+
exports.ThrottlingException = ThrottlingException;
|
|
748
|
+
exports.ValidationException = ValidationException;
|
|
749
|
+
exports.ValidationExceptionType = ValidationExceptionType;
|
|
750
|
+
exports.paginateGetStream = paginateGetStream;
|
|
751
|
+
exports.paginateListStreams = paginateListStreams;
|