@aws-sdk/client-cloudfront-keyvaluestore 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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +660 -791
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,825 +1,694 @@
1
- "use strict";
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 });
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: "cloudfront-keyvaluestore",
24
+ });
10
25
  };
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;
26
+ const commonParams = {
27
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
28
+ Endpoint: { type: "builtInParams", name: "endpoint" },
29
+ Region: { type: "builtInParams", name: "region" },
18
30
  };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_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(index_exports);
49
31
 
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_user_agent = require("@aws-sdk/middleware-user-agent");
55
- var import_config_resolver = require("@smithy/config-resolver");
56
- var import_core = require("@smithy/core");
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
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
62
-
63
- // src/endpoint/EndpointParameters.ts
64
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
65
- return Object.assign(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" }
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
+ };
74
69
  };
75
70
 
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");
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
+ };
83
76
 
84
- // src/auth/httpAuthExtensionConfiguration.ts
85
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
86
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
87
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
88
- let _credentials = runtimeConfig.credentials;
89
- return {
90
- setHttpAuthScheme(httpAuthScheme) {
91
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
92
- if (index === -1) {
93
- _httpAuthSchemes.push(httpAuthScheme);
94
- } else {
95
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
96
- }
97
- },
98
- httpAuthSchemes() {
99
- return _httpAuthSchemes;
100
- },
101
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
102
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
103
- },
104
- httpAuthSchemeProvider() {
105
- return _httpAuthSchemeProvider;
106
- },
107
- setCredentials(credentials) {
108
- _credentials = credentials;
109
- },
110
- credentials() {
111
- return _credentials;
77
+ class CloudFrontKeyValueStoreClient 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.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
100
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
101
+ "aws.auth#sigv4": config.credentials,
102
+ "aws.auth#sigv4a": config.credentials,
103
+ }),
104
+ }));
105
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
106
+ }
107
+ destroy() {
108
+ super.destroy();
112
109
  }
113
- };
114
- }, "getHttpAuthExtensionConfiguration");
115
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
116
- return {
117
- httpAuthSchemes: config.httpAuthSchemes(),
118
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
119
- credentials: config.credentials()
120
- };
121
- }, "resolveHttpAuthRuntimeConfig");
110
+ }
122
111
 
123
- // src/runtimeExtensions.ts
124
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
125
- const extensionConfiguration = Object.assign(
126
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
127
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
128
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
129
- getHttpAuthExtensionConfiguration(runtimeConfig)
130
- );
131
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
132
- return Object.assign(
133
- runtimeConfig,
134
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
135
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
136
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
137
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
138
- );
139
- }, "resolveRuntimeExtensions");
112
+ class CloudFrontKeyValueStoreServiceException extends smithyClient.ServiceException {
113
+ constructor(options) {
114
+ super(options);
115
+ Object.setPrototypeOf(this, CloudFrontKeyValueStoreServiceException.prototype);
116
+ }
117
+ }
118
+
119
+ class AccessDeniedException extends CloudFrontKeyValueStoreServiceException {
120
+ name = "AccessDeniedException";
121
+ $fault = "client";
122
+ Message;
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ this.Message = opts.Message;
131
+ }
132
+ }
133
+ class ConflictException extends CloudFrontKeyValueStoreServiceException {
134
+ name = "ConflictException";
135
+ $fault = "client";
136
+ Message;
137
+ constructor(opts) {
138
+ super({
139
+ name: "ConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ConflictException.prototype);
144
+ this.Message = opts.Message;
145
+ }
146
+ }
147
+ class InternalServerException extends CloudFrontKeyValueStoreServiceException {
148
+ name = "InternalServerException";
149
+ $fault = "server";
150
+ Message;
151
+ constructor(opts) {
152
+ super({
153
+ name: "InternalServerException",
154
+ $fault: "server",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, InternalServerException.prototype);
158
+ this.Message = opts.Message;
159
+ }
160
+ }
161
+ class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException {
162
+ name = "ResourceNotFoundException";
163
+ $fault = "client";
164
+ Message;
165
+ constructor(opts) {
166
+ super({
167
+ name: "ResourceNotFoundException",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
172
+ this.Message = opts.Message;
173
+ }
174
+ }
175
+ class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException {
176
+ name = "ServiceQuotaExceededException";
177
+ $fault = "client";
178
+ Message;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ServiceQuotaExceededException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
186
+ this.Message = opts.Message;
187
+ }
188
+ }
189
+ class ValidationException extends CloudFrontKeyValueStoreServiceException {
190
+ name = "ValidationException";
191
+ $fault = "client";
192
+ Message;
193
+ constructor(opts) {
194
+ super({
195
+ name: "ValidationException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, ValidationException.prototype);
200
+ this.Message = opts.Message;
201
+ }
202
+ }
203
+ const GetKeyResponseFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
206
+ });
207
+ const ListKeysResponseListItemFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
210
+ });
211
+ const ListKeysResponseFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ ...(obj.Items && { Items: obj.Items.map((item) => ListKeysResponseListItemFilterSensitiveLog(item)) }),
214
+ });
215
+ const PutKeyRequestFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
218
+ });
219
+ const PutKeyRequestListItemFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ ...(obj.Value && { Value: smithyClient.SENSITIVE_STRING }),
222
+ });
223
+ const UpdateKeysRequestFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ ...(obj.Puts && { Puts: obj.Puts.map((item) => PutKeyRequestListItemFilterSensitiveLog(item)) }),
226
+ });
140
227
 
