@aws-sdk/client-cloudfront-keyvaluestore 3.621.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist-cjs/index.js +84 -31
- package/dist-cjs/runtimeConfig.shared.js +15 -0
- package/dist-es/CloudFrontKeyValueStoreClient.js +19 -11
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/CloudFrontKeyValueStoreClient.d.ts +9 -9
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +69 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +6 -4
- package/dist-types/runtimeConfig.d.ts +5 -3
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/CloudFrontKeyValueStoreClient.d.ts +14 -14
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -9
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +11 -11
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +12 -12
|
@@ -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
|
|
|
@@ -101,22 +145,31 @@ var _CloudFrontKeyValueStoreClient = class _CloudFrontKeyValueStoreClient extend
|
|
|
101
145
|
constructor(...[configuration]) {
|
|
102
146
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
103
147
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
104
|
-
const _config_2 = (0,
|
|
105
|
-
const _config_3 = (0,
|
|
106
|
-
const _config_4 = (0,
|
|
107
|
-
const _config_5 = (0,
|
|
108
|
-
const _config_6 = (0,
|
|
109
|
-
const _config_7 = (0,
|
|
148
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
149
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
150
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
151
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
152
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
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;
|
|
113
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
114
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
115
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
116
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
117
157
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
118
158
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
119
159
|
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(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
|
|
143
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
533
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
481
534
|
};
|
|
482
|
-
const errorCode = (0,
|
|
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
|
-
|
|
720
|
-
var paginateListKeys = (0,
|
|
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";
|
|
@@ -16,22 +17,29 @@ export class CloudFrontKeyValueStoreClient extends __Client {
|
|
|
16
17
|
constructor(...[configuration]) {
|
|
17
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
19
|
-
const _config_2 =
|
|
20
|
-
const _config_3 =
|
|
21
|
-
const _config_4 =
|
|
22
|
-
const _config_5 =
|
|
23
|
-
const _config_6 =
|
|
24
|
-
const _config_7 =
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
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;
|
|
28
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
30
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
31
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
30
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
34
31
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(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
|
+
};
|