@aws-sdk/client-cloudfront-keyvaluestore 3.476.0 → 3.478.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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListKeys = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CloudFrontKeyValueStoreClient_1 = require("../CloudFrontKeyValueStoreClient");
5
6
  const ListKeysCommand_1 = require("../commands/ListKeysCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
8
- };
9
- async function* paginateListKeys(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CloudFrontKeyValueStoreClient_1.CloudFrontKeyValueStoreClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CloudFrontKeyValueStore | CloudFrontKeyValueStoreClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListKeys = paginateListKeys;
7
+ exports.paginateListKeys = (0, core_1.createPaginator)(CloudFrontKeyValueStoreClient_1.CloudFrontKeyValueStoreClient, ListKeysCommand_1.ListKeysCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,133 +1,90 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateKeysCommand = exports.de_PutKeyCommand = exports.de_ListKeysCommand = exports.de_GetKeyCommand = exports.de_DescribeKeyValueStoreCommand = exports.de_DeleteKeyCommand = exports.se_UpdateKeysCommand = exports.se_PutKeyCommand = exports.se_ListKeysCommand = exports.se_GetKeyCommand = exports.se_DescribeKeyValueStoreCommand = exports.se_DeleteKeyCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const CloudFrontKeyValueStoreServiceException_1 = require("../models/CloudFrontKeyValueStoreServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_DeleteKeyCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
11
- "if-match": input.IfMatch,
11
+ [_im]: input[_IM],
12
12
  });
13
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
13
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
14
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
15
+ b.p("Key", () => input.Key, "{Key}", false);
16
16
  let body;
17
- return new protocol_http_1.HttpRequest({
18
- protocol,
19
- hostname,
20
- port,
21
- method: "DELETE",
22
- headers,
23
- path: resolvedPath,
24
- body,
25
- });
17
+ b.m("DELETE").h(headers).b(body);
18
+ return b.build();
26
19
  };
27
20
  exports.se_DeleteKeyCommand = se_DeleteKeyCommand;
28
21
  const se_DescribeKeyValueStoreCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = (0, core_1.requestBuilder)(input, context);
30
23
  const headers = {};
31
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}";
32
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
24
+ b.bp("/key-value-stores/{KvsARN}");
25
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
33
26
  let body;
34
- return new protocol_http_1.HttpRequest({
35
- protocol,
36
- hostname,
37
- port,
38
- method: "GET",
39
- headers,
40
- path: resolvedPath,
41
- body,
42
- });
27
+ b.m("GET").h(headers).b(body);
28
+ return b.build();
43
29
  };
44
30
  exports.se_DescribeKeyValueStoreCommand = se_DescribeKeyValueStoreCommand;
45
31
  const se_GetKeyCommand = async (input, context) => {
46
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const b = (0, core_1.requestBuilder)(input, context);
47
33
  const headers = {};
48
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
49
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
50
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
34
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
35
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
36
+ b.p("Key", () => input.Key, "{Key}", false);
51
37
  let body;
52
- return new protocol_http_1.HttpRequest({
53
- protocol,
54
- hostname,
55
- port,
56
- method: "GET",
57
- headers,
58
- path: resolvedPath,
59
- body,
60
- });
38
+ b.m("GET").h(headers).b(body);
39
+ return b.build();
61
40
  };
62
41
  exports.se_GetKeyCommand = se_GetKeyCommand;
63
42
  const se_ListKeysCommand = async (input, context) => {
64
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = (0, core_1.requestBuilder)(input, context);
65
44
  const headers = {};
66
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys";
67
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
45
+ b.bp("/key-value-stores/{KvsARN}/keys");
46
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
68
47
  const query = (0, smithy_client_1.map)({
69
- NextToken: [, input.NextToken],
70
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
48
+ [_NT]: [, input[_NT]],
49
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
71
50
  });
72
51
  let body;
73
- return new protocol_http_1.HttpRequest({
74
- protocol,
75
- hostname,
76
- port,
77
- method: "GET",
78
- headers,
79
- path: resolvedPath,
80
- query,
81
- body,
82
- });
52
+ b.m("GET").h(headers).q(query).b(body);
53
+ return b.build();
83
54
  };
