@aws-sdk/client-cloudfront-keyvaluestore 3.622.0 → 3.623.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.
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
6
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
+ const util_middleware_1 = require("@smithy/util-middleware");
8
+ const endpointResolver_1 = require("../endpoint/endpointResolver");
9
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
10
+ if (!input) {
11
+ throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
12
+ }
13
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
14
+ const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
15
+ ?.getEndpointParameterInstructions;
16
+ if (!instructionsFn) {
17
+ throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
18
+ }
19
+ const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
20
+ return Object.assign(defaultParameters, endpointParameters);
21
+ };
22
+ const _defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
23
+ return {
24
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
25
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
26
+ (() => {
27
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
28
+ })(),
29
+ };
30
+ };
31
+ exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider);
32
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
33
+ return {
34
+ schemeId: "aws.auth#sigv4",
35
+ signingProperties: {
36
+ name: "cloudfront-keyvaluestore",
37
+ region: authParameters.region,
38
+ },
39
+ propertiesExtractor: (config, context) => ({
40
+ signingProperties: {
41
+ config,
42
+ context,
43
+ },
44
+ }),
45
+ };
46
+ }
47
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
48
+ return {
49
+ schemeId: "aws.auth#sigv4a",
50
+ signingProperties: {
51
+ name: "cloudfront-keyvaluestore",
52
+ region: authParameters.region,
53
+ },
54
+ propertiesExtractor: (config, context) => ({
55
+ signingProperties: {
56
+ config,
57
+ context,
58
+ },
59
+ }),
60
+ };
61
+ }
62
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
63
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
64
+ const endpoint = defaultEndpointResolver(authParameters);
65
+ const authSchemes = endpoint.properties?.authSchemes;
66
+ if (!authSchemes) {
67
+ return defaultHttpAuthSchemeResolver(authParameters);
68
+ }
69
+ const options = [];
70
+ for (const scheme of authSchemes) {
71
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
72
+ const name = resolvedName.toLowerCase();
73
+ if (resolvedName !== name) {
74
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
75
+ }
76
+ let schemeId;
77
+ if (name === "sigv4a") {
78
+ schemeId = "aws.auth#sigv4a";
79
+ const sigv4Present = authSchemes.find((s) => {
80
+ const name = s.name.toLowerCase();
81
+ return name !== "sigv4a" && name.startsWith("sigv4");
82
+ });
83
+ if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
84
+ continue;
85
+ }
86
+ }
87
+ else if (name.startsWith("sigv4")) {
88
+ schemeId = "aws.auth#sigv4";
89
+ }
90
+ else {
91
+ throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
92
+ }
93
+ const createOption = createHttpAuthOptionFunctions[schemeId];
94
+ if (!createOption) {
95
+ throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
96
+ }
97
+ const option = createOption(authParameters);
98
+ option.schemeId = schemeId;
99
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
100
+ options.push(option);
101
+ }
102
+ return options;
103
+ };
104
+ return endpointRuleSetHttpAuthSchemeProvider;
105
+ };
106
+ const _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = (authParameters) => {
107
+ const options = [];
108
+ switch (authParameters.operation) {
109
+ default: {
110
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
111
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
112
+ }
113
+ }
114
+ return options;
115
+ };
116
+ exports.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider, {
117
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
118
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
119
+ });
120
+ const resolveHttpAuthSchemeConfig = (config) => {
121
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
122
+ return {
123
+ ...config_0,
124
+ };
125
+ };
126
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -51,13 +51,14 @@ module.exports = __toCommonJS(src_exports);
51
51
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
52
52
  var import_middleware_logger = require("@aws-sdk/middleware-logger");
53
53
  var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
54
- var import_middleware_signing = require("@aws-sdk/middleware-signing");
55
54
  var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
56
55
  var import_config_resolver = require("@smithy/config-resolver");
56
+ var import_core = require("@smithy/core");
57
57
  var import_middleware_content_length = require("@smithy/middleware-content-length");
