@stacksjs/buddy 0.63.0 → 0.64.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/README.md +1 -1
- package/dist/chunk-12tkdbmy.js +7 -0
- package/dist/{chunk-8420n19j.js.map → chunk-12tkdbmy.js.map} +6 -5
- package/dist/chunk-1f6t66bt.js +5 -0
- package/dist/{chunk-1f1xhs02.js.map → chunk-1f6t66bt.js.map} +2 -2
- package/dist/chunk-463qxvjp.js +5 -0
- package/dist/{chunk-7jmyxm7k.js.map → chunk-463qxvjp.js.map} +2 -2
- package/dist/chunk-47n7wt6x.js +12 -0
- package/dist/{chunk-qx96ff3m.js.map → chunk-47n7wt6x.js.map} +2 -2
- package/dist/chunk-97kwnfsa.js +5 -0
- package/dist/{chunk-as72s87r.js.map → chunk-97kwnfsa.js.map} +2 -2
- package/dist/chunk-a8vj9csq.js +6 -0
- package/dist/{chunk-q2vnqdcs.js.map → chunk-a8vj9csq.js.map} +6 -6
- package/dist/chunk-b8124fjs.js +9 -0
- package/dist/{chunk-afhgv4v9.js.map → chunk-b8124fjs.js.map} +2 -2
- package/dist/chunk-cnvpbb2z.js +5 -0
- package/dist/{chunk-xhsvfzz8.js.map → chunk-cnvpbb2z.js.map} +4 -4
- package/dist/chunk-ehm10xxj.js +21 -0
- package/dist/{chunk-tegm7yex.js.map → chunk-ehm10xxj.js.map} +11 -15
- package/dist/chunk-f9qdyafb.js +5 -0
- package/dist/{chunk-582dnm6a.js.map → chunk-f9qdyafb.js.map} +5 -5
- package/dist/chunk-fcgh2sfr.js +5 -0
- package/dist/{chunk-mmbfc5ft.js.map → chunk-fcgh2sfr.js.map} +2 -2
- package/dist/chunk-fft99hka.js +4 -0
- package/dist/chunk-fft99hka.js.map +16 -0
- package/dist/chunk-g5tqs4wa.js +5 -0
- package/dist/{chunk-03ckp0m6.js.map → chunk-g5tqs4wa.js.map} +4 -4
- package/dist/chunk-gvpcxxae.js +5 -0
- package/dist/{chunk-6pac0yn5.js.map → chunk-gvpcxxae.js.map} +2 -2
- package/dist/chunk-hd0zdkj9.js +4 -0
- package/dist/{chunk-zzerxbrm.js.map → chunk-hd0zdkj9.js.map} +2 -2
- package/dist/chunk-hj9p7vjp.js +5 -0
- package/dist/{chunk-yrsms9d2.js.map → chunk-hj9p7vjp.js.map} +4 -4
- package/dist/chunk-hxzqmyb0.js +5 -0
- package/dist/{chunk-rt463pw6.js.map → chunk-hxzqmyb0.js.map} +2 -2
- package/dist/chunk-pabnt45p.js +5 -0
- package/dist/{chunk-nr24kzd1.js.map → chunk-pabnt45p.js.map} +2 -2
- package/dist/chunk-svr5ddhq.js +4 -0
- package/dist/{chunk-sc3etgb7.js.map → chunk-svr5ddhq.js.map} +2 -2
- package/dist/chunk-wmfxrbxe.js +5 -0
- package/dist/{chunk-cnvp47g4.js.map → chunk-wmfxrbxe.js.map} +1 -1
- package/dist/cli.js +2 -126
- package/dist/cli.js.map +3 -3
- package/dist/index.js +2 -84
- package/dist/index.js.map +1 -1
- package/dist/stacks +0 -0
- package/package.json +1 -46
- package/src/cli.ts +1 -0
- package/src/commands/build.ts +5 -4
- package/src/commands/index.ts +1 -0
- package/src/commands/make.ts +2 -2
- package/src/commands/outdated.ts +31 -0
- package/dist/chunk-03ckp0m6.js +0 -1222
- package/dist/chunk-1f1xhs02.js +0 -2223
- package/dist/chunk-582dnm6a.js +0 -664
- package/dist/chunk-6pac0yn5.js +0 -126
- package/dist/chunk-7jmyxm7k.js +0 -85
- package/dist/chunk-8217wvpy.js +0 -108
- package/dist/chunk-8217wvpy.js.map +0 -16
- package/dist/chunk-8420n19j.js +0 -7417
- package/dist/chunk-afhgv4v9.js +0 -164
- package/dist/chunk-as72s87r.js +0 -61
- package/dist/chunk-cnvp47g4.js +0 -22
- package/dist/chunk-mmbfc5ft.js +0 -287
- package/dist/chunk-nr24kzd1.js +0 -178
- package/dist/chunk-q2vnqdcs.js +0 -1696
- package/dist/chunk-qx96ff3m.js +0 -95
- package/dist/chunk-rt463pw6.js +0 -46
- package/dist/chunk-sc3etgb7.js +0 -208
- package/dist/chunk-tegm7yex.js +0 -10767
- package/dist/chunk-xhsvfzz8.js +0 -381
- package/dist/chunk-yrsms9d2.js +0 -1746
- package/dist/chunk-zzerxbrm.js +0 -110
package/dist/chunk-yrsms9d2.js
DELETED
|
@@ -1,1746 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-rt463pw6.js";
|
|
3
|
-
import {
|
|
4
|
-
__toESM
|
|
5
|
-
} from "./chunk-cnvp47g4.js";
|
|
6
|
-
import {
|
|
7
|
-
Client,
|
|
8
|
-
Command,
|
|
9
|
-
HttpRequest,
|
|
10
|
-
NoOpLogger,
|
|
11
|
-
NodeHttpHandler,
|
|
12
|
-
SENSITIVE_STRING,
|
|
13
|
-
ServiceException,
|
|
14
|
-
createAggregatedClient,
|
|
15
|
-
decorateServiceException,
|
|
16
|
-
emitWarningIfUnsupportedVersion,
|
|
17
|
-
expectNonNull,
|
|
18
|
-
expectString,
|
|
19
|
-
extendedEncodeURIComponent,
|
|
20
|
-
fromBase64,
|
|
21
|
-
fromUtf8,
|
|
22
|
-
getDefaultExtensionConfiguration,
|
|
23
|
-
getHttpHandlerExtensionConfiguration,
|
|
24
|
-
loadConfigsForDefaultMode,
|
|
25
|
-
parseRfc3339DateTimeWithOffset,
|
|
26
|
-
resolveDefaultRuntimeConfig,
|
|
27
|
-
resolveHttpHandlerRuntimeConfig,
|
|
28
|
-
streamCollector,
|
|
29
|
-
strictParseInt32,
|
|
30
|
-
toBase64,
|
|
31
|
-
toUtf8,
|
|
32
|
-
withBaseException
|
|
33
|
-
} from "./chunk-q2vnqdcs.js";
|
|
34
|
-
import {
|
|
35
|
-
DEFAULT_RETRY_MODE,
|
|
36
|
-
Hash,
|
|
37
|
-
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
38
|
-
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
39
|
-
NODE_REGION_CONFIG_OPTIONS,
|
|
40
|
-
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
-
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
42
|
-
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
43
|
-
awsEndpointFunctions,
|
|
44
|
-
calculateBodyLength,
|
|
45
|
-
customEndpointFunctions,
|
|
46
|
-
defaultUserAgent,
|
|
47
|
-
getAwsRegionExtensionConfiguration,
|
|
48
|
-
getContentLengthPlugin,
|
|
49
|
-
getEndpointPlugin,
|
|
50
|
-
getHostHeaderPlugin,
|
|
51
|
-
getLoggerPlugin,
|
|
52
|
-
getRecursionDetectionPlugin,
|
|
53
|
-
getRetryPlugin,
|
|
54
|
-
getSerdePlugin,
|
|
55
|
-
getSmithyContext,
|
|
56
|
-
getUserAgentPlugin,
|
|
57
|
-
normalizeProvider,
|
|
58
|
-
require_dist_cjs,
|
|
59
|
-
require_dist_cjs1 as require_dist_cjs2,
|
|
60
|
-
resolveAwsRegionExtensionConfiguration,
|
|
61
|
-
resolveDefaultsModeConfig,
|
|
62
|
-
resolveEndpoint,
|
|
63
|
-
resolveEndpointConfig,
|
|
64
|
-
resolveHostHeaderConfig,
|
|
65
|
-
resolveRegionConfig,
|
|
66
|
-
resolveRetryConfig,
|
|
67
|
-
resolveUserAgentConfig
|
|
68
|
-
} from "./chunk-tegm7yex.js";
|
|
69
|
-
import"./chunk-6pac0yn5.js";
|
|
70
|
-
import {
|
|
71
|
-
loadConfig,
|
|
72
|
-
parseUrl
|
|
73
|
-
} from "./chunk-8217wvpy.js";
|
|
74
|
-
import"./chunk-zzerxbrm.js";
|
|
75
|
-
import {
|
|
76
|
-
defaultProvider
|
|
77
|
-
} from "./chunk-qx96ff3m.js";
|
|
78
|
-
import"./chunk-sc3etgb7.js";
|
|
79
|
-
|
|
80
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
|
|
81
|
-
var core6 = __toESM(require_dist_cjs(), 1);
|
|
82
|
-
|
|
83
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js
|
|
84
|
-
var core = __toESM(require_dist_cjs2(), 1);
|
|
85
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
86
|
-
return {
|
|
87
|
-
schemeId: "aws.auth#sigv4",
|
|
88
|
-
signingProperties: {
|
|
89
|
-
name: "sts",
|
|
90
|
-
region: authParameters.region
|
|
91
|
-
},
|
|
92
|
-
propertiesExtractor: (config, context) => ({
|
|
93
|
-
signingProperties: {
|
|
94
|
-
config,
|
|
95
|
-
context
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
101
|
-
return {
|
|
102
|
-
schemeId: "smithy.api#noAuth"
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
var defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
106
|
-
return {
|
|
107
|
-
operation: getSmithyContext(context).operation,
|
|
108
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
109
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
110
|
-
})()
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
var defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
114
|
-
const options = [];
|
|
115
|
-
switch (authParameters.operation) {
|
|
116
|
-
case "AssumeRoleWithSAML": {
|
|
117
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
case "AssumeRoleWithWebIdentity": {
|
|
121
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
default: {
|
|
125
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return options;
|
|
129
|
-
};
|
|
130
|
-
var resolveStsAuthConfig = (input) => ({
|
|
131
|
-
...input,
|
|
132
|
-
stsClientCtor: STSClient2
|
|
133
|
-
});
|
|
134
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
135
|
-
const config_0 = resolveStsAuthConfig(config);
|
|
136
|
-
const config_1 = core.resolveAwsSdkSigV4Config(config_0);
|
|
137
|
-
return {
|
|
138
|
-
...config_1
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js
|
|
143
|
-
var resolveClientEndpointParameters = (options) => {
|
|
144
|
-
return {
|
|
145
|
-
...options,
|
|
146
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
147
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
148
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
149
|
-
defaultSigningName: "sts"
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
var commonParams = {
|
|
153
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
154
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
155
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
156
|
-
Region: { type: "builtInParams", name: "region" },
|
|
157
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
158
|
-
};
|
|
159
|
-
// ../../../../node_modules/@aws-sdk/client-sts/package.json
|
|
160
|
-
var package_default = {
|
|
161
|
-
name: "@aws-sdk/client-sts",
|
|
162
|
-
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
163
|
-
version: "3.632.0",
|
|
164
|
-
scripts: {
|
|
165
|
-
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
166
|
-
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
167
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
168
|
-
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
169
|
-
"build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
|
|
170
|
-
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
171
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
172
|
-
"extract:docs": "api-extractor run --local",
|
|
173
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo sts",
|
|
174
|
-
test: "yarn test:unit",
|
|
175
|
-
"test:unit": "jest"
|
|
176
|
-
},
|
|
177
|
-
main: "./dist-cjs/index.js",
|
|
178
|
-
types: "./dist-types/index.d.ts",
|
|
179
|
-
module: "./dist-es/index.js",
|
|
180
|
-
sideEffects: false,
|
|
181
|
-
dependencies: {
|
|
182
|
-
"@aws-crypto/sha256-browser": "5.2.0",
|
|
183
|
-
"@aws-crypto/sha256-js": "5.2.0",
|
|
184
|
-
"@aws-sdk/client-sso-oidc": "3.632.0",
|
|
185
|
-
"@aws-sdk/core": "3.629.0",
|
|
186
|
-
"@aws-sdk/credential-provider-node": "3.632.0",
|
|
187
|
-
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
188
|
-
"@aws-sdk/middleware-logger": "3.609.0",
|
|
189
|
-
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
190
|
-
"@aws-sdk/middleware-user-agent": "3.632.0",
|
|
191
|
-
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
192
|
-
"@aws-sdk/types": "3.609.0",
|
|
193
|
-
"@aws-sdk/util-endpoints": "3.632.0",
|
|
194
|
-
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
195
|
-
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
196
|
-
"@smithy/config-resolver": "^3.0.5",
|
|
197
|
-
"@smithy/core": "^2.3.2",
|
|
198
|
-
"@smithy/fetch-http-handler": "^3.2.4",
|
|
199
|
-
"@smithy/hash-node": "^3.0.3",
|
|
200
|
-
"@smithy/invalid-dependency": "^3.0.3",
|
|
201
|
-
"@smithy/middleware-content-length": "^3.0.5",
|
|
202
|
-
"@smithy/middleware-endpoint": "^3.1.0",
|
|
203
|
-
"@smithy/middleware-retry": "^3.0.14",
|
|
204
|
-
"@smithy/middleware-serde": "^3.0.3",
|
|
205
|
-
"@smithy/middleware-stack": "^3.0.3",
|
|
206
|
-
"@smithy/node-config-provider": "^3.1.4",
|
|
207
|
-
"@smithy/node-http-handler": "^3.1.4",
|
|
208
|
-
"@smithy/protocol-http": "^4.1.0",
|
|
209
|
-
"@smithy/smithy-client": "^3.1.12",
|
|
210
|
-
"@smithy/types": "^3.3.0",
|
|
211
|
-
"@smithy/url-parser": "^3.0.3",
|
|
212
|
-
"@smithy/util-base64": "^3.0.0",
|
|
213
|
-
"@smithy/util-body-length-browser": "^3.0.0",
|
|
214
|
-
"@smithy/util-body-length-node": "^3.0.0",
|
|
215
|
-
"@smithy/util-defaults-mode-browser": "^3.0.14",
|
|
216
|
-
"@smithy/util-defaults-mode-node": "^3.0.14",
|
|
217
|
-
"@smithy/util-endpoints": "^2.0.5",
|
|
218
|
-
"@smithy/util-middleware": "^3.0.3",
|
|
219
|
-
"@smithy/util-retry": "^3.0.3",
|
|
220
|
-
"@smithy/util-utf8": "^3.0.0",
|
|
221
|
-
tslib: "^2.6.2"
|
|
222
|
-
},
|
|
223
|
-
devDependencies: {
|
|
224
|
-
"@tsconfig/node16": "16.1.3",
|
|
225
|
-
"@types/node": "^16.18.96",
|
|
226
|
-
concurrently: "7.0.0",
|
|
227
|
-
"downlevel-dts": "0.10.1",
|
|
228
|
-
rimraf: "3.0.2",
|
|
229
|
-
typescript: "~4.9.5"
|
|
230
|
-
},
|
|
231
|
-
engines: {
|
|
232
|
-
node: ">=16.0.0"
|
|
233
|
-
},
|
|
234
|
-
typesVersions: {
|
|
235
|
-
"<4.0": {
|
|
236
|
-
"dist-types/*": [
|
|
237
|
-
"dist-types/ts3.4/*"
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
files: [
|
|
242
|
-
"dist-*/**"
|
|
243
|
-
],
|
|
244
|
-
author: {
|
|
245
|
-
name: "AWS SDK for JavaScript Team",
|
|
246
|
-
url: "https://aws.amazon.com/javascript/"
|
|
247
|
-
},
|
|
248
|
-
license: "Apache-2.0",
|
|
249
|
-
browser: {
|
|
250
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
251
|
-
},
|
|
252
|
-
"react-native": {
|
|
253
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
254
|
-
},
|
|
255
|
-
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
|
|
256
|
-
repository: {
|
|
257
|
-
type: "git",
|
|
258
|
-
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
|
259
|
-
directory: "clients/client-sts"
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
|
|
264
|
-
var core4 = __toESM(require_dist_cjs2(), 1);
|
|
265
|
-
var core5 = __toESM(require_dist_cjs(), 1);
|
|
266
|
-
|
|
267
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
|
|
268
|
-
var core2 = __toESM(require_dist_cjs2(), 1);
|
|
269
|
-
var core3 = __toESM(require_dist_cjs(), 1);
|
|
270
|
-
|
|
271
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js
|
|
272
|
-
var F = "required";
|
|
273
|
-
var G = "type";
|
|
274
|
-
var H = "fn";
|
|
275
|
-
var I = "argv";
|
|
276
|
-
var J = "ref";
|
|
277
|
-
var a = false;
|
|
278
|
-
var b = true;
|
|
279
|
-
var c = "booleanEquals";
|
|
280
|
-
var d = "stringEquals";
|
|
281
|
-
var e = "sigv4";
|
|
282
|
-
var f = "sts";
|
|
283
|
-
var g = "us-east-1";
|
|
284
|
-
var h = "endpoint";
|
|
285
|
-
var i = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
|
|
286
|
-
var j = "tree";
|
|
287
|
-
var k = "error";
|
|
288
|
-
var l = "getAttr";
|
|
289
|
-
var m = { [F]: false, [G]: "String" };
|
|
290
|
-
var n = { [F]: true, default: false, [G]: "Boolean" };
|
|
291
|
-
var o = { [J]: "Endpoint" };
|
|
292
|
-
var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] };
|
|
293
|
-
var q = { [J]: "Region" };
|
|
294
|
-
var r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" };
|
|
295
|
-
var s = { [J]: "UseFIPS" };
|
|
296
|
-
var t = { [J]: "UseDualStack" };
|
|
297
|
-
var u = { url: "https://sts.amazonaws.com", properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] }, headers: {} };
|
|
298
|
-
var v = {};
|
|
299
|
-
var w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h };
|
|
300
|
-
var x = { [H]: c, [I]: [s, true] };
|
|
301
|
-
var y = { [H]: c, [I]: [t, true] };
|
|
302
|
-
var z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
|
|
303
|
-
var A = { [J]: "PartitionResult" };
|
|
304
|
-
var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] };
|
|
305
|
-
var C = [{ [H]: "isSet", [I]: [o] }];
|
|
306
|
-
var D = [x];
|
|
307
|
-
var E = [y];
|
|
308
|
-
var _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
|
309
|
-
var ruleSet = _data;
|
|
310
|
-
|
|
311
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js
|
|
312
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
313
|
-
return resolveEndpoint(ruleSet, {
|
|
314
|
-
endpointParams,
|
|
315
|
-
logger: context.logger
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
319
|
-
|
|
320
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
|
|
321
|
-
var getRuntimeConfig = (config) => {
|
|
322
|
-
return {
|
|
323
|
-
apiVersion: "2011-06-15",
|
|
324
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
325
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
326
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
327
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
328
|
-
extensions: config?.extensions ?? [],
|
|
329
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
|
|
330
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
331
|
-
{
|
|
332
|
-
schemeId: "aws.auth#sigv4",
|
|
333
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
334
|
-
signer: new core2.AwsSdkSigV4Signer
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
schemeId: "smithy.api#noAuth",
|
|
338
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
339
|
-
signer: new core3.NoAuthSigner
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
logger: config?.logger ?? new NoOpLogger,
|
|
343
|
-
serviceId: config?.serviceId ?? "STS",
|
|
344
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
345
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
346
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
|
|
351
|
-
var getRuntimeConfig2 = (config) => {
|
|
352
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
353
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
354
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
355
|
-
const clientSharedValues = getRuntimeConfig(config);
|
|
356
|
-
core4.emitWarningIfUnsupportedVersion(process.version);
|
|
357
|
-
return {
|
|
358
|
-
...clientSharedValues,
|
|
359
|
-
...config,
|
|
360
|
-
runtime: "node",
|
|
361
|
-
defaultsMode,
|
|
362
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
363
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
364
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
365
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
366
|
-
{
|
|
367
|
-
schemeId: "aws.auth#sigv4",
|
|
368
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await defaultProvider(idProps?.__config || {})()),
|
|
369
|
-
signer: new core4.AwsSdkSigV4Signer
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
schemeId: "smithy.api#noAuth",
|
|
373
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
374
|
-
signer: new core5.NoAuthSigner
|
|
375
|
-
}
|
|
376
|
-
],
|
|
377
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
378
|
-
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
379
|
-
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
380
|
-
retryMode: config?.retryMode ?? loadConfig({
|
|
381
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
382
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
383
|
-
}),
|
|
384
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
385
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
386
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
387
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
392
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig2) => {
|
|
393
|
-
const _httpAuthSchemes = runtimeConfig2.httpAuthSchemes;
|
|
394
|
-
let _httpAuthSchemeProvider = runtimeConfig2.httpAuthSchemeProvider;
|
|
395
|
-
let _credentials = runtimeConfig2.credentials;
|
|
396
|
-
return {
|
|
397
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
398
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
399
|
-
if (index === -1) {
|
|
400
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
401
|
-
} else {
|
|
402
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
httpAuthSchemes() {
|
|
406
|
-
return _httpAuthSchemes;
|
|
407
|
-
},
|
|
408
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider2) {
|
|
409
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider2;
|
|
410
|
-
},
|
|
411
|
-
httpAuthSchemeProvider() {
|
|
412
|
-
return _httpAuthSchemeProvider;
|
|
413
|
-
},
|
|
414
|
-
setCredentials(credentials) {
|
|
415
|
-
_credentials = credentials;
|
|
416
|
-
},
|
|
417
|
-
credentials() {
|
|
418
|
-
return _credentials;
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
423
|
-
return {
|
|
424
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
425
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
426
|
-
credentials: config.credentials()
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
|
|
430
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js
|
|
431
|
-
var asPartial = (t2) => t2;
|
|
432
|
-
var resolveRuntimeExtensions = (runtimeConfig2, extensions) => {
|
|
433
|
-
const extensionConfiguration = {
|
|
434
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig2)),
|
|
435
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig2)),
|
|
436
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig2)),
|
|
437
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig2))
|
|
438
|
-
};
|
|
439
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
440
|
-
return {
|
|
441
|
-
...runtimeConfig2,
|
|
442
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
443
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
444
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
445
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
|
|
450
|
-
class STSClient2 extends Client {
|
|
451
|
-
constructor(...[configuration]) {
|
|
452
|
-
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
453
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
454
|
-
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
455
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
456
|
-
const _config_4 = resolveRegionConfig(_config_3);
|
|
457
|
-
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
458
|
-
const _config_6 = resolveEndpointConfig(_config_5);
|
|
459
|
-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
460
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
461
|
-
super(_config_8);
|
|
462
|
-
this.config = _config_8;
|
|
463
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
464
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
465
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
466
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
467
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
468
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
469
|
-
this.middlewareStack.use(core6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
470
|
-
httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
|
|
471
|
-
identityProviderConfigProvider: async (config) => new core6.DefaultIdentityProviderConfig({
|
|
472
|
-
"aws.auth#sigv4": config.credentials
|
|
473
|
-
})
|
|
474
|
-
}));
|
|
475
|
-
this.middlewareStack.use(core6.getHttpSigningPlugin(this.config));
|
|
476
|
-
}
|
|
477
|
-
destroy() {
|
|
478
|
-
super.destroy();
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js
|
|
482
|
-
class STSServiceException extends ServiceException {
|
|
483
|
-
constructor(options) {
|
|
484
|
-
super(options);
|
|
485
|
-
Object.setPrototypeOf(this, STSServiceException.prototype);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js
|
|
490
|
-
class ExpiredTokenException extends STSServiceException {
|
|
491
|
-
constructor(opts) {
|
|
492
|
-
super({
|
|
493
|
-
name: "ExpiredTokenException",
|
|
494
|
-
$fault: "client",
|
|
495
|
-
...opts
|
|
496
|
-
});
|
|
497
|
-
this.name = "ExpiredTokenException";
|
|
498
|
-
this.$fault = "client";
|
|
499
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
class MalformedPolicyDocumentException extends STSServiceException {
|
|
504
|
-
constructor(opts) {
|
|
505
|
-
super({
|
|
506
|
-
name: "MalformedPolicyDocumentException",
|
|
507
|
-
$fault: "client",
|
|
508
|
-
...opts
|
|
509
|
-
});
|
|
510
|
-
this.name = "MalformedPolicyDocumentException";
|
|
511
|
-
this.$fault = "client";
|
|
512
|
-
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
class PackedPolicyTooLargeException extends STSServiceException {
|
|
517
|
-
constructor(opts) {
|
|
518
|
-
super({
|
|
519
|
-
name: "PackedPolicyTooLargeException",
|
|
520
|
-
$fault: "client",
|
|
521
|
-
...opts
|
|
522
|
-
});
|
|
523
|
-
this.name = "PackedPolicyTooLargeException";
|
|
524
|
-
this.$fault = "client";
|
|
525
|
-
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
class RegionDisabledException extends STSServiceException {
|
|
530
|
-
constructor(opts) {
|
|
531
|
-
super({
|
|
532
|
-
name: "RegionDisabledException",
|
|
533
|
-
$fault: "client",
|
|
534
|
-
...opts
|
|
535
|
-
});
|
|
536
|
-
this.name = "RegionDisabledException";
|
|
537
|
-
this.$fault = "client";
|
|
538
|
-
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
class IDPRejectedClaimException extends STSServiceException {
|
|
543
|
-
constructor(opts) {
|
|
544
|
-
super({
|
|
545
|
-
name: "IDPRejectedClaimException",
|
|
546
|
-
$fault: "client",
|
|
547
|
-
...opts
|
|
548
|
-
});
|
|
549
|
-
this.name = "IDPRejectedClaimException";
|
|
550
|
-
this.$fault = "client";
|
|
551
|
-
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
class InvalidIdentityTokenException extends STSServiceException {
|
|
556
|
-
constructor(opts) {
|
|
557
|
-
super({
|
|
558
|
-
name: "InvalidIdentityTokenException",
|
|
559
|
-
$fault: "client",
|
|
560
|
-
...opts
|
|
561
|
-
});
|
|
562
|
-
this.name = "InvalidIdentityTokenException";
|
|
563
|
-
this.$fault = "client";
|
|
564
|
-
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
class IDPCommunicationErrorException extends STSServiceException {
|
|
569
|
-
constructor(opts) {
|
|
570
|
-
super({
|
|
571
|
-
name: "IDPCommunicationErrorException",
|
|
572
|
-
$fault: "client",
|
|
573
|
-
...opts
|
|
574
|
-
});
|
|
575
|
-
this.name = "IDPCommunicationErrorException";
|
|
576
|
-
this.$fault = "client";
|
|
577
|
-
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
class InvalidAuthorizationMessageException extends STSServiceException {
|
|
582
|
-
constructor(opts) {
|
|
583
|
-
super({
|
|
584
|
-
name: "InvalidAuthorizationMessageException",
|
|
585
|
-
$fault: "client",
|
|
586
|
-
...opts
|
|
587
|
-
});
|
|
588
|
-
this.name = "InvalidAuthorizationMessageException";
|
|
589
|
-
this.$fault = "client";
|
|
590
|
-
Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
var CredentialsFilterSensitiveLog = (obj) => ({
|
|
594
|
-
...obj,
|
|
595
|
-
...obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }
|
|
596
|
-
});
|
|
597
|
-
var AssumeRoleResponseFilterSensitiveLog = (obj) => ({
|
|
598
|
-
...obj,
|
|
599
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
600
|
-
});
|
|
601
|
-
var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({
|
|
602
|
-
...obj,
|
|
603
|
-
...obj.SAMLAssertion && { SAMLAssertion: SENSITIVE_STRING }
|
|
604
|
-
});
|
|
605
|
-
var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({
|
|
606
|
-
...obj,
|
|
607
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
608
|
-
});
|
|
609
|
-
var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({
|
|
610
|
-
...obj,
|
|
611
|
-
...obj.WebIdentityToken && { WebIdentityToken: SENSITIVE_STRING }
|
|
612
|
-
});
|
|
613
|
-
var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
614
|
-
...obj,
|
|
615
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
616
|
-
});
|
|
617
|
-
var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
618
|
-
...obj,
|
|
619
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
620
|
-
});
|
|
621
|
-
var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({
|
|
622
|
-
...obj,
|
|
623
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
624
|
-
});
|
|
625
|
-
|
|
626
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js
|
|
627
|
-
var core7 = __toESM(require_dist_cjs2(), 1);
|
|
628
|
-
var se_AssumeRoleCommand = async (input, context) => {
|
|
629
|
-
const headers = SHARED_HEADERS;
|
|
630
|
-
let body;
|
|
631
|
-
body = buildFormUrlencodedString({
|
|
632
|
-
...se_AssumeRoleRequest(input, context),
|
|
633
|
-
[_A]: _AR,
|
|
634
|
-
[_V]: _
|
|
635
|
-
});
|
|
636
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
637
|
-
};
|
|
638
|
-
var se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
|
639
|
-
const headers = SHARED_HEADERS;
|
|
640
|
-
let body;
|
|
641
|
-
body = buildFormUrlencodedString({
|
|
642
|
-
...se_AssumeRoleWithSAMLRequest(input, context),
|
|
643
|
-
[_A]: _ARWSAML,
|
|
644
|
-
[_V]: _
|
|
645
|
-
});
|
|
646
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
647
|
-
};
|
|
648
|
-
var se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
|
649
|
-
const headers = SHARED_HEADERS;
|
|
650
|
-
let body;
|
|
651
|
-
body = buildFormUrlencodedString({
|
|
652
|
-
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
|
653
|
-
[_A]: _ARWWI,
|
|
654
|
-
[_V]: _
|
|
655
|
-
});
|
|
656
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
657
|
-
};
|
|
658
|
-
var se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
|
659
|
-
const headers = SHARED_HEADERS;
|
|
660
|
-
let body;
|
|
661
|
-
body = buildFormUrlencodedString({
|
|
662
|
-
...se_DecodeAuthorizationMessageRequest(input, context),
|
|
663
|
-
[_A]: _DAM,
|
|
664
|
-
[_V]: _
|
|
665
|
-
});
|
|
666
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
667
|
-
};
|
|
668
|
-
var se_GetAccessKeyInfoCommand = async (input, context) => {
|
|
669
|
-
const headers = SHARED_HEADERS;
|
|
670
|
-
let body;
|
|
671
|
-
body = buildFormUrlencodedString({
|
|
672
|
-
...se_GetAccessKeyInfoRequest(input, context),
|
|
673
|
-
[_A]: _GAKI,
|
|
674
|
-
[_V]: _
|
|
675
|
-
});
|
|
676
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
677
|
-
};
|
|
678
|
-
var se_GetCallerIdentityCommand = async (input, context) => {
|
|
679
|
-
const headers = SHARED_HEADERS;
|
|
680
|
-
let body;
|
|
681
|
-
body = buildFormUrlencodedString({
|
|
682
|
-
...se_GetCallerIdentityRequest(input, context),
|
|
683
|
-
[_A]: _GCI,
|
|
684
|
-
[_V]: _
|
|
685
|
-
});
|
|
686
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
687
|
-
};
|
|
688
|
-
var se_GetFederationTokenCommand = async (input, context) => {
|
|
689
|
-
const headers = SHARED_HEADERS;
|
|
690
|
-
let body;
|
|
691
|
-
body = buildFormUrlencodedString({
|
|
692
|
-
...se_GetFederationTokenRequest(input, context),
|
|
693
|
-
[_A]: _GFT,
|
|
694
|
-
[_V]: _
|
|
695
|
-
});
|
|
696
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
697
|
-
};
|
|
698
|
-
var se_GetSessionTokenCommand = async (input, context) => {
|
|
699
|
-
const headers = SHARED_HEADERS;
|
|
700
|
-
let body;
|
|
701
|
-
body = buildFormUrlencodedString({
|
|
702
|
-
...se_GetSessionTokenRequest(input, context),
|
|
703
|
-
[_A]: _GST,
|
|
704
|
-
[_V]: _
|
|
705
|
-
});
|
|
706
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
707
|
-
};
|
|
708
|
-
var de_AssumeRoleCommand = async (output, context) => {
|
|
709
|
-
if (output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
713
|
-
let contents = {};
|
|
714
|
-
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
|
715
|
-
const response = {
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
...contents
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
};
|
|
721
|
-
var de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
726
|
-
let contents = {};
|
|
727
|
-
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
|
728
|
-
const response = {
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
...contents
|
|
731
|
-
};
|
|
732
|
-
return response;
|
|
733
|
-
};
|
|
734
|
-
var de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
|
735
|
-
if (output.statusCode >= 300) {
|
|
736
|
-
return de_CommandError(output, context);
|
|
737
|
-
}
|
|
738
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
739
|
-
let contents = {};
|
|
740
|
-
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
|
741
|
-
const response = {
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
...contents
|
|
744
|
-
};
|
|
745
|
-
return response;
|
|
746
|
-
};
|
|
747
|
-
var de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_CommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
var de_GetAccessKeyInfoCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode >= 300) {
|
|
762
|
-
return de_CommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
765
|
-
let contents = {};
|
|
766
|
-
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
|
767
|
-
const response = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
...contents
|
|
770
|
-
};
|
|
771
|
-
return response;
|
|
772
|
-
};
|
|
773
|
-
var de_GetCallerIdentityCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode >= 300) {
|
|
775
|
-
return de_CommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
778
|
-
let contents = {};
|
|
779
|
-
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
|
780
|
-
const response = {
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
...contents
|
|
783
|
-
};
|
|
784
|
-
return response;
|
|
785
|
-
};
|
|
786
|
-
var de_GetFederationTokenCommand = async (output, context) => {
|
|
787
|
-
if (output.statusCode >= 300) {
|
|
788
|
-
return de_CommandError(output, context);
|
|
789
|
-
}
|
|
790
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
791
|
-
let contents = {};
|
|
792
|
-
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
|
793
|
-
const response = {
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
...contents
|
|
796
|
-
};
|
|
797
|
-
return response;
|
|
798
|
-
};
|
|
799
|
-
var de_GetSessionTokenCommand = async (output, context) => {
|
|
800
|
-
if (output.statusCode >= 300) {
|
|
801
|
-
return de_CommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const data = await core7.parseXmlBody(output.body, context);
|
|
804
|
-
let contents = {};
|
|
805
|
-
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
|
806
|
-
const response = {
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
...contents
|
|
809
|
-
};
|
|
810
|
-
return response;
|
|
811
|
-
};
|
|
812
|
-
var de_CommandError = async (output, context) => {
|
|
813
|
-
const parsedOutput = {
|
|
814
|
-
...output,
|
|
815
|
-
body: await core7.parseXmlErrorBody(output.body, context)
|
|
816
|
-
};
|
|
817
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
818
|
-
switch (errorCode) {
|
|
819
|
-
case "ExpiredTokenException":
|
|
820
|
-
case "com.amazonaws.sts#ExpiredTokenException":
|
|
821
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
822
|
-
case "MalformedPolicyDocument":
|
|
823
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
824
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
825
|
-
case "PackedPolicyTooLarge":
|
|
826
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
827
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
828
|
-
case "RegionDisabledException":
|
|
829
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
|
830
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
831
|
-
case "IDPRejectedClaim":
|
|
832
|
-
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
833
|
-
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InvalidIdentityToken":
|
|
835
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
836
|
-
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
837
|
-
case "IDPCommunicationError":
|
|
838
|
-
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
|
839
|
-
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
|
840
|
-
case "InvalidAuthorizationMessageException":
|
|
841
|
-
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
|
842
|
-
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
|
843
|
-
default:
|
|
844
|
-
const parsedBody = parsedOutput.body;
|
|
845
|
-
return throwDefaultError({
|
|
846
|
-
output,
|
|
847
|
-
parsedBody: parsedBody.Error,
|
|
848
|
-
errorCode
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
853
|
-
const body = parsedOutput.body;
|
|
854
|
-
const deserialized = de_ExpiredTokenException(body.Error, context);
|
|
855
|
-
const exception = new ExpiredTokenException({
|
|
856
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
857
|
-
...deserialized
|
|
858
|
-
});
|
|
859
|
-
return decorateServiceException(exception, body);
|
|
860
|
-
};
|
|
861
|
-
var de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
|
862
|
-
const body = parsedOutput.body;
|
|
863
|
-
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
|
864
|
-
const exception = new IDPCommunicationErrorException({
|
|
865
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
866
|
-
...deserialized
|
|
867
|
-
});
|
|
868
|
-
return decorateServiceException(exception, body);
|
|
869
|
-
};
|
|
870
|
-
var de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
|
871
|
-
const body = parsedOutput.body;
|
|
872
|
-
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
|
873
|
-
const exception = new IDPRejectedClaimException({
|
|
874
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
875
|
-
...deserialized
|
|
876
|
-
});
|
|
877
|
-
return decorateServiceException(exception, body);
|
|
878
|
-
};
|
|
879
|
-
var de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
|
880
|
-
const body = parsedOutput.body;
|
|
881
|
-
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
|
882
|
-
const exception = new InvalidAuthorizationMessageException({
|
|
883
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
884
|
-
...deserialized
|
|
885
|
-
});
|
|
886
|
-
return decorateServiceException(exception, body);
|
|
887
|
-
};
|
|
888
|
-
var de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
|
889
|
-
const body = parsedOutput.body;
|
|
890
|
-
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
|
891
|
-
const exception = new InvalidIdentityTokenException({
|
|
892
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
-
...deserialized
|
|
894
|
-
});
|
|
895
|
-
return decorateServiceException(exception, body);
|
|
896
|
-
};
|
|
897
|
-
var de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
898
|
-
const body = parsedOutput.body;
|
|
899
|
-
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
|
900
|
-
const exception = new MalformedPolicyDocumentException({
|
|
901
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
902
|
-
...deserialized
|
|
903
|
-
});
|
|
904
|
-
return decorateServiceException(exception, body);
|
|
905
|
-
};
|
|
906
|
-
var de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
907
|
-
const body = parsedOutput.body;
|
|
908
|
-
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
|
909
|
-
const exception = new PackedPolicyTooLargeException({
|
|
910
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
911
|
-
...deserialized
|
|
912
|
-
});
|
|
913
|
-
return decorateServiceException(exception, body);
|
|
914
|
-
};
|
|
915
|
-
var de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
|
916
|
-
const body = parsedOutput.body;
|
|
917
|
-
const deserialized = de_RegionDisabledException(body.Error, context);
|
|
918
|
-
const exception = new RegionDisabledException({
|
|
919
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
920
|
-
...deserialized
|
|
921
|
-
});
|
|
922
|
-
return decorateServiceException(exception, body);
|
|
923
|
-
};
|
|
924
|
-
var se_AssumeRoleRequest = (input, context) => {
|
|
925
|
-
const entries = {};
|
|
926
|
-
if (input[_RA] != null) {
|
|
927
|
-
entries[_RA] = input[_RA];
|
|
928
|
-
}
|
|
929
|
-
if (input[_RSN] != null) {
|
|
930
|
-
entries[_RSN] = input[_RSN];
|
|
931
|
-
}
|
|
932
|
-
if (input[_PA] != null) {
|
|
933
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
934
|
-
if (input[_PA]?.length === 0) {
|
|
935
|
-
entries.PolicyArns = [];
|
|
936
|
-
}
|
|
937
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
938
|
-
const loc = `PolicyArns.${key}`;
|
|
939
|
-
entries[loc] = value;
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
if (input[_P] != null) {
|
|
943
|
-
entries[_P] = input[_P];
|
|
944
|
-
}
|
|
945
|
-
if (input[_DS] != null) {
|
|
946
|
-
entries[_DS] = input[_DS];
|
|
947
|
-
}
|
|
948
|
-
if (input[_T] != null) {
|
|
949
|
-
const memberEntries = se_tagListType(input[_T], context);
|
|
950
|
-
if (input[_T]?.length === 0) {
|
|
951
|
-
entries.Tags = [];
|
|
952
|
-
}
|
|
953
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
954
|
-
const loc = `Tags.${key}`;
|
|
955
|
-
entries[loc] = value;
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
if (input[_TTK] != null) {
|
|
959
|
-
const memberEntries = se_tagKeyListType(input[_TTK], context);
|
|
960
|
-
if (input[_TTK]?.length === 0) {
|
|
961
|
-
entries.TransitiveTagKeys = [];
|
|
962
|
-
}
|
|
963
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
964
|
-
const loc = `TransitiveTagKeys.${key}`;
|
|
965
|
-
entries[loc] = value;
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
if (input[_EI] != null) {
|
|
969
|
-
entries[_EI] = input[_EI];
|
|
970
|
-
}
|
|
971
|
-
if (input[_SN] != null) {
|
|
972
|
-
entries[_SN] = input[_SN];
|
|
973
|
-
}
|
|
974
|
-
if (input[_TC] != null) {
|
|
975
|
-
entries[_TC] = input[_TC];
|
|
976
|
-
}
|
|
977
|
-
if (input[_SI] != null) {
|
|
978
|
-
entries[_SI] = input[_SI];
|
|
979
|
-
}
|
|
980
|
-
if (input[_PC] != null) {
|
|
981
|
-
const memberEntries = se_ProvidedContextsListType(input[_PC], context);
|
|
982
|
-
if (input[_PC]?.length === 0) {
|
|
983
|
-
entries.ProvidedContexts = [];
|
|
984
|
-
}
|
|
985
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
986
|
-
const loc = `ProvidedContexts.${key}`;
|
|
987
|
-
entries[loc] = value;
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
return entries;
|
|
991
|
-
};
|
|
992
|
-
var se_AssumeRoleWithSAMLRequest = (input, context) => {
|
|
993
|
-
const entries = {};
|
|
994
|
-
if (input[_RA] != null) {
|
|
995
|
-
entries[_RA] = input[_RA];
|
|
996
|
-
}
|
|
997
|
-
if (input[_PAr] != null) {
|
|
998
|
-
entries[_PAr] = input[_PAr];
|
|
999
|
-
}
|
|
1000
|
-
if (input[_SAMLA] != null) {
|
|
1001
|
-
entries[_SAMLA] = input[_SAMLA];
|
|
1002
|
-
}
|
|
1003
|
-
if (input[_PA] != null) {
|
|
1004
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
1005
|
-
if (input[_PA]?.length === 0) {
|
|
1006
|
-
entries.PolicyArns = [];
|
|
1007
|
-
}
|
|
1008
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1009
|
-
const loc = `PolicyArns.${key}`;
|
|
1010
|
-
entries[loc] = value;
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
|
-
if (input[_P] != null) {
|
|
1014
|
-
entries[_P] = input[_P];
|
|
1015
|
-
}
|
|
1016
|
-
if (input[_DS] != null) {
|
|
1017
|
-
entries[_DS] = input[_DS];
|
|
1018
|
-
}
|
|
1019
|
-
return entries;
|
|
1020
|
-
};
|
|
1021
|
-
var se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
1022
|
-
const entries = {};
|
|
1023
|
-
if (input[_RA] != null) {
|
|
1024
|
-
entries[_RA] = input[_RA];
|
|
1025
|
-
}
|
|
1026
|
-
if (input[_RSN] != null) {
|
|
1027
|
-
entries[_RSN] = input[_RSN];
|
|
1028
|
-
}
|
|
1029
|
-
if (input[_WIT] != null) {
|
|
1030
|
-
entries[_WIT] = input[_WIT];
|
|
1031
|
-
}
|
|
1032
|
-
if (input[_PI] != null) {
|
|
1033
|
-
entries[_PI] = input[_PI];
|
|
1034
|
-
}
|
|
1035
|
-
if (input[_PA] != null) {
|
|
1036
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
1037
|
-
if (input[_PA]?.length === 0) {
|
|
1038
|
-
entries.PolicyArns = [];
|
|
1039
|
-
}
|
|
1040
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1041
|
-
const loc = `PolicyArns.${key}`;
|
|
1042
|
-
entries[loc] = value;
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
if (input[_P] != null) {
|
|
1046
|
-
entries[_P] = input[_P];
|
|
1047
|
-
}
|
|
1048
|
-
if (input[_DS] != null) {
|
|
1049
|
-
entries[_DS] = input[_DS];
|
|
1050
|
-
}
|
|
1051
|
-
return entries;
|
|
1052
|
-
};
|
|
1053
|
-
var se_DecodeAuthorizationMessageRequest = (input, context) => {
|
|
1054
|
-
const entries = {};
|
|
1055
|
-
if (input[_EM] != null) {
|
|
1056
|
-
entries[_EM] = input[_EM];
|
|
1057
|
-
}
|
|
1058
|
-
return entries;
|
|
1059
|
-
};
|
|
1060
|
-
var se_GetAccessKeyInfoRequest = (input, context) => {
|
|
1061
|
-
const entries = {};
|
|
1062
|
-
if (input[_AKI] != null) {
|
|
1063
|
-
entries[_AKI] = input[_AKI];
|
|
1064
|
-
}
|
|
1065
|
-
return entries;
|
|
1066
|
-
};
|
|
1067
|
-
var se_GetCallerIdentityRequest = (input, context) => {
|
|
1068
|
-
const entries = {};
|
|
1069
|
-
return entries;
|
|
1070
|
-
};
|
|
1071
|
-
var se_GetFederationTokenRequest = (input, context) => {
|
|
1072
|
-
const entries = {};
|
|
1073
|
-
if (input[_N] != null) {
|
|
1074
|
-
entries[_N] = input[_N];
|
|
1075
|
-
}
|
|
1076
|
-
if (input[_P] != null) {
|
|
1077
|
-
entries[_P] = input[_P];
|
|
1078
|
-
}
|
|
1079
|
-
if (input[_PA] != null) {
|
|
1080
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
|
1081
|
-
if (input[_PA]?.length === 0) {
|
|
1082
|
-
entries.PolicyArns = [];
|
|
1083
|
-
}
|
|
1084
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1085
|
-
const loc = `PolicyArns.${key}`;
|
|
1086
|
-
entries[loc] = value;
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
if (input[_DS] != null) {
|
|
1090
|
-
entries[_DS] = input[_DS];
|
|
1091
|
-
}
|
|
1092
|
-
if (input[_T] != null) {
|
|
1093
|
-
const memberEntries = se_tagListType(input[_T], context);
|
|
1094
|
-
if (input[_T]?.length === 0) {
|
|
1095
|
-
entries.Tags = [];
|
|
1096
|
-
}
|
|
1097
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1098
|
-
const loc = `Tags.${key}`;
|
|
1099
|
-
entries[loc] = value;
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
return entries;
|
|
1103
|
-
};
|
|
1104
|
-
var se_GetSessionTokenRequest = (input, context) => {
|
|
1105
|
-
const entries = {};
|
|
1106
|
-
if (input[_DS] != null) {
|
|
1107
|
-
entries[_DS] = input[_DS];
|
|
1108
|
-
}
|
|
1109
|
-
if (input[_SN] != null) {
|
|
1110
|
-
entries[_SN] = input[_SN];
|
|
1111
|
-
}
|
|
1112
|
-
if (input[_TC] != null) {
|
|
1113
|
-
entries[_TC] = input[_TC];
|
|
1114
|
-
}
|
|
1115
|
-
return entries;
|
|
1116
|
-
};
|
|
1117
|
-
var se_policyDescriptorListType = (input, context) => {
|
|
1118
|
-
const entries = {};
|
|
1119
|
-
let counter = 1;
|
|
1120
|
-
for (const entry of input) {
|
|
1121
|
-
if (entry === null) {
|
|
1122
|
-
continue;
|
|
1123
|
-
}
|
|
1124
|
-
const memberEntries = se_PolicyDescriptorType(entry, context);
|
|
1125
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1126
|
-
entries[`member.${counter}.${key}`] = value;
|
|
1127
|
-
});
|
|
1128
|
-
counter++;
|
|
1129
|
-
}
|
|
1130
|
-
return entries;
|
|
1131
|
-
};
|
|
1132
|
-
var se_PolicyDescriptorType = (input, context) => {
|
|
1133
|
-
const entries = {};
|
|
1134
|
-
if (input[_a] != null) {
|
|
1135
|
-
entries[_a] = input[_a];
|
|
1136
|
-
}
|
|
1137
|
-
return entries;
|
|
1138
|
-
};
|
|
1139
|
-
var se_ProvidedContext = (input, context) => {
|
|
1140
|
-
const entries = {};
|
|
1141
|
-
if (input[_PAro] != null) {
|
|
1142
|
-
entries[_PAro] = input[_PAro];
|
|
1143
|
-
}
|
|
1144
|
-
if (input[_CA] != null) {
|
|
1145
|
-
entries[_CA] = input[_CA];
|
|
1146
|
-
}
|
|
1147
|
-
return entries;
|
|
1148
|
-
};
|
|
1149
|
-
var se_ProvidedContextsListType = (input, context) => {
|
|
1150
|
-
const entries = {};
|
|
1151
|
-
let counter = 1;
|
|
1152
|
-
for (const entry of input) {
|
|
1153
|
-
if (entry === null) {
|
|
1154
|
-
continue;
|
|
1155
|
-
}
|
|
1156
|
-
const memberEntries = se_ProvidedContext(entry, context);
|
|
1157
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1158
|
-
entries[`member.${counter}.${key}`] = value;
|
|
1159
|
-
});
|
|
1160
|
-
counter++;
|
|
1161
|
-
}
|
|
1162
|
-
return entries;
|
|
1163
|
-
};
|
|
1164
|
-
var se_Tag = (input, context) => {
|
|
1165
|
-
const entries = {};
|
|
1166
|
-
if (input[_K] != null) {
|
|
1167
|
-
entries[_K] = input[_K];
|
|
1168
|
-
}
|
|
1169
|
-
if (input[_Va] != null) {
|
|
1170
|
-
entries[_Va] = input[_Va];
|
|
1171
|
-
}
|
|
1172
|
-
return entries;
|
|
1173
|
-
};
|
|
1174
|
-
var se_tagKeyListType = (input, context) => {
|
|
1175
|
-
const entries = {};
|
|
1176
|
-
let counter = 1;
|
|
1177
|
-
for (const entry of input) {
|
|
1178
|
-
if (entry === null) {
|
|
1179
|
-
continue;
|
|
1180
|
-
}
|
|
1181
|
-
entries[`member.${counter}`] = entry;
|
|
1182
|
-
counter++;
|
|
1183
|
-
}
|
|
1184
|
-
return entries;
|
|
1185
|
-
};
|
|
1186
|
-
var se_tagListType = (input, context) => {
|
|
1187
|
-
const entries = {};
|
|
1188
|
-
let counter = 1;
|
|
1189
|
-
for (const entry of input) {
|
|
1190
|
-
if (entry === null) {
|
|
1191
|
-
continue;
|
|
1192
|
-
}
|
|
1193
|
-
const memberEntries = se_Tag(entry, context);
|
|
1194
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1195
|
-
entries[`member.${counter}.${key}`] = value;
|
|
1196
|
-
});
|
|
1197
|
-
counter++;
|
|
1198
|
-
}
|
|
1199
|
-
return entries;
|
|
1200
|
-
};
|
|
1201
|
-
var de_AssumedRoleUser = (output, context) => {
|
|
1202
|
-
const contents = {};
|
|
1203
|
-
if (output[_ARI] != null) {
|
|
1204
|
-
contents[_ARI] = expectString(output[_ARI]);
|
|
1205
|
-
}
|
|
1206
|
-
if (output[_Ar] != null) {
|
|
1207
|
-
contents[_Ar] = expectString(output[_Ar]);
|
|
1208
|
-
}
|
|
1209
|
-
return contents;
|
|
1210
|
-
};
|
|
1211
|
-
var de_AssumeRoleResponse = (output, context) => {
|
|
1212
|
-
const contents = {};
|
|
1213
|
-
if (output[_C] != null) {
|
|
1214
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
1215
|
-
}
|
|
1216
|
-
if (output[_ARU] != null) {
|
|
1217
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
|
1218
|
-
}
|
|
1219
|
-
if (output[_PPS] != null) {
|
|
1220
|
-
contents[_PPS] = strictParseInt32(output[_PPS]);
|
|
1221
|
-
}
|
|
1222
|
-
if (output[_SI] != null) {
|
|
1223
|
-
contents[_SI] = expectString(output[_SI]);
|
|
1224
|
-
}
|
|
1225
|
-
return contents;
|
|
1226
|
-
};
|
|
1227
|
-
var de_AssumeRoleWithSAMLResponse = (output, context) => {
|
|
1228
|
-
const contents = {};
|
|
1229
|
-
if (output[_C] != null) {
|
|
1230
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
1231
|
-
}
|
|
1232
|
-
if (output[_ARU] != null) {
|
|
1233
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
|
1234
|
-
}
|
|
1235
|
-
if (output[_PPS] != null) {
|
|
1236
|
-
contents[_PPS] = strictParseInt32(output[_PPS]);
|
|
1237
|
-
}
|
|
1238
|
-
if (output[_S] != null) {
|
|
1239
|
-
contents[_S] = expectString(output[_S]);
|
|
1240
|
-
}
|
|
1241
|
-
if (output[_ST] != null) {
|
|
1242
|
-
contents[_ST] = expectString(output[_ST]);
|
|
1243
|
-
}
|
|
1244
|
-
if (output[_I] != null) {
|
|
1245
|
-
contents[_I] = expectString(output[_I]);
|
|
1246
|
-
}
|
|
1247
|
-
if (output[_Au] != null) {
|
|
1248
|
-
contents[_Au] = expectString(output[_Au]);
|
|
1249
|
-
}
|
|
1250
|
-
if (output[_NQ] != null) {
|
|
1251
|
-
contents[_NQ] = expectString(output[_NQ]);
|
|
1252
|
-
}
|
|
1253
|
-
if (output[_SI] != null) {
|
|
1254
|
-
contents[_SI] = expectString(output[_SI]);
|
|
1255
|
-
}
|
|
1256
|
-
return contents;
|
|
1257
|
-
};
|
|
1258
|
-
var de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
|
1259
|
-
const contents = {};
|
|
1260
|
-
if (output[_C] != null) {
|
|
1261
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
1262
|
-
}
|
|
1263
|
-
if (output[_SFWIT] != null) {
|
|
1264
|
-
contents[_SFWIT] = expectString(output[_SFWIT]);
|
|
1265
|
-
}
|
|
1266
|
-
if (output[_ARU] != null) {
|
|
1267
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
|
1268
|
-
}
|
|
1269
|
-
if (output[_PPS] != null) {
|
|
1270
|
-
contents[_PPS] = strictParseInt32(output[_PPS]);
|
|
1271
|
-
}
|
|
1272
|
-
if (output[_Pr] != null) {
|
|
1273
|
-
contents[_Pr] = expectString(output[_Pr]);
|
|
1274
|
-
}
|
|
1275
|
-
if (output[_Au] != null) {
|
|
1276
|
-
contents[_Au] = expectString(output[_Au]);
|
|
1277
|
-
}
|
|
1278
|
-
if (output[_SI] != null) {
|
|
1279
|
-
contents[_SI] = expectString(output[_SI]);
|
|
1280
|
-
}
|
|
1281
|
-
return contents;
|
|
1282
|
-
};
|
|
1283
|
-
var de_Credentials = (output, context) => {
|
|
1284
|
-
const contents = {};
|
|
1285
|
-
if (output[_AKI] != null) {
|
|
1286
|
-
contents[_AKI] = expectString(output[_AKI]);
|
|
1287
|
-
}
|
|
1288
|
-
if (output[_SAK] != null) {
|
|
1289
|
-
contents[_SAK] = expectString(output[_SAK]);
|
|
1290
|
-
}
|
|
1291
|
-
if (output[_STe] != null) {
|
|
1292
|
-
contents[_STe] = expectString(output[_STe]);
|
|
1293
|
-
}
|
|
1294
|
-
if (output[_E] != null) {
|
|
1295
|
-
contents[_E] = expectNonNull(parseRfc3339DateTimeWithOffset(output[_E]));
|
|
1296
|
-
}
|
|
1297
|
-
return contents;
|
|
1298
|
-
};
|
|
1299
|
-
var de_DecodeAuthorizationMessageResponse = (output, context) => {
|
|
1300
|
-
const contents = {};
|
|
1301
|
-
if (output[_DM] != null) {
|
|
1302
|
-
contents[_DM] = expectString(output[_DM]);
|
|
1303
|
-
}
|
|
1304
|
-
return contents;
|
|
1305
|
-
};
|
|
1306
|
-
var de_ExpiredTokenException = (output, context) => {
|
|
1307
|
-
const contents = {};
|
|
1308
|
-
if (output[_m] != null) {
|
|
1309
|
-
contents[_m] = expectString(output[_m]);
|
|
1310
|
-
}
|
|
1311
|
-
return contents;
|
|
1312
|
-
};
|
|
1313
|
-
var de_FederatedUser = (output, context) => {
|
|
1314
|
-
const contents = {};
|
|
1315
|
-
if (output[_FUI] != null) {
|
|
1316
|
-
contents[_FUI] = expectString(output[_FUI]);
|
|
1317
|
-
}
|
|
1318
|
-
if (output[_Ar] != null) {
|
|
1319
|
-
contents[_Ar] = expectString(output[_Ar]);
|
|
1320
|
-
}
|
|
1321
|
-
return contents;
|
|
1322
|
-
};
|
|
1323
|
-
var de_GetAccessKeyInfoResponse = (output, context) => {
|
|
1324
|
-
const contents = {};
|
|
1325
|
-
if (output[_Ac] != null) {
|
|
1326
|
-
contents[_Ac] = expectString(output[_Ac]);
|
|
1327
|
-
}
|
|
1328
|
-
return contents;
|
|
1329
|
-
};
|
|
1330
|
-
var de_GetCallerIdentityResponse = (output, context) => {
|
|
1331
|
-
const contents = {};
|
|
1332
|
-
if (output[_UI] != null) {
|
|
1333
|
-
contents[_UI] = expectString(output[_UI]);
|
|
1334
|
-
}
|
|
1335
|
-
if (output[_Ac] != null) {
|
|
1336
|
-
contents[_Ac] = expectString(output[_Ac]);
|
|
1337
|
-
}
|
|
1338
|
-
if (output[_Ar] != null) {
|
|
1339
|
-
contents[_Ar] = expectString(output[_Ar]);
|
|
1340
|
-
}
|
|
1341
|
-
return contents;
|
|
1342
|
-
};
|
|
1343
|
-
var de_GetFederationTokenResponse = (output, context) => {
|
|
1344
|
-
const contents = {};
|
|
1345
|
-
if (output[_C] != null) {
|
|
1346
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
1347
|
-
}
|
|
1348
|
-
if (output[_FU] != null) {
|
|
1349
|
-
contents[_FU] = de_FederatedUser(output[_FU], context);
|
|
1350
|
-
}
|
|
1351
|
-
if (output[_PPS] != null) {
|
|
1352
|
-
contents[_PPS] = strictParseInt32(output[_PPS]);
|
|
1353
|
-
}
|
|
1354
|
-
return contents;
|
|
1355
|
-
};
|
|
1356
|
-
var de_GetSessionTokenResponse = (output, context) => {
|
|
1357
|
-
const contents = {};
|
|
1358
|
-
if (output[_C] != null) {
|
|
1359
|
-
contents[_C] = de_Credentials(output[_C], context);
|
|
1360
|
-
}
|
|
1361
|
-
return contents;
|
|
1362
|
-
};
|
|
1363
|
-
var de_IDPCommunicationErrorException = (output, context) => {
|
|
1364
|
-
const contents = {};
|
|
1365
|
-
if (output[_m] != null) {
|
|
1366
|
-
contents[_m] = expectString(output[_m]);
|
|
1367
|
-
}
|
|
1368
|
-
return contents;
|
|
1369
|
-
};
|
|
1370
|
-
var de_IDPRejectedClaimException = (output, context) => {
|
|
1371
|
-
const contents = {};
|
|
1372
|
-
if (output[_m] != null) {
|
|
1373
|
-
contents[_m] = expectString(output[_m]);
|
|
1374
|
-
}
|
|
1375
|
-
return contents;
|
|
1376
|
-
};
|
|
1377
|
-
var de_InvalidAuthorizationMessageException = (output, context) => {
|
|
1378
|
-
const contents = {};
|
|
1379
|
-
if (output[_m] != null) {
|
|
1380
|
-
contents[_m] = expectString(output[_m]);
|
|
1381
|
-
}
|
|
1382
|
-
return contents;
|
|
1383
|
-
};
|
|
1384
|
-
var de_InvalidIdentityTokenException = (output, context) => {
|
|
1385
|
-
const contents = {};
|
|
1386
|
-
if (output[_m] != null) {
|
|
1387
|
-
contents[_m] = expectString(output[_m]);
|
|
1388
|
-
}
|
|
1389
|
-
return contents;
|
|
1390
|
-
};
|
|
1391
|
-
var de_MalformedPolicyDocumentException = (output, context) => {
|
|
1392
|
-
const contents = {};
|
|
1393
|
-
if (output[_m] != null) {
|
|
1394
|
-
contents[_m] = expectString(output[_m]);
|
|
1395
|
-
}
|
|
1396
|
-
return contents;
|
|
1397
|
-
};
|
|
1398
|
-
var de_PackedPolicyTooLargeException = (output, context) => {
|
|
1399
|
-
const contents = {};
|
|
1400
|
-
if (output[_m] != null) {
|
|
1401
|
-
contents[_m] = expectString(output[_m]);
|
|
1402
|
-
}
|
|
1403
|
-
return contents;
|
|
1404
|
-
};
|
|
1405
|
-
var de_RegionDisabledException = (output, context) => {
|
|
1406
|
-
const contents = {};
|
|
1407
|
-
if (output[_m] != null) {
|
|
1408
|
-
contents[_m] = expectString(output[_m]);
|
|
1409
|
-
}
|
|
1410
|
-
return contents;
|
|
1411
|
-
};
|
|
1412
|
-
var deserializeMetadata = (output) => ({
|
|
1413
|
-
httpStatusCode: output.statusCode,
|
|
1414
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1415
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1416
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1417
|
-
});
|
|
1418
|
-
var throwDefaultError = withBaseException(STSServiceException);
|
|
1419
|
-
var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1420
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1421
|
-
const contents = {
|
|
1422
|
-
protocol,
|
|
1423
|
-
hostname,
|
|
1424
|
-
port,
|
|
1425
|
-
method: "POST",
|
|
1426
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1427
|
-
headers
|
|
1428
|
-
};
|
|
1429
|
-
if (resolvedHostname !== undefined) {
|
|
1430
|
-
contents.hostname = resolvedHostname;
|
|
1431
|
-
}
|
|
1432
|
-
if (body !== undefined) {
|
|
1433
|
-
contents.body = body;
|
|
1434
|
-
}
|
|
1435
|
-
return new HttpRequest(contents);
|
|
1436
|
-
};
|
|
1437
|
-
var SHARED_HEADERS = {
|
|
1438
|
-
"content-type": "application/x-www-form-urlencoded"
|
|
1439
|
-
};
|
|
1440
|
-
var _ = "2011-06-15";
|
|
1441
|
-
var _A = "Action";
|
|
1442
|
-
var _AKI = "AccessKeyId";
|
|
1443
|
-
var _AR = "AssumeRole";
|
|
1444
|
-
var _ARI = "AssumedRoleId";
|
|
1445
|
-
var _ARU = "AssumedRoleUser";
|
|
1446
|
-
var _ARWSAML = "AssumeRoleWithSAML";
|
|
1447
|
-
var _ARWWI = "AssumeRoleWithWebIdentity";
|
|
1448
|
-
var _Ac = "Account";
|
|
1449
|
-
var _Ar = "Arn";
|
|
1450
|
-
var _Au = "Audience";
|
|
1451
|
-
var _C = "Credentials";
|
|
1452
|
-
var _CA = "ContextAssertion";
|
|
1453
|
-
var _DAM = "DecodeAuthorizationMessage";
|
|
1454
|
-
var _DM = "DecodedMessage";
|
|
1455
|
-
var _DS = "DurationSeconds";
|
|
1456
|
-
var _E = "Expiration";
|
|
1457
|
-
var _EI = "ExternalId";
|
|
1458
|
-
var _EM = "EncodedMessage";
|
|
1459
|
-
var _FU = "FederatedUser";
|
|
1460
|
-
var _FUI = "FederatedUserId";
|
|
1461
|
-
var _GAKI = "GetAccessKeyInfo";
|
|
1462
|
-
var _GCI = "GetCallerIdentity";
|
|
1463
|
-
var _GFT = "GetFederationToken";
|
|
1464
|
-
var _GST = "GetSessionToken";
|
|
1465
|
-
var _I = "Issuer";
|
|
1466
|
-
var _K = "Key";
|
|
1467
|
-
var _N = "Name";
|
|
1468
|
-
var _NQ = "NameQualifier";
|
|
1469
|
-
var _P = "Policy";
|
|
1470
|
-
var _PA = "PolicyArns";
|
|
1471
|
-
var _PAr = "PrincipalArn";
|
|
1472
|
-
var _PAro = "ProviderArn";
|
|
1473
|
-
var _PC = "ProvidedContexts";
|
|
1474
|
-
var _PI = "ProviderId";
|
|
1475
|
-
var _PPS = "PackedPolicySize";
|
|
1476
|
-
var _Pr = "Provider";
|
|
1477
|
-
var _RA = "RoleArn";
|
|
1478
|
-
var _RSN = "RoleSessionName";
|
|
1479
|
-
var _S = "Subject";
|
|
1480
|
-
var _SAK = "SecretAccessKey";
|
|
1481
|
-
var _SAMLA = "SAMLAssertion";
|
|
1482
|
-
var _SFWIT = "SubjectFromWebIdentityToken";
|
|
1483
|
-
var _SI = "SourceIdentity";
|
|
1484
|
-
var _SN = "SerialNumber";
|
|
1485
|
-
var _ST = "SubjectType";
|
|
1486
|
-
var _STe = "SessionToken";
|
|
1487
|
-
var _T = "Tags";
|
|
1488
|
-
var _TC = "TokenCode";
|
|
1489
|
-
var _TTK = "TransitiveTagKeys";
|
|
1490
|
-
var _UI = "UserId";
|
|
1491
|
-
var _V = "Version";
|
|
1492
|
-
var _Va = "Value";
|
|
1493
|
-
var _WIT = "WebIdentityToken";
|
|
1494
|
-
var _a = "arn";
|
|
1495
|
-
var _m = "message";
|
|
1496
|
-
var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => extendedEncodeURIComponent(key) + "=" + extendedEncodeURIComponent(value)).join("&");
|
|
1497
|
-
var loadQueryErrorCode = (output, data) => {
|
|
1498
|
-
if (data.Error?.Code !== undefined) {
|
|
1499
|
-
return data.Error.Code;
|
|
1500
|
-
}
|
|
1501
|
-
if (output.statusCode == 404) {
|
|
1502
|
-
return "NotFound";
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js
|
|
1507
|
-
class AssumeRoleCommand extends Command.classBuilder().ep({
|
|
1508
|
-
...commonParams
|
|
1509
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1510
|
-
return [
|
|
1511
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1512
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1513
|
-
];
|
|
1514
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(undefined, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js
|
|
1518
|
-
class AssumeRoleWithSAMLCommand extends Command.classBuilder().ep({
|
|
1519
|
-
...commonParams
|
|
1520
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1521
|
-
return [
|
|
1522
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1523
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1524
|
-
];
|
|
1525
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(se_AssumeRoleWithSAMLCommand).de(de_AssumeRoleWithSAMLCommand).build() {
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js
|
|
1529
|
-
class AssumeRoleWithWebIdentityCommand extends Command.classBuilder().ep({
|
|
1530
|
-
...commonParams
|
|
1531
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1532
|
-
return [
|
|
1533
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1534
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1535
|
-
];
|
|
1536
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js
|
|
1540
|
-
class DecodeAuthorizationMessageCommand extends Command.classBuilder().ep({
|
|
1541
|
-
...commonParams
|
|
1542
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1543
|
-
return [
|
|
1544
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1545
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1546
|
-
];
|
|
1547
|
-
}).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(undefined, undefined).ser(se_DecodeAuthorizationMessageCommand).de(de_DecodeAuthorizationMessageCommand).build() {
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js
|
|
1551
|
-
class GetAccessKeyInfoCommand extends Command.classBuilder().ep({
|
|
1552
|
-
...commonParams
|
|
1553
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1554
|
-
return [
|
|
1555
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1556
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1557
|
-
];
|
|
1558
|
-
}).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(undefined, undefined).ser(se_GetAccessKeyInfoCommand).de(de_GetAccessKeyInfoCommand).build() {
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js
|
|
1562
|
-
class GetCallerIdentityCommand extends Command.classBuilder().ep({
|
|
1563
|
-
...commonParams
|
|
1564
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1565
|
-
return [
|
|
1566
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1567
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1568
|
-
];
|
|
1569
|
-
}).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(undefined, undefined).ser(se_GetCallerIdentityCommand).de(de_GetCallerIdentityCommand).build() {
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js
|
|
1573
|
-
class GetFederationTokenCommand extends Command.classBuilder().ep({
|
|
1574
|
-
...commonParams
|
|
1575
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1576
|
-
return [
|
|
1577
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1578
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1579
|
-
];
|
|
1580
|
-
}).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(undefined, GetFederationTokenResponseFilterSensitiveLog).ser(se_GetFederationTokenCommand).de(de_GetFederationTokenCommand).build() {
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js
|
|
1584
|
-
class GetSessionTokenCommand extends Command.classBuilder().ep({
|
|
1585
|
-
...commonParams
|
|
1586
|
-
}).m(function(Command2, cs, config, o2) {
|
|
1587
|
-
return [
|
|
1588
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1589
|
-
getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
|
|
1590
|
-
];
|
|
1591
|
-
}).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(undefined, GetSessionTokenResponseFilterSensitiveLog).ser(se_GetSessionTokenCommand).de(de_GetSessionTokenCommand).build() {
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/STS.js
|
|
1595
|
-
var commands = {
|
|
1596
|
-
AssumeRoleCommand,
|
|
1597
|
-
AssumeRoleWithSAMLCommand,
|
|
1598
|
-
AssumeRoleWithWebIdentityCommand,
|
|
1599
|
-
DecodeAuthorizationMessageCommand,
|
|
1600
|
-
GetAccessKeyInfoCommand,
|
|
1601
|
-
GetCallerIdentityCommand,
|
|
1602
|
-
GetFederationTokenCommand,
|
|
1603
|
-
GetSessionTokenCommand
|
|
1604
|
-
};
|
|
1605
|
-
|
|
1606
|
-
class STS extends STSClient2 {
|
|
1607
|
-
}
|
|
1608
|
-
createAggregatedClient(commands, STS);
|
|
1609
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js
|
|
1610
|
-
var ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
|
1611
|
-
var getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
1612
|
-
if (typeof assumedRoleUser?.Arn === "string") {
|
|
1613
|
-
const arnComponents = assumedRoleUser.Arn.split(":");
|
|
1614
|
-
if (arnComponents.length > 4 && arnComponents[4] !== "") {
|
|
1615
|
-
return arnComponents[4];
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
return;
|
|
1619
|
-
};
|
|
1620
|
-
var resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => {
|
|
1621
|
-
const region = typeof _region === "function" ? await _region() : _region;
|
|
1622
|
-
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
1623
|
-
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
1624
|
-
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
1625
|
-
};
|
|
1626
|
-
var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
1627
|
-
let stsClient;
|
|
1628
|
-
let closureSourceCreds;
|
|
1629
|
-
return async (sourceCreds, params) => {
|
|
1630
|
-
closureSourceCreds = sourceCreds;
|
|
1631
|
-
if (!stsClient) {
|
|
1632
|
-
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
|
|
1633
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
1634
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
1635
|
-
stsClient = new stsClientCtor({
|
|
1636
|
-
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
1637
|
-
region: resolvedRegion,
|
|
1638
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
|
1639
|
-
logger
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
|
|
1643
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
|
1644
|
-
throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
|
|
1645
|
-
}
|
|
1646
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
1647
|
-
return {
|
|
1648
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
1649
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
1650
|
-
sessionToken: Credentials.SessionToken,
|
|
1651
|
-
expiration: Credentials.Expiration,
|
|
1652
|
-
...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
|
|
1653
|
-
...accountId && { accountId }
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
};
|
|
1657
|
-
var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => {
|
|
1658
|
-
let stsClient;
|
|
1659
|
-
return async (params) => {
|
|
1660
|
-
if (!stsClient) {
|
|
1661
|
-
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions;
|
|
1662
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
1663
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
1664
|
-
stsClient = new stsClientCtor({
|
|
1665
|
-
region: resolvedRegion,
|
|
1666
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
|
1667
|
-
logger
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
|
|
1671
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
|
1672
|
-
throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
|
|
1673
|
-
}
|
|
1674
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
1675
|
-
return {
|
|
1676
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
1677
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
1678
|
-
sessionToken: Credentials.SessionToken,
|
|
1679
|
-
expiration: Credentials.Expiration,
|
|
1680
|
-
...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
|
|
1681
|
-
...accountId && { accountId }
|
|
1682
|
-
};
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
var isH2 = (requestHandler) => {
|
|
1686
|
-
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
// ../../../../node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js
|
|
1690
|
-
var getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
1691
|
-
if (!customizations)
|
|
1692
|
-
return baseCtor;
|
|
1693
|
-
else
|
|
1694
|
-
return class CustomizableSTSClient extends baseCtor {
|
|
1695
|
-
constructor(config) {
|
|
1696
|
-
super(config);
|
|
1697
|
-
for (const customization of customizations) {
|
|
1698
|
-
this.middlewareStack.use(customization);
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
var getDefaultRoleAssumer2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient2, stsPlugins));
|
|
1704
|
-
var getDefaultRoleAssumerWithWebIdentity2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient2, stsPlugins));
|
|
1705
|
-
var decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
1706
|
-
roleAssumer: getDefaultRoleAssumer2(input),
|
|
1707
|
-
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input),
|
|
1708
|
-
...input
|
|
1709
|
-
});
|
|
1710
|
-
export {
|
|
1711
|
-
getDefaultRoleAssumerWithWebIdentity2 as getDefaultRoleAssumerWithWebIdentity,
|
|
1712
|
-
getDefaultRoleAssumer2 as getDefaultRoleAssumer,
|
|
1713
|
-
decorateDefaultCredentialProvider,
|
|
1714
|
-
Client as __Client,
|
|
1715
|
-
STSServiceException,
|
|
1716
|
-
STSClient2 as STSClient,
|
|
1717
|
-
STS,
|
|
1718
|
-
RegionDisabledException,
|
|
1719
|
-
PackedPolicyTooLargeException,
|
|
1720
|
-
MalformedPolicyDocumentException,
|
|
1721
|
-
InvalidIdentityTokenException,
|
|
1722
|
-
InvalidAuthorizationMessageException,
|
|
1723
|
-
IDPRejectedClaimException,
|
|
1724
|
-
IDPCommunicationErrorException,
|
|
1725
|
-
GetSessionTokenResponseFilterSensitiveLog,
|
|
1726
|
-
GetSessionTokenCommand,
|
|
1727
|
-
GetFederationTokenResponseFilterSensitiveLog,
|
|
1728
|
-
GetFederationTokenCommand,
|
|
1729
|
-
GetCallerIdentityCommand,
|
|
1730
|
-
GetAccessKeyInfoCommand,
|
|
1731
|
-
ExpiredTokenException,
|
|
1732
|
-
DecodeAuthorizationMessageCommand,
|
|
1733
|
-
CredentialsFilterSensitiveLog,
|
|
1734
|
-
AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
|
1735
|
-
AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
|
1736
|
-
AssumeRoleWithWebIdentityCommand,
|
|
1737
|
-
AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
|
1738
|
-
AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
|
1739
|
-
AssumeRoleWithSAMLCommand,
|
|
1740
|
-
AssumeRoleResponseFilterSensitiveLog,
|
|
1741
|
-
AssumeRoleCommand,
|
|
1742
|
-
Command as $Command
|
|
1743
|
-
};
|
|
1744
|
-
|
|
1745
|
-
//# debugId=682970B7915B726264756E2164756E21
|
|
1746
|
-
//# sourceMappingURL=chunk-yrsms9d2.js.map
|