84
55
  exports.se_ListKeysCommand = se_ListKeysCommand;
85
56
  const se_PutKeyCommand = async (input, context) => {
86
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
87
58
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
88
59
  "content-type": "application/json",
89
- "if-match": input.IfMatch,
60
+ [_im]: input[_IM],
90
61
  });
91
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
92
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
93
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
62
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
63
+ b.p("Key", () => input.Key, "{Key}", false);
64
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
94
65
  let body;
95
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
67
  Value: [],
97
68
  }));
98
- return new protocol_http_1.HttpRequest({
99
- protocol,
100
- hostname,
101
- port,
102
- method: "PUT",
103
- headers,
104
- path: resolvedPath,
105
- body,
106
- });
69
+ b.m("PUT").h(headers).b(body);
70
+ return b.build();
107
71
  };
108
72
  exports.se_PutKeyCommand = se_PutKeyCommand;
109
73
  const se_UpdateKeysCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = (0, core_1.requestBuilder)(input, context);
111
75
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
112
76
  "content-type": "application/json",
113
- "if-match": input.IfMatch,
77
+ [_im]: input[_IM],
114
78
  });
115
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys";
116
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
79
+ b.bp("/key-value-stores/{KvsARN}/keys");
80
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
117
81
  let body;
118
82
  body = JSON.stringify((0, smithy_client_1.take)(input, {
119
83
  Deletes: (_) => (0, smithy_client_1._json)(_),
120
84
  Puts: (_) => (0, smithy_client_1._json)(_),
121
85
  }));
