@aws-sdk/client-cloudfront-keyvaluestore 3.1067.0 → 3.1069.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,28 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
- const client_1 = require("@smithy/core/client");
7
- const endpoints_1 = require("@smithy/core/endpoints");
8
- const endpointResolver_1 = require("../endpoint/endpointResolver");
1
+ const { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
3
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
4
+ const { resolveParams } = require("@smithy/core/endpoints");
5
+ const { defaultEndpointResolver } = require("../endpoint/endpointResolver");
9
6
  const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
10
7
  if (!input) {
11
8
  throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
12
9
  }
13
10
  const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
14
- const instructionsFn = (0, client_1.getSmithyContext)(context)?.commandInstance?.constructor
11
+ const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
15
12
  ?.getEndpointParameterInstructions;
16
13
  if (!instructionsFn) {
17
14
  throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
18
15
  }
19
- const endpointParameters = await (0, endpoints_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
16
+ const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
20
17
  return Object.assign(defaultParameters, endpointParameters);
21
18
  };
22
19
  const _defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
23
20
  return {
24
- operation: (0, client_1.getSmithyContext)(context).operation,
25
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
21
+ operation: getSmithyContext(context).operation,
22
+ region: await normalizeProvider(config.region)() || (() => {
26
23
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
27
24
  })(),
28
25
  };
@@ -79,7 +76,7 @@ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, de
79
76
  const name = s.name.toLowerCase();
80
77
  return name !== "sigv4a" && name.startsWith("sigv4");
81
78
  });
82
- if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
79
+ if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
83
80
  continue;
84
81
  }
85
82
  }
@@ -112,15 +109,14 @@ const _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = (authParameters) =
112
109
  }
113
110
  return options;
114
111
  };
115
- exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider, {
112
+ exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider, {
116
113
  "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
117
114
  "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
118
115
  });
119
- const resolveHttpAuthSchemeConfig = (config) => {
120
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
121
- const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_0);
116
+ exports.resolveHttpAuthSchemeConfig = (config) => {
117
+ const config_0 = resolveAwsSdkSigV4Config(config);
118
+ const config_1 = resolveAwsSdkSigV4AConfig(config_0);
122
119
  return Object.assign(config_1, {
123
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
120
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
124
121
  });
125
122
  };
126
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const o = "ref";
6
3
  const a = -1, b = "isSet", c = "parsedArn", d = "stringEquals", e = "getAttr", f = "arnType", g = "partitionResult", h = { [o]: c }, i = { [o]: f }, j = { "fn": e, "argv": [h, "partition"] }, k = { "authSchemes": [{ "name": "sigv4a", "signingName": "cloudfront-keyvaluestore", "signingRegionSet": ["*"] }] }, l = [{ [o]: "KvsARN" }], m = [{ [o]: "Region" }], n = [{ [o]: "Endpoint" }];
7
4
  const _data = {
@@ -56,4 +53,4 @@ const nodes = new Int32Array([
56
53
  12, 15, r + 3,
57
54
  13, r + 1, r + 2,
58
55
  ]);
59
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
56
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "KvsARN", "Region", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var CloudFrontKeyValueStoreServiceException = require('./models/CloudFrontKeyValueStoreServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveHttpAuthSchemeConfig, defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { DeleteKey$, DescribeKeyValueStore$, GetKey$, ListKeys$, PutKey$, UpdateKeys$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { CloudFrontKeyValueStoreServiceException } = require("./models/CloudFrontKeyValueStoreServiceException");
18
+ exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,138 +69,138 @@ const resolveHttpAuthRuntimeConfig = (config) => {
66
69
  };
67
70
 
68
71
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
69
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
70
73
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
71
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
72
75
  };
73
76
 
74
- class CloudFrontKeyValueStoreClient extends client.Client {
77
+ class CloudFrontKeyValueStoreClient extends Client {
75
78
  config;
76
79
  constructor(...[configuration]) {
77
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
80
+ const _config_0 = getRuntimeConfig(configuration || {});
78
81
  super(_config_0);
79
82
  this.initConfig = _config_0;
80
83
  const _config_1 = resolveClientEndpointParameters(_config_0);
81
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
82
- const _config_3 = retry.resolveRetryConfig(_config_2);
83
- const _config_4 = config.resolveRegionConfig(_config_3);
84
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
85
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
86
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
84
+ const _config_2 = resolveUserAgentConfig(_config_1);
85
+ const _config_3 = resolveRetryConfig(_config_2);
86
+ const _config_4 = resolveRegionConfig(_config_3);
87
+ const _config_5 = resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = resolveEndpointConfig(_config_5);
89
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
87
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
88
91
  this.config = _config_8;
89
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
90
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
91
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
92
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
93
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
94
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
95
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
96
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
97
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
98
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
92
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
93
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(getRetryPlugin(this.config));
95
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
99
102
  "aws.auth#sigv4": config.credentials,
100
103
  "aws.auth#sigv4a": config.credentials,
101
104
  }),
102
105
  }));
