@cdk8s/awscdk-resolver 0.0.634 → 0.0.636
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +182 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +473 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +59 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +30 -0
- package/node_modules/@aws-sdk/core/package.json +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +28 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js +8 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +11 -9
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
- package/node_modules/@smithy/core/package.json +91 -91
- package/node_modules/@smithy/credential-provider-imds/package.json +34 -34
- package/node_modules/@smithy/fetch-http-handler/package.json +30 -30
- package/node_modules/@smithy/node-http-handler/package.json +33 -33
- package/node_modules/@smithy/signature-v4/package.json +29 -29
- package/package.json +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/getEndpointUrlConfig.js +0 -21
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.8",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "AWS SDK for JavaScript Team",
|
|
9
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
14
|
+
"directory": "packages/signature-v4"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist-*/**"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
5
20
|
"main": "./dist-cjs/index.js",
|
|
6
21
|
"module": "./dist-es/index.js",
|
|
7
22
|
"types": "./dist-types/index.d.ts",
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
"<4.5": {
|
|
25
|
+
"dist-types/*": [
|
|
26
|
+
"dist-types/ts3.4/*"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"directory": ".release/package"
|
|
32
|
+
},
|
|
8
33
|
"scripts": {
|
|
9
34
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
10
35
|
"build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
|
|
@@ -16,14 +41,8 @@
|
|
|
16
41
|
"test": "yarn g:vitest run",
|
|
17
42
|
"test:watch": "yarn g:vitest watch"
|
|
18
43
|
},
|
|
19
|
-
"author": {
|
|
20
|
-
"name": "AWS SDK for JavaScript Team",
|
|
21
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
22
|
-
},
|
|
23
|
-
"license": "Apache-2.0",
|
|
24
|
-
"sideEffects": false,
|
|
25
44
|
"dependencies": {
|
|
26
|
-
"@smithy/core": "^3.29.
|
|
45
|
+
"@smithy/core": "^3.29.7",
|
|
27
46
|
"@smithy/types": "^4.16.1",
|
|
28
47
|
"tslib": "^2.6.2"
|
|
29
48
|
},
|
|
@@ -33,29 +52,10 @@
|
|
|
33
52
|
"premove": "4.0.0",
|
|
34
53
|
"typedoc": "0.23.23"
|
|
35
54
|
},
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=18.0.0"
|
|
38
|
-
},
|
|
39
|
-
"typesVersions": {
|
|
40
|
-
"<4.5": {
|
|
41
|
-
"dist-types/*": [
|
|
42
|
-
"dist-types/ts3.4/*"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"files": [
|
|
47
|
-
"dist-*/**"
|
|
48
|
-
],
|
|
49
|
-
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
53
|
-
"directory": "packages/signature-v4"
|
|
54
|
-
},
|
|
55
55
|
"typedoc": {
|
|
56
56
|
"entryPoint": "src/index.ts"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=18.0.0"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"organization": false
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@cdk8s/projen-common": "0.1.
|
|
46
|
+
"@cdk8s/projen-common": "0.1.8",
|
|
47
47
|
"@stylistic/eslint-plugin": "^2",
|
|
48
48
|
"@types/fs-extra": "^11.0.4",
|
|
49
49
|
"@types/jest": "^27",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jsii-docgen": "^10.5.0",
|
|
68
68
|
"jsii-pacmak": "^1.139.0",
|
|
69
69
|
"jsii-rosetta": "^5",
|
|
70
|
-
"projen": "^0.101.
|
|
70
|
+
"projen": "^0.101.17",
|
|
71
71
|
"ts-jest": "^27",
|
|
72
72
|
"ts-node": "^10.9.2",
|
|
73
73
|
"typescript": "^5.9.3"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"constructs": "^10.3.0"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
81
|
+
"@aws-sdk/client-cloudformation": "^3.1092.0"
|
|
82
82
|
},
|
|
83
83
|
"bundledDependencies": [
|
|
84
84
|
"@aws-sdk/client-cloudformation"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"access": "public"
|
|
97
97
|
},
|
|
98
|
-
"version": "0.0.
|
|
98
|
+
"version": "0.0.636",
|
|
99
99
|
"jest": {
|
|
100
100
|
"coverageProvider": "v8",
|
|
101
101
|
"testMatch": [
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { determineTimestampFormat } from "@smithy/core/protocols";
|
|
2
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
-
import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
|
|
4
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
5
|
-
export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
|
|
6
|
-
settings;
|
|
7
|
-
buffer;
|
|
8
|
-
rootSchema;
|
|
9
|
-
constructor(settings) {
|
|
10
|
-
super();
|
|
11
|
-
this.settings = settings;
|
|
12
|
-
}
|
|
13
|
-
write(schema, value) {
|
|
14
|
-
this.rootSchema = NormalizedSchema.of(schema);
|
|
15
|
-
this.buffer = this.writeObject(this.rootSchema, value);
|
|
16
|
-
}
|
|
17
|
-
writeDiscriminatedDocument(schema, value) {
|
|
18
|
-
this.write(schema, value);
|
|
19
|
-
if (typeof this.buffer === "object") {
|
|
20
|
-
this.buffer.__type = NormalizedSchema.of(schema).getName(true);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
flush() {
|
|
24
|
-
this.rootSchema = undefined;
|
|
25
|
-
return this.buffer;
|
|
26
|
-
}
|
|
27
|
-
writeObject(schema, value) {
|
|
28
|
-
if (value == undefined) {
|
|
29
|
-
return "";
|
|
30
|
-
}
|
|
31
|
-
let b = "";
|
|
32
|
-
const ns = NormalizedSchema.of(schema);
|
|
33
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
34
|
-
if (Array.isArray(value) && (ns.isDocumentSchema() || ns.isListSchema())) {
|
|
35
|
-
b += "[";
|
|
36
|
-
for (let i = 0; i < value.length; ++i) {
|
|
37
|
-
const item = value[i];
|
|
38
|
-
if (item != null || sparse) {
|
|
39
|
-
b += this.writeValue(ns.getValueSchema(), item);
|
|
40
|
-
b += ",";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else if (ns.isStructSchema()) {
|
|
45
|
-
b += "{";
|
|
46
|
-
let didWriteMember = false;
|
|
47
|
-
for (const [name, member] of ns.structIterator()) {
|
|
48
|
-
const item = value[name];
|
|
49
|
-
const targetKey = this.settings.jsonName ? (member.getMergedTraits().jsonName ?? name) : name;
|
|
50
|
-
const serializableValue = this.writeValue(member, item);
|
|
51
|
-
if (item != null || member.isIdempotencyToken()) {
|
|
52
|
-
didWriteMember = true;
|
|
53
|
-
b += `"${targetKey}":${serializableValue}`;
|
|
54
|
-
b += ",";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if (!didWriteMember && ns.isUnionSchema()) {
|
|
58
|
-
const { $unknown } = value;
|
|
59
|
-
if (Array.isArray($unknown)) {
|
|
60
|
-
const [k, v] = $unknown;
|
|
61
|
-
b += `"${k}":${this.writeValue(15, v)}`;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else if (ns.isMapSchema() || ns.isDocumentSchema()) {
|
|
66
|
-
b += "{";
|
|
67
|
-
for (const k in value) {
|
|
68
|
-
const v = value[k];
|
|
69
|
-
if (v != null || sparse) {
|
|
70
|
-
b += `"${k}":${this.writeValue(ns, v)}`;
|
|
71
|
-
b += ",";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (b[b.length - 1] === ",") {
|
|
76
|
-
b = b.slice(0, -1);
|
|
77
|
-
}
|
|
78
|
-
if (b[0] === "[") {
|
|
79
|
-
b += "]";
|
|
80
|
-
}
|
|
81
|
-
if (b[0] === "{") {
|
|
82
|
-
b += "}";
|
|
83
|
-
}
|
|
84
|
-
return b;
|
|
85
|
-
}
|
|
86
|
-
writeValue(schema, value) {
|
|
87
|
-
const isObject = value !== null && typeof value === "object";
|
|
88
|
-
const ns = NormalizedSchema.of(schema);
|
|
89
|
-
const quote = (_) => `"${_}"`;
|
|
90
|
-
if ((ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) ||
|
|
91
|
-
(ns.isDocumentSchema() && value instanceof Uint8Array)) {
|
|
92
|
-
return quote((this.serdeContext?.base64Encoder ?? toBase64)(value));
|
|
93
|
-
}
|
|
94
|
-
if ((ns.isTimestampSchema() || ns.isDocumentSchema()) && value instanceof Date) {
|
|
95
|
-
const format = determineTimestampFormat(ns, this.settings);
|
|
96
|
-
switch (format) {
|
|
97
|
-
case 5:
|
|
98
|
-
return quote(value.toISOString().replace(".000Z", "Z"));
|
|
99
|
-
case 6:
|
|
100
|
-
return quote(dateToUtcString(value));
|
|
101
|
-
case 7:
|
|
102
|
-
return String(value.getTime() / 1000);
|
|
103
|
-
default:
|
|
104
|
-
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
105
|
-
return String(value.getTime() / 1000);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
if (ns.isNumericSchema() && typeof value === "number") {
|
|
109
|
-
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
110
|
-
return quote(String(value));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (ns.isStringSchema()) {
|
|
114
|
-
if (typeof value === "undefined" && ns.isIdempotencyToken()) {
|
|
115
|
-
return quote(generateIdempotencyToken());
|
|
116
|
-
}
|
|
117
|
-
if (typeof value === "string") {
|
|
118
|
-
const mediaType = ns.getMergedTraits().mediaType;
|
|
119
|
-
if (mediaType) {
|
|
120
|
-
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
121
|
-
if (isJson) {
|
|
122
|
-
return quote(LazyJsonString.from(value).toString());
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (value instanceof NumericValue) {
|
|
128
|
-
return value.string;
|
|
129
|
-
}
|
|
130
|
-
if (isObject) {
|
|
131
|
-
return this.writeObject(ns, value);
|
|
132
|
-
}
|
|
133
|
-
return typeof value === "string" ? quote(value) : String(value);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import type { JsonSettings } from "../JsonCodec";
|
|
4
|
-
/**
|
|
5
|
-
* This implementation uses single-pass JSON serialization with JS code instead of
|
|
6
|
-
* JSON.stringify.
|
|
7
|
-
*
|
|
8
|
-
* It isn't significantly faster than dual-pass ending with native JSON.stringify
|
|
9
|
-
* that I would want to use it. It seems to be barely faster in some mid-range object
|
|
10
|
-
* sizes but slower on the high end.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare class SinglePassJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
|
|
15
|
-
readonly settings: JsonSettings;
|
|
16
|
-
private buffer;
|
|
17
|
-
private rootSchema;
|
|
18
|
-
constructor(settings: JsonSettings);
|
|
19
|
-
write(schema: Schema, value: unknown): void;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
24
|
-
flush(): string;
|
|
25
|
-
private writeObject;
|
|
26
|
-
private writeValue;
|
|
27
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "../JsonCodec";
|
|
4
|
-
export declare class SinglePassJsonShapeSerializer
|
|
5
|
-
extends SerdeContextConfig
|
|
6
|
-
implements ShapeSerializer<string>
|
|
7
|
-
{
|
|
8
|
-
readonly settings: JsonSettings;
|
|
9
|
-
private buffer;
|
|
10
|
-
private rootSchema;
|
|
11
|
-
constructor(settings: JsonSettings);
|
|
12
|
-
write(schema: Schema, value: unknown): void;
|
|
13
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
14
|
-
flush(): string;
|
|
15
|
-
private writeObject;
|
|
16
|
-
private writeValue;
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
2
|
-
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
3
|
-
export const getEndpointUrlConfig = (serviceId) => ({
|
|
4
|
-
environmentVariableSelector: (env) => {
|
|
5
|
-
const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
|
|
6
|
-
const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
|
|
7
|
-
if (serviceEndpointUrl)
|
|
8
|
-
return serviceEndpointUrl;
|
|
9
|
-
const endpointUrl = env[ENV_ENDPOINT_URL];
|
|
10
|
-
if (endpointUrl)
|
|
11
|
-
return endpointUrl;
|
|
12
|
-
return undefined;
|
|
13
|
-
},
|
|
14
|
-
configFileSelector: (profile) => {
|
|
15
|
-
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
16
|
-
if (endpointUrl)
|
|
17
|
-
return endpointUrl;
|
|
18
|
-
return undefined;
|
|
19
|
-
},
|
|
20
|
-
default: undefined,
|
|
21
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inlined from @smithy/core/config to avoid circular dependency.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
type LoadedConfigSelectors<T> = {
|
|
7
|
-
environmentVariableSelector: (env: Record<string, string | undefined>) => T | undefined;
|
|
8
|
-
configFileSelector: (profile: Record<string, string | undefined>, configFile?: Record<string, Record<string, string | undefined>>) => T | undefined;
|
|
9
|
-
default: T | (() => T);
|
|
10
|
-
};
|
|
11
|
-
export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inlined from @smithy/core/config to avoid circular dependency.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
type LoadedConfigSelectors<T> = {
|
|
7
|
-
environmentVariableSelector: (env: Record<string, string | undefined>) => T | undefined;
|
|
8
|
-
configFileSelector: (profile: Record<string, string | undefined>, configFile?: Record<string, Record<string, string | undefined>>) => T | undefined;
|
|
9
|
-
default: T | (() => T);
|
|
10
|
-
};
|
|
11
|
-
export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
|
|
12
|
-
export {};
|