141
- // src/CloudFrontKeyValueStoreClient.ts
142
- var CloudFrontKeyValueStoreClient = class extends import_smithy_client.Client {
143
- static {
144
- __name(this, "CloudFrontKeyValueStoreClient");
145
- }
146
- /**
147
- * The resolved configuration of CloudFrontKeyValueStoreClient class. This is resolved and normalized from the {@link CloudFrontKeyValueStoreClientConfig | constructor configuration interface}.
148
- */
149
- config;
150
- constructor(...[configuration]) {
151
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
152
- super(_config_0);
153
- this.initConfig = _config_0;
154
- const _config_1 = resolveClientEndpointParameters(_config_0);
155
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
156
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
157
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
158
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
159
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
160
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
161
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
162
- this.config = _config_8;
163
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
164
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
165
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
166
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
167
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
168
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
169
- this.middlewareStack.use(
170
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
171
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
172
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
173
- "aws.auth#sigv4": config.credentials,
174
- "aws.auth#sigv4a": config.credentials
175
- }), "identityProviderConfigProvider")
176
- })
177
- );
178
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
179
- }
180
- /**
181
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
182
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
183
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
184
- */
185
- destroy() {
186
- super.destroy();
187
- }
228
+ const se_DeleteKeyCommand = async (input, context) => {
229
+ const b = core.requestBuilder(input, context);
230
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
231
+ [_im]: input[_IM],
232
+ });
233
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
234
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
235
+ b.p("Key", () => input.Key, "{Key}", false);
236
+ let body;
237
+ b.m("DELETE").h(headers).b(body);
238
+ return b.build();
188
239
  };