58
58
  var import_middleware_endpoint = require("@smithy/middleware-endpoint");
59
59
  var import_middleware_retry = require("@smithy/middleware-retry");
60
60
 
61
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
61
62
 
62
63
  // src/endpoint/EndpointParameters.ts
63
64
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
@@ -80,19 +81,62 @@ var import_runtimeConfig = require("././runtimeConfig");
80
81
  var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
81
82
  var import_protocol_http = require("@smithy/protocol-http");
82
83
  var import_smithy_client = require("@smithy/smithy-client");
84
+
85
+ // src/auth/httpAuthExtensionConfiguration.ts
86
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
87
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
88
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
89
+ let _credentials = runtimeConfig.credentials;
90
+ return {
91
+ setHttpAuthScheme(httpAuthScheme) {
92
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
93
+ if (index === -1) {
94
+ _httpAuthSchemes.push(httpAuthScheme);
95
+ } else {
96
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
97
+ }
98
+ },
99
+ httpAuthSchemes() {
100
+ return _httpAuthSchemes;
101
+ },
102
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
103
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
104
+ },
105
+ httpAuthSchemeProvider() {
106
+ return _httpAuthSchemeProvider;
107
+ },
108
+ setCredentials(credentials) {
109
+ _credentials = credentials;
110
+ },
111
+ credentials() {
112
+ return _credentials;
113
+ }
114
+ };
115
+ }, "getHttpAuthExtensionConfiguration");
116
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
117
+ return {
118
+ httpAuthSchemes: config.httpAuthSchemes(),
119
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
120
+ credentials: config.credentials()
121
+ };
122
+ }, "resolveHttpAuthRuntimeConfig");
123
+
124
+ // src/runtimeExtensions.ts
83
125
  var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
84
126
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
85
127
  const extensionConfiguration = {
86
128
  ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
87
129
  ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
88
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
130
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
131
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
89
132
  };
90
133
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
91
134
  return {
92
135
  ...runtimeConfig,
93
136
  ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
94
137
  ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
95
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
138
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
139
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
96
140
  };
97
141
  }, "resolveRuntimeExtensions");
98
142
 
@@ -106,7 +150,7 @@ var _CloudFrontKeyValueStoreClient = class _CloudFrontKeyValueStoreClient extend
106
150
  const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
107
151
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
108
152
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
109
- const _config_7 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_6);
153
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
110
154
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
111
155
  super(_config_8);
112
156
  this.config = _config_8;
@@ -116,7 +160,16 @@ var _CloudFrontKeyValueStoreClient = class _CloudFrontKeyValueStoreClient extend
116
160
  this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
117
161
  this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
118
162
  this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
119
- this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
163
+ this.middlewareStack.use(
164
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
165
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
166
+ identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
167
+ "aws.auth#sigv4": config.credentials,
168
+ "aws.auth#sigv4a": config.credentials
169
+ })
170
+ })
171
+ );
172
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
120
173
  }