103
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
106
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
104
107
  }
105
108
  destroy() {
106
109
  super.destroy();
107
110
  }
108
111
  }
109
112
 
110
- class DeleteKeyCommand extends client.Command
113
+ class DeleteKeyCommand extends Command
111
114
  .classBuilder()
112
115
  .ep({
113
116
  ...commonParams,
114
117
  KvsARN: { type: "contextParams", name: "KvsARN" },
115
118
  })
116
119
  .m(function (Command, cs, config, o) {
117
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
120
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
118
121
  })
119
122
  .s("CloudFrontKeyValueStore", "DeleteKey", {})
120
123
  .n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand")
121
- .sc(schemas_0.DeleteKey$)
124
+ .sc(DeleteKey$)
122
125
  .build() {
123
126
  }
124
127
 
125
- class DescribeKeyValueStoreCommand extends client.Command
128
+ class DescribeKeyValueStoreCommand extends Command
126
129
  .classBuilder()
127
130
  .ep({
128
131
  ...commonParams,
129
132
  KvsARN: { type: "contextParams", name: "KvsARN" },
130
133
  })
131
134
  .m(function (Command, cs, config, o) {
132
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
135
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
133
136
  })
134
137
  .s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {})
135
138
  .n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand")
136
- .sc(schemas_0.DescribeKeyValueStore$)
139
+ .sc(DescribeKeyValueStore$)
137
140
  .build() {
138
141
  }
139
142
 
140
- class GetKeyCommand extends client.Command
143
+ class GetKeyCommand extends Command
141
144
  .classBuilder()
142
145
  .ep({
143
146
  ...commonParams,
144
147
  KvsARN: { type: "contextParams", name: "KvsARN" },
145
148
  })
146
149
  .m(function (Command, cs, config, o) {
147
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
150
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
148
151
  })
149
152
  .s("CloudFrontKeyValueStore", "GetKey", {})
150
153
  .n("CloudFrontKeyValueStoreClient", "GetKeyCommand")
151
- .sc(schemas_0.GetKey$)
154
+ .sc(GetKey$)
152
155
  .build() {
153
156
  }
154
157
 
155
- class ListKeysCommand extends client.Command
158
+ class ListKeysCommand extends Command
156
159
  .classBuilder()
157
160
  .ep({
158
161
  ...commonParams,
159
162
  KvsARN: { type: "contextParams", name: "KvsARN" },
160
163
  })
161
164
  .m(function (Command, cs, config, o) {
162
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
165
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
163
166
  })
164
167
  .s("CloudFrontKeyValueStore", "ListKeys", {})
165
168
  .n("CloudFrontKeyValueStoreClient", "ListKeysCommand")
166
- .sc(schemas_0.ListKeys$)
169
+ .sc(ListKeys$)
167
170
  .build() {
168
171
  }
169
172
 
170
- class PutKeyCommand extends client.Command
173
+ class PutKeyCommand extends Command
171
174
  .classBuilder()
172
175
  .ep({
173
176
  ...commonParams,
174
177
  KvsARN: { type: "contextParams", name: "KvsARN" },
175
178
  })