189
-
190
- // src/CloudFrontKeyValueStore.ts
191
-
192
-
193
- // src/commands/DeleteKeyCommand.ts
194
-
195
- var import_middleware_serde = require("@smithy/middleware-serde");
196
-
197
-
198
- // src/protocols/Aws_restJson1.ts
199
- var import_core2 = require("@aws-sdk/core");
200
-
201
-
202
-
203
- // src/models/CloudFrontKeyValueStoreServiceException.ts
204
-
205
- var CloudFrontKeyValueStoreServiceException = class _CloudFrontKeyValueStoreServiceException extends import_smithy_client.ServiceException {
206
- static {
207
- __name(this, "CloudFrontKeyValueStoreServiceException");
208
- }
209
- /**
210
- * @internal
211
- */
212
- constructor(options) {
213
- super(options);
214
- Object.setPrototypeOf(this, _CloudFrontKeyValueStoreServiceException.prototype);
215
- }
240
+ const se_DescribeKeyValueStoreCommand = async (input, context) => {
241
+ const b = core.requestBuilder(input, context);
242
+ const headers = {};
243
+ b.bp("/key-value-stores/{KvsARN}");
244
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
245
+ let body;
246
+ b.m("GET").h(headers).b(body);
247
+ return b.build();
216
248
  };
217
-
218
- // src/models/models_0.ts
219
-
220
- var AccessDeniedException = class _AccessDeniedException extends CloudFrontKeyValueStoreServiceException {
221
- static {
222
- __name(this, "AccessDeniedException");
223
- }
224
- name = "AccessDeniedException";
225
- $fault = "client";
226
- Message;
227
- /**
228
- * @internal
229
- */
230
- constructor(opts) {
231
- super({
232
- name: "AccessDeniedException",
233
- $fault: "client",
234
- ...opts
249
+ const se_GetKeyCommand = async (input, context) => {
250
+ const b = core.requestBuilder(input, context);
251
+ const headers = {};
252
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
253
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
254
+ b.p("Key", () => input.Key, "{Key}", false);
255
+ let body;
256
+ b.m("GET").h(headers).b(body);
257
+ return b.build();
258
+ };
259
+ const se_ListKeysCommand = async (input, context) => {
260
+ const b = core.requestBuilder(input, context);
261
+ const headers = {};
262
+ b.bp("/key-value-stores/{KvsARN}/keys");
263
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
264
+ const query = smithyClient.map({
265
+ [_NT]: [, input[_NT]],
266
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
235
267
  });
236
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
237
- this.Message = opts.Message;
238
- }
268
+ let body;
269
+ b.m("GET").h(headers).q(query).b(body);
270
+ return b.build();
239
271
  };
240
- var ConflictException = class _ConflictException extends CloudFrontKeyValueStoreServiceException {
241
- static {
242
- __name(this, "ConflictException");
243
- }
244
- name = "ConflictException";
245
- $fault = "client";
246
- Message;
247
- /**
248
- * @internal
249
- */
250
- constructor(opts) {
251
- super({
252
- name: "ConflictException",
253
- $fault: "client",
254
- ...opts
272
+ const se_PutKeyCommand = async (input, context) => {
273
+ const b = core.requestBuilder(input, context);
274
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
275
+ "content-type": "application/json",
276
+ [_im]: input[_IM],
255
277
  });
256
- Object.setPrototypeOf(this, _ConflictException.prototype);
257
- this.Message = opts.Message;
258
- }
278
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
279
+ b.p("Key", () => input.Key, "{Key}", false);
280
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
281
+ let body;
282
+ body = JSON.stringify(smithyClient.take(input, {
283
+ Value: [],
284
+ }));
285
+ b.m("PUT").h(headers).b(body);
286
+ return b.build();
259
287
  };
260
- var InternalServerException = class _InternalServerException extends CloudFrontKeyValueStoreServiceException {
261
- static {
262
- __name(this, "InternalServerException");
263
- }
264
- name = "InternalServerException";
265
- $fault = "server";
266
- Message;
267
- /**
268
- * @internal
269
- */
270
- constructor(opts) {
271
- super({
272
- name: "InternalServerException",
273
- $fault: "server",
274
- ...opts
288
+ const se_UpdateKeysCommand = async (input, context) => {
289
+ const b = core.requestBuilder(input, context);
290
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
291
+ "content-type": "application/json",
292
+ [_im]: input[_IM],
275
293
  });
276
- Object.setPrototypeOf(this, _InternalServerException.prototype);
277
- this.Message = opts.Message;
278
- }
294
+ b.bp("/key-value-stores/{KvsARN}/keys");
295
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
296
+ let body;
297
+ body = JSON.stringify(smithyClient.take(input, {
298
+ Deletes: (_) => smithyClient._json(_),
299
+ Puts: (_) => smithyClient._json(_),
300
+ }));
301
+ b.m("POST").h(headers).b(body);
302
+ return b.build();
279
303
  };
280
- var ResourceNotFoundException = class _ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException {
281
- static {
282
- __name(this, "ResourceNotFoundException");
283
- }
284
- name = "ResourceNotFoundException";
285
- $fault = "client";
286
- Message;
287
- /**
288
- * @internal
289
- */
290
- constructor(opts) {
291
- super({
292
- name: "ResourceNotFoundException",
293
- $fault: "client",
294
- ...opts
304
+ const de_DeleteKeyCommand = async (output, context) => {
305
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
306
+ return de_CommandError(output, context);
307
+ }
308
+ const contents = smithyClient.map({
309
+ $metadata: deserializeMetadata(output),
310
+ [_ET]: [, output.headers[_e]],
311
+ });
312
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
313
+ const doc = smithyClient.take(data, {
314
+ ItemCount: smithyClient.expectInt32,
315
+ TotalSizeInBytes: smithyClient.expectLong,
295
316
  });
296
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
297
- this.Message = opts.Message;
298
- }
317
+ Object.assign(contents, doc);
318
+ return contents;
299
319
  };
300
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException {
301
- static {
302
- __name(this, "ServiceQuotaExceededException");
303
- }
304
- name = "ServiceQuotaExceededException";
305
- $fault = "client";
306
- Message;
307
- /**
308
- * @internal
309
- */
310
- constructor(opts) {
311
- super({
312
- name: "ServiceQuotaExceededException",
313
- $fault: "client",
314
- ...opts
320
+ const de_DescribeKeyValueStoreCommand = async (output, context) => {
321
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
322
+ return de_CommandError(output, context);
323
+ }
324
+ const contents = smithyClient.map({
325
+ $metadata: deserializeMetadata(output),
326
+ [_ET]: [, output.headers[_e]],
315
327
  });
316
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
317
- this.Message = opts.Message;
318
- }
328
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
329
+ const doc = smithyClient.take(data, {
330
+ Created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
331
+ FailureReason: smithyClient.expectString,
332
+ ItemCount: smithyClient.expectInt32,
333
+ KvsARN: smithyClient.expectString,
334
+ LastModified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
335
+ Status: smithyClient.expectString,
336
+ TotalSizeInBytes: smithyClient.expectLong,
337
+ });
338
+ Object.assign(contents, doc);
339
+ return contents;
319
340
  };
320
- var ValidationException = class _ValidationException extends CloudFrontKeyValueStoreServiceException {
321
- static {
322
- __name(this, "ValidationException");
323
- }
324
- name = "ValidationException";
325
- $fault = "client";
326
- Message;
327
- /**
328
- * @internal
329
- */
330
- constructor(opts) {
331
- super({
332
- name: "ValidationException",
333
- $fault: "client",
334
- ...opts
341
+ const de_GetKeyCommand = async (output, context) => {
342
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
343
+ return de_CommandError(output, context);
344
+ }
345
+ const contents = smithyClient.map({
346
+ $metadata: deserializeMetadata(output),
347
+ });
348
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
349
+ const doc = smithyClient.take(data, {
350
+ ItemCount: smithyClient.expectInt32,
351
+ Key: smithyClient.expectString,
352
+ TotalSizeInBytes: smithyClient.expectLong,
353
+ Value: smithyClient.expectString,
335
354
  });
336
- Object.setPrototypeOf(this, _ValidationException.prototype);
337
- this.Message = opts.Message;
338
- }
355
+ Object.assign(contents, doc);
356
+ return contents;
339
357
  };
340
- var GetKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
341
- ...obj,
342
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
343
- }), "GetKeyResponseFilterSensitiveLog");
344
- var ListKeysResponseListItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
345
- ...obj,
346
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
347
- }), "ListKeysResponseListItemFilterSensitiveLog");
348
- var ListKeysResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
349
- ...obj,
350
- ...obj.Items && { Items: obj.Items.map((item) => ListKeysResponseListItemFilterSensitiveLog(item)) }
351
- }), "ListKeysResponseFilterSensitiveLog");
352
- var PutKeyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
353
- ...obj,
354
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
355
- }), "PutKeyRequestFilterSensitiveLog");
356
- var PutKeyRequestListItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
357
- ...obj,
358
- ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
359
- }), "PutKeyRequestListItemFilterSensitiveLog");
360
- var UpdateKeysRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
361
- ...obj,
362
- ...obj.Puts && { Puts: obj.Puts.map((item) => PutKeyRequestListItemFilterSensitiveLog(item)) }
363
- }), "UpdateKeysRequestFilterSensitiveLog");
364
-
365
- // src/protocols/Aws_restJson1.ts
366
- var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
367
- const b = (0, import_core.requestBuilder)(input, context);
368
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
369
- [_im]: input[_IM]
370
- });
371
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
372
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
373
- b.p("Key", () => input.Key, "{Key}", false);
374
- let body;
375
- b.m("DELETE").h(headers).b(body);
376
- return b.build();
377
- }, "se_DeleteKeyCommand");
378
- var se_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
379
- const b = (0, import_core.requestBuilder)(input, context);
380
- const headers = {};
381
- b.bp("/key-value-stores/{KvsARN}");
382
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
383
- let body;
384
- b.m("GET").h(headers).b(body);
385
- return b.build();
386
- }, "se_DescribeKeyValueStoreCommand");
387
- var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
388
- const b = (0, import_core.requestBuilder)(input, context);
389
- const headers = {};
390
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
391
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
392
- b.p("Key", () => input.Key, "{Key}", false);
393
- let body;
394
- b.m("GET").h(headers).b(body);
395
- return b.build();
396
- }, "se_GetKeyCommand");
397
- var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
398
- const b = (0, import_core.requestBuilder)(input, context);
399
- const headers = {};
400
- b.bp("/key-value-stores/{KvsARN}/keys");
401
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
402
- const query = (0, import_smithy_client.map)({
403
- [_NT]: [, input[_NT]],
404
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
405
- });
406
- let body;
407
- b.m("GET").h(headers).q(query).b(body);
408
- return b.build();
409
- }, "se_ListKeysCommand");
410
- var se_PutKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
411
- const b = (0, import_core.requestBuilder)(input, context);
412
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
413
- "content-type": "application/json",
414
- [_im]: input[_IM]
415
- });
416
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
417
- b.p("Key", () => input.Key, "{Key}", false);
418
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
419
- let body;
420
- body = JSON.stringify(
421
- (0, import_smithy_client.take)(input, {
422
- Value: []
423
- })
424
- );
425
- b.m("PUT").h(headers).b(body);
426
- return b.build();
427
- }, "se_PutKeyCommand");
428
- var se_UpdateKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
429
- const b = (0, import_core.requestBuilder)(input, context);
430
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
431
- "content-type": "application/json",
432
- [_im]: input[_IM]
433
- });
434
- b.bp("/key-value-stores/{KvsARN}/keys");
435
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
436
- let body;
437
- body = JSON.stringify(
438
- (0, import_smithy_client.take)(input, {
439
- Deletes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Deletes"),
440
- Puts: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Puts")
441
- })
442
- );
443
- b.m("POST").h(headers).b(body);
444
- return b.build();
445
- }, "se_UpdateKeysCommand");
446
- var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
447
- if (output.statusCode !== 200 && output.statusCode >= 300) {
448
- return de_CommandError(output, context);
449
- }
450
- const contents = (0, import_smithy_client.map)({
451
- $metadata: deserializeMetadata(output),
452
- [_ET]: [, output.headers[_e]]
453
- });
454
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
455
- const doc = (0, import_smithy_client.take)(data, {
456
- ItemCount: import_smithy_client.expectInt32,
457
- TotalSizeInBytes: import_smithy_client.expectLong
458
- });
459
- Object.assign(contents, doc);
460
- return contents;
461
- }, "de_DeleteKeyCommand");
462
- var de_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
463
- if (output.statusCode !== 200 && output.statusCode >= 300) {
464
- return de_CommandError(output, context);
465
- }
466
- const contents = (0, import_smithy_client.map)({
467
- $metadata: deserializeMetadata(output),
468
- [_ET]: [, output.headers[_e]]
469
- });
470
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
471
- const doc = (0, import_smithy_client.take)(data, {
472
- Created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Created"),
473
- FailureReason: import_smithy_client.expectString,
474
- ItemCount: import_smithy_client.expectInt32,
475
- KvsARN: import_smithy_client.expectString,
476
- LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"),
477
- Status: import_smithy_client.expectString,
478
- TotalSizeInBytes: import_smithy_client.expectLong
479
- });
480
- Object.assign(contents, doc);
481
- return contents;
482
- }, "de_DescribeKeyValueStoreCommand");
483
- var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
484
- if (output.statusCode !== 200 && output.statusCode >= 300) {
485
- return de_CommandError(output, context);
486
- }
487
- const contents = (0, import_smithy_client.map)({
488
- $metadata: deserializeMetadata(output)
489
- });
490
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
491
- const doc = (0, import_smithy_client.take)(data, {
492
- ItemCount: import_smithy_client.expectInt32,
493
- Key: import_smithy_client.expectString,
494
- TotalSizeInBytes: import_smithy_client.expectLong,
495
- Value: import_smithy_client.expectString
496
- });
497
- Object.assign(contents, doc);
498
- return contents;
499
- }, "de_GetKeyCommand");
500
- var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
501
- if (output.statusCode !== 200 && output.statusCode >= 300) {
502
- return de_CommandError(output, context);
503
- }
504
- const contents = (0, import_smithy_client.map)({
505
- $metadata: deserializeMetadata(output)
506
- });
507
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
508
- const doc = (0, import_smithy_client.take)(data, {
509
- Items: import_smithy_client._json,
510
- NextToken: import_smithy_client.expectString
511
- });
512
- Object.assign(contents, doc);
513
- return contents;
514
- }, "de_ListKeysCommand");
515
- var de_PutKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
516
- if (output.statusCode !== 200 && output.statusCode >= 300) {
517
- return de_CommandError(output, context);
518
- }
519
- const contents = (0, import_smithy_client.map)({
520
- $metadata: deserializeMetadata(output),
521
- [_ET]: [, output.headers[_e]]
522
- });
523
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
524
- const doc = (0, import_smithy_client.take)(data, {
525
- ItemCount: import_smithy_client.expectInt32,
526
- TotalSizeInBytes: import_smithy_client.expectLong
527
- });
528
- Object.assign(contents, doc);
529
- return contents;
530
- }, "de_PutKeyCommand");
531
- var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
532
- if (output.statusCode !== 200 && output.statusCode >= 300) {
533
- return de_CommandError(output, context);
534
- }
535
- const contents = (0, import_smithy_client.map)({
536
- $metadata: deserializeMetadata(output),
537
- [_ET]: [, output.headers[_e]]
538
- });
539
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
540
- const doc = (0, import_smithy_client.take)(data, {
541
- ItemCount: import_smithy_client.expectInt32,
542
- TotalSizeInBytes: import_smithy_client.expectLong
543
- });
544
- Object.assign(contents, doc);
545
- return contents;
546
- }, "de_UpdateKeysCommand");
547
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
548
- const parsedOutput = {
549
- ...output,
550
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
551
- };
552
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
553
- switch (errorCode) {
554
- case "AccessDeniedException":
555
- case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
556
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
557
- case "ConflictException":
558
- case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
559
- throw await de_ConflictExceptionRes(parsedOutput, context);
560
- case "InternalServerException":
561
- case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
562
- throw await de_InternalServerExceptionRes(parsedOutput, context);
563
- case "ResourceNotFoundException":
564
- case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
565
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
566
- case "ServiceQuotaExceededException":
567
- case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
568
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
569
- case "ValidationException":
570
- case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
571
- throw await de_ValidationExceptionRes(parsedOutput, context);
572
- default:
573
- const parsedBody = parsedOutput.body;
574
- return throwDefaultError({
575
- output,
576
- parsedBody,
577
- errorCode
578
- });
579
- }
580
- }, "de_CommandError");
581
- var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudFrontKeyValueStoreServiceException);
582
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
583
- const contents = (0, import_smithy_client.map)({});
584
- const data = parsedOutput.body;
585
- const doc = (0, import_smithy_client.take)(data, {
586
- Message: import_smithy_client.expectString
587
- });
588
- Object.assign(contents, doc);
589
- const exception = new AccessDeniedException({
590
- $metadata: deserializeMetadata(parsedOutput),
591
- ...contents
592
- });
593
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
594
- }, "de_AccessDeniedExceptionRes");
595
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
596
- const contents = (0, import_smithy_client.map)({});
597
- const data = parsedOutput.body;
598
- const doc = (0, import_smithy_client.take)(data, {
599
- Message: import_smithy_client.expectString
600
- });
601
- Object.assign(contents, doc);
602
- const exception = new ConflictException({
603
- $metadata: deserializeMetadata(parsedOutput),
604
- ...contents
605
- });
606
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
607
- }, "de_ConflictExceptionRes");
608
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
609
- const contents = (0, import_smithy_client.map)({});
610
- const data = parsedOutput.body;
611
- const doc = (0, import_smithy_client.take)(data, {
612
- Message: import_smithy_client.expectString
613
- });
614
- Object.assign(contents, doc);
615
- const exception = new InternalServerException({
616
- $metadata: deserializeMetadata(parsedOutput),
617
- ...contents
618
- });
619
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
620
- }, "de_InternalServerExceptionRes");
621
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
622
- const contents = (0, import_smithy_client.map)({});
623
- const data = parsedOutput.body;
624
- const doc = (0, import_smithy_client.take)(data, {
625
- Message: import_smithy_client.expectString
626
- });
627
- Object.assign(contents, doc);
628
- const exception = new ResourceNotFoundException({
629
- $metadata: deserializeMetadata(parsedOutput),
630
- ...contents
631
- });
632
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
633
- }, "de_ResourceNotFoundExceptionRes");
634
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
635
- const contents = (0, import_smithy_client.map)({});
636
- const data = parsedOutput.body;
637
- const doc = (0, import_smithy_client.take)(data, {
638
- Message: import_smithy_client.expectString
639
- });
640
- Object.assign(contents, doc);
641
- const exception = new ServiceQuotaExceededException({
642
- $metadata: deserializeMetadata(parsedOutput),
643
- ...contents
644
- });
645
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
646
- }, "de_ServiceQuotaExceededExceptionRes");
647
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
648
- const contents = (0, import_smithy_client.map)({});
649
- const data = parsedOutput.body;
650
- const doc = (0, import_smithy_client.take)(data, {
651
- Message: import_smithy_client.expectString
652
- });
653
- Object.assign(contents, doc);
654
- const exception = new ValidationException({
655
- $metadata: deserializeMetadata(parsedOutput),
656
- ...contents
657
- });
658
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
659
- }, "de_ValidationExceptionRes");
660
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
661
- httpStatusCode: output.statusCode,
662
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
663
- extendedRequestId: output.headers["x-amz-id-2"],
664
- cfId: output.headers["x-amz-cf-id"]
665
- }), "deserializeMetadata");
666
- var _ET = "ETag";
667
- var _IM = "IfMatch";
668
- var _MR = "MaxResults";
669
- var _NT = "NextToken";
670
- var _e = "etag";
671
- var _im = "if-match";
672
-
673
- // src/commands/DeleteKeyCommand.ts
674
- var DeleteKeyCommand = class extends import_smithy_client.Command.classBuilder().ep({
675
- ...commonParams,
676
- KvsARN: { type: "contextParams", name: "KvsARN" }
677
- }).m(function(Command, cs, config, o) {
678
- return [
679
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
680
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
681
- ];
682
- }).s("CloudFrontKeyValueStore", "DeleteKey", {}).n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand").f(void 0, void 0).ser(se_DeleteKeyCommand).de(de_DeleteKeyCommand).build() {
683
- static {
684
- __name(this, "DeleteKeyCommand");
685
- }
358
+ const de_ListKeysCommand = async (output, context) => {
359
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
360
+ return de_CommandError(output, context);
361
+ }
362
+ const contents = smithyClient.map({
363
+ $metadata: deserializeMetadata(output),
364
+ });
365
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
366
+ const doc = smithyClient.take(data, {
367
+ Items: smithyClient._json,
368
+ NextToken: smithyClient.expectString,
369
+ });
370
+ Object.assign(contents, doc);
371
+ return contents;
686
372
  };