121
174
  /**
122
175
  * Destroy underlying resources, like sockets. It's usually not necessary to do this.
@@ -139,8 +192,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
139
192
 
140
193
 
141
194
  // src/protocols/Aws_restJson1.ts
142
- var import_core = require("@aws-sdk/core");
143
- var import_core2 = require("@smithy/core");
195
+ var import_core2 = require("@aws-sdk/core");
196
+
144
197
 
145
198
 
146
199
  // src/models/CloudFrontKeyValueStoreServiceException.ts
@@ -294,7 +347,7 @@ var UpdateKeysRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
294
347
 
295
348
  // src/protocols/Aws_restJson1.ts
296
349
  var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
297
- const b = (0, import_core2.requestBuilder)(input, context);
350
+ const b = (0, import_core.requestBuilder)(input, context);
298
351
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
299
352
  [_im]: input[_IM]
300
353
  });
@@ -306,7 +359,7 @@ var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
306
359
  return b.build();
307
360
  }, "se_DeleteKeyCommand");
308
361
  var se_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
309
- const b = (0, import_core2.requestBuilder)(input, context);
362
+ const b = (0, import_core.requestBuilder)(input, context);
310
363
  const headers = {};
311
364
  b.bp("/key-value-stores/{KvsARN}");
312
365
  b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
@@ -315,7 +368,7 @@ var se_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (input, conte
315
368
  return b.build();
316
369
  }, "se_DescribeKeyValueStoreCommand");
317
370
  var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
318
- const b = (0, import_core2.requestBuilder)(input, context);
371
+ const b = (0, import_core.requestBuilder)(input, context);
319
372
  const headers = {};
320
373
  b.bp("/key-value-stores/{KvsARN}/keys/{Key}");
321
374
  b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
@@ -325,7 +378,7 @@ var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
325
378
  return b.build();
326
379
  }, "se_GetKeyCommand");
327
380
  var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
328
- const b = (0, import_core2.requestBuilder)(input, context);
381
+ const b = (0, import_core.requestBuilder)(input, context);
329
382
  const headers = {};
330
383
  b.bp("/key-value-stores/{KvsARN}/keys");
331
384
  b.p("KvsARN", () => input.KvsARN, "{KvsARN}", false);
@@ -338,7 +391,7 @@ var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
338
391
  return b.build();
339
392
  }, "se_ListKeysCommand");
340
393
  var se_PutKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
341
- const b = (0, import_core2.requestBuilder)(input, context);
394
+ const b = (0, import_core.requestBuilder)(input, context);
342
395
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
343
396
  "content-type": "application/json",
344
397
  [_im]: input[_IM]
@@ -356,7 +409,7 @@ var se_PutKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
356
409
  return b.build();
357
410
  }, "se_PutKeyCommand");
358
411
  var se_UpdateKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
359
- const b = (0, import_core2.requestBuilder)(input, context);
412
+ const b = (0, import_core.requestBuilder)(input, context);
360
413
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
361
414
  "content-type": "application/json",
362
415
  [_im]: input[_IM]
@@ -381,7 +434,7 @@ var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
381
434
  $metadata: deserializeMetadata(output),
382
435
  [_ET]: [, output.headers[_e]]
383
436
  });
384
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
437
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
385
438
  const doc = (0, import_smithy_client.take)(data, {
386
439
  ItemCount: import_smithy_client.expectInt32,
387
440
  TotalSizeInBytes: import_smithy_client.expectLong
@@ -397,7 +450,7 @@ var de_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (output, cont
397
450
  $metadata: deserializeMetadata(output),
398
451
  [_ET]: [, output.headers[_e]]
399
452
  });
400
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
453
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
401
454
  const doc = (0, import_smithy_client.take)(data, {
402
455
  Created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
403
456
  FailureReason: import_smithy_client.expectString,
@@ -417,7 +470,7 @@ var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
417
470
  const contents = (0, import_smithy_client.map)({
418
471
  $metadata: deserializeMetadata(output)
419
472
  });
420
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
473
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
421
474
  const doc = (0, import_smithy_client.take)(data, {
422
475
  ItemCount: import_smithy_client.expectInt32,
423
476
  Key: import_smithy_client.expectString,
@@ -434,7 +487,7 @@ var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
434
487
  const contents = (0, import_smithy_client.map)({
435
488
  $metadata: deserializeMetadata(output)
436
489
  });
437
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
490
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
438
491
  const doc = (0, import_smithy_client.take)(data, {
439
492
  Items: import_smithy_client._json,
440
493
  NextToken: import_smithy_client.expectString
@@ -450,7 +503,7 @@ var de_PutKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
450
503
  $metadata: deserializeMetadata(output),
451
504
  [_ET]: [, output.headers[_e]]
452
505
  });
453
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
506
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
454
507
  const doc = (0, import_smithy_client.take)(data, {
455
508
  ItemCount: import_smithy_client.expectInt32,
456
509
  TotalSizeInBytes: import_smithy_client.expectLong
@@ -466,7 +519,7 @@ var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
466
519
  $metadata: deserializeMetadata(output),
467
520
  [_ET]: [, output.headers[_e]]
468
521
  });
469
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseJsonBody)(output.body, context)), "body");
522
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
470
523
  const doc = (0, import_smithy_client.take)(data, {
471
524
  ItemCount: import_smithy_client.expectInt32,
472
525
  TotalSizeInBytes: import_smithy_client.expectLong
@@ -477,9 +530,9 @@ var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
477
530
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
478
531
  const parsedOutput = {
479
532
  ...output,
480
- body: await (0, import_core.parseJsonErrorBody)(output.body, context)
533
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
481
534
  };
482
- const errorCode = (0, import_core.loadRestJsonErrorCode)(output, parsedOutput.body);
535
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
483
536
  switch (errorCode) {
484
537
  case "AccessDeniedException":
485
538
  case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
@@ -716,8 +769,8 @@ var CloudFrontKeyValueStore = _CloudFrontKeyValueStore;
716
769
  (0, import_smithy_client.createAggregatedClient)(commands, CloudFrontKeyValueStore);
717
770
 
718
771
  // src/pagination/ListKeysPaginator.ts
719
- var import_core3 = require("@smithy/core");
720
- var paginateListKeys = (0, import_core3.createPaginator)(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
772
+
773
+ var paginateListKeys = (0, import_core.createPaginator)(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
721
774
  // Annotate the CommonJS export names for ESM import in node:
722
775
 
723
776
  0 && (module.exports = {
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
4
5
  const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
8
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
9
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
10
12
  const getRuntimeConfig = (config) => {
11
13
  return {
@@ -15,6 +17,19 @@ const getRuntimeConfig = (config) => {
15
17
  disableHostPrefix: config?.disableHostPrefix ?? false,
16
18
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
17
19
  extensions: config?.extensions ?? [],
20
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider,
21
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
22
+ {
23
+ schemeId: "aws.auth#sigv4",
24
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
+ signer: new core_1.AwsSdkSigV4Signer(),
26
+ },
27
+ {
28
+ schemeId: "aws.auth#sigv4a",
29
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
30
+ signer: new core_1.AwsSdkSigV4ASigner(),
31
+ },
32
+ ],
18
33
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
19
34
  serviceId: config?.serviceId ?? "CloudFront KeyValueStore",
20
35
  signerConstructor: config?.signerConstructor ?? signature_v4_multi_region_1.SignatureV4MultiRegion,
@@ -1,13 +1,14 @@
1
1
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
2
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
3
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
- import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
5
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
8
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
9
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
10
  import { Client as __Client, } from "@smithy/smithy-client";
11
+ import { defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
11
12
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
13
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
@@ -21,7 +22,7 @@ export class CloudFrontKeyValueStoreClient extends __Client {
21
22
  const _config_4 = resolveRegionConfig(_config_3);
22
23
  const _config_5 = resolveHostHeaderConfig(_config_4);
23
24
  const _config_6 = resolveEndpointConfig(_config_5);
24
- const _config_7 = resolveAwsAuthConfig(_config_6);
25
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
25
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
26
27
  super(_config_8);
27
28
  this.config = _config_8;
@@ -31,7 +32,14 @@ export class CloudFrontKeyValueStoreClient extends __Client {
31
32
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
33
  this.middlewareStack.use(getLoggerPlugin(this.config));
33
34
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
35
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
+ httpAuthSchemeParametersProvider: defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider,
37
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
38
+ "aws.auth#sigv4": config.credentials,
39
+ "aws.auth#sigv4a": config.credentials,
40
+ }),
41
+ }));
42
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
35
43
  }
36
44
  destroy() {
37
45
  super.destroy();
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,122 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region";
3
+ import { resolveParams } from "@smithy/middleware-endpoint";
4
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
5
+ import { defaultEndpointResolver } from "../endpoint/endpointResolver";
6
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
7
+ if (!input) {
8
+ throw new Error(`Could not find \`input\` for \`defaultEndpointRuleSetHttpAuthSchemeParametersProvider\``);
9
+ }
10
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
11
+ const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
12
+ ?.getEndpointParameterInstructions;
13
+ if (!instructionsFn) {
14
+ throw new Error(`getEndpointParameterInstructions() is not defined on \`${context.commandName}\``);
15
+ }
16
+ const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
17
+ return Object.assign(defaultParameters, endpointParameters);
18
+ };
19
+ const _defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
20
+ return {
21
+ operation: getSmithyContext(context).operation,
22
+ region: (await normalizeProvider(config.region)()) ||
23
+ (() => {
24
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
25
+ })(),
26
+ };
27
+ };
28
+ export const defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider);
29
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
30
+ return {
31
+ schemeId: "aws.auth#sigv4",
32
+ signingProperties: {
33
+ name: "cloudfront-keyvaluestore",
34
+ region: authParameters.region,
35
+ },
36
+ propertiesExtractor: (config, context) => ({
37
+ signingProperties: {
38
+ config,
39
+ context,
40
+ },
41
+ }),
42
+ };
43
+ }
44
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
45
+ return {
46
+ schemeId: "aws.auth#sigv4a",
47
+ signingProperties: {
48
+ name: "cloudfront-keyvaluestore",
49
+ region: authParameters.region,
50
+ },
51
+ propertiesExtractor: (config, context) => ({
52
+ signingProperties: {
53
+ config,
54
+ context,
55
+ },
56
+ }),
57
+ };
58
+ }
59
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
60
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
61
+ const endpoint = defaultEndpointResolver(authParameters);
62
+ const authSchemes = endpoint.properties?.authSchemes;
63
+ if (!authSchemes) {
64
+ return defaultHttpAuthSchemeResolver(authParameters);
65
+ }
66
+ const options = [];
67
+ for (const scheme of authSchemes) {
68
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
69
+ const name = resolvedName.toLowerCase();
70
+ if (resolvedName !== name) {
71
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${resolvedName}\` to \`${name}\``);
72
+ }
73
+ let schemeId;
74
+ if (name === "sigv4a") {
75
+ schemeId = "aws.auth#sigv4a";
76
+ const sigv4Present = authSchemes.find((s) => {
77
+ const name = s.name.toLowerCase();
78
+ return name !== "sigv4a" && name.startsWith("sigv4");
79
+ });
80
+ if (!signatureV4CrtContainer.CrtSignerV4 && sigv4Present) {
81
+ continue;
82
+ }
83
+ }
84
+ else if (name.startsWith("sigv4")) {
85
+ schemeId = "aws.auth#sigv4";
86
+ }
87
+ else {
88
+ throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${name}\``);
89
+ }
90
+ const createOption = createHttpAuthOptionFunctions[schemeId];
91
+ if (!createOption) {
92
+ throw new Error(`Could not find HttpAuthOption create function for \`${schemeId}\``);
93
+ }
94
+ const option = createOption(authParameters);
95
+ option.schemeId = schemeId;
96
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
97
+ options.push(option);
98
+ }
99
+ return options;
100
+ };
101
+ return endpointRuleSetHttpAuthSchemeProvider;
102
+ };
103
+ const _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = (authParameters) => {
104
+ const options = [];
105
+ switch (authParameters.operation) {
106
+ default: {
107
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
108
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
109
+ }
110
+ }
111
+ return options;
112
+ };
113
+ export const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider, {
114
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
115
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
116
+ });
117
+ export const resolveHttpAuthSchemeConfig = (config) => {
118
+ const config_0 = resolveAwsSdkSigV4Config(config);
119
+ return {
120
+ ...config_0,
121
+ };
122
+ };
@@ -1,8 +1,10 @@
1
+ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core";
1
2
  import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
5
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
+ import { defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
6
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
7
9
  export const getRuntimeConfig = (config) => {
8
10
  return {
@@ -12,6 +14,19 @@ export const getRuntimeConfig = (config) => {
12
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
13
15
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
14
16
  extensions: config?.extensions ?? [],
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider,
18
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
19
+ {
20
+ schemeId: "aws.auth#sigv4",
21
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
+ signer: new AwsSdkSigV4Signer(),
23
+ },
24
+ {
25
+ schemeId: "aws.auth#sigv4a",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
27
+ signer: new AwsSdkSigV4ASigner(),
28
+ },
29
+ ],
15
30
  logger: config?.logger ?? new NoOpLogger(),
16
31
  serviceId: config?.serviceId ?? "CloudFront KeyValueStore",
17
32
  signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
@@ -1,12 +1,14 @@
1
1
  import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
4
5
  const asPartial = (t) => t;
5
6
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
7
  const extensionConfiguration = {
7
8
  ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
9
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
10
  ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
10
12
  };
11
13
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
14
  return {
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
14
16
  ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
17
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
18
  ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
17
20
  };
18
21
  };
@@ -1,13 +1,12 @@
1
1
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
2
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
- import { Credentials as __Credentials } from "@aws-sdk/types";
5
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
9
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
- import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
10
  import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
12
11
  import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "./commands/DescribeKeyValueStoreCommand";
13
12
  import { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
@@ -108,9 +107,10 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
108
107
  defaultUserAgentProvider?: Provider<__UserAgent>;
109
108
  /**
110
109
  * Default credentials provider; Not available in browser runtime.
110
+ * @deprecated
111
111
  * @internal
112
112
  */
