Initial
This commit is contained in:
23
resources/app/node_modules/@aws-sdk/client-sts/dist-es/STS.js
generated
vendored
Normal file
23
resources/app/node_modules/@aws-sdk/client-sts/dist-es/STS.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createAggregatedClient } from "@smithy/smithy-client";
|
||||
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
||||
import { AssumeRoleWithSAMLCommand, } from "./commands/AssumeRoleWithSAMLCommand";
|
||||
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
||||
import { DecodeAuthorizationMessageCommand, } from "./commands/DecodeAuthorizationMessageCommand";
|
||||
import { GetAccessKeyInfoCommand, } from "./commands/GetAccessKeyInfoCommand";
|
||||
import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
|
||||
import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
|
||||
import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand";
|
||||
import { STSClient } from "./STSClient";
|
||||
const commands = {
|
||||
AssumeRoleCommand,
|
||||
AssumeRoleWithSAMLCommand,
|
||||
AssumeRoleWithWebIdentityCommand,
|
||||
DecodeAuthorizationMessageCommand,
|
||||
GetAccessKeyInfoCommand,
|
||||
GetCallerIdentityCommand,
|
||||
GetFederationTokenCommand,
|
||||
GetSessionTokenCommand,
|
||||
};
|
||||
export class STS extends STSClient {
|
||||
}
|
||||
createAggregatedClient(commands, STS);
|
||||
52
resources/app/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
generated
vendored
Normal file
52
resources/app/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
||||
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
||||
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
||||
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
||||
import { resolveRegionConfig } from "@smithy/config-resolver";
|
||||
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
||||
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
||||
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
||||
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
||||
import { Client as __Client, } from "@smithy/smithy-client";
|
||||
import { defaultSTSHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
||||
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
||||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
||||
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
||||
export { __Client };
|
||||
export class STSClient extends __Client {
|
||||
constructor(...[configuration]) {
|
||||
const _config_0 = __getRuntimeConfig(configuration || {});
|
||||
const _config_1 = resolveClientEndpointParameters(_config_0);
|
||||
const _config_2 = resolveRegionConfig(_config_1);
|
||||
const _config_3 = resolveEndpointConfig(_config_2);
|
||||
const _config_4 = resolveRetryConfig(_config_3);
|
||||
const _config_5 = resolveHostHeaderConfig(_config_4);
|
||||
const _config_6 = resolveUserAgentConfig(_config_5);
|
||||
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
||||
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
||||
super(_config_8);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use(getRetryPlugin(this.config));
|
||||
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
||||
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
||||
this.middlewareStack.use(getLoggerPlugin(this.config));
|
||||
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
||||
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
||||
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
||||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
||||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
||||
}));
|
||||
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
||||
}
|
||||
destroy() {
|
||||
super.destroy();
|
||||
}
|
||||
getDefaultHttpAuthSchemeParametersProvider() {
|
||||
return defaultSTSHttpAuthSchemeParametersProvider;
|
||||
}
|
||||
getIdentityProviderConfigProvider() {
|
||||
return async (config) => new DefaultIdentityProviderConfig({
|
||||
"aws.auth#sigv4": config.credentials,
|
||||
});
|
||||
}
|
||||
}
|
||||
38
resources/app/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js
generated
vendored
Normal file
38
resources/app/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
||||
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
||||
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
||||
let _credentials = runtimeConfig.credentials;
|
||||
return {
|
||||
setHttpAuthScheme(httpAuthScheme) {
|
||||
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
||||
if (index === -1) {
|
||||
_httpAuthSchemes.push(httpAuthScheme);
|
||||
}
|
||||
else {
|
||||
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
||||
}
|
||||
},
|
||||
httpAuthSchemes() {
|
||||
return _httpAuthSchemes;
|
||||
},
|
||||
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
||||
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
||||
},
|
||||
httpAuthSchemeProvider() {
|
||||
return _httpAuthSchemeProvider;
|
||||
},
|
||||
setCredentials(credentials) {
|
||||
_credentials = credentials;
|
||||
},
|
||||
credentials() {
|
||||
return _credentials;
|
||||
},
|
||||
};
|
||||
};
|
||||
export const resolveHttpAuthRuntimeConfig = (config) => {
|
||||
return {
|
||||
httpAuthSchemes: config.httpAuthSchemes(),
|
||||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
||||
credentials: config.credentials(),
|
||||
};
|
||||
};
|
||||
60
resources/app/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
60
resources/app/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
||||
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
||||
import { STSClient } from "../STSClient";
|
||||
export const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
||||
return {
|
||||
operation: getSmithyContext(context).operation,
|
||||
region: (await normalizeProvider(config.region)()) ||
|
||||
(() => {
|
||||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
||||
})(),
|
||||
};
|
||||
};
|
||||
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "aws.auth#sigv4",
|
||||
signingProperties: {
|
||||
name: "sts",
|
||||
region: authParameters.region,
|
||||
},
|
||||
propertiesExtractor: (config, context) => ({
|
||||
signingProperties: {
|
||||
config,
|
||||
context,
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
||||
return {
|
||||
schemeId: "smithy.api#noAuth",
|
||||
};
|
||||
}
|
||||
export const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
||||
const options = [];
|
||||
switch (authParameters.operation) {
|
||||
case "AssumeRoleWithSAML": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
case "AssumeRoleWithWebIdentity": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
||||
}
|
||||
}
|
||||
return options;
|
||||
};
|
||||
export const resolveStsAuthConfig = (input) => ({
|
||||
...input,
|
||||
stsClientCtor: STSClient,
|
||||
});
|
||||
export const resolveHttpAuthSchemeConfig = (config) => {
|
||||
const config_0 = resolveStsAuthConfig(config);
|
||||
const config_1 = resolveAwsSdkSigV4Config(config_0);
|
||||
return {
|
||||
...config_1,
|
||||
};
|
||||
};
|
||||
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { AssumeRoleResponseFilterSensitiveLog } from "../models/models_0";
|
||||
import { de_AssumeRoleCommand, se_AssumeRoleCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class AssumeRoleCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
||||
.n("STSClient", "AssumeRoleCommand")
|
||||
.f(void 0, AssumeRoleResponseFilterSensitiveLog)
|
||||
.ser(se_AssumeRoleCommand)
|
||||
.de(de_AssumeRoleCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_AssumeRoleWithSAMLCommand, se_AssumeRoleWithSAMLCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class AssumeRoleWithSAMLCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
|
||||
.n("STSClient", "AssumeRoleWithSAMLCommand")
|
||||
.f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog)
|
||||
.ser(se_AssumeRoleWithSAMLCommand)
|
||||
.de(de_AssumeRoleWithSAMLCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_AssumeRoleWithWebIdentityCommand, se_AssumeRoleWithWebIdentityCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class AssumeRoleWithWebIdentityCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
||||
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
||||
.f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog)
|
||||
.ser(se_AssumeRoleWithWebIdentityCommand)
|
||||
.de(de_AssumeRoleWithWebIdentityCommand)
|
||||
.build() {
|
||||
}
|
||||
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js
generated
vendored
Normal file
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { de_DecodeAuthorizationMessageCommand, se_DecodeAuthorizationMessageCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class DecodeAuthorizationMessageCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
|
||||
.n("STSClient", "DecodeAuthorizationMessageCommand")
|
||||
.f(void 0, void 0)
|
||||
.ser(se_DecodeAuthorizationMessageCommand)
|
||||
.de(de_DecodeAuthorizationMessageCommand)
|
||||
.build() {
|
||||
}
|
||||
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js
generated
vendored
Normal file
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { de_GetAccessKeyInfoCommand, se_GetAccessKeyInfoCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class GetAccessKeyInfoCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
|
||||
.n("STSClient", "GetAccessKeyInfoCommand")
|
||||
.f(void 0, void 0)
|
||||
.ser(se_GetAccessKeyInfoCommand)
|
||||
.de(de_GetAccessKeyInfoCommand)
|
||||
.build() {
|
||||
}
|
||||
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js
generated
vendored
Normal file
24
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { de_GetCallerIdentityCommand, se_GetCallerIdentityCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class GetCallerIdentityCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
|
||||
.n("STSClient", "GetCallerIdentityCommand")
|
||||
.f(void 0, void 0)
|
||||
.ser(se_GetCallerIdentityCommand)
|
||||
.de(de_GetCallerIdentityCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { GetFederationTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_GetFederationTokenCommand, se_GetFederationTokenCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class GetFederationTokenCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
|
||||
.n("STSClient", "GetFederationTokenCommand")
|
||||
.f(void 0, GetFederationTokenResponseFilterSensitiveLog)
|
||||
.ser(se_GetFederationTokenCommand)
|
||||
.de(de_GetFederationTokenCommand)
|
||||
.build() {
|
||||
}
|
||||
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js
generated
vendored
Normal file
25
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
||||
import { getSerdePlugin } from "@smithy/middleware-serde";
|
||||
import { Command as $Command } from "@smithy/smithy-client";
|
||||
import { commonParams } from "../endpoint/EndpointParameters";
|
||||
import { GetSessionTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
||||
import { de_GetSessionTokenCommand, se_GetSessionTokenCommand } from "../protocols/Aws_query";
|
||||
export { $Command };
|
||||
export class GetSessionTokenCommand extends $Command
|
||||
.classBuilder()
|
||||
.ep({
|
||||
...commonParams,
|
||||
})
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
|
||||
.n("STSClient", "GetSessionTokenCommand")
|
||||
.f(void 0, GetSessionTokenResponseFilterSensitiveLog)
|
||||
.ser(se_GetSessionTokenCommand)
|
||||
.de(de_GetSessionTokenCommand)
|
||||
.build() {
|
||||
}
|
||||
8
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js
generated
vendored
Normal file
8
resources/app/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export * from "./AssumeRoleCommand";
|
||||
export * from "./AssumeRoleWithSAMLCommand";
|
||||
export * from "./AssumeRoleWithWebIdentityCommand";
|
||||
export * from "./DecodeAuthorizationMessageCommand";
|
||||
export * from "./GetAccessKeyInfoCommand";
|
||||
export * from "./GetCallerIdentityCommand";
|
||||
export * from "./GetFederationTokenCommand";
|
||||
export * from "./GetSessionTokenCommand";
|
||||
22
resources/app/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js
generated
vendored
Normal file
22
resources/app/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity, } from "./defaultStsRoleAssumers";
|
||||
import { STSClient } from "./STSClient";
|
||||
const getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
||||
if (!customizations)
|
||||
return baseCtor;
|
||||
else
|
||||
return class CustomizableSTSClient extends baseCtor {
|
||||
constructor(config) {
|
||||
super(config);
|
||||
for (const customization of customizations) {
|
||||
this.middlewareStack.use(customization);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
export const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => StsGetDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
|
||||
export const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => StsGetDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
|
||||
export const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
||||
roleAssumer: getDefaultRoleAssumer(input),
|
||||
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
|
||||
...input,
|
||||
});
|
||||
67
resources/app/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js
generated
vendored
Normal file
67
resources/app/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
||||
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
||||
const ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
||||
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => {
|
||||
const region = typeof _region === "function" ? await _region() : _region;
|
||||
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
||||
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
||||
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
||||
};
|
||||
export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
||||
let stsClient;
|
||||
let closureSourceCreds;
|
||||
return async (sourceCreds, params) => {
|
||||
closureSourceCreds = sourceCreds;
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
||||
stsClient = new stsClientCtor({
|
||||
credentialDefaultProvider: () => async () => closureSourceCreds,
|
||||
region: resolvedRegion,
|
||||
requestHandler: requestHandler,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials } = await stsClient.send(new AssumeRoleCommand(params));
|
||||
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
||||
throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
|
||||
}
|
||||
return {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
credentialScope: Credentials.CredentialScope,
|
||||
};
|
||||
};
|
||||
};
|
||||
export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => {
|
||||
let stsClient;
|
||||
return async (params) => {
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
||||
stsClient = new stsClientCtor({
|
||||
region: resolvedRegion,
|
||||
requestHandler: requestHandler,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
|
||||
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
|
||||
throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
|
||||
}
|
||||
return {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
credentialScope: Credentials.CredentialScope,
|
||||
};
|
||||
};
|
||||
};
|
||||
export const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
||||
roleAssumer: getDefaultRoleAssumer(input, input.stsClientCtor),
|
||||
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor),
|
||||
...input,
|
||||
});
|
||||
16
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js
generated
vendored
Normal file
16
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
export const resolveClientEndpointParameters = (options) => {
|
||||
return {
|
||||
...options,
|
||||
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
||||
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
||||
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
||||
defaultSigningName: "sts",
|
||||
};
|
||||
};
|
||||
export const commonParams = {
|
||||
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
||||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
||||
Endpoint: { type: "builtInParams", name: "endpoint" },
|
||||
Region: { type: "builtInParams", name: "region" },
|
||||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
||||
};
|
||||
10
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js
generated
vendored
Normal file
10
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
||||
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
||||
import { ruleSet } from "./ruleset";
|
||||
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||||
return resolveEndpoint(ruleSet, {
|
||||
endpointParams: endpointParams,
|
||||
logger: context.logger,
|
||||
});
|
||||
};
|
||||
customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
4
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
||||
const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
||||
const _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 }] };
|
||||
export const ruleSet = _data;
|
||||
1
resources/app/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
6
resources/app/node_modules/@aws-sdk/client-sts/dist-es/index.js
generated
vendored
Normal file
6
resources/app/node_modules/@aws-sdk/client-sts/dist-es/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from "./STSClient";
|
||||
export * from "./STS";
|
||||
export * from "./commands";
|
||||
export * from "./models";
|
||||
export * from "./defaultRoleAssumers";
|
||||
export { STSServiceException } from "./models/STSServiceException";
|
||||
8
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js
generated
vendored
Normal file
8
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
||||
export { __ServiceException };
|
||||
export class STSServiceException extends __ServiceException {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, STSServiceException.prototype);
|
||||
}
|
||||
}
|
||||
1
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/index.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./models_0";
|
||||
130
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js
generated
vendored
Normal file
130
resources/app/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js
generated
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
||||
import { STSServiceException as __BaseException } from "./STSServiceException";
|
||||
export class ExpiredTokenException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "ExpiredTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "ExpiredTokenException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
||||
}
|
||||
}
|
||||
export class MalformedPolicyDocumentException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "MalformedPolicyDocumentException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "MalformedPolicyDocumentException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
||||
}
|
||||
}
|
||||
export class PackedPolicyTooLargeException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "PackedPolicyTooLargeException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "PackedPolicyTooLargeException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
||||
}
|
||||
}
|
||||
export class RegionDisabledException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "RegionDisabledException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "RegionDisabledException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
||||
}
|
||||
}
|
||||
export class IDPRejectedClaimException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPRejectedClaimException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "IDPRejectedClaimException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
||||
}
|
||||
}
|
||||
export class InvalidIdentityTokenException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidIdentityTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "InvalidIdentityTokenException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
||||
}
|
||||
}
|
||||
export class IDPCommunicationErrorException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPCommunicationErrorException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "IDPCommunicationErrorException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
||||
}
|
||||
}
|
||||
export class InvalidAuthorizationMessageException extends __BaseException {
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidAuthorizationMessageException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
this.name = "InvalidAuthorizationMessageException";
|
||||
this.$fault = "client";
|
||||
Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
|
||||
}
|
||||
}
|
||||
export const CredentialsFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
|
||||
});
|
||||
export const AssumeRoleResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
||||
});
|
||||
export const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.SAMLAssertion && { SAMLAssertion: SENSITIVE_STRING }),
|
||||
});
|
||||
export const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
||||
});
|
||||
export const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.WebIdentityToken && { WebIdentityToken: SENSITIVE_STRING }),
|
||||
});
|
||||
export const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
||||
});
|
||||
export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
||||
});
|
||||
export const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
||||
});
|
||||
885
resources/app/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js
generated
vendored
Normal file
885
resources/app/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js
generated
vendored
Normal file
@@ -0,0 +1,885 @@
|
||||
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
||||
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
||||
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
|
||||
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
||||
import { STSServiceException as __BaseException } from "../models/STSServiceException";
|
||||
export const se_AssumeRoleCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_AssumeRoleRequest(input, context),
|
||||
[_A]: _AR,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_AssumeRoleWithSAMLRequest(input, context),
|
||||
[_A]: _ARWSAML,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
||||
[_A]: _ARWWI,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_DecodeAuthorizationMessageRequest(input, context),
|
||||
[_A]: _DAM,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_GetAccessKeyInfoCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_GetAccessKeyInfoRequest(input, context),
|
||||
[_A]: _GAKI,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_GetCallerIdentityCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_GetCallerIdentityRequest(input, context),
|
||||
[_A]: _GCI,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_GetFederationTokenCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_GetFederationTokenRequest(input, context),
|
||||
[_A]: _GFT,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const se_GetSessionTokenCommand = async (input, context) => {
|
||||
const headers = SHARED_HEADERS;
|
||||
let body;
|
||||
body = buildFormUrlencodedString({
|
||||
...se_GetSessionTokenRequest(input, context),
|
||||
[_A]: _GST,
|
||||
[_V]: _,
|
||||
});
|
||||
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
||||
};
|
||||
export const de_AssumeRoleCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_GetAccessKeyInfoCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_GetCallerIdentityCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_GetFederationTokenCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
export const de_GetSessionTokenCommand = async (output, context) => {
|
||||
if (output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const data = await parseBody(output.body, context);
|
||||
let contents = {};
|
||||
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
||||
const response = {
|
||||
$metadata: deserializeMetadata(output),
|
||||
...contents,
|
||||
};
|
||||
return response;
|
||||
};
|
||||
const de_CommandError = async (output, context) => {
|
||||
const parsedOutput = {
|
||||
...output,
|
||||
body: await parseErrorBody(output.body, context),
|
||||
};
|
||||
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
||||
switch (errorCode) {
|
||||
case "ExpiredTokenException":
|
||||
case "com.amazonaws.sts#ExpiredTokenException":
|
||||
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
||||
case "MalformedPolicyDocument":
|
||||
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
||||
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
||||
case "PackedPolicyTooLarge":
|
||||
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
||||
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
||||
case "RegionDisabledException":
|
||||
case "com.amazonaws.sts#RegionDisabledException":
|
||||
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
||||
case "IDPRejectedClaim":
|
||||
case "com.amazonaws.sts#IDPRejectedClaimException":
|
||||
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
||||
case "InvalidIdentityToken":
|
||||
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
||||
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
||||
case "IDPCommunicationError":
|
||||
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
||||
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
||||
case "InvalidAuthorizationMessageException":
|
||||
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
||||
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
||||
default:
|
||||
const parsedBody = parsedOutput.body;
|
||||
return throwDefaultError({
|
||||
output,
|
||||
parsedBody: parsedBody.Error,
|
||||
errorCode,
|
||||
});
|
||||
}
|
||||
};
|
||||
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_ExpiredTokenException(body.Error, context);
|
||||
const exception = new ExpiredTokenException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
||||
const exception = new IDPCommunicationErrorException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
||||
const exception = new IDPRejectedClaimException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
||||
const exception = new InvalidAuthorizationMessageException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
||||
const exception = new InvalidIdentityTokenException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
||||
const exception = new MalformedPolicyDocumentException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
||||
const exception = new PackedPolicyTooLargeException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
||||
const body = parsedOutput.body;
|
||||
const deserialized = de_RegionDisabledException(body.Error, context);
|
||||
const exception = new RegionDisabledException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...deserialized,
|
||||
});
|
||||
return __decorateServiceException(exception, body);
|
||||
};
|
||||
const se_AssumeRoleRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_RA] != null) {
|
||||
entries[_RA] = input[_RA];
|
||||
}
|
||||
if (input[_RSN] != null) {
|
||||
entries[_RSN] = input[_RSN];
|
||||
}
|
||||
if (input[_PA] != null) {
|
||||
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
||||
if (input[_PA]?.length === 0) {
|
||||
entries.PolicyArns = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `PolicyArns.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_P] != null) {
|
||||
entries[_P] = input[_P];
|
||||
}
|
||||
if (input[_DS] != null) {
|
||||
entries[_DS] = input[_DS];
|
||||
}
|
||||
if (input[_T] != null) {
|
||||
const memberEntries = se_tagListType(input[_T], context);
|
||||
if (input[_T]?.length === 0) {
|
||||
entries.Tags = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `Tags.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_TTK] != null) {
|
||||
const memberEntries = se_tagKeyListType(input[_TTK], context);
|
||||
if (input[_TTK]?.length === 0) {
|
||||
entries.TransitiveTagKeys = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `TransitiveTagKeys.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_EI] != null) {
|
||||
entries[_EI] = input[_EI];
|
||||
}
|
||||
if (input[_SN] != null) {
|
||||
entries[_SN] = input[_SN];
|
||||
}
|
||||
if (input[_TC] != null) {
|
||||
entries[_TC] = input[_TC];
|
||||
}
|
||||
if (input[_SI] != null) {
|
||||
entries[_SI] = input[_SI];
|
||||
}
|
||||
if (input[_PC] != null) {
|
||||
const memberEntries = se_ProvidedContextsListType(input[_PC], context);
|
||||
if (input[_PC]?.length === 0) {
|
||||
entries.ProvidedContexts = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `ProvidedContexts.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_AssumeRoleWithSAMLRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_RA] != null) {
|
||||
entries[_RA] = input[_RA];
|
||||
}
|
||||
if (input[_PAr] != null) {
|
||||
entries[_PAr] = input[_PAr];
|
||||
}
|
||||
if (input[_SAMLA] != null) {
|
||||
entries[_SAMLA] = input[_SAMLA];
|
||||
}
|
||||
if (input[_PA] != null) {
|
||||
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
||||
if (input[_PA]?.length === 0) {
|
||||
entries.PolicyArns = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `PolicyArns.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_P] != null) {
|
||||
entries[_P] = input[_P];
|
||||
}
|
||||
if (input[_DS] != null) {
|
||||
entries[_DS] = input[_DS];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_RA] != null) {
|
||||
entries[_RA] = input[_RA];
|
||||
}
|
||||
if (input[_RSN] != null) {
|
||||
entries[_RSN] = input[_RSN];
|
||||
}
|
||||
if (input[_WIT] != null) {
|
||||
entries[_WIT] = input[_WIT];
|
||||
}
|
||||
if (input[_PI] != null) {
|
||||
entries[_PI] = input[_PI];
|
||||
}
|
||||
if (input[_PA] != null) {
|
||||
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
||||
if (input[_PA]?.length === 0) {
|
||||
entries.PolicyArns = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `PolicyArns.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_P] != null) {
|
||||
entries[_P] = input[_P];
|
||||
}
|
||||
if (input[_DS] != null) {
|
||||
entries[_DS] = input[_DS];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_DecodeAuthorizationMessageRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_EM] != null) {
|
||||
entries[_EM] = input[_EM];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_GetAccessKeyInfoRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_AKI] != null) {
|
||||
entries[_AKI] = input[_AKI];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_GetCallerIdentityRequest = (input, context) => {
|
||||
const entries = {};
|
||||
return entries;
|
||||
};
|
||||
const se_GetFederationTokenRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_N] != null) {
|
||||
entries[_N] = input[_N];
|
||||
}
|
||||
if (input[_P] != null) {
|
||||
entries[_P] = input[_P];
|
||||
}
|
||||
if (input[_PA] != null) {
|
||||
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
||||
if (input[_PA]?.length === 0) {
|
||||
entries.PolicyArns = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `PolicyArns.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
if (input[_DS] != null) {
|
||||
entries[_DS] = input[_DS];
|
||||
}
|
||||
if (input[_T] != null) {
|
||||
const memberEntries = se_tagListType(input[_T], context);
|
||||
if (input[_T]?.length === 0) {
|
||||
entries.Tags = [];
|
||||
}
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
const loc = `Tags.${key}`;
|
||||
entries[loc] = value;
|
||||
});
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_GetSessionTokenRequest = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_DS] != null) {
|
||||
entries[_DS] = input[_DS];
|
||||
}
|
||||
if (input[_SN] != null) {
|
||||
entries[_SN] = input[_SN];
|
||||
}
|
||||
if (input[_TC] != null) {
|
||||
entries[_TC] = input[_TC];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_policyDescriptorListType = (input, context) => {
|
||||
const entries = {};
|
||||
let counter = 1;
|
||||
for (const entry of input) {
|
||||
if (entry === null) {
|
||||
continue;
|
||||
}
|
||||
const memberEntries = se_PolicyDescriptorType(entry, context);
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
entries[`member.${counter}.${key}`] = value;
|
||||
});
|
||||
counter++;
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_PolicyDescriptorType = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_a] != null) {
|
||||
entries[_a] = input[_a];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_ProvidedContext = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_PAro] != null) {
|
||||
entries[_PAro] = input[_PAro];
|
||||
}
|
||||
if (input[_CA] != null) {
|
||||
entries[_CA] = input[_CA];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_ProvidedContextsListType = (input, context) => {
|
||||
const entries = {};
|
||||
let counter = 1;
|
||||
for (const entry of input) {
|
||||
if (entry === null) {
|
||||
continue;
|
||||
}
|
||||
const memberEntries = se_ProvidedContext(entry, context);
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
entries[`member.${counter}.${key}`] = value;
|
||||
});
|
||||
counter++;
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_Tag = (input, context) => {
|
||||
const entries = {};
|
||||
if (input[_K] != null) {
|
||||
entries[_K] = input[_K];
|
||||
}
|
||||
if (input[_Va] != null) {
|
||||
entries[_Va] = input[_Va];
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_tagKeyListType = (input, context) => {
|
||||
const entries = {};
|
||||
let counter = 1;
|
||||
for (const entry of input) {
|
||||
if (entry === null) {
|
||||
continue;
|
||||
}
|
||||
entries[`member.${counter}`] = entry;
|
||||
counter++;
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const se_tagListType = (input, context) => {
|
||||
const entries = {};
|
||||
let counter = 1;
|
||||
for (const entry of input) {
|
||||
if (entry === null) {
|
||||
continue;
|
||||
}
|
||||
const memberEntries = se_Tag(entry, context);
|
||||
Object.entries(memberEntries).forEach(([key, value]) => {
|
||||
entries[`member.${counter}.${key}`] = value;
|
||||
});
|
||||
counter++;
|
||||
}
|
||||
return entries;
|
||||
};
|
||||
const de_AssumedRoleUser = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_ARI] != null) {
|
||||
contents[_ARI] = __expectString(output[_ARI]);
|
||||
}
|
||||
if (output[_Ar] != null) {
|
||||
contents[_Ar] = __expectString(output[_Ar]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_AssumeRoleResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_C] != null) {
|
||||
contents[_C] = de_Credentials(output[_C], context);
|
||||
}
|
||||
if (output[_ARU] != null) {
|
||||
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
||||
}
|
||||
if (output[_PPS] != null) {
|
||||
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
||||
}
|
||||
if (output[_SI] != null) {
|
||||
contents[_SI] = __expectString(output[_SI]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_AssumeRoleWithSAMLResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_C] != null) {
|
||||
contents[_C] = de_Credentials(output[_C], context);
|
||||
}
|
||||
if (output[_ARU] != null) {
|
||||
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
||||
}
|
||||
if (output[_PPS] != null) {
|
||||
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
||||
}
|
||||
if (output[_S] != null) {
|
||||
contents[_S] = __expectString(output[_S]);
|
||||
}
|
||||
if (output[_ST] != null) {
|
||||
contents[_ST] = __expectString(output[_ST]);
|
||||
}
|
||||
if (output[_I] != null) {
|
||||
contents[_I] = __expectString(output[_I]);
|
||||
}
|
||||
if (output[_Au] != null) {
|
||||
contents[_Au] = __expectString(output[_Au]);
|
||||
}
|
||||
if (output[_NQ] != null) {
|
||||
contents[_NQ] = __expectString(output[_NQ]);
|
||||
}
|
||||
if (output[_SI] != null) {
|
||||
contents[_SI] = __expectString(output[_SI]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_C] != null) {
|
||||
contents[_C] = de_Credentials(output[_C], context);
|
||||
}
|
||||
if (output[_SFWIT] != null) {
|
||||
contents[_SFWIT] = __expectString(output[_SFWIT]);
|
||||
}
|
||||
if (output[_ARU] != null) {
|
||||
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
||||
}
|
||||
if (output[_PPS] != null) {
|
||||
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
||||
}
|
||||
if (output[_Pr] != null) {
|
||||
contents[_Pr] = __expectString(output[_Pr]);
|
||||
}
|
||||
if (output[_Au] != null) {
|
||||
contents[_Au] = __expectString(output[_Au]);
|
||||
}
|
||||
if (output[_SI] != null) {
|
||||
contents[_SI] = __expectString(output[_SI]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_Credentials = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_AKI] != null) {
|
||||
contents[_AKI] = __expectString(output[_AKI]);
|
||||
}
|
||||
if (output[_SAK] != null) {
|
||||
contents[_SAK] = __expectString(output[_SAK]);
|
||||
}
|
||||
if (output[_STe] != null) {
|
||||
contents[_STe] = __expectString(output[_STe]);
|
||||
}
|
||||
if (output[_E] != null) {
|
||||
contents[_E] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_E]));
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_DecodeAuthorizationMessageResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_DM] != null) {
|
||||
contents[_DM] = __expectString(output[_DM]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_ExpiredTokenException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_FederatedUser = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_FUI] != null) {
|
||||
contents[_FUI] = __expectString(output[_FUI]);
|
||||
}
|
||||
if (output[_Ar] != null) {
|
||||
contents[_Ar] = __expectString(output[_Ar]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_GetAccessKeyInfoResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_Ac] != null) {
|
||||
contents[_Ac] = __expectString(output[_Ac]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_GetCallerIdentityResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_UI] != null) {
|
||||
contents[_UI] = __expectString(output[_UI]);
|
||||
}
|
||||
if (output[_Ac] != null) {
|
||||
contents[_Ac] = __expectString(output[_Ac]);
|
||||
}
|
||||
if (output[_Ar] != null) {
|
||||
contents[_Ar] = __expectString(output[_Ar]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_GetFederationTokenResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_C] != null) {
|
||||
contents[_C] = de_Credentials(output[_C], context);
|
||||
}
|
||||
if (output[_FU] != null) {
|
||||
contents[_FU] = de_FederatedUser(output[_FU], context);
|
||||
}
|
||||
if (output[_PPS] != null) {
|
||||
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_GetSessionTokenResponse = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_C] != null) {
|
||||
contents[_C] = de_Credentials(output[_C], context);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_IDPCommunicationErrorException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_IDPRejectedClaimException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_InvalidAuthorizationMessageException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_InvalidIdentityTokenException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_MalformedPolicyDocumentException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_PackedPolicyTooLargeException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const de_RegionDisabledException = (output, context) => {
|
||||
const contents = {};
|
||||
if (output[_m] != null) {
|
||||
contents[_m] = __expectString(output[_m]);
|
||||
}
|
||||
return contents;
|
||||
};
|
||||
const deserializeMetadata = (output) => ({
|
||||
httpStatusCode: output.statusCode,
|
||||
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
||||
extendedRequestId: output.headers["x-amz-id-2"],
|
||||
cfId: output.headers["x-amz-cf-id"],
|
||||
});
|
||||
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
||||
const throwDefaultError = withBaseException(__BaseException);
|
||||
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
||||
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
||||
const contents = {
|
||||
protocol,
|
||||
hostname,
|
||||
port,
|
||||
method: "POST",
|
||||
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
||||
headers,
|
||||
};
|
||||
if (resolvedHostname !== undefined) {
|
||||
contents.hostname = resolvedHostname;
|
||||
}
|
||||
if (body !== undefined) {
|
||||
contents.body = body;
|
||||
}
|
||||
return new __HttpRequest(contents);
|
||||
};
|
||||
const SHARED_HEADERS = {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
};
|
||||
const _ = "2011-06-15";
|
||||
const _A = "Action";
|
||||
const _AKI = "AccessKeyId";
|
||||
const _AR = "AssumeRole";
|
||||
const _ARI = "AssumedRoleId";
|
||||
const _ARU = "AssumedRoleUser";
|
||||
const _ARWSAML = "AssumeRoleWithSAML";
|
||||
const _ARWWI = "AssumeRoleWithWebIdentity";
|
||||
const _Ac = "Account";
|
||||
const _Ar = "Arn";
|
||||
const _Au = "Audience";
|
||||
const _C = "Credentials";
|
||||
const _CA = "ContextAssertion";
|
||||
const _DAM = "DecodeAuthorizationMessage";
|
||||
const _DM = "DecodedMessage";
|
||||
const _DS = "DurationSeconds";
|
||||
const _E = "Expiration";
|
||||
const _EI = "ExternalId";
|
||||
const _EM = "EncodedMessage";
|
||||
const _FU = "FederatedUser";
|
||||
const _FUI = "FederatedUserId";
|
||||
const _GAKI = "GetAccessKeyInfo";
|
||||
const _GCI = "GetCallerIdentity";
|
||||
const _GFT = "GetFederationToken";
|
||||
const _GST = "GetSessionToken";
|
||||
const _I = "Issuer";
|
||||
const _K = "Key";
|
||||
const _N = "Name";
|
||||
const _NQ = "NameQualifier";
|
||||
const _P = "Policy";
|
||||
const _PA = "PolicyArns";
|
||||
const _PAr = "PrincipalArn";
|
||||
const _PAro = "ProviderArn";
|
||||
const _PC = "ProvidedContexts";
|
||||
const _PI = "ProviderId";
|
||||
const _PPS = "PackedPolicySize";
|
||||
const _Pr = "Provider";
|
||||
const _RA = "RoleArn";
|
||||
const _RSN = "RoleSessionName";
|
||||
const _S = "Subject";
|
||||
const _SAK = "SecretAccessKey";
|
||||
const _SAMLA = "SAMLAssertion";
|
||||
const _SFWIT = "SubjectFromWebIdentityToken";
|
||||
const _SI = "SourceIdentity";
|
||||
const _SN = "SerialNumber";
|
||||
const _ST = "SubjectType";
|
||||
const _STe = "SessionToken";
|
||||
const _T = "Tags";
|
||||
const _TC = "TokenCode";
|
||||
const _TTK = "TransitiveTagKeys";
|
||||
const _UI = "UserId";
|
||||
const _V = "Version";
|
||||
const _Va = "Value";
|
||||
const _WIT = "WebIdentityToken";
|
||||
const _a = "arn";
|
||||
const _m = "message";
|
||||
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
||||
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
||||
.join("&");
|
||||
const loadQueryErrorCode = (output, data) => {
|
||||
if (data.Error?.Code !== undefined) {
|
||||
return data.Error.Code;
|
||||
}
|
||||
if (output.statusCode == 404) {
|
||||
return "NotFound";
|
||||
}
|
||||
};
|
||||
34
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js
generated
vendored
Normal file
34
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import packageInfo from "../package.json";
|
||||
import { Sha256 } from "@aws-crypto/sha256-browser";
|
||||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
||||
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
||||
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
||||
import { invalidProvider } from "@smithy/invalid-dependency";
|
||||
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
||||
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
||||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
||||
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
||||
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
const defaultsMode = resolveDefaultsModeConfig(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
||||
const clientSharedValues = getSharedRuntimeConfig(config);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "browser",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
||||
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
||||
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
||||
region: config?.region ?? invalidProvider("Region is missing"),
|
||||
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
||||
sha256: config?.sha256 ?? Sha256,
|
||||
streamCollector: config?.streamCollector ?? streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
||||
};
|
||||
};
|
||||
58
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
generated
vendored
Normal file
58
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
import packageInfo from "../package.json";
|
||||
import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
||||
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
||||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
||||
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
||||
import { NoAuthSigner } from "@smithy/core";
|
||||
import { Hash } from "@smithy/hash-node";
|
||||
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
||||
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
||||
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
||||
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
||||
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
||||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
||||
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
||||
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
||||
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
emitWarningIfUnsupportedVersion(process.version);
|
||||
const defaultsMode = resolveDefaultsModeConfig(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
||||
const clientSharedValues = getSharedRuntimeConfig(config);
|
||||
awsCheckVersion(process.version);
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "node",
|
||||
defaultsMode,
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
||||
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
||||
(async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()),
|
||||
signer: new AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
||||
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
||||
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ??
|
||||
loadNodeConfig({
|
||||
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
||||
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
||||
}),
|
||||
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
||||
streamCollector: config?.streamCollector ?? streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
||||
};
|
||||
};
|
||||
11
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js
generated
vendored
Normal file
11
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Sha256 } from "@aws-crypto/sha256-js";
|
||||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
const browserDefaults = getBrowserRuntimeConfig(config);
|
||||
return {
|
||||
...browserDefaults,
|
||||
...config,
|
||||
runtime: "react-native",
|
||||
sha256: config?.sha256 ?? Sha256,
|
||||
};
|
||||
};
|
||||
36
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
generated
vendored
Normal file
36
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
||||
import { NoAuthSigner } from "@smithy/core";
|
||||
import { NoOpLogger } from "@smithy/smithy-client";
|
||||
import { parseUrl } from "@smithy/url-parser";
|
||||
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
||||
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
||||
import { defaultSTSHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
||||
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
||||
export const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2011-06-15",
|
||||
base64Decoder: config?.base64Decoder ?? fromBase64,
|
||||
base64Encoder: config?.base64Encoder ?? toBase64,
|
||||
disableHostPrefix: config?.disableHostPrefix ?? false,
|
||||
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
||||
extensions: config?.extensions ?? [],
|
||||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
||||
signer: new AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new NoOpLogger(),
|
||||
serviceId: config?.serviceId ?? "STS",
|
||||
urlParser: config?.urlParser ?? parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
||||
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
||||
};
|
||||
};
|
||||
21
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js
generated
vendored
Normal file
21
resources/app/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
||||
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
||||
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
||||
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
||||
const asPartial = (t) => t;
|
||||
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
const extensionConfiguration = {
|
||||
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
||||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
||||
};
|
||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||
return {
|
||||
...runtimeConfig,
|
||||
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
||||
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
||||
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
||||
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user