687
-
688
- // src/commands/DescribeKeyValueStoreCommand.ts
689
-
690
-
691
-
692
- var DescribeKeyValueStoreCommand = class extends import_smithy_client.Command.classBuilder().ep({
693
- ...commonParams,
694
- KvsARN: { type: "contextParams", name: "KvsARN" }
695
- }).m(function(Command, cs, config, o) {
696
- return [
697
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
698
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
699
- ];
700
- }).s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {}).n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand").f(void 0, void 0).ser(se_DescribeKeyValueStoreCommand).de(de_DescribeKeyValueStoreCommand).build() {
701
- static {
702
- __name(this, "DescribeKeyValueStoreCommand");
703
- }
373
+ const de_PutKeyCommand = async (output, context) => {
374
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
375
+ return de_CommandError(output, context);
376
+ }
377
+ const contents = smithyClient.map({
378
+ $metadata: deserializeMetadata(output),
379
+ [_ET]: [, output.headers[_e]],
380
+ });
381
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
382
+ const doc = smithyClient.take(data, {
383
+ ItemCount: smithyClient.expectInt32,
384
+ TotalSizeInBytes: smithyClient.expectLong,
385
+ });
386
+ Object.assign(contents, doc);
387
+ return contents;
704
388
  };
705
-
706
- // src/commands/GetKeyCommand.ts
707
-
708
-
709
-
710
- var GetKeyCommand = class extends import_smithy_client.Command.classBuilder().ep({
711
- ...commonParams,
712
- KvsARN: { type: "contextParams", name: "KvsARN" }
713
- }).m(function(Command, cs, config, o) {
714
- return [
715
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
716
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
717
- ];
718
- }).s("CloudFrontKeyValueStore", "GetKey", {}).n("CloudFrontKeyValueStoreClient", "GetKeyCommand").f(void 0, GetKeyResponseFilterSensitiveLog).ser(se_GetKeyCommand).de(de_GetKeyCommand).build() {
719
- static {
720
- __name(this, "GetKeyCommand");
721
- }
389
+ const de_UpdateKeysCommand = async (output, context) => {
390
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
391
+ return de_CommandError(output, context);
392
+ }
393
+ const contents = smithyClient.map({
394
+ $metadata: deserializeMetadata(output),
395
+ [_ET]: [, output.headers[_e]],
396
+ });
397
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
398
+ const doc = smithyClient.take(data, {
399
+ ItemCount: smithyClient.expectInt32,
400
+ TotalSizeInBytes: smithyClient.expectLong,
401
+ });
402
+ Object.assign(contents, doc);
403
+ return contents;
722
404
  };
