@aws-sdk/client-cloudfront-keyvaluestore 3.928.0 → 3.929.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 (30) hide show
  1. package/dist-cjs/index.js +398 -393
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/CloudFrontKeyValueStoreClient.js +2 -0
  4. package/dist-es/commands/DeleteKeyCommand.js +3 -9
  5. package/dist-es/commands/DescribeKeyValueStoreCommand.js +3 -9
  6. package/dist-es/commands/GetKeyCommand.js +3 -10
  7. package/dist-es/commands/ListKeysCommand.js +3 -10
  8. package/dist-es/commands/PutKeyCommand.js +3 -10
  9. package/dist-es/commands/UpdateKeysCommand.js +3 -10
  10. package/dist-es/models/models_0.js +0 -25
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +370 -0
  13. package/dist-types/CloudFrontKeyValueStoreClient.d.ts +10 -1
  14. package/dist-types/models/models_0.d.ts +0 -24
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +33 -0
  20. package/dist-types/ts3.4/CloudFrontKeyValueStoreClient.d.ts +4 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +0 -18
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +39 -0
  27. package/package.json +2 -2
  28. package/dist-es/protocols/Aws_restJson1.js +0 -308
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -77
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
32
32
  profile?: string;
33
33
  logger: import("@smithy/types").Logger;
34
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
38
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -15,6 +15,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
15
15
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
16
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
17
  logger: import("@smithy/types").Logger;
18
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
19
  serviceId: string;
19
20
  signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
20
21
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,33 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var Value: StaticSimpleSchema;
3
+ export declare var AccessDeniedException: StaticErrorSchema;
4
+ export declare var ConflictException: StaticErrorSchema;
5
+ export declare var DeleteKeyRequest: StaticStructureSchema;
6
+ export declare var DeleteKeyRequestListItem: StaticStructureSchema;
7
+ export declare var DeleteKeyResponse: StaticStructureSchema;
8
+ export declare var DescribeKeyValueStoreRequest: StaticStructureSchema;
9
+ export declare var DescribeKeyValueStoreResponse: StaticStructureSchema;
10
+ export declare var GetKeyRequest: StaticStructureSchema;
11
+ export declare var GetKeyResponse: StaticStructureSchema;
12
+ export declare var InternalServerException: StaticErrorSchema;
13
+ export declare var ListKeysRequest: StaticStructureSchema;
14
+ export declare var ListKeysResponse: StaticStructureSchema;
15
+ export declare var ListKeysResponseListItem: StaticStructureSchema;
16
+ export declare var PutKeyRequest: StaticStructureSchema;
17
+ export declare var PutKeyRequestListItem: StaticStructureSchema;
18
+ export declare var PutKeyResponse: StaticStructureSchema;
19
+ export declare var ResourceNotFoundException: StaticErrorSchema;
20
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
21
+ export declare var UpdateKeysRequest: StaticStructureSchema;
22
+ export declare var UpdateKeysResponse: StaticStructureSchema;
23
+ export declare var ValidationException: StaticErrorSchema;
24
+ export declare var CloudFrontKeyValueStoreServiceException: StaticErrorSchema;
25
+ export declare var DeleteKeyRequestsList: StaticListSchema;
26
+ export declare var ListKeysResponseList: StaticListSchema;
27
+ export declare var PutKeyRequestsList: StaticListSchema;
28
+ export declare var DeleteKey: StaticOperationSchema;
29
+ export declare var DescribeKeyValueStore: StaticOperationSchema;
30
+ export declare var GetKey: StaticOperationSchema;
31
+ export declare var ListKeys: StaticOperationSchema;
32
+ export declare var PutKey: StaticOperationSchema;
33
+ export declare var UpdateKeys: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -114,6 +117,7 @@ export interface ClientDefaults
114
117
  retryMode?: string | __Provider<string>;
115
118
  logger?: __Logger;
116
119
  extensions?: RuntimeExtension[];
120
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
117
121
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
118
122
  }
119
123
  export type CloudFrontKeyValueStoreClientConfigType = Partial<
@@ -121,21 +121,3 @@ export interface UpdateKeysResponse {
121
121
  TotalSizeInBytes: number | undefined;
122
122
  ETag: string | undefined;
123
123
  }