176
179
  .m(function (Command, cs, config, o) {
177
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
180
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
178
181
  })
179
182
  .s("CloudFrontKeyValueStore", "PutKey", {})
180
183
  .n("CloudFrontKeyValueStoreClient", "PutKeyCommand")
181
- .sc(schemas_0.PutKey$)
184
+ .sc(PutKey$)
182
185
  .build() {
183
186
  }
184
187
 
185
- class UpdateKeysCommand extends client.Command
188
+ class UpdateKeysCommand extends Command
186
189
  .classBuilder()
187
190
  .ep({
188
191
  ...commonParams,
189
192
  KvsARN: { type: "contextParams", name: "KvsARN" },
190
193
  })
191
194
  .m(function (Command, cs, config, o) {
192
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
195
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
193
196
  })
194
197
  .s("CloudFrontKeyValueStore", "UpdateKeys", {})
195
198
  .n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand")
196
- .sc(schemas_0.UpdateKeys$)
199
+ .sc(UpdateKeys$)
197
200
  .build() {
198
201
  }
199
202
 
200
- const paginateListKeys = core.createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
203
+ const paginateListKeys = createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
201
204
 
202
205
  const commands = {
203
206
  DeleteKeyCommand,
@@ -212,11 +215,8 @@ const paginators = {
212
215
  };
213
216
  class CloudFrontKeyValueStore extends CloudFrontKeyValueStoreClient {
214
217
  }
215
- client.createAggregatedClient(commands, CloudFrontKeyValueStore, { paginators });
218
+ createAggregatedClient(commands, CloudFrontKeyValueStore, { paginators });
216
219
 
217
- exports.$Command = client.Command;
218
- exports.__Client = client.Client;
219
- exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException.CloudFrontKeyValueStoreServiceException;
220
220
  exports.CloudFrontKeyValueStore = CloudFrontKeyValueStore;
221
221
  exports.CloudFrontKeyValueStoreClient = CloudFrontKeyValueStoreClient;
222
222
  exports.DeleteKeyCommand = DeleteKeyCommand;
@@ -226,23 +226,3 @@ exports.ListKeysCommand = ListKeysCommand;
226
226
  exports.PutKeyCommand = PutKeyCommand;
227
227
  exports.UpdateKeysCommand = UpdateKeysCommand;
228
228
  exports.paginateListKeys = paginateListKeys;
229
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
230
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
231
- Object.defineProperty(exports, '__proto__', {
232
- enumerable: true,
233
- value: schemas_0['__proto__']
234
- });
235
-
236
- Object.keys(schemas_0).forEach(function (k) {
237
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
238
- });
239
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
240
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
241
- Object.defineProperty(exports, '__proto__', {
242
- enumerable: true,
243
- value: errors['__proto__']
244
- });
245
-
246
- Object.keys(errors).forEach(function (k) {
247
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
248
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudFrontKeyValueStoreServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class CloudFrontKeyValueStoreServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.CloudFrontKeyValueStoreServiceException = class CloudFrontKeyValueStoreServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, CloudFrontKeyValueStoreServiceException.prototype);
10
7
  }
11
- }
12
- exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- const CloudFrontKeyValueStoreServiceException_1 = require("./CloudFrontKeyValueStoreServiceException");
5
- class AccessDeniedException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
1
+ const { CloudFrontKeyValueStoreServiceException: __BaseException } = require("./CloudFrontKeyValueStoreServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  Message;
@@ -15,9 +12,8 @@ class AccessDeniedException extends CloudFrontKeyValueStoreServiceException_1.Cl
15
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
13
  this.Message = opts.Message;
17
14
  }
18
- }
19
- exports.AccessDeniedException = AccessDeniedException;
20
- class ConflictException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
15
+ };
16
+ exports.ConflictException = class ConflictException extends __BaseException {
21
17
  name = "ConflictException";
22
18
  $fault = "client";
23
19
  Message;
@@ -30,9 +26,8 @@ class ConflictException extends CloudFrontKeyValueStoreServiceException_1.CloudF
30
26
  Object.setPrototypeOf(this, ConflictException.prototype);
31
27
  this.Message = opts.Message;
32
28
  }