723
-
724
- // src/commands/ListKeysCommand.ts
725
-
726
-
727
-
728
- var ListKeysCommand = class extends import_smithy_client.Command.classBuilder().ep({
729
- ...commonParams,
730
- KvsARN: { type: "contextParams", name: "KvsARN" }
731
- }).m(function(Command, cs, config, o) {
732
- return [
733
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
734
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
735
- ];
736
- }).s("CloudFrontKeyValueStore", "ListKeys", {}).n("CloudFrontKeyValueStoreClient", "ListKeysCommand").f(void 0, ListKeysResponseFilterSensitiveLog).ser(se_ListKeysCommand).de(de_ListKeysCommand).build() {
737
- static {
738
- __name(this, "ListKeysCommand");
739
- }
405
+ const de_CommandError = async (output, context) => {
406
+ const parsedOutput = {
407
+ ...output,
408
+ body: await core$1.parseJsonErrorBody(output.body, context),
409
+ };
410
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
411
+ switch (errorCode) {
412
+ case "AccessDeniedException":
413
+ case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
414
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
415
+ case "ConflictException":
416
+ case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
417
+ throw await de_ConflictExceptionRes(parsedOutput);
418
+ case "InternalServerException":
419
+ case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
420
+ throw await de_InternalServerExceptionRes(parsedOutput);
421
+ case "ResourceNotFoundException":
422
+ case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
423
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
424
+ case "ServiceQuotaExceededException":
425
+ case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
426
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
427
+ case "ValidationException":
428
+ case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
429
+ throw await de_ValidationExceptionRes(parsedOutput);
430
+ default:
431
+ const parsedBody = parsedOutput.body;
432
+ return throwDefaultError({
433
+ output,
434
+ parsedBody,
435
+ errorCode,
436
+ });
437
+ }
740
438
  };
741
-
742
- // src/commands/PutKeyCommand.ts
743
-
744
-
745
-
746
- var PutKeyCommand = class extends import_smithy_client.Command.classBuilder().ep({
747
- ...commonParams,
748
- KvsARN: { type: "contextParams", name: "KvsARN" }
749
- }).m(function(Command, cs, config, o) {
750
- return [
751
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
752
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
753
- ];
754
- }).s("CloudFrontKeyValueStore", "PutKey", {}).n("CloudFrontKeyValueStoreClient", "PutKeyCommand").f(PutKeyRequestFilterSensitiveLog, void 0).ser(se_PutKeyCommand).de(de_PutKeyCommand).build() {
755
- static {
756
- __name(this, "PutKeyCommand");
757
- }
439
+ const throwDefaultError = smithyClient.withBaseException(CloudFrontKeyValueStoreServiceException);
440
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
441
+ const contents = smithyClient.map({});
442
+ const data = parsedOutput.body;
443
+ const doc = smithyClient.take(data, {
444
+ Message: smithyClient.expectString,
445
+ });
446
+ Object.assign(contents, doc);
447
+ const exception = new AccessDeniedException({
448
+ $metadata: deserializeMetadata(parsedOutput),
449
+ ...contents,
450
+ });
451
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
758
452
  };
759
-
760
- // src/commands/UpdateKeysCommand.ts
761
-
762
-
763
-
764
- var UpdateKeysCommand = class extends import_smithy_client.Command.classBuilder().ep({
765
- ...commonParams,
766
- KvsARN: { type: "contextParams", name: "KvsARN" }
767
- }).m(function(Command, cs, config, o) {
768
- return [
769
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
770
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
771
- ];
772
- }).s("CloudFrontKeyValueStore", "UpdateKeys", {}).n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand").f(UpdateKeysRequestFilterSensitiveLog, void 0).ser(se_UpdateKeysCommand).de(de_UpdateKeysCommand).build() {
773
- static {
774
- __name(this, "UpdateKeysCommand");
775
- }
453
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
454
+ const contents = smithyClient.map({});
455
+ const data = parsedOutput.body;
456
+ const doc = smithyClient.take(data, {
457
+ Message: smithyClient.expectString,
458
+ });
459
+ Object.assign(contents, doc);
460
+ const exception = new ConflictException({
461
+ $metadata: deserializeMetadata(parsedOutput),
462
+ ...contents,
463
+ });
464
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
776
465
  };
