@aws-sdk/client-cloudfront-keyvaluestore 3.490.0 → 3.495.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/CloudFrontKeyValueStore.js +1 -23
- package/dist-cjs/CloudFrontKeyValueStoreClient.js +1 -43
- package/dist-cjs/commands/DeleteKeyCommand.js +1 -29
- package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +1 -29
- package/dist-cjs/commands/GetKeyCommand.js +1 -30
- package/dist-cjs/commands/ListKeysCommand.js +1 -30
- package/dist-cjs/commands/PutKeyCommand.js +1 -30
- package/dist-cjs/commands/UpdateKeysCommand.js +1 -30
- package/dist-cjs/commands/index.js +1 -9
- package/dist-cjs/endpoint/EndpointParameters.js +1 -16
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +947 -11
- package/dist-cjs/models/CloudFrontKeyValueStoreServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -119
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListKeysPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -520
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +7 -0
- package/package.json +41 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,948 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
CloudFrontKeyValueStore: () => CloudFrontKeyValueStore,
|
|
26
|
+
CloudFrontKeyValueStoreClient: () => CloudFrontKeyValueStoreClient,
|
|
27
|
+
CloudFrontKeyValueStoreServiceException: () => CloudFrontKeyValueStoreServiceException,
|
|
28
|
+
ConflictException: () => ConflictException,
|
|
29
|
+
DeleteKeyCommand: () => DeleteKeyCommand,
|
|
30
|
+
DescribeKeyValueStoreCommand: () => DescribeKeyValueStoreCommand,
|
|
31
|
+
GetKeyCommand: () => GetKeyCommand,
|
|
32
|
+
GetKeyResponseFilterSensitiveLog: () => GetKeyResponseFilterSensitiveLog,
|
|
33
|
+
InternalServerException: () => InternalServerException,
|
|
34
|
+
ListKeysCommand: () => ListKeysCommand,
|
|
35
|
+
ListKeysResponseFilterSensitiveLog: () => ListKeysResponseFilterSensitiveLog,
|
|
36
|
+
ListKeysResponseListItemFilterSensitiveLog: () => ListKeysResponseListItemFilterSensitiveLog,
|
|
37
|
+
PutKeyCommand: () => PutKeyCommand,
|
|
38
|
+
PutKeyRequestFilterSensitiveLog: () => PutKeyRequestFilterSensitiveLog,
|
|
39
|
+
PutKeyRequestListItemFilterSensitiveLog: () => PutKeyRequestListItemFilterSensitiveLog,
|
|
40
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
41
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
42
|
+
UpdateKeysCommand: () => UpdateKeysCommand,
|
|
43
|
+
UpdateKeysRequestFilterSensitiveLog: () => UpdateKeysRequestFilterSensitiveLog,
|
|
44
|
+
ValidationException: () => ValidationException,
|
|
45
|
+
__Client: () => import_smithy_client.Client,
|
|
46
|
+
paginateListKeys: () => paginateListKeys
|
|
47
|
+
});
|
|
48
|
+
module.exports = __toCommonJS(src_exports);
|
|
49
|
+
|
|
50
|
+
// src/CloudFrontKeyValueStoreClient.ts
|
|
51
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
52
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
53
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
54
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
55
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
56
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
57
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
58
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
59
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// src/endpoint/EndpointParameters.ts
|
|
63
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
64
|
+
return {
|
|
65
|
+
...options,
|
|
66
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
67
|
+
defaultSigningName: "cloudfront-keyvaluestore"
|
|
68
|
+
};
|
|
69
|
+
}, "resolveClientEndpointParameters");
|
|
70
|
+
var commonParams = {
|
|
71
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
72
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
73
|
+
Region: { type: "builtInParams", name: "region" }
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// src/CloudFrontKeyValueStoreClient.ts
|
|
77
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
78
|
+
|
|
79
|
+
// src/runtimeExtensions.ts
|
|
80
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
81
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
82
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
83
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
84
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
85
|
+
const extensionConfiguration = {
|
|
86
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
87
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
88
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
89
|
+
};
|
|
90
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
91
|
+
return {
|
|
92
|
+
...runtimeConfig,
|
|
93
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
94
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
95
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
96
|
+
};
|
|
97
|
+
}, "resolveRuntimeExtensions");
|
|
98
|
+
|
|
99
|
+
// src/CloudFrontKeyValueStoreClient.ts
|
|
100
|
+
var _CloudFrontKeyValueStoreClient = class _CloudFrontKeyValueStoreClient extends import_smithy_client.Client {
|
|
101
|
+
constructor(...[configuration]) {
|
|
102
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
103
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
104
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
105
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
106
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
107
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
108
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
109
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
110
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
111
|
+
super(_config_8);
|
|
112
|
+
this.config = _config_8;
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
119
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
123
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
124
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
125
|
+
*/
|
|
126
|
+
destroy() {
|
|
127
|
+
super.destroy();
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
__name(_CloudFrontKeyValueStoreClient, "CloudFrontKeyValueStoreClient");
|
|
131
|
+
var CloudFrontKeyValueStoreClient = _CloudFrontKeyValueStoreClient;
|
|
132
|
+
|
|
133
|
+
// src/CloudFrontKeyValueStore.ts
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
// src/commands/DeleteKeyCommand.ts
|
|
137
|
+
|
|
138
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
139
|
+
|
|
140
|
+
var import_types = require("@smithy/types");
|
|
141
|
+
|
|
142
|
+
// src/protocols/Aws_restJson1.ts
|
|
143
|
+
var import_core = require("@smithy/core");
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// src/models/CloudFrontKeyValueStoreServiceException.ts
|
|
147
|
+
|
|
148
|
+
var _CloudFrontKeyValueStoreServiceException = class _CloudFrontKeyValueStoreServiceException extends import_smithy_client.ServiceException {
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(options) {
|
|
153
|
+
super(options);
|
|
154
|
+
Object.setPrototypeOf(this, _CloudFrontKeyValueStoreServiceException.prototype);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__name(_CloudFrontKeyValueStoreServiceException, "CloudFrontKeyValueStoreServiceException");
|
|
158
|
+
var CloudFrontKeyValueStoreServiceException = _CloudFrontKeyValueStoreServiceException;
|
|
159
|
+
|
|
160
|
+
// src/models/models_0.ts
|
|
161
|
+
|
|
162
|
+
var _AccessDeniedException = class _AccessDeniedException extends CloudFrontKeyValueStoreServiceException {
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "AccessDeniedException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts
|
|
171
|
+
});
|
|
172
|
+
this.name = "AccessDeniedException";
|
|
173
|
+
this.$fault = "client";
|
|
174
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
175
|
+
this.Message = opts.Message;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
179
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
180
|
+
var _ConflictException = class _ConflictException extends CloudFrontKeyValueStoreServiceException {
|
|
181
|
+
/**
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ConflictException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts
|
|
189
|
+
});
|
|
190
|
+
this.name = "ConflictException";
|
|
191
|
+
this.$fault = "client";
|
|
192
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
193
|
+
this.Message = opts.Message;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
__name(_ConflictException, "ConflictException");
|
|
197
|
+
var ConflictException = _ConflictException;
|
|
198
|
+
var _InternalServerException = class _InternalServerException extends CloudFrontKeyValueStoreServiceException {
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
*/
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "InternalServerException",
|
|
205
|
+
$fault: "server",
|
|
206
|
+
...opts
|
|
207
|
+
});
|
|
208
|
+
this.name = "InternalServerException";
|
|
209
|
+
this.$fault = "server";
|
|
210
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
211
|
+
this.Message = opts.Message;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
__name(_InternalServerException, "InternalServerException");
|
|
215
|
+
var InternalServerException = _InternalServerException;
|
|
216
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException {
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
constructor(opts) {
|
|
221
|
+
super({
|
|
222
|
+
name: "ResourceNotFoundException",
|
|
223
|
+
$fault: "client",
|
|
224
|
+
...opts
|
|
225
|
+
});
|
|
226
|
+
this.name = "ResourceNotFoundException";
|
|
227
|
+
this.$fault = "client";
|
|
228
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
229
|
+
this.Message = opts.Message;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
233
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
234
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException {
|
|
235
|
+
/**
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "ServiceQuotaExceededException",
|
|
241
|
+
$fault: "client",
|
|
242
|
+
...opts
|
|
243
|
+
});
|
|
244
|
+
this.name = "ServiceQuotaExceededException";
|
|
245
|
+
this.$fault = "client";
|
|
246
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
247
|
+
this.Message = opts.Message;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
251
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
252
|
+
var _ValidationException = class _ValidationException extends CloudFrontKeyValueStoreServiceException {
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
256
|
+
constructor(opts) {
|
|
257
|
+
super({
|
|
258
|
+
name: "ValidationException",
|
|
259
|
+
$fault: "client",
|
|
260
|
+
...opts
|
|
261
|
+
});
|
|
262
|
+
this.name = "ValidationException";
|
|
263
|
+
this.$fault = "client";
|
|
264
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
265
|
+
this.Message = opts.Message;
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
__name(_ValidationException, "ValidationException");
|
|
269
|
+
var ValidationException = _ValidationException;
|
|
270
|
+
var GetKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
271
|
+
...obj,
|
|
272
|
+
...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
|
|
273
|
+
}), "GetKeyResponseFilterSensitiveLog");
|
|
274
|
+
var ListKeysResponseListItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
275
|
+
...obj,
|
|
276
|
+
...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
|
|
277
|
+
}), "ListKeysResponseListItemFilterSensitiveLog");
|
|
278
|
+
var ListKeysResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
279
|
+
...obj,
|
|
280
|
+
...obj.Items && { Items: obj.Items.map((item) => ListKeysResponseListItemFilterSensitiveLog(item)) }
|
|
281
|
+
}), "ListKeysResponseFilterSensitiveLog");
|
|
282
|
+
var PutKeyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
|
|
285
|
+
}), "PutKeyRequestFilterSensitiveLog");
|
|
286
|
+
var PutKeyRequestListItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
287
|
+
...obj,
|
|
288
|
+
...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
|
|
289
|
+
}), "PutKeyRequestListItemFilterSensitiveLog");
|
|
290
|
+
var UpdateKeysRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
...obj.Puts && { Puts: obj.Puts.map((item) => PutKeyRequestListItemFilterSensitiveLog(item)) }
|
|
293
|
+
}), "UpdateKeysRequestFilterSensitiveLog");
|
|
294
|
+
|
|
295
|
+
// src/protocols/Aws_restJson1.ts
|
|
296
|
+
var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
297
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
298
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
299
|
+
[_im]: input[_IM]
|
|
300
|
+
});
|
|
301
|
+
b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
|
|
302
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
303
|
+
b.p("Key", () => input.Key, "{Key}", false);
|
|
304
|
+
let body;
|
|
305
|
+
b.m("DELETE").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
307
|
+
}, "se_DeleteKeyCommand");
|
|
308
|
+
var se_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
309
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
310
|
+
const headers = {};
|
|
311
|
+
b.bp("/key-value-stores/{KvsARN}");
|
|
312
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
313
|
+
let body;
|
|
314
|
+
b.m("GET").h(headers).b(body);
|
|
315
|
+
return b.build();
|
|
316
|
+
}, "se_DescribeKeyValueStoreCommand");
|
|
317
|
+
var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
318
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
319
|
+
const headers = {};
|
|
320
|
+
b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
|
|
321
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
322
|
+
b.p("Key", () => input.Key, "{Key}", false);
|
|
323
|
+
let body;
|
|
324
|
+
b.m("GET").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
326
|
+
}, "se_GetKeyCommand");
|
|
327
|
+
var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
328
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
329
|
+
const headers = {};
|
|
330
|
+
b.bp("/key-value-stores/{KvsARN}/keys");
|
|
331
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
332
|
+
const query = (0, import_smithy_client.map)({
|
|
333
|
+
[_NT]: [, input[_NT]],
|
|
334
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
335
|
+
});
|
|
336
|
+
let body;
|
|
337
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
338
|
+
return b.build();
|
|
339
|
+
}, "se_ListKeysCommand");
|
|
340
|
+
var se_PutKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
341
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
342
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
343
|
+
"content-type": "application/json",
|
|
344
|
+
[_im]: input[_IM]
|
|
345
|
+
});
|
|
346
|
+
b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
|
|
347
|
+
b.p("Key", () => input.Key, "{Key}", false);
|
|
348
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
349
|
+
let body;
|
|
350
|
+
body = JSON.stringify(
|
|
351
|
+
(0, import_smithy_client.take)(input, {
|
|
352
|
+
Value: []
|
|
353
|
+
})
|
|
354
|
+
);
|
|
355
|
+
b.m("PUT").h(headers).b(body);
|
|
356
|
+
return b.build();
|
|
357
|
+
}, "se_PutKeyCommand");
|
|
358
|
+
var se_UpdateKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
360
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
361
|
+
"content-type": "application/json",
|
|
362
|
+
[_im]: input[_IM]
|
|
363
|
+
});
|
|
364
|
+
b.bp("/key-value-stores/{KvsARN}/keys");
|
|
365
|
+
b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
|
|
366
|
+
let body;
|
|
367
|
+
body = JSON.stringify(
|
|
368
|
+
(0, import_smithy_client.take)(input, {
|
|
369
|
+
Deletes: (_) => (0, import_smithy_client._json)(_),
|
|
370
|
+
Puts: (_) => (0, import_smithy_client._json)(_)
|
|
371
|
+
})
|
|
372
|
+
);
|
|
373
|
+
b.m("POST").h(headers).b(body);
|
|
374
|
+
return b.build();
|
|
375
|
+
}, "se_UpdateKeysCommand");
|
|
376
|
+
var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
377
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
378
|
+
return de_DeleteKeyCommandError(output, context);
|
|
379
|
+
}
|
|
380
|
+
const contents = (0, import_smithy_client.map)({
|
|
381
|
+
$metadata: deserializeMetadata(output),
|
|
382
|
+
[_ET]: [, output.headers[_e]]
|
|
383
|
+
});
|
|
384
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
385
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
386
|
+
ItemCount: import_smithy_client.expectInt32,
|
|
387
|
+
TotalSizeInBytes: import_smithy_client.expectLong
|
|
388
|
+
});
|
|
389
|
+
Object.assign(contents, doc);
|
|
390
|
+
return contents;
|
|
391
|
+
}, "de_DeleteKeyCommand");
|
|
392
|
+
var de_DeleteKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
+
const parsedOutput = {
|
|
394
|
+
...output,
|
|
395
|
+
body: await parseErrorBody(output.body, context)
|
|
396
|
+
};
|
|
397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
+
switch (errorCode) {
|
|
399
|
+
case "AccessDeniedException":
|
|
400
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
401
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
402
|
+
case "ConflictException":
|
|
403
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
404
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
405
|
+
case "InternalServerException":
|
|
406
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
407
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
408
|
+
case "ResourceNotFoundException":
|
|
409
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
410
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
+
case "ServiceQuotaExceededException":
|
|
412
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
413
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
414
|
+
case "ValidationException":
|
|
415
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
416
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
417
|
+
default:
|
|
418
|
+
const parsedBody = parsedOutput.body;
|
|
419
|
+
return throwDefaultError({
|
|
420
|
+
output,
|
|
421
|
+
parsedBody,
|
|
422
|
+
errorCode
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}, "de_DeleteKeyCommandError");
|
|
426
|
+
var de_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
427
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
+
return de_DescribeKeyValueStoreCommandError(output, context);
|
|
429
|
+
}
|
|
430
|
+
const contents = (0, import_smithy_client.map)({
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
[_ET]: [, output.headers[_e]]
|
|
433
|
+
});
|
|
434
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
435
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
436
|
+
Created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
437
|
+
ItemCount: import_smithy_client.expectInt32,
|
|
438
|
+
KvsARN: import_smithy_client.expectString,
|
|
439
|
+
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
440
|
+
TotalSizeInBytes: import_smithy_client.expectLong
|
|
441
|
+
});
|
|
442
|
+
Object.assign(contents, doc);
|
|
443
|
+
return contents;
|
|
444
|
+
}, "de_DescribeKeyValueStoreCommand");
|
|
445
|
+
var de_DescribeKeyValueStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
446
|
+
const parsedOutput = {
|
|
447
|
+
...output,
|
|
448
|
+
body: await parseErrorBody(output.body, context)
|
|
449
|
+
};
|
|
450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
|
+
switch (errorCode) {
|
|
452
|
+
case "AccessDeniedException":
|
|
453
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
454
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
455
|
+
case "ConflictException":
|
|
456
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
457
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
458
|
+
case "InternalServerException":
|
|
459
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
460
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
461
|
+
case "ResourceNotFoundException":
|
|
462
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
463
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
464
|
+
default:
|
|
465
|
+
const parsedBody = parsedOutput.body;
|
|
466
|
+
return throwDefaultError({
|
|
467
|
+
output,
|
|
468
|
+
parsedBody,
|
|
469
|
+
errorCode
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
}, "de_DescribeKeyValueStoreCommandError");
|
|
473
|
+
var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
474
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
475
|
+
return de_GetKeyCommandError(output, context);
|
|
476
|
+
}
|
|
477
|
+
const contents = (0, import_smithy_client.map)({
|
|
478
|
+
$metadata: deserializeMetadata(output)
|
|
479
|
+
});
|
|
480
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
481
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
482
|
+
ItemCount: import_smithy_client.expectInt32,
|
|
483
|
+
Key: import_smithy_client.expectString,
|
|
484
|
+
TotalSizeInBytes: import_smithy_client.expectLong,
|
|
485
|
+
Value: import_smithy_client.expectString
|
|
486
|
+
});
|
|
487
|
+
Object.assign(contents, doc);
|
|
488
|
+
return contents;
|
|
489
|
+
}, "de_GetKeyCommand");
|
|
490
|
+
var de_GetKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
491
|
+
const parsedOutput = {
|
|
492
|
+
...output,
|
|
493
|
+
body: await parseErrorBody(output.body, context)
|
|
494
|
+
};
|
|
495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
+
switch (errorCode) {
|
|
497
|
+
case "AccessDeniedException":
|
|
498
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
499
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
500
|
+
case "ConflictException":
|
|
501
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
502
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
503
|
+
case "InternalServerException":
|
|
504
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
505
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
506
|
+
case "ResourceNotFoundException":
|
|
507
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
508
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
|
+
default:
|
|
510
|
+
const parsedBody = parsedOutput.body;
|
|
511
|
+
return throwDefaultError({
|
|
512
|
+
output,
|
|
513
|
+
parsedBody,
|
|
514
|
+
errorCode
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}, "de_GetKeyCommandError");
|
|
518
|
+
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
519
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
+
return de_ListKeysCommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const contents = (0, import_smithy_client.map)({
|
|
523
|
+
$metadata: deserializeMetadata(output)
|
|
524
|
+
});
|
|
525
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
526
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
527
|
+
Items: import_smithy_client._json,
|
|
528
|
+
NextToken: import_smithy_client.expectString
|
|
529
|
+
});
|
|
530
|
+
Object.assign(contents, doc);
|
|
531
|
+
return contents;
|
|
532
|
+
}, "de_ListKeysCommand");
|
|
533
|
+
var de_ListKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
534
|
+
const parsedOutput = {
|
|
535
|
+
...output,
|
|
536
|
+
body: await parseErrorBody(output.body, context)
|
|
537
|
+
};
|
|
538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
+
switch (errorCode) {
|
|
540
|
+
case "AccessDeniedException":
|
|
541
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
542
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
+
case "ConflictException":
|
|
544
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
545
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
546
|
+
case "InternalServerException":
|
|
547
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
548
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
549
|
+
case "ResourceNotFoundException":
|
|
550
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
551
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
552
|
+
case "ValidationException":
|
|
553
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
554
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
|
+
default:
|
|
556
|
+
const parsedBody = parsedOutput.body;
|
|
557
|
+
return throwDefaultError({
|
|
558
|
+
output,
|
|
559
|
+
parsedBody,
|
|
560
|
+
errorCode
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
}, "de_ListKeysCommandError");
|
|
564
|
+
var de_PutKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
566
|
+
return de_PutKeyCommandError(output, context);
|
|
567
|
+
}
|
|
568
|
+
const contents = (0, import_smithy_client.map)({
|
|
569
|
+
$metadata: deserializeMetadata(output),
|
|
570
|
+
[_ET]: [, output.headers[_e]]
|
|
571
|
+
});
|
|
572
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
573
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
574
|
+
ItemCount: import_smithy_client.expectInt32,
|
|
575
|
+
TotalSizeInBytes: import_smithy_client.expectLong
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
578
|
+
return contents;
|
|
579
|
+
}, "de_PutKeyCommand");
|
|
580
|
+
var de_PutKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
581
|
+
const parsedOutput = {
|
|
582
|
+
...output,
|
|
583
|
+
body: await parseErrorBody(output.body, context)
|
|
584
|
+
};
|
|
585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
+
switch (errorCode) {
|
|
587
|
+
case "AccessDeniedException":
|
|
588
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
589
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
590
|
+
case "ConflictException":
|
|
591
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
592
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
593
|
+
case "InternalServerException":
|
|
594
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
595
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
596
|
+
case "ResourceNotFoundException":
|
|
597
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
599
|
+
case "ServiceQuotaExceededException":
|
|
600
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
601
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
602
|
+
case "ValidationException":
|
|
603
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
604
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
605
|
+
default:
|
|
606
|
+
const parsedBody = parsedOutput.body;
|
|
607
|
+
return throwDefaultError({
|
|
608
|
+
output,
|
|
609
|
+
parsedBody,
|
|
610
|
+
errorCode
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}, "de_PutKeyCommandError");
|
|
614
|
+
var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
+
return de_UpdateKeysCommandError(output, context);
|
|
617
|
+
}
|
|
618
|
+
const contents = (0, import_smithy_client.map)({
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
[_ET]: [, output.headers[_e]]
|
|
621
|
+
});
|
|
622
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
623
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
624
|
+
ItemCount: import_smithy_client.expectInt32,
|
|
625
|
+
TotalSizeInBytes: import_smithy_client.expectLong
|
|
626
|
+
});
|
|
627
|
+
Object.assign(contents, doc);
|
|
628
|
+
return contents;
|
|
629
|
+
}, "de_UpdateKeysCommand");
|
|
630
|
+
var de_UpdateKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
631
|
+
const parsedOutput = {
|
|
632
|
+
...output,
|
|
633
|
+
body: await parseErrorBody(output.body, context)
|
|
634
|
+
};
|
|
635
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
+
switch (errorCode) {
|
|
637
|
+
case "AccessDeniedException":
|
|
638
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
639
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
640
|
+
case "ConflictException":
|
|
641
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
642
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
643
|
+
case "InternalServerException":
|
|
644
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
645
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
646
|
+
case "ResourceNotFoundException":
|
|
647
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
+
case "ServiceQuotaExceededException":
|
|
650
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
651
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
652
|
+
case "ValidationException":
|
|
653
|
+
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
654
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
|
+
default:
|
|
656
|
+
const parsedBody = parsedOutput.body;
|
|
657
|
+
return throwDefaultError({
|
|
658
|
+
output,
|
|
659
|
+
parsedBody,
|
|
660
|
+
errorCode
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
}, "de_UpdateKeysCommandError");
|
|
664
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudFrontKeyValueStoreServiceException);
|
|
665
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
666
|
+
const contents = (0, import_smithy_client.map)({});
|
|
667
|
+
const data = parsedOutput.body;
|
|
668
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
669
|
+
Message: import_smithy_client.expectString
|
|
670
|
+
});
|
|
671
|
+
Object.assign(contents, doc);
|
|
672
|
+
const exception = new AccessDeniedException({
|
|
673
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
674
|
+
...contents
|
|
675
|
+
});
|
|
676
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
677
|
+
}, "de_AccessDeniedExceptionRes");
|
|
678
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
679
|
+
const contents = (0, import_smithy_client.map)({});
|
|
680
|
+
const data = parsedOutput.body;
|
|
681
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
682
|
+
Message: import_smithy_client.expectString
|
|
683
|
+
});
|
|
684
|
+
Object.assign(contents, doc);
|
|
685
|
+
const exception = new ConflictException({
|
|
686
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
687
|
+
...contents
|
|
688
|
+
});
|
|
689
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
690
|
+
}, "de_ConflictExceptionRes");
|
|
691
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
692
|
+
const contents = (0, import_smithy_client.map)({});
|
|
693
|
+
const data = parsedOutput.body;
|
|
694
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
695
|
+
Message: import_smithy_client.expectString
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
const exception = new InternalServerException({
|
|
699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
700
|
+
...contents
|
|
701
|
+
});
|
|
702
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
703
|
+
}, "de_InternalServerExceptionRes");
|
|
704
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
705
|
+
const contents = (0, import_smithy_client.map)({});
|
|
706
|
+
const data = parsedOutput.body;
|
|
707
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
708
|
+
Message: import_smithy_client.expectString
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
711
|
+
const exception = new ResourceNotFoundException({
|
|
712
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
713
|
+
...contents
|
|
714
|
+
});
|
|
715
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
716
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
717
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
718
|
+
const contents = (0, import_smithy_client.map)({});
|
|
719
|
+
const data = parsedOutput.body;
|
|
720
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
721
|
+
Message: import_smithy_client.expectString
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
724
|
+
const exception = new ServiceQuotaExceededException({
|
|
725
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
726
|
+
...contents
|
|
727
|
+
});
|
|
728
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
729
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
730
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
731
|
+
const contents = (0, import_smithy_client.map)({});
|
|
732
|
+
const data = parsedOutput.body;
|
|
733
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
734
|
+
Message: import_smithy_client.expectString
|
|
735
|
+
});
|
|
736
|
+
Object.assign(contents, doc);
|
|
737
|
+
const exception = new ValidationException({
|
|
738
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
739
|
+
...contents
|
|
740
|
+
});
|
|
741
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
742
|
+
}, "de_ValidationExceptionRes");
|
|
743
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
744
|
+
httpStatusCode: output.statusCode,
|
|
745
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
746
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
747
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
748
|
+
}), "deserializeMetadata");
|
|
749
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
750
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
751
|
+
var _ET = "ETag";
|
|
752
|
+
var _IM = "IfMatch";
|
|
753
|
+
var _MR = "MaxResults";
|
|
754
|
+
var _NT = "NextToken";
|
|
755
|
+
var _e = "etag";
|
|
756
|
+
var _im = "if-match";
|
|
757
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
758
|
+
if (encoded.length) {
|
|
759
|
+
return JSON.parse(encoded);
|
|
760
|
+
}
|
|
761
|
+
return {};
|
|
762
|
+
}), "parseBody");
|
|
763
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
764
|
+
const value = await parseBody(errorBody, context);
|
|
765
|
+
value.message = value.message ?? value.Message;
|
|
766
|
+
return value;
|
|
767
|
+
}, "parseErrorBody");
|
|
768
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
769
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
770
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
771
|
+
let cleanValue = rawValue;
|
|
772
|
+
if (typeof cleanValue === "number") {
|
|
773
|
+
cleanValue = cleanValue.toString();
|
|
774
|
+
}
|
|
775
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
776
|
+
cleanValue = cleanValue.split(",")[0];
|
|
777
|
+
}
|
|
778
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
779
|
+
cleanValue = cleanValue.split(":")[0];
|
|
780
|
+
}
|
|
781
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
782
|
+
cleanValue = cleanValue.split("#")[1];
|
|
783
|
+
}
|
|
784
|
+
return cleanValue;
|
|
785
|
+
}, "sanitizeErrorCode");
|
|
786
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
787
|
+
if (headerKey !== void 0) {
|
|
788
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
789
|
+
}
|
|
790
|
+
if (data.code !== void 0) {
|
|
791
|
+
return sanitizeErrorCode(data.code);
|
|
792
|
+
}
|
|
793
|
+
if (data["__type"] !== void 0) {
|
|
794
|
+
return sanitizeErrorCode(data["__type"]);
|
|
795
|
+
}
|
|
796
|
+
}, "loadRestJsonErrorCode");
|
|
797
|
+
|
|
798
|
+
// src/commands/DeleteKeyCommand.ts
|
|
799
|
+
var _DeleteKeyCommand = class _DeleteKeyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
800
|
+
...commonParams,
|
|
801
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
802
|
+
}).m(function(Command, cs, config, o) {
|
|
803
|
+
return [
|
|
804
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
805
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
806
|
+
];
|
|
807
|
+
}).s("CloudFrontKeyValueStore", "DeleteKey", {}).n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand").f(void 0, void 0).ser(se_DeleteKeyCommand).de(de_DeleteKeyCommand).build() {
|
|
808
|
+
};
|
|
809
|
+
__name(_DeleteKeyCommand, "DeleteKeyCommand");
|
|
810
|
+
var DeleteKeyCommand = _DeleteKeyCommand;
|
|
811
|
+
|
|
812
|
+
// src/commands/DescribeKeyValueStoreCommand.ts
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
var _DescribeKeyValueStoreCommand = class _DescribeKeyValueStoreCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
818
|
+
...commonParams,
|
|
819
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
820
|
+
}).m(function(Command, cs, config, o) {
|
|
821
|
+
return [
|
|
822
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
823
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
824
|
+
];
|
|
825
|
+
}).s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {}).n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand").f(void 0, void 0).ser(se_DescribeKeyValueStoreCommand).de(de_DescribeKeyValueStoreCommand).build() {
|
|
826
|
+
};
|
|
827
|
+
__name(_DescribeKeyValueStoreCommand, "DescribeKeyValueStoreCommand");
|
|
828
|
+
var DescribeKeyValueStoreCommand = _DescribeKeyValueStoreCommand;
|
|
829
|
+
|
|
830
|
+
// src/commands/GetKeyCommand.ts
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
var _GetKeyCommand = class _GetKeyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
836
|
+
...commonParams,
|
|
837
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
838
|
+
}).m(function(Command, cs, config, o) {
|
|
839
|
+
return [
|
|
840
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
841
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
842
|
+
];
|
|
843
|
+
}).s("CloudFrontKeyValueStore", "GetKey", {}).n("CloudFrontKeyValueStoreClient", "GetKeyCommand").f(void 0, GetKeyResponseFilterSensitiveLog).ser(se_GetKeyCommand).de(de_GetKeyCommand).build() {
|
|
844
|
+
};
|
|
845
|
+
__name(_GetKeyCommand, "GetKeyCommand");
|
|
846
|
+
var GetKeyCommand = _GetKeyCommand;
|
|
847
|
+
|
|
848
|
+
// src/commands/ListKeysCommand.ts
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
var _ListKeysCommand = class _ListKeysCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
854
|
+
...commonParams,
|
|
855
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
856
|
+
}).m(function(Command, cs, config, o) {
|
|
857
|
+
return [
|
|
858
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
859
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
860
|
+
];
|
|
861
|
+
}).s("CloudFrontKeyValueStore", "ListKeys", {}).n("CloudFrontKeyValueStoreClient", "ListKeysCommand").f(void 0, ListKeysResponseFilterSensitiveLog).ser(se_ListKeysCommand).de(de_ListKeysCommand).build() {
|
|
862
|
+
};
|
|
863
|
+
__name(_ListKeysCommand, "ListKeysCommand");
|
|
864
|
+
var ListKeysCommand = _ListKeysCommand;
|
|
865
|
+
|
|
866
|
+
// src/commands/PutKeyCommand.ts
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
var _PutKeyCommand = class _PutKeyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
872
|
+
...commonParams,
|
|
873
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
874
|
+
}).m(function(Command, cs, config, o) {
|
|
875
|
+
return [
|
|
876
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
877
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
878
|
+
];
|
|
879
|
+
}).s("CloudFrontKeyValueStore", "PutKey", {}).n("CloudFrontKeyValueStoreClient", "PutKeyCommand").f(PutKeyRequestFilterSensitiveLog, void 0).ser(se_PutKeyCommand).de(de_PutKeyCommand).build() {
|
|
880
|
+
};
|
|
881
|
+
__name(_PutKeyCommand, "PutKeyCommand");
|
|
882
|
+
var PutKeyCommand = _PutKeyCommand;
|
|
883
|
+
|
|
884
|
+
// src/commands/UpdateKeysCommand.ts
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
var _UpdateKeysCommand = class _UpdateKeysCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
890
|
+
...commonParams,
|
|
891
|
+
KvsARN: { type: "contextParams", name: "KvsARN" }
|
|
892
|
+
}).m(function(Command, cs, config, o) {
|
|
893
|
+
return [
|
|
894
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
895
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
896
|
+
];
|
|
897
|
+
}).s("CloudFrontKeyValueStore", "UpdateKeys", {}).n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand").f(UpdateKeysRequestFilterSensitiveLog, void 0).ser(se_UpdateKeysCommand).de(de_UpdateKeysCommand).build() {
|
|
898
|
+
};
|
|
899
|
+
__name(_UpdateKeysCommand, "UpdateKeysCommand");
|
|
900
|
+
var UpdateKeysCommand = _UpdateKeysCommand;
|
|
901
|
+
|
|
902
|
+
// src/CloudFrontKeyValueStore.ts
|
|
903
|
+
var commands = {
|
|
904
|
+
DeleteKeyCommand,
|
|
905
|
+
DescribeKeyValueStoreCommand,
|
|
906
|
+
GetKeyCommand,
|
|
907
|
+
ListKeysCommand,
|
|
908
|
+
PutKeyCommand,
|
|
909
|
+
UpdateKeysCommand
|
|
910
|
+
};
|
|
911
|
+
var _CloudFrontKeyValueStore = class _CloudFrontKeyValueStore extends CloudFrontKeyValueStoreClient {
|
|
912
|
+
};
|
|
913
|
+
__name(_CloudFrontKeyValueStore, "CloudFrontKeyValueStore");
|
|
914
|
+
var CloudFrontKeyValueStore = _CloudFrontKeyValueStore;
|
|
915
|
+
(0, import_smithy_client.createAggregatedClient)(commands, CloudFrontKeyValueStore);
|
|
916
|
+
|
|
917
|
+
// src/pagination/ListKeysPaginator.ts
|
|
918
|
+
|
|
919
|
+
var paginateListKeys = (0, import_core.createPaginator)(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
920
|
+
|
|
921
|
+
// src/index.ts
|
|
922
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
923
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
924
|
+
0 && (module.exports = {
|
|
925
|
+
AccessDeniedException,
|
|
926
|
+
CloudFrontKeyValueStore,
|
|
927
|
+
CloudFrontKeyValueStoreClient,
|
|
928
|
+
CloudFrontKeyValueStoreServiceException,
|
|
929
|
+
ConflictException,
|
|
930
|
+
DeleteKeyCommand,
|
|
931
|
+
DescribeKeyValueStoreCommand,
|
|
932
|
+
GetKeyCommand,
|
|
933
|
+
GetKeyResponseFilterSensitiveLog,
|
|
934
|
+
InternalServerException,
|
|
935
|
+
ListKeysCommand,
|
|
936
|
+
ListKeysResponseFilterSensitiveLog,
|
|
937
|
+
ListKeysResponseListItemFilterSensitiveLog,
|
|
938
|
+
PutKeyCommand,
|
|
939
|
+
PutKeyRequestFilterSensitiveLog,
|
|
940
|
+
PutKeyRequestListItemFilterSensitiveLog,
|
|
941
|
+
ResourceNotFoundException,
|
|
942
|
+
ServiceQuotaExceededException,
|
|
943
|
+
UpdateKeysCommand,
|
|
944
|
+
UpdateKeysRequestFilterSensitiveLog,
|
|
945
|
+
ValidationException,
|
|
946
|
+
__Client,
|
|
947
|
+
paginateListKeys
|
|
948
|
+
});
|