33
- }
34
- exports.ConflictException = ConflictException;
35
- class InternalServerException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
29
+ };
30
+ exports.InternalServerException = class InternalServerException extends __BaseException {
36
31
  name = "InternalServerException";
37
32
  $fault = "server";
38
33
  Message;
@@ -45,9 +40,8 @@ class InternalServerException extends CloudFrontKeyValueStoreServiceException_1.
45
40
  Object.setPrototypeOf(this, InternalServerException.prototype);
46
41
  this.Message = opts.Message;
47
42
  }
48
- }
49
- exports.InternalServerException = InternalServerException;
50
- class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
43
+ };
44
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
51
45
  name = "ResourceNotFoundException";
52
46
  $fault = "client";
53
47
  Message;
@@ -60,9 +54,8 @@ class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException_
60
54
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
55
  this.Message = opts.Message;
62
56
  }
63
- }
64
- exports.ResourceNotFoundException = ResourceNotFoundException;
65
- class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
57
+ };
58
+ exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
66
59
  name = "ServiceQuotaExceededException";
67
60
  $fault = "client";
68
61
  Message;
@@ -75,9 +68,8 @@ class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceExcept
75
68
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
76
69
  this.Message = opts.Message;
77
70
  }
78
- }
79
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
80
- class ValidationException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
71
+ };
72
+ exports.ValidationException = class ValidationException extends __BaseException {
81
73
  name = "ValidationException";
82
74
  $fault = "client";
83
75
  Message;
@@ -90,5 +82,4 @@ class ValidationException extends CloudFrontKeyValueStoreServiceException_1.Clou
90
82
  Object.setPrototypeOf(this, ValidationException.prototype);
91
83
  this.Message = opts.Message;
92
84
  }