777
-
778
- // src/CloudFrontKeyValueStore.ts
779
- var commands = {
780
- DeleteKeyCommand,
781
- DescribeKeyValueStoreCommand,
782
- GetKeyCommand,
783
- ListKeysCommand,
784
- PutKeyCommand,
785
- UpdateKeysCommand
466
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
467
+ const contents = smithyClient.map({});
468
+ const data = parsedOutput.body;
469
+ const doc = smithyClient.take(data, {
470
+ Message: smithyClient.expectString,
471
+ });
472
+ Object.assign(contents, doc);
473
+ const exception = new InternalServerException({
474
+ $metadata: deserializeMetadata(parsedOutput),
475
+ ...contents,
476
+ });
477
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
786
478
  };
787
- var CloudFrontKeyValueStore = class extends CloudFrontKeyValueStoreClient {
788
- static {
789
- __name(this, "CloudFrontKeyValueStore");
790
- }
479
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
480
+ const contents = smithyClient.map({});
481
+ const data = parsedOutput.body;
482
+ const doc = smithyClient.take(data, {
483
+ Message: smithyClient.expectString,
484
+ });
485
+ Object.assign(contents, doc);
486
+ const exception = new ResourceNotFoundException({
487
+ $metadata: deserializeMetadata(parsedOutput),
488
+ ...contents,
489
+ });
490
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
791
491
  };