113
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
113
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
114
114
  /**
115
115
  * Value for how many times a request will be made at most in case of retry.
116
116
  */
@@ -137,7 +137,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
137
137
  /**
138
138
  * @public
139
139
  */
140
- export type CloudFrontKeyValueStoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & AwsAuthInputConfig & ClientInputEndpointParameters;
140
+ export type CloudFrontKeyValueStoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
141
141
  /**
142
142
  * @public
143
143
  *
@@ -148,7 +148,7 @@ export interface CloudFrontKeyValueStoreClientConfig extends CloudFrontKeyValueS
148
148
  /**
149
149
  * @public
150
150
  */
151
- export type CloudFrontKeyValueStoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & AwsAuthResolvedConfig & ClientResolvedEndpointParameters;
151
+ export type CloudFrontKeyValueStoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
152
152
  /**
153
153
  * @public
154
154
  *
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { CloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): CloudFrontKeyValueStoreHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,69 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { CloudFrontKeyValueStoreClientResolvedConfig } from "../CloudFrontKeyValueStoreClient";
4
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
5
+ /**
6
+ * @internal
7
+ */
8
+ interface _CloudFrontKeyValueStoreHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
9
+ region?: string;
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParameters extends _CloudFrontKeyValueStoreHttpAuthSchemeParameters, EndpointParameters {
15
+ region?: string;
16
+ }
17
+ /**
18
+ * @internal
19
+ */
20
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<CloudFrontKeyValueStoreClientResolvedConfig, HandlerExecutionContext, CloudFrontKeyValueStoreHttpAuthSchemeParameters, object> {
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider: CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider;
26
+ /**
27
+ * @internal
28
+ */
29
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CloudFrontKeyValueStoreHttpAuthSchemeParameters> {
30
+ }
31
+ /**
32
+ * @internal
33
+ */
34
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
56
+ * @internal
57
+ */
58
+ readonly httpAuthSchemes: HttpAuthScheme[];
59
+ /**
60
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
61
+ * @internal
62
+ */
63
+ readonly httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
64
+ }
65
+ /**
66
+ * @internal
67
+ */
68
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
69
+ export {};
@@ -1,8 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface CloudFrontKeyValueStoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ export interface CloudFrontKeyValueStoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
8
9
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -34,7 +34,9 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
34
34
  logger?: import("@smithy/types").Logger | undefined;
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
37
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
38
40
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
39
41
  signingEscapePath?: boolean | undefined;