124
- export declare const GetKeyResponseFilterSensitiveLog: (
125
- obj: GetKeyResponse
126
- ) => any;
127
- export declare const ListKeysResponseListItemFilterSensitiveLog: (
128
- obj: ListKeysResponseListItem
129
- ) => any;
130
- export declare const ListKeysResponseFilterSensitiveLog: (
131
- obj: ListKeysResponse
132
- ) => any;
133
- export declare const PutKeyRequestFilterSensitiveLog: (
134
- obj: PutKeyRequest
135
- ) => any;
136
- export declare const PutKeyRequestListItemFilterSensitiveLog: (
137
- obj: PutKeyRequestListItem
138
- ) => any;
139
- export declare const UpdateKeysRequestFilterSensitiveLog: (
140
- obj: UpdateKeysRequest
141
- ) => any;
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  profile?: string;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  customUserAgent?: string | import("@smithy/types").UserAgent;
43
47
  userAgentAppId?:
44
48
  | string
@@ -43,6 +43,10 @@ export declare const getRuntimeConfig: (
43
43
  profile?: string;
44
44
  logger: import("@smithy/types").Logger;
45
45
  extensions: import("./runtimeExtensions").RuntimeExtension[];
46
+ protocol: import("@smithy/types").ClientProtocol<
47
+ import("@smithy/types").HttpRequest,
48
+ import("@smithy/types").HttpResponse
49
+ >;
46
50
  customUserAgent?: string | import("@smithy/types").UserAgent;
47
51
  retryStrategy?:
48
52
  | import("@smithy/types").RetryStrategy
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (
38
38
  retryMode: string | import("@smithy/types").Provider<string>;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
41
45
  defaultsMode:
42
46
  | import("@smithy/smithy-client").DefaultsMode
43
47
  | import("@smithy/types").Provider<
@@ -17,6 +17,10 @@ export declare const getRuntimeConfig: (
17
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
18
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
19
19
  logger: import("@smithy/types").Logger;
20
+ protocol: import("@smithy/types").ClientProtocol<
21
+ import("@smithy/types").HttpRequest,
22
+ import("@smithy/types").HttpResponse
23
+ >;
20
24
  serviceId: string;
21
25
  signerConstructor:
22
26
  | typeof SignatureV4MultiRegion
@@ -0,0 +1,39 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticOperationSchema,
5
+ StaticSimpleSchema,
6
+ StaticStructureSchema,
7
+ } from "@smithy/types";
8
+ export declare var Value: StaticSimpleSchema;
9
+ export declare var AccessDeniedException: StaticErrorSchema;
10
+ export declare var ConflictException: StaticErrorSchema;
11
+ export declare var DeleteKeyRequest: StaticStructureSchema;
12
+ export declare var DeleteKeyRequestListItem: StaticStructureSchema;
13
+ export declare var DeleteKeyResponse: StaticStructureSchema;
14
+ export declare var DescribeKeyValueStoreRequest: StaticStructureSchema;
15
+ export declare var DescribeKeyValueStoreResponse: StaticStructureSchema;
16
+ export declare var GetKeyRequest: StaticStructureSchema;
17
+ export declare var GetKeyResponse: StaticStructureSchema;
18
+ export declare var InternalServerException: StaticErrorSchema;
19
+ export declare var ListKeysRequest: StaticStructureSchema;
20
+ export declare var ListKeysResponse: StaticStructureSchema;
21
+ export declare var ListKeysResponseListItem: StaticStructureSchema;
22
+ export declare var PutKeyRequest: StaticStructureSchema;
23
+ export declare var PutKeyRequestListItem: StaticStructureSchema;
24
+ export declare var PutKeyResponse: StaticStructureSchema;
25
+ export declare var ResourceNotFoundException: StaticErrorSchema;
26
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
27
+ export declare var UpdateKeysRequest: StaticStructureSchema;
28
+ export declare var UpdateKeysResponse: StaticStructureSchema;
29
+ export declare var ValidationException: StaticErrorSchema;
30
+ export declare var CloudFrontKeyValueStoreServiceException: StaticErrorSchema;
31
+ export declare var DeleteKeyRequestsList: StaticListSchema;
32
+ export declare var ListKeysResponseList: StaticListSchema;
33
+ export declare var PutKeyRequestsList: StaticListSchema;
34
+ export declare var DeleteKey: StaticOperationSchema;
35
+ export declare var DescribeKeyValueStore: StaticOperationSchema;
36
+ export declare var GetKey: StaticOperationSchema;
37
+ export declare var ListKeys: StaticOperationSchema;
38
+ export declare var PutKey: StaticOperationSchema;
39
+ export declare var UpdateKeys: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudfront-keyvaluestore",
3
3
  "description": "AWS SDK for JavaScript Cloudfront Keyvaluestore Client for Node.js, Browser and React Native",
4
- "version": "3.928.0",
4
+ "version": "3.929.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront-keyvaluestore",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
24
+ "@aws-sdk/credential-provider-node": "3.929.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
@@ -1,308 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { CloudFrontKeyValueStoreServiceException as __BaseException } from "../models/CloudFrontKeyValueStoreServiceException";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
6
- export const se_DeleteKeyCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = map({}, isSerializableHeaderValue, {
9
- [_im]: input[_IM],
10
- });
11
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
12
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
13
- b.p("Key", () => input.Key, "{Key}", false);
14
- let body;
15
- b.m("DELETE").h(headers).b(body);
16
- return b.build();
17
- };
18
- export const se_DescribeKeyValueStoreCommand = async (input, context) => {
19
- const b = rb(input, context);
20
- const headers = {};
21
- b.bp("/key-value-stores/{KvsARN}");
22
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
23
- let body;
24
- b.m("GET").h(headers).b(body);
25
- return b.build();
26
- };
27
- export const se_GetKeyCommand = async (input, context) => {
28
- const b = rb(input, context);
29
- const headers = {};
30
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
31
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
32
- b.p("Key", () => input.Key, "{Key}", false);
33
- let body;
34
- b.m("GET").h(headers).b(body);
35
- return b.build();
36
- };
37
- export const se_ListKeysCommand = async (input, context) => {
38
- const b = rb(input, context);
39
- const headers = {};
40
- b.bp("/key-value-stores/{KvsARN}/keys");
41
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
42
- const query = map({
43
- [_NT]: [, input[_NT]],
44
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
45
- });
46
- let body;
47
- b.m("GET").h(headers).q(query).b(body);
48
- return b.build();
49
- };
50
- export const se_PutKeyCommand = async (input, context) => {
51
- const b = rb(input, context);
52
- const headers = map({}, isSerializableHeaderValue, {
53
- "content-type": "application/json",
54
- [_im]: input[_IM],
55
- });
56
- b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
57
- b.p("Key", () => input.Key, "{Key}", false);
58
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
59
- let body;
60
- body = JSON.stringify(take(input, {
61
- Value: [],
62
- }));
63
- b.m("PUT").h(headers).b(body);
64
- return b.build();
65
- };
66
- export const se_UpdateKeysCommand = async (input, context) => {
67
- const b = rb(input, context);
68
- const headers = map({}, isSerializableHeaderValue, {
69
- "content-type": "application/json",
70
- [_im]: input[_IM],
71
- });
72
- b.bp("/key-value-stores/{KvsARN}/keys");
73
- b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
74
- let body;
75
- body = JSON.stringify(take(input, {
76
- Deletes: (_) => _json(_),
77
- Puts: (_) => _json(_),
78
- }));
79
- b.m("POST").h(headers).b(body);
80
- return b.build();
81
- };
82
- export const de_DeleteKeyCommand = async (output, context) => {
83
- if (output.statusCode !== 200 && output.statusCode >= 300) {
84
- return de_CommandError(output, context);
85
- }
86
- const contents = map({
87
- $metadata: deserializeMetadata(output),
88
- [_ET]: [, output.headers[_e]],
89
- });
90
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
91
- const doc = take(data, {
92
- ItemCount: __expectInt32,
93
- TotalSizeInBytes: __expectLong,
94
- });
95
- Object.assign(contents, doc);
96
- return contents;
97
- };
98
- export const de_DescribeKeyValueStoreCommand = async (output, context) => {
99
- if (output.statusCode !== 200 && output.statusCode >= 300) {
100
- return de_CommandError(output, context);
101
- }
102
- const contents = map({
103
- $metadata: deserializeMetadata(output),
104
- [_ET]: [, output.headers[_e]],
105
- });
106
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
107
- const doc = take(data, {
108
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
109
- FailureReason: __expectString,
110
- ItemCount: __expectInt32,
111
- KvsARN: __expectString,
112
- LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
113
- Status: __expectString,
114
- TotalSizeInBytes: __expectLong,
115
- });
116
- Object.assign(contents, doc);
117
- return contents;
118
- };
119
- export const de_GetKeyCommand = async (output, context) => {
120
- if (output.statusCode !== 200 && output.statusCode >= 300) {
121
- return de_CommandError(output, context);
122
- }
123
- const contents = map({
124
- $metadata: deserializeMetadata(output),
125
- });
126
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
127
- const doc = take(data, {
128
- ItemCount: __expectInt32,
129
- Key: __expectString,
130
- TotalSizeInBytes: __expectLong,
131
- Value: __expectString,
132
- });
133
- Object.assign(contents, doc);
134
- return contents;
135
- };
136
- export const de_ListKeysCommand = async (output, context) => {
137
- if (output.statusCode !== 200 && output.statusCode >= 300) {
138
- return de_CommandError(output, context);
139
- }
140
- const contents = map({
141
- $metadata: deserializeMetadata(output),
142
- });
143
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
144
- const doc = take(data, {
145
- Items: _json,
146
- NextToken: __expectString,
147
- });
148
- Object.assign(contents, doc);
149
- return contents;
150
- };
151
- export const de_PutKeyCommand = async (output, context) => {
152
- if (output.statusCode !== 200 && output.statusCode >= 300) {
153
- return de_CommandError(output, context);
154
- }
155
- const contents = map({
156
- $metadata: deserializeMetadata(output),
157
- [_ET]: [, output.headers[_e]],
158
- });
159
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
160
- const doc = take(data, {
161
- ItemCount: __expectInt32,
162
- TotalSizeInBytes: __expectLong,
163
- });
164
- Object.assign(contents, doc);
165
- return contents;
166
- };
167
- export const de_UpdateKeysCommand = async (output, context) => {
168
- if (output.statusCode !== 200 && output.statusCode >= 300) {
169
- return de_CommandError(output, context);
170
- }
171
- const contents = map({
172
- $metadata: deserializeMetadata(output),
173
- [_ET]: [, output.headers[_e]],
174
- });
175
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
176
- const doc = take(data, {
177
- ItemCount: __expectInt32,
178
- TotalSizeInBytes: __expectLong,
179
- });
180
- Object.assign(contents, doc);
181
- return contents;
182
- };
183
- const de_CommandError = async (output, context) => {
184
- const parsedOutput = {
185
- ...output,
186
- body: await parseErrorBody(output.body, context),
187
- };
188
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
189
- switch (errorCode) {
190
- case "AccessDeniedException":
191
- case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
192
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
193
- case "ConflictException":
194
- case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
195
- throw await de_ConflictExceptionRes(parsedOutput, context);
196
- case "InternalServerException":
197
- case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
198
- throw await de_InternalServerExceptionRes(parsedOutput, context);
199
- case "ResourceNotFoundException":
200
- case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
201
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
202
- case "ServiceQuotaExceededException":
203
- case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
204
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
205
- case "ValidationException":
206
- case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
207
- throw await de_ValidationExceptionRes(parsedOutput, context);
208
- default:
209
- const parsedBody = parsedOutput.body;
210
- return throwDefaultError({
211
- output,
212
- parsedBody,
213
- errorCode,
214
- });
215
- }
216
- };
217
- const throwDefaultError = withBaseException(__BaseException);
218
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
219
- const contents = map({});
220
- const data = parsedOutput.body;
221
- const doc = take(data, {
222
- Message: __expectString,
223
- });
224
- Object.assign(contents, doc);
225
- const exception = new AccessDeniedException({
226
- $metadata: deserializeMetadata(parsedOutput),
227
- ...contents,
228
- });
229
- return __decorateServiceException(exception, parsedOutput.body);
230
- };
231
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
232
- const contents = map({});
233
- const data = parsedOutput.body;
234
- const doc = take(data, {
235
- Message: __expectString,
236
- });
237
- Object.assign(contents, doc);
238
- const exception = new ConflictException({
239
- $metadata: deserializeMetadata(parsedOutput),
240
- ...contents,
241
- });
242
- return __decorateServiceException(exception, parsedOutput.body);
243
- };
244
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
245
- const contents = map({});
246
- const data = parsedOutput.body;
247
- const doc = take(data, {
248
- Message: __expectString,
249
- });
250
- Object.assign(contents, doc);
251
- const exception = new InternalServerException({
252
- $metadata: deserializeMetadata(parsedOutput),
253
- ...contents,
254
- });
255
- return __decorateServiceException(exception, parsedOutput.body);
256
- };
257
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
258
- const contents = map({});
259
- const data = parsedOutput.body;
260
- const doc = take(data, {
261
- Message: __expectString,
262
- });
263
- Object.assign(contents, doc);
264
- const exception = new ResourceNotFoundException({
265
- $metadata: deserializeMetadata(parsedOutput),
266
- ...contents,
267
- });
268
- return __decorateServiceException(exception, parsedOutput.body);
269
- };
270
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
271
- const contents = map({});
272
- const data = parsedOutput.body;
273
- const doc = take(data, {
274
- Message: __expectString,
275
- });
276
- Object.assign(contents, doc);
277
- const exception = new ServiceQuotaExceededException({
278
- $metadata: deserializeMetadata(parsedOutput),
279
- ...contents,
280
- });
281
- return __decorateServiceException(exception, parsedOutput.body);
282
- };
283
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
284
- const contents = map({});
285
- const data = parsedOutput.body;
286
- const doc = take(data, {
287
- Message: __expectString,
288
- });
289
- Object.assign(contents, doc);
290
- const exception = new ValidationException({
291
- $metadata: deserializeMetadata(parsedOutput),
292
- ...contents,
293
- });
294
- return __decorateServiceException(exception, parsedOutput.body);
295
- };
296
- const deserializeMetadata = (output) => ({
297
- httpStatusCode: output.statusCode,
298
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
299
- extendedRequestId: output.headers["x-amz-id-2"],
300
- cfId: output.headers["x-amz-cf-id"],
301
- });
302
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
303
- const _ET = "ETag";
304
- const _IM = "IfMatch";
305
- const _MR = "MaxResults";
306
- const _NT = "NextToken";
307
- const _e = "etag";
308
- const _im = "if-match";
@@ -1,56 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "../commands/DeleteKeyCommand";
4
- import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "../commands/DescribeKeyValueStoreCommand";
5
- import { GetKeyCommandInput, GetKeyCommandOutput } from "../commands/GetKeyCommand";
6
- import { ListKeysCommandInput, ListKeysCommandOutput } from "../commands/ListKeysCommand";
7
- import { PutKeyCommandInput, PutKeyCommandOutput } from "../commands/PutKeyCommand";
8
- import { UpdateKeysCommandInput, UpdateKeysCommandOutput } from "../commands/UpdateKeysCommand";
9
- /**
10
- * serializeAws_restJson1DeleteKeyCommand
11
- */
12
- export declare const se_DeleteKeyCommand: (input: DeleteKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
- /**
14
- * serializeAws_restJson1DescribeKeyValueStoreCommand
15
- */
16
- export declare const se_DescribeKeyValueStoreCommand: (input: DescribeKeyValueStoreCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
17
- /**
18
- * serializeAws_restJson1GetKeyCommand
19
- */
20
- export declare const se_GetKeyCommand: (input: GetKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
- /**
22
- * serializeAws_restJson1ListKeysCommand
23
- */
24
- export declare const se_ListKeysCommand: (input: ListKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
25
- /**
26
- * serializeAws_restJson1PutKeyCommand
27
- */
28
- export declare const se_PutKeyCommand: (input: PutKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
29
- /**
30
- * serializeAws_restJson1UpdateKeysCommand
31
- */
32
- export declare const se_UpdateKeysCommand: (input: UpdateKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
- /**
34
- * deserializeAws_restJson1DeleteKeyCommand
35
- */
36
- export declare const de_DeleteKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteKeyCommandOutput>;
37
- /**
38
- * deserializeAws_restJson1DescribeKeyValueStoreCommand
39
- */
40
- export declare const de_DescribeKeyValueStoreCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeKeyValueStoreCommandOutput>;
41
- /**
42
- * deserializeAws_restJson1GetKeyCommand
43
- */
44
- export declare const de_GetKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKeyCommandOutput>;
45
- /**
46
- * deserializeAws_restJson1ListKeysCommand
47
- */
48
- export declare const de_ListKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListKeysCommandOutput>;
49
- /**
50
- * deserializeAws_restJson1PutKeyCommand
51
- */
52
- export declare const de_PutKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutKeyCommandOutput>;
53
- /**
54
- * deserializeAws_restJson1UpdateKeysCommand
55
- */
56
- export declare const de_UpdateKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateKeysCommandOutput>;
@@ -1,77 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- DeleteKeyCommandInput,
8
- DeleteKeyCommandOutput,
9
- } from "../commands/DeleteKeyCommand";
10
- import {
11
- DescribeKeyValueStoreCommandInput,
12
- DescribeKeyValueStoreCommandOutput,
13
- } from "../commands/DescribeKeyValueStoreCommand";
14
- import {
15
- GetKeyCommandInput,
16
- GetKeyCommandOutput,
17
- } from "../commands/GetKeyCommand";
18
- import {
19
- ListKeysCommandInput,
20
- ListKeysCommandOutput,
21
- } from "../commands/ListKeysCommand";
22
- import {
23
- PutKeyCommandInput,
24
- PutKeyCommandOutput,
25
- } from "../commands/PutKeyCommand";
26
- import {
27
- UpdateKeysCommandInput,
28
- UpdateKeysCommandOutput,
29
- } from "../commands/UpdateKeysCommand";
30
- export declare const se_DeleteKeyCommand: (
31
- input: DeleteKeyCommandInput,
32
- context: __SerdeContext
33
- ) => Promise<__HttpRequest>;
34
- export declare const se_DescribeKeyValueStoreCommand: (
35
- input: DescribeKeyValueStoreCommandInput,
36
- context: __SerdeContext
37
- ) => Promise<__HttpRequest>;
38
- export declare const se_GetKeyCommand: (
39
- input: GetKeyCommandInput,
40
- context: __SerdeContext
41
- ) => Promise<__HttpRequest>;
42
- export declare const se_ListKeysCommand: (
43
- input: ListKeysCommandInput,
44
- context: __SerdeContext
45
- ) => Promise<__HttpRequest>;
46
- export declare const se_PutKeyCommand: (
47
- input: PutKeyCommandInput,
48
- context: __SerdeContext
49
- ) => Promise<__HttpRequest>;
50
- export declare const se_UpdateKeysCommand: (
51
- input: UpdateKeysCommandInput,
52
- context: __SerdeContext
53
- ) => Promise<__HttpRequest>;
54
- export declare const de_DeleteKeyCommand: (
55
- output: __HttpResponse,
56
- context: __SerdeContext
57
- ) => Promise<DeleteKeyCommandOutput>;
58
- export declare const de_DescribeKeyValueStoreCommand: (
59
- output: __HttpResponse,
60
- context: __SerdeContext
61
- ) => Promise<DescribeKeyValueStoreCommandOutput>;
62
- export declare const de_GetKeyCommand: (
63
- output: __HttpResponse,
64
- context: __SerdeContext
65
- ) => Promise<GetKeyCommandOutput>;
66
- export declare const de_ListKeysCommand: (
67
- output: __HttpResponse,
68
- context: __SerdeContext
69
- ) => Promise<ListKeysCommandOutput>;
70
- export declare const de_PutKeyCommand: (
71
- output: __HttpResponse,
72
- context: __SerdeContext
73
- ) => Promise<PutKeyCommandOutput>;
74
- export declare const de_UpdateKeysCommand: (
75
- output: __HttpResponse,
76
- context: __SerdeContext
77
- ) => Promise<UpdateKeysCommandOutput>;