792
- (0, import_smithy_client.createAggregatedClient)(commands, CloudFrontKeyValueStore);
793
-
794
- // src/pagination/ListKeysPaginator.ts
492
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
493
+ const contents = smithyClient.map({});
494
+ const data = parsedOutput.body;
495
+ const doc = smithyClient.take(data, {
496
+ Message: smithyClient.expectString,
497
+ });
498
+ Object.assign(contents, doc);
499
+ const exception = new ServiceQuotaExceededException({
500
+ $metadata: deserializeMetadata(parsedOutput),
501
+ ...contents,
502
+ });
503
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
504
+ };
505
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
506
+ const contents = smithyClient.map({});
507
+ const data = parsedOutput.body;
508
+ const doc = smithyClient.take(data, {
509
+ Message: smithyClient.expectString,
510
+ });
511
+ Object.assign(contents, doc);
512
+ const exception = new ValidationException({
513
+ $metadata: deserializeMetadata(parsedOutput),
514
+ ...contents,
515
+ });
516
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
517
+ };
518
+ const deserializeMetadata = (output) => ({
519
+ httpStatusCode: output.statusCode,
520
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
521
+ extendedRequestId: output.headers["x-amz-id-2"],
522
+ cfId: output.headers["x-amz-cf-id"],
523
+ });
524
+ const _ET = "ETag";
525
+ const _IM = "IfMatch";
526
+ const _MR = "MaxResults";
527
+ const _NT = "NextToken";
528
+ const _e = "etag";
529
+ const _im = "if-match";
530
+
531
+ class DeleteKeyCommand extends smithyClient.Command
532
+ .classBuilder()
533
+ .ep({
534
+ ...commonParams,
535
+ KvsARN: { type: "contextParams", name: "KvsARN" },
536
+ })
537
+ .m(function (Command, cs, config, o) {
538
+ return [
539
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
540
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
541
+ ];
542
+ })
543
+ .s("CloudFrontKeyValueStore", "DeleteKey", {})
544
+ .n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand")
545
+ .f(void 0, void 0)
546
+ .ser(se_DeleteKeyCommand)
547
+ .de(de_DeleteKeyCommand)
548
+ .build() {
549
+ }
550
+
551
+ class DescribeKeyValueStoreCommand extends smithyClient.Command
552
+ .classBuilder()
553
+ .ep({
554
+ ...commonParams,
555
+ KvsARN: { type: "contextParams", name: "KvsARN" },
556
+ })
557
+ .m(function (Command, cs, config, o) {
558
+ return [
559
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
560
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
561
+ ];
562
+ })
563
+ .s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {})
564
+ .n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand")
565
+ .f(void 0, void 0)
566
+ .ser(se_DescribeKeyValueStoreCommand)
567
+ .de(de_DescribeKeyValueStoreCommand)
568
+ .build() {
569
+ }
570
+
571
+ class GetKeyCommand extends smithyClient.Command
572
+ .classBuilder()
573
+ .ep({
574
+ ...commonParams,
575
+ KvsARN: { type: "contextParams", name: "KvsARN" },
576
+ })
577
+ .m(function (Command, cs, config, o) {
578
+ return [
579
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
580
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
581
+ ];
582
+ })
583
+ .s("CloudFrontKeyValueStore", "GetKey", {})
584
+ .n("CloudFrontKeyValueStoreClient", "GetKeyCommand")
585
+ .f(void 0, GetKeyResponseFilterSensitiveLog)
586
+ .ser(se_GetKeyCommand)
587
+ .de(de_GetKeyCommand)
588
+ .build() {
589
+ }
590
+
591
+ class ListKeysCommand extends smithyClient.Command
592
+ .classBuilder()
593
+ .ep({
594
+ ...commonParams,
595
+ KvsARN: { type: "contextParams", name: "KvsARN" },
596
+ })
597
+ .m(function (Command, cs, config, o) {
598
+ return [
599
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
600
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
601
+ ];
602
+ })
603
+ .s("CloudFrontKeyValueStore", "ListKeys", {})
604
+ .n("CloudFrontKeyValueStoreClient", "ListKeysCommand")
605
+ .f(void 0, ListKeysResponseFilterSensitiveLog)
606
+ .ser(se_ListKeysCommand)
607
+ .de(de_ListKeysCommand)
608
+ .build() {
609
+ }
610
+
611
+ class PutKeyCommand extends smithyClient.Command
612
+ .classBuilder()
613
+ .ep({
614
+ ...commonParams,
615
+ KvsARN: { type: "contextParams", name: "KvsARN" },
616
+ })
617
+ .m(function (Command, cs, config, o) {
618
+ return [
619
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
620
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
621
+ ];
622
+ })
623
+ .s("CloudFrontKeyValueStore", "PutKey", {})
624
+ .n("CloudFrontKeyValueStoreClient", "PutKeyCommand")
625
+ .f(PutKeyRequestFilterSensitiveLog, void 0)
626
+ .ser(se_PutKeyCommand)
627
+ .de(de_PutKeyCommand)
628
+ .build() {
629
+ }
630
+
631
+ class UpdateKeysCommand extends smithyClient.Command
632
+ .classBuilder()
633
+ .ep({
634
+ ...commonParams,
635
+ KvsARN: { type: "contextParams", name: "KvsARN" },
636
+ })
637
+ .m(function (Command, cs, config, o) {
638
+ return [
639
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
640
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
641
+ ];
642
+ })
643
+ .s("CloudFrontKeyValueStore", "UpdateKeys", {})
644
+ .n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand")
645
+ .f(UpdateKeysRequestFilterSensitiveLog, void 0)
646
+ .ser(se_UpdateKeysCommand)
647
+ .de(de_UpdateKeysCommand)
648
+ .build() {
649
+ }
650
+
651
+ const commands = {
652
+ DeleteKeyCommand,
653
+ DescribeKeyValueStoreCommand,
654
+ GetKeyCommand,
655
+ ListKeysCommand,
656
+ PutKeyCommand,
657
+ UpdateKeysCommand,
658
+ };
659
+ class CloudFrontKeyValueStore extends CloudFrontKeyValueStoreClient {
660
+ }
661
+ smithyClient.createAggregatedClient(commands, CloudFrontKeyValueStore);
795
662
 