40
42
  systemClockOffset?: number | undefined;
@@ -34,7 +34,9 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
34
34
  logger?: import("@smithy/types").Logger | undefined;
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
37
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
38
40
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
39
41
  signingEscapePath?: boolean | undefined;
40
42
  systemClockOffset?: number | undefined;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  region: string | import("@smithy/types").Provider<any>;
22
22
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
23
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@smithy/types").Logger;
@@ -33,7 +33,9 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
33
33
  logger?: import("@smithy/types").Logger | undefined;
34
34
  }) => import("@smithy/types").EndpointV2;
35
35
  tls?: boolean | undefined;
36
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
36
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
38
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
37
39
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
38
40
  signingEscapePath?: boolean | undefined;
39
41
  systemClockOffset?: number | undefined;
@@ -12,6 +12,8 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
12
12
  logger?: import("@smithy/types").Logger | undefined;
13
13
  }) => import("@smithy/types").EndpointV2;
14
14
  extensions: import("./runtimeExtensions").RuntimeExtension[];
15
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
16
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
15
17
  logger: import("@smithy/types").Logger;
16
18
  serviceId: string;
17
19
  signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof SignatureV4MultiRegion;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  DeleteKeyCommandInput,
50
50
  DeleteKeyCommandOutput,
@@ -108,7 +108,7 @@ export interface ClientDefaults
108
108
  useFipsEndpoint?: boolean | __Provider<boolean>;