122
- return new protocol_http_1.HttpRequest({
123
- protocol,
124
- hostname,
125
- port,
126
- method: "POST",
127
- headers,
128
- path: resolvedPath,
129
- body,
130
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
131
88
  };
132
89
  exports.se_UpdateKeysCommand = se_UpdateKeysCommand;
133
90
  const de_DeleteKeyCommand = async (output, context) => {
@@ -136,7 +93,7 @@ const de_DeleteKeyCommand = async (output, context) => {
136
93
  }
137
94
  const contents = (0, smithy_client_1.map)({
138
95
  $metadata: deserializeMetadata(output),
139
- ETag: [, output.headers["etag"]],
96
+ [_ET]: [, output.headers[_e]],
140
97
  });
141
98
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
142
99
  const doc = (0, smithy_client_1.take)(data, {
@@ -187,7 +144,7 @@ const de_DescribeKeyValueStoreCommand = async (output, context) => {
187
144
  }
188
145
  const contents = (0, smithy_client_1.map)({
189
146
  $metadata: deserializeMetadata(output),
190
- ETag: [, output.headers["etag"]],
147
+ [_ET]: [, output.headers[_e]],
191
148
  });
192
149
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
193
150
  const doc = (0, smithy_client_1.take)(data, {
@@ -328,7 +285,7 @@ const de_PutKeyCommand = async (output, context) => {
328
285
  }
329
286
  const contents = (0, smithy_client_1.map)({
330
287
  $metadata: deserializeMetadata(output),
331
- ETag: [, output.headers["etag"]],
288
+ [_ET]: [, output.headers[_e]],
332
289
  });
333
290
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
334
291
  const doc = (0, smithy_client_1.take)(data, {
@@ -379,7 +336,7 @@ const de_UpdateKeysCommand = async (output, context) => {
379
336
  }
380
337
  const contents = (0, smithy_client_1.map)({
381
338
  $metadata: deserializeMetadata(output),
382
- ETag: [, output.headers["etag"]],
339
+ [_ET]: [, output.headers[_e]],
383
340
  });
384
341
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
385
342
  const doc = (0, smithy_client_1.take)(data, {
@@ -515,6 +472,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
515
472
  value !== "" &&
516
473
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
517
474
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
475
+ const _ET = "ETag";
476
+ const _IM = "IfMatch";
477
+ const _MR = "MaxResults";
478
+ const _NT = "NextToken";
479
+ const _e = "etag";
480
+ const _im = "if-match";
518
481
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
519
482
  if (encoded.length) {
520
483
  return JSON.parse(encoded);
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFrontKeyValueStoreClient } from "../CloudFrontKeyValueStoreClient";
2
3
  import { ListKeysCommand } from "../commands/ListKeysCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListKeysCommand(input), ...args);
5
- };
6
- export async function* paginateListKeys(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof CloudFrontKeyValueStoreClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFrontKeyValueStore | CloudFrontKeyValueStoreClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListKeys = createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,125 +1,82 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { CloudFrontKeyValueStoreServiceException as __BaseException } from "../models/CloudFrontKeyValueStoreServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  export const se_DeleteKeyCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = map({}, isSerializableHeaderValue, {
8
- "if-match": input.IfMatch,
8
+ [_im]: input[_IM],
9
9
  });
10
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
11
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
12
- resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
10
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
11
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
12
+ b.p("Key", () => input.Key, "{Key}", false);
13
13
  let body;
14
- return new __HttpRequest({
15
- protocol,
16
- hostname,
17
- port,
18
- method: "DELETE",
19
- headers,
20
- path: resolvedPath,
21
- body,
22
- });
14
+ b.m("DELETE").h(headers).b(body);
15
+ return b.build();
23
16
  };
24
17
  export const se_DescribeKeyValueStoreCommand = async (input, context) => {
25
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
18
+ const b = rb(input, context);
26
19
  const headers = {};
27
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}";
28
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
20
+ b.bp("/key-value-stores/{KvsARN}");
21
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
29
22
  let body;
30
- return new __HttpRequest({
31
- protocol,
32
- hostname,
33
- port,
34
- method: "GET",
35
- headers,
36
- path: resolvedPath,
37
- body,
38
- });
23
+ b.m("GET").h(headers).b(body);
24
+ return b.build();
39
25
  };
40
26
  export const se_GetKeyCommand = async (input, context) => {
41
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = rb(input, context);
42
28
  const headers = {};
43
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
44
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
45
- resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
29
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
30
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
31
+ b.p("Key", () => input.Key, "{Key}", false);
46
32
  let body;
47
- return new __HttpRequest({
48
- protocol,
49
- hostname,
50
- port,
51
- method: "GET",
52
- headers,
53
- path: resolvedPath,
54
- body,
55
- });
33
+ b.m("GET").h(headers).b(body);
34
+ return b.build();
56
35
  };
57
36
  export const se_ListKeysCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = rb(input, context);
59
38
  const headers = {};
60
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys";
61
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
39
+ b.bp("/key-value-stores/{KvsARN}/keys");
40
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
62
41
  const query = map({
63
- NextToken: [, input.NextToken],
64
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
42
+ [_NT]: [, input[_NT]],
43
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
65
44
  });
66
45
  let body;
67
- return new __HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "GET",
72
- headers,
73
- path: resolvedPath,
74
- query,
75
- body,
76
- });
46
+ b.m("GET").h(headers).q(query).b(body);
47
+ return b.build();
77
48
  };
78
49
  export const se_PutKeyCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = rb(input, context);
80
51
  const headers = map({}, isSerializableHeaderValue, {
81
52
  "content-type": "application/json",
82
- "if-match": input.IfMatch,
53
+ [_im]: input[_IM],
83
54
  });
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys/{Key}";
85
- resolvedPath = __resolvedPath(resolvedPath, input, "Key", () => input.Key, "{Key}", false);
86
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
55
+ b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
56
+ b.p("Key", () => input.Key, "{Key}", false);
57
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
87
58
  let body;
88
59
  body = JSON.stringify(take(input, {
89
60
  Value: [],
90
61
  }));
91
- return new __HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "PUT",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
62
+ b.m("PUT").h(headers).b(body);
63
+ return b.build();
100
64
  };
101
65
  export const se_UpdateKeysCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = rb(input, context);
103
67
  const headers = map({}, isSerializableHeaderValue, {
104
68
  "content-type": "application/json",
105
- "if-match": input.IfMatch,
69
+ [_im]: input[_IM],
106
70
  });
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/key-value-stores/{KvsARN}/keys";
108
- resolvedPath = __resolvedPath(resolvedPath, input, "KvsARN", () => input.KvsARN, "{KvsARN}", false);
71
+ b.bp("/key-value-stores/{KvsARN}/keys");
72
+ b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
109
73
  let body;
110
74
  body = JSON.stringify(take(input, {
111
75
  Deletes: (_) => _json(_),
112
76
  Puts: (_) => _json(_),
113
77
  }));
114
- return new __HttpRequest({
115
- protocol,
116
- hostname,
117
- port,
118
- method: "POST",
119
- headers,
120
- path: resolvedPath,
121
- body,
122
- });
78
+ b.m("POST").h(headers).b(body);
79
+ return b.build();
123
80
  };
124
81
  export const de_DeleteKeyCommand = async (output, context) => {
125
82
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -127,7 +84,7 @@ export const de_DeleteKeyCommand = async (output, context) => {
127
84
  }
128
85
  const contents = map({
129
86
  $metadata: deserializeMetadata(output),
130
- ETag: [, output.headers["etag"]],
87
+ [_ET]: [, output.headers[_e]],
131
88
  });
132
89
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
133
90
  const doc = take(data, {
@@ -177,7 +134,7 @@ export const de_DescribeKeyValueStoreCommand = async (output, context) => {
177
134
  }
178
135
  const contents = map({
179
136
  $metadata: deserializeMetadata(output),
180
- ETag: [, output.headers["etag"]],
137
+ [_ET]: [, output.headers[_e]],
181
138
  });
182
139
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
183
140
  const doc = take(data, {
@@ -315,7 +272,7 @@ export const de_PutKeyCommand = async (output, context) => {
315
272
  }
316
273
  const contents = map({
317
274
  $metadata: deserializeMetadata(output),
318
- ETag: [, output.headers["etag"]],
275
+ [_ET]: [, output.headers[_e]],
319
276
  });
320
277
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
321
278
  const doc = take(data, {
@@ -365,7 +322,7 @@ export const de_UpdateKeysCommand = async (output, context) => {
365
322
  }
366
323
  const contents = map({
367
324
  $metadata: deserializeMetadata(output),
368
- ETag: [, output.headers["etag"]],
325
+ [_ET]: [, output.headers[_e]],
369
326
  });
370
327
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
371
328
  const doc = take(data, {
@@ -500,6 +457,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
500
457
  value !== "" &&
501
458
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
502
459
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
460
+ const _ET = "ETag";
461
+ const _IM = "IfMatch";
462
+ const _MR = "MaxResults";
463
+ const _NT = "NextToken";
464
+ const _e = "etag";
465
+ const _im = "if-match";
503
466
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
504
467
  if (encoded.length) {
505
468
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { CloudFrontKeyValueStorePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListKeys(config: CloudFrontKeyValueStorePaginationConfiguration, input: ListKeysCommandInput, ...additionalArguments: any): Paginator<ListKeysCommandOutput>;
7
+ export declare const paginateListKeys: (config: CloudFrontKeyValueStorePaginationConfiguration, input: ListKeysCommandInput, ...rest: any[]) => Paginator<ListKeysCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListKeysCommandOutput,
5
5
  } from "../commands/ListKeysCommand";
6
6
  import { CloudFrontKeyValueStorePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListKeys(
7
+ export declare const paginateListKeys: (
8
8
  config: CloudFrontKeyValueStorePaginationConfiguration,
9
9
  input: ListKeysCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListKeysCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListKeysCommandOutput>;
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.476.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",