796
- var paginateListKeys = (0, import_core.createPaginator)(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
797
- // Annotate the CommonJS export names for ESM import in node:
663
+ const paginateListKeys = core.createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
798
664
 
799
- 0 && (module.exports = {
800
- CloudFrontKeyValueStoreServiceException,
801
- __Client,
802
- CloudFrontKeyValueStoreClient,
803
- CloudFrontKeyValueStore,
804
- $Command,
805
- DeleteKeyCommand,
806
- DescribeKeyValueStoreCommand,
807
- GetKeyCommand,
808
- ListKeysCommand,
809
- PutKeyCommand,
810
- UpdateKeysCommand,
811
- paginateListKeys,
812
- AccessDeniedException,
813
- ConflictException,
814
- InternalServerException,
815
- ResourceNotFoundException,
816
- ServiceQuotaExceededException,
817
- ValidationException,
818
- GetKeyResponseFilterSensitiveLog,
819
- ListKeysResponseListItemFilterSensitiveLog,
820
- ListKeysResponseFilterSensitiveLog,
821
- PutKeyRequestFilterSensitiveLog,
822
- PutKeyRequestListItemFilterSensitiveLog,
823
- UpdateKeysRequestFilterSensitiveLog
665
+ Object.defineProperty(exports, "$Command", {
666
+ enumerable: true,
667
+ get: function () { return smithyClient.Command; }
824
668
  });
825
-
669
+ Object.defineProperty(exports, "__Client", {
670
+ enumerable: true,
671
+ get: function () { return smithyClient.Client; }
672
+ });
673
+ exports.AccessDeniedException = AccessDeniedException;
674
+ exports.CloudFrontKeyValueStore = CloudFrontKeyValueStore;
675
+ exports.CloudFrontKeyValueStoreClient = CloudFrontKeyValueStoreClient;
676
+ exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
677
+ exports.ConflictException = ConflictException;
678
+ exports.DeleteKeyCommand = DeleteKeyCommand;
679
+ exports.DescribeKeyValueStoreCommand = DescribeKeyValueStoreCommand;
680
+ exports.GetKeyCommand = GetKeyCommand;
681
+ exports.GetKeyResponseFilterSensitiveLog = GetKeyResponseFilterSensitiveLog;
682
+ exports.InternalServerException = InternalServerException;
683
+ exports.ListKeysCommand = ListKeysCommand;
684
+ exports.ListKeysResponseFilterSensitiveLog = ListKeysResponseFilterSensitiveLog;
685
+ exports.ListKeysResponseListItemFilterSensitiveLog = ListKeysResponseListItemFilterSensitiveLog;
686
+ exports.PutKeyCommand = PutKeyCommand;
687
+ exports.PutKeyRequestFilterSensitiveLog = PutKeyRequestFilterSensitiveLog;
688
+ exports.PutKeyRequestListItemFilterSensitiveLog = PutKeyRequestListItemFilterSensitiveLog;
689
+ exports.ResourceNotFoundException = ResourceNotFoundException;
690
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
691
+ exports.UpdateKeysCommand = UpdateKeysCommand;
692
+ exports.UpdateKeysRequestFilterSensitiveLog = UpdateKeysRequestFilterSensitiveLog;
693
+ exports.ValidationException = ValidationException;
694
+ exports.paginateListKeys = paginateListKeys;