109
109
  region?: string | __Provider<string>;
110
110
  defaultUserAgentProvider?: Provider<__UserAgent>;
111
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
111
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
112
112
  maxAttempts?: number | __Provider<number>;
113
113
  retryMode?: string | __Provider<string>;
114
114
  logger?: __Logger;
@@ -124,7 +124,7 @@ export type CloudFrontKeyValueStoreClientConfigType = Partial<
124
124
  RegionInputConfig &
125
125
  HostHeaderInputConfig &
126
126
  EndpointInputConfig<EndpointParameters> &
127
- AwsAuthInputConfig &
127
+ HttpAuthSchemeInputConfig &
128
128
  ClientInputEndpointParameters;
129
129
  export interface CloudFrontKeyValueStoreClientConfig
130
130
  extends CloudFrontKeyValueStoreClientConfigType {}
@@ -137,7 +137,7 @@ export type CloudFrontKeyValueStoreClientResolvedConfigType =
137
137
  RegionResolvedConfig &
138
138
  HostHeaderResolvedConfig &
139
139
  EndpointResolvedConfig<EndpointParameters> &
140
- AwsAuthResolvedConfig &
140
+ HttpAuthSchemeResolvedConfig &
141
141
  ClientResolvedEndpointParameters;
142
142
  export interface CloudFrontKeyValueStoreClientResolvedConfig