93
- }
94
- exports.ValidationException = ValidationException;
85
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const node_http_handler_1 = require("@smithy/node-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
17
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
21
17
  const loaderConfig = {
22
18
  profile: config?.profile,
23
19
  logger: clientSharedValues.logger,
@@ -27,24 +23,24 @@ const getRuntimeConfig = (config) => {
27
23
  ...config,
28
24
  runtime: "node",
29
25
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
33
  retryMode: config?.retryMode ??
38
- (0, config_1.loadConfig)({
39
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
37
  }, config),
42
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
43
- sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
44
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
47
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
40
+ streamCollector: config?.streamCollector ?? streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
43
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
48
44
  };
49
45
  };
50
46
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
6
3
  const getRuntimeConfig = (config) => {
7
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
8
5
  return {
9
6
  ...browserDefaults,
10
7
  ...config,
11
8
  runtime: "react-native",
12
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
9
+ sha256: config?.sha256 ?? Sha256,
13
10
  };
14
11
  };
15
12
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,49 +1,45 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
7
- const client_1 = require("@smithy/core/client");
8
- const protocols_2 = require("@smithy/core/protocols");
9
- const serde_1 = require("@smithy/core/serde");
10
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
- const endpointResolver_1 = require("./endpoint/endpointResolver");
12
- const schemas_0_1 = require("./schemas/schemas_0");
13
- const getRuntimeConfig = (config) => {
1
+ const { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
+ const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
4
+ const { NoOpLogger } = require("@smithy/core/client");
5
+ const { parseUrl } = require("@smithy/core/protocols");
6
+ const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
7
+ const { defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
8
+ const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
9
+ const { errorTypeRegistries } = require("./schemas/schemas_0");
10
+ exports.getRuntimeConfig = (config) => {
14
11
  return {
15
12
  apiVersion: "2022-07-26",
16
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
17
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
13
+ base64Decoder: config?.base64Decoder ?? fromBase64,
14
+ base64Encoder: config?.base64Encoder ?? toBase64,
18
15
  disableHostPrefix: config?.disableHostPrefix ?? false,
19
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
16
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
20
17
  extensions: config?.extensions ?? [],
21
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider,
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider,
22
19
  httpAuthSchemes: config?.httpAuthSchemes ?? [
23
20
  {
24
21
  schemeId: "aws.auth#sigv4",
25
22
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
26
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
23
+ signer: new AwsSdkSigV4Signer(),
27
24
  },
28
25
  {
29
26
  schemeId: "aws.auth#sigv4a",
30
27
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
31
- signer: new httpAuthSchemes_1.AwsSdkSigV4ASigner(),
28
+ signer: new AwsSdkSigV4ASigner(),
32
29
  },
33
30
  ],
34
- logger: config?.logger ?? new client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
+ logger: config?.logger ?? new NoOpLogger(),
32
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
36
33
  protocolSettings: config?.protocolSettings ?? {
37
34
  defaultNamespace: "com.amazonaws.cloudfrontkeyvaluestore",
38
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
35
+ errorTypeRegistries,
39
36
  version: "2022-07-26",
40
37
  serviceTarget: "CloudFrontKeyValueStore",
41
38
  },
42
39
  serviceId: config?.serviceId ?? "CloudFront KeyValueStore",
43
- signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
44
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
45
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
46
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
40
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
41
+ urlParser: config?.urlParser ?? parseUrl,
42
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
43
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
44
  };
48
45
  };
49
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateKeys$ = exports.PutKey$ = exports.ListKeys$ = exports.GetKey$ = exports.DescribeKeyValueStore$ = exports.DeleteKey$ = exports.UpdateKeysResponse$ = exports.UpdateKeysRequest$ = exports.PutKeyResponse$ = exports.PutKeyRequestListItem$ = exports.PutKeyRequest$ = exports.ListKeysResponseListItem$ = exports.ListKeysResponse$ = exports.ListKeysRequest$ = exports.GetKeyResponse$ = exports.GetKeyRequest$ = exports.DescribeKeyValueStoreResponse$ = exports.DescribeKeyValueStoreRequest$ = exports.DeleteKeyResponse$ = exports.DeleteKeyRequestListItem$ = exports.DeleteKeyRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.CloudFrontKeyValueStoreServiceException$ = void 0;
4
1
  const _ADE = "AccessDeniedException";
5
2
  const _C = "Created";
6
3
  const _CE = "ConflictException";
@@ -58,155 +55,177 @@ const _hQ = "httpQuery";
58
55
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudfrontkeyvaluestore";
59
56
  const _se = "server";
60
57
  const n0 = "com.amazonaws.cloudfrontkeyvaluestore";
61
- const schema_1 = require("@smithy/core/schema");
62
- const CloudFrontKeyValueStoreServiceException_1 = require("../models/CloudFrontKeyValueStoreServiceException");
63
- const errors_1 = require("../models/errors");
64
- const _s_registry = schema_1.TypeRegistry.for(_s);
65
- exports.CloudFrontKeyValueStoreServiceException$ = [-3, _s, "CloudFrontKeyValueStoreServiceException", 0, [], []];
66
- _s_registry.registerError(exports.CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException);
67
- const n0_registry = schema_1.TypeRegistry.for(n0);
68
- exports.AccessDeniedException$ = [-3, n0, _ADE,
58
+ const { TypeRegistry } = require("@smithy/core/schema");
59
+ const { CloudFrontKeyValueStoreServiceException } = require("../models/CloudFrontKeyValueStoreServiceException");
60
+ const { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } = require("../models/errors");
61
+ const _s_registry = TypeRegistry.for(_s);
62
+ const CloudFrontKeyValueStoreServiceException$ = [-3, _s, "CloudFrontKeyValueStoreServiceException", 0, [], []];
63
+ exports.CloudFrontKeyValueStoreServiceException$ = CloudFrontKeyValueStoreServiceException$;
64
+ _s_registry.registerError(CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException);
65
+ const n0_registry = TypeRegistry.for(n0);
66
+ const AccessDeniedException$ = [-3, n0, _ADE,
69
67
  { [_e]: _c, [_hE]: 403 },
70
68
  [_M],
71
69
  [0]
72
70
  ];
73
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
74
- exports.ConflictException$ = [-3, n0, _CE,
71
+ exports.AccessDeniedException$ = AccessDeniedException$;
72
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
73
+ const ConflictException$ = [-3, n0, _CE,
75
74
  { [_e]: _c, [_hE]: 409 },
76
75
  [_M],
77
76
  [0]
78
77
  ];
79
- n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
80
- exports.InternalServerException$ = [-3, n0, _ISE,
78
+ exports.ConflictException$ = ConflictException$;
79
+ n0_registry.registerError(ConflictException$, ConflictException);
80
+ const InternalServerException$ = [-3, n0, _ISE,
81
81
  { [_e]: _se, [_hE]: 500 },
82
82
  [_M],
83
83
  [0]
84
84
  ];
85
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
86
- exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
85
+ exports.InternalServerException$ = InternalServerException$;
86
+ n0_registry.registerError(InternalServerException$, InternalServerException);
87
+ const ResourceNotFoundException$ = [-3, n0, _RNFE,
87
88
  { [_e]: _c, [_hE]: 404 },
88
89
  [_M],
89
90
  [0]
90
91
  ];
91
- n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
92
- exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
92
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
93
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
94
+ const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
93
95
  { [_e]: _c, [_hE]: 402 },
94
96
  [_M],
95
97
  [0]
96
98
  ];
97
- n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
98
- exports.ValidationException$ = [-3, n0, _VE,
99
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
100
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
101
+ const ValidationException$ = [-3, n0, _VE,
99
102
  { [_e]: _c, [_hE]: 400 },
100
103
  [_M],
101
104
  [0]
102
105
  ];
103
- n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
106
+ exports.ValidationException$ = ValidationException$;
107
+ n0_registry.registerError(ValidationException$, ValidationException);
104
108
  exports.errorTypeRegistries = [
105
109
  _s_registry,
106
110
  n0_registry,
107
111
  ];
108
112
  var Value = [0, n0, _V, 8, 0];
109
- exports.DeleteKeyRequest$ = [3, n0, _DKR,
113
+ const DeleteKeyRequest$ = [3, n0, _DKR,
110
114
  0,
111
115
  [_KARN, _K, _IM],
112
116
  [[0, 1], [0, 1], [0, { [_hH]: _IM_ }]], 3
113
117
  ];
114
- exports.DeleteKeyRequestListItem$ = [3, n0, _DKRLI,
118
+ exports.DeleteKeyRequest$ = DeleteKeyRequest$;
119
+ const DeleteKeyRequestListItem$ = [3, n0, _DKRLI,
115
120
  0,
116
121
  [_K],
117
122
  [0], 1
118
123
  ];
119
- exports.DeleteKeyResponse$ = [3, n0, _DKRe,
124
+ exports.DeleteKeyRequestListItem$ = DeleteKeyRequestListItem$;
125
+ const DeleteKeyResponse$ = [3, n0, _DKRe,
120
126
  0,
121
127
  [_IC, _TSIB, _ET],
122
128
  [1, 1, [0, { [_hH]: _ET }]], 3
123
129
  ];
124
- exports.DescribeKeyValueStoreRequest$ = [3, n0, _DKVSR,
130
+ exports.DeleteKeyResponse$ = DeleteKeyResponse$;
131
+ const DescribeKeyValueStoreRequest$ = [3, n0, _DKVSR,
125
132
  0,
126
133
  [_KARN],
127
134
  [[0, 1]], 1
128
135
  ];
129
- exports.DescribeKeyValueStoreResponse$ = [3, n0, _DKVSRe,
136
+ exports.DescribeKeyValueStoreRequest$ = DescribeKeyValueStoreRequest$;
137
+ const DescribeKeyValueStoreResponse$ = [3, n0, _DKVSRe,
130
138
  0,
131
139
  [_IC, _TSIB, _KARN, _C, _ET, _LM, _S, _FR],
132
140
  [1, 1, 0, 4, [0, { [_hH]: _ET }], 4, 0, 0], 5
133
141
  ];
134
- exports.GetKeyRequest$ = [3, n0, _GKR,
142
+ exports.DescribeKeyValueStoreResponse$ = DescribeKeyValueStoreResponse$;
143
+ const GetKeyRequest$ = [3, n0, _GKR,
135
144
  0,
136
145
  [_KARN, _K],
137
146
  [[0, 1], [0, 1]], 2
138
147
  ];
139
- exports.GetKeyResponse$ = [3, n0, _GKRe,
148
+ exports.GetKeyRequest$ = GetKeyRequest$;
149
+ const GetKeyResponse$ = [3, n0, _GKRe,
140
150
  0,
141
151
  [_K, _V, _IC, _TSIB],
142
152
  [0, [() => Value, 0], 1, 1], 4
143
153
  ];
144
- exports.ListKeysRequest$ = [3, n0, _LKR,
154
+ exports.GetKeyResponse$ = GetKeyResponse$;
155
+ const ListKeysRequest$ = [3, n0, _LKR,
145
156
  0,
146
157
  [_KARN, _NT, _MR],
147
158
  [[0, 1], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]], 1
148
159
  ];
149
- exports.ListKeysResponse$ = [3, n0, _LKRi,
160
+ exports.ListKeysRequest$ = ListKeysRequest$;
161
+ const ListKeysResponse$ = [3, n0, _LKRi,
150
162
  0,
151
163
  [_NT, _I],
152
164
  [0, [() => ListKeysResponseList, 0]]
153
165
  ];
154
- exports.ListKeysResponseListItem$ = [3, n0, _LKRLI,
166
+ exports.ListKeysResponse$ = ListKeysResponse$;
167
+ const ListKeysResponseListItem$ = [3, n0, _LKRLI,
155
168
  0,
156
169
  [_K, _V],
157
170
  [0, [() => Value, 0]], 2
158
171
  ];
159
- exports.PutKeyRequest$ = [3, n0, _PKR,
172
+ exports.ListKeysResponseListItem$ = ListKeysResponseListItem$;
173
+ const PutKeyRequest$ = [3, n0, _PKR,
160
174
  0,
161
175
  [_K, _V, _KARN, _IM],
162
176
  [[0, 1], [() => Value, 0], [0, 1], [0, { [_hH]: _IM_ }]], 4
163
177
  ];
164
- exports.PutKeyRequestListItem$ = [3, n0, _PKRLI,
178
+ exports.PutKeyRequest$ = PutKeyRequest$;
179
+ const PutKeyRequestListItem$ = [3, n0, _PKRLI,
165
180
  0,
166
181
  [_K, _V],
167
182
  [0, [() => Value, 0]], 2
168
183
  ];
169
- exports.PutKeyResponse$ = [3, n0, _PKRu,
184
+ exports.PutKeyRequestListItem$ = PutKeyRequestListItem$;
185
+ const PutKeyResponse$ = [3, n0, _PKRu,
170
186
  0,
171
187
  [_IC, _TSIB, _ET],
172
188
  [1, 1, [0, { [_hH]: _ET }]], 3
173
189
  ];
174
- exports.UpdateKeysRequest$ = [3, n0, _UKR,
190
+ exports.PutKeyResponse$ = PutKeyResponse$;
191
+ const UpdateKeysRequest$ = [3, n0, _UKR,
175
192
  0,
176
193
  [_KARN, _IM, _P, _D],
177
194
  [[0, 1], [0, { [_hH]: _IM_ }], [() => PutKeyRequestsList, 0], () => DeleteKeyRequestsList], 2
178
195
  ];
179
- exports.UpdateKeysResponse$ = [3, n0, _UKRp,
196
+ exports.UpdateKeysRequest$ = UpdateKeysRequest$;
197
+ const UpdateKeysResponse$ = [3, n0, _UKRp,
180
198
  0,
181
199
  [_IC, _TSIB, _ET],
182
200
  [1, 1, [0, { [_hH]: _ET }]], 3
183
201
  ];
202
+ exports.UpdateKeysResponse$ = UpdateKeysResponse$;
184
203
  var DeleteKeyRequestsList = [1, n0, _DKRL,
185
- 0, () => exports.DeleteKeyRequestListItem$
204
+ 0, () => DeleteKeyRequestListItem$
186
205
  ];
187
206
  var ListKeysResponseList = [1, n0, _LKRL,
188
- 0, [() => exports.ListKeysResponseListItem$,
207
+ 0, [() => ListKeysResponseListItem$,
189
208
  0]
190
209
  ];
191
210
  var PutKeyRequestsList = [1, n0, _PKRL,
192
- 0, [() => exports.PutKeyRequestListItem$,
211
+ 0, [() => PutKeyRequestListItem$,
193
212
  0]
194
213
  ];
195
214
  exports.DeleteKey$ = [9, n0, _DK,
196
- { [_h]: ["DELETE", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.DeleteKeyRequest$, () => exports.DeleteKeyResponse$
215
+ { [_h]: ["DELETE", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => DeleteKeyRequest$, () => DeleteKeyResponse$
197
216
  ];
198
217
  exports.DescribeKeyValueStore$ = [9, n0, _DKVS,
199
- { [_h]: ["GET", "/key-value-stores/{KvsARN}", 200] }, () => exports.DescribeKeyValueStoreRequest$, () => exports.DescribeKeyValueStoreResponse$
218
+ { [_h]: ["GET", "/key-value-stores/{KvsARN}", 200] }, () => DescribeKeyValueStoreRequest$, () => DescribeKeyValueStoreResponse$
200
219
  ];
201
220
  exports.GetKey$ = [9, n0, _GK,
202
- { [_h]: ["GET", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.GetKeyRequest$, () => exports.GetKeyResponse$
221
+ { [_h]: ["GET", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => GetKeyRequest$, () => GetKeyResponse$
203
222
  ];
204
223
  exports.ListKeys$ = [9, n0, _LK,
205
- { [_h]: ["GET", "/key-value-stores/{KvsARN}/keys", 200] }, () => exports.ListKeysRequest$, () => exports.ListKeysResponse$
224
+ { [_h]: ["GET", "/key-value-stores/{KvsARN}/keys", 200] }, () => ListKeysRequest$, () => ListKeysResponse$
206
225
  ];
207
226
  exports.PutKey$ = [9, n0, _PK,
208
- { [_h]: ["PUT", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.PutKeyRequest$, () => exports.PutKeyResponse$
227
+ { [_h]: ["PUT", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => PutKeyRequest$, () => PutKeyResponse$
209
228
  ];
210
229
  exports.UpdateKeys$ = [9, n0, _UK,
211
- { [_h]: ["POST", "/key-value-stores/{KvsARN}/keys", 200] }, () => exports.UpdateKeysRequest$, () => exports.UpdateKeysResponse$
230
+ { [_h]: ["POST", "/key-value-stores/{KvsARN}/keys", 200] }, () => UpdateKeysRequest$, () => UpdateKeysResponse$
212
231
  ];
package/package.json CHANGED
@@ -1,17 +1,17 @@
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.1067.0",
4
+ "version": "3.1069.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo cloudfront-keyvaluestore",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
16
16
  },
17
17
  "main": "./dist-cjs/index.js",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.20",
25
- "@aws-sdk/credential-provider-node": "^3.972.55",
26
- "@aws-sdk/signature-v4-multi-region": "^3.996.34",
27
- "@aws-sdk/types": "^3.973.12",
24
+ "@aws-sdk/core": "^3.974.21",
25
+ "@aws-sdk/credential-provider-node": "^3.972.56",
26
+ "@aws-sdk/signature-v4-multi-region": "^3.996.35",
27
+ "@aws-sdk/types": "^3.973.13",
28
28
  "@smithy/core": "^3.24.6",
29
29
  "@smithy/fetch-http-handler": "^5.4.6",
30
30
  "@smithy/node-http-handler": "^4.7.6",