143
143
  extends CloudFrontKeyValueStoreClientResolvedConfigType {}
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { CloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): CloudFrontKeyValueStoreHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,47 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { CloudFrontKeyValueStoreClientResolvedConfig } from "../CloudFrontKeyValueStoreClient";
14
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
15
+ interface _CloudFrontKeyValueStoreHttpAuthSchemeParameters
16
+ extends HttpAuthSchemeParameters {
17
+ region?: string;
18
+ }
19
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParameters
20
+ extends _CloudFrontKeyValueStoreHttpAuthSchemeParameters,
21
+ EndpointParameters {
22
+ region?: string;
23
+ }
24
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider
25
+ extends HttpAuthSchemeParametersProvider<
26
+ CloudFrontKeyValueStoreClientResolvedConfig,
27
+ HandlerExecutionContext,
28
+ CloudFrontKeyValueStoreHttpAuthSchemeParameters,
29
+ object
30
+ > {}
31
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider: CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider;
32
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeProvider
33
+ extends HttpAuthSchemeProvider<CloudFrontKeyValueStoreHttpAuthSchemeParameters> {}
34
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
35
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ httpAuthSchemeProvider?: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
38
+ }
39
+ export interface HttpAuthSchemeResolvedConfig
40
+ extends AwsSdkSigV4AuthResolvedConfig {
41
+ readonly httpAuthSchemes: HttpAuthScheme[];
42
+ readonly httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
43
+ }
44
+ export declare const resolveHttpAuthSchemeConfig: <T>(
45
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
46
+ ) => T & HttpAuthSchemeResolvedConfig;
47
+ export {};
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface CloudFrontKeyValueStoreExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: (
12
12
  input: any
13
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
13
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
14
14
  defaultUserAgentProvider: import("@smithy/types").Provider<
15
15
  import("@smithy/types").UserAgent
16
16
  >;
@@ -63,11 +63,11 @@ export declare const getRuntimeConfig: (
63
63
  }
64
64
  ) => import("@smithy/types").EndpointV2;
65
65
  tls?: boolean | undefined;
66
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
67
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
66
68
  credentials?:
67
69
  | import("@smithy/types").AwsCredentialIdentity
68
- | import("@smithy/types").Provider<
69
- import("@smithy/types").AwsCredentialIdentity
70
- >
70
+ | import("@smithy/types").AwsCredentialIdentityProvider
71
71
  | undefined;
72
72
  signer?:
73
73
  | import("@smithy/types").RequestSigner
@@ -67,11 +67,11 @@ export declare const getRuntimeConfig: (
67
67
  }
68
68
  ) => import("@smithy/types").EndpointV2;
69
69
  tls?: boolean | undefined;
70
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
71
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
70
72
  credentials?:
71
73
  | import("@smithy/types").AwsCredentialIdentity
72
- | import("@smithy/types").Provider<
73
- import("@smithy/types").AwsCredentialIdentity
74
- >
74
+ | import("@smithy/types").AwsCredentialIdentityProvider
75
75
  | undefined;
76
76
  signer?:
77
77
  | import("@smithy/types").RequestSigner
@@ -28,7 +28,7 @@ export declare const getRuntimeConfig: (
28
28
  >;
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
31
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
32
32
  maxAttempts: number | import("@smithy/types").Provider<number>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
34
  logger: import("@smithy/types").Logger;
@@ -57,11 +57,11 @@ export declare const getRuntimeConfig: (
57
57
  }
58
58
  ) => import("@smithy/types").EndpointV2;
59
59
  tls?: boolean | undefined;
60
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
61
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
60
62
  credentials?:
61
63
  | import("@smithy/types").AwsCredentialIdentity
62
- | import("@smithy/types").Provider<
63
- import("@smithy/types").AwsCredentialIdentity
64
- >
64
+ | import("@smithy/types").AwsCredentialIdentityProvider
65
65
  | undefined;
66
66
  signer?:
67
67
  | import("@smithy/types").RequestSigner
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (
14
14
  }
15
15
  ) => import("@smithy/types").EndpointV2;
16
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
17
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
18
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
19
  logger: import("@smithy/types").Logger;
18
20
  serviceId: string;
19
21
  signerConstructor:
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.622.0",
4
+ "version": "3.623.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",
@@ -20,14 +20,13 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.622.0",
24
- "@aws-sdk/client-sts": "3.622.0",
25
- "@aws-sdk/core": "3.622.0",
26
- "@aws-sdk/credential-provider-node": "3.622.0",
23
+ "@aws-sdk/client-sso-oidc": "3.623.0",
24
+ "@aws-sdk/client-sts": "3.623.0",
25
+ "@aws-sdk/core": "3.623.0",
26
+ "@aws-sdk/credential-provider-node": "3.623.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-signing": "3.620.0",
31
30
  "@aws-sdk/middleware-user-agent": "3.620.0",
32
31
  "@aws-sdk/region-config-resolver": "3.614.0",
33
32
  "@aws-sdk/signature-v4-multi-region": "3.622.0",
@@ -57,6 +56,7 @@
57
56
  "@smithy/util-defaults-mode-browser": "^3.0.14",
58
57
  "@smithy/util-defaults-mode-node": "^3.0.14",
59
58
  "@smithy/util-endpoints": "^2.0.5",
59
+ "@smithy/util-middleware": "^3.0.3",
60
60
  "@smithy/util-retry": "^3.0.3",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
62
  "tslib": "^2.6.2"