mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-03-12 18:07:10 -04:00
chore: Update dist
This commit is contained in:
426
dist/136.index.js
generated
vendored
426
dist/136.index.js
generated
vendored
@@ -215,7 +215,7 @@ exports.commonParams = {
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1670);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -885,12 +885,434 @@ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
426
dist/443.index.js
generated
vendored
426
dist/443.index.js
generated
vendored
@@ -72,7 +72,7 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(9947);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -725,12 +725,434 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
430
dist/762.index.js
generated
vendored
430
dist/762.index.js
generated
vendored
@@ -66,13 +66,13 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2547:
|
||||
/***/ 4928:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(6904);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -536,7 +536,7 @@ const url_parser_1 = __webpack_require__(4494);
|
||||
const util_base64_1 = __webpack_require__(8385);
|
||||
const util_utf8_1 = __webpack_require__(1577);
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7709);
|
||||
const endpointResolver_1 = __webpack_require__(2547);
|
||||
const endpointResolver_1 = __webpack_require__(4928);
|
||||
const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2023-01-01",
|
||||
@@ -574,12 +574,434 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
2
dist/869.index.js
generated
vendored
2
dist/869.index.js
generated
vendored
@@ -184,7 +184,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
||||
typeof arg.web_identity_token_file === "string" &&
|
||||
typeof arg.role_arn === "string" &&
|
||||
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
||||
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => __webpack_require__.e(/* import() */ 956).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
|
||||
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => Promise.all(/* import() */[__webpack_require__.e(136), __webpack_require__.e(956)]).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
|
||||
webIdentityTokenFile: profile.web_identity_token_file,
|
||||
roleArn: profile.role_arn,
|
||||
roleSessionName: profile.role_session_name,
|
||||
|
||||
893
dist/956.index.js
generated
vendored
893
dist/956.index.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
exports.id = 956;
|
||||
exports.ids = [956,136];
|
||||
exports.ids = [956];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 8079:
|
||||
@@ -137,897 +137,6 @@ Object.keys(fromWebToken).forEach(function (k) {
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3723:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.STSClient = exports.__Client = void 0;
|
||||
const middleware_host_header_1 = __webpack_require__(2590);
|
||||
const middleware_logger_1 = __webpack_require__(5242);
|
||||
const middleware_recursion_detection_1 = __webpack_require__(1568);
|
||||
const middleware_user_agent_1 = __webpack_require__(2959);
|
||||
const config_resolver_1 = __webpack_require__(9316);
|
||||
const core_1 = __webpack_require__(402);
|
||||
const schema_1 = __webpack_require__(6890);
|
||||
const middleware_content_length_1 = __webpack_require__(7212);
|
||||
const middleware_endpoint_1 = __webpack_require__(99);
|
||||
const middleware_retry_1 = __webpack_require__(9618);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithy_client_1.Client; } }));
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7851);
|
||||
const EndpointParameters_1 = __webpack_require__(6811);
|
||||
const runtimeConfig_1 = __webpack_require__(6578);
|
||||
const runtimeExtensions_1 = __webpack_require__(7742);
|
||||
class STSClient extends smithy_client_1.Client {
|
||||
config;
|
||||
constructor(...[configuration]) {
|
||||
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
||||
super(_config_0);
|
||||
this.initConfig = _config_0;
|
||||
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
||||
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
||||
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
||||
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
||||
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
||||
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
||||
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
||||
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
||||
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
||||
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
||||
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
||||
"aws.auth#sigv4": config.credentials,
|
||||
}),
|
||||
}));
|
||||
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
||||
}
|
||||
destroy() {
|
||||
super.destroy();
|
||||
}
|
||||
}
|
||||
exports.STSClient = STSClient;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4532:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
||||
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;
|
||||
},
|
||||
};
|
||||
};
|
||||
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
||||
const resolveHttpAuthRuntimeConfig = (config) => {
|
||||
return {
|
||||
httpAuthSchemes: config.httpAuthSchemes(),
|
||||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
||||
credentials: config.credentials(),
|
||||
};
|
||||
};
|
||||
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7851:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const util_middleware_1 = __webpack_require__(6324);
|
||||
const STSClient_1 = __webpack_require__(3723);
|
||||
const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
||||
return {
|
||||
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
||||
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
||||
(() => {
|
||||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
||||
})(),
|
||||
};
|
||||
};
|
||||
exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
|
||||
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",
|
||||
};
|
||||
}
|
||||
const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
||||
const options = [];
|
||||
switch (authParameters.operation) {
|
||||
case "AssumeRoleWithWebIdentity": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
||||
}
|
||||
}
|
||||
return options;
|
||||
};
|
||||
exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
|
||||
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
||||
stsClientCtor: STSClient_1.STSClient,
|
||||
});
|
||||
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
||||
const resolveHttpAuthSchemeConfig = (config) => {
|
||||
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
||||
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
|
||||
return Object.assign(config_1, {
|
||||
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
||||
});
|
||||
};
|
||||
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6811:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
||||
const resolveClientEndpointParameters = (options) => {
|
||||
return Object.assign(options, {
|
||||
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
||||
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
||||
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
||||
defaultSigningName: "sts",
|
||||
});
|
||||
};
|
||||
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
||||
exports.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" },
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9765:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1670);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
size: 50,
|
||||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
||||
});
|
||||
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||||
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
||||
endpointParams: endpointParams,
|
||||
logger: context.logger,
|
||||
}));
|
||||
};
|
||||
exports.defaultEndpointResolver = defaultEndpointResolver;
|
||||
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1670:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ruleSet = void 0;
|
||||
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 }] };
|
||||
exports.ruleSet = _data;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1136:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var STSClient = __webpack_require__(3723);
|
||||
var smithyClient = __webpack_require__(1411);
|
||||
var middlewareEndpoint = __webpack_require__(99);
|
||||
var EndpointParameters = __webpack_require__(6811);
|
||||
var schema = __webpack_require__(6890);
|
||||
var client = __webpack_require__(5152);
|
||||
var regionConfigResolver = __webpack_require__(6463);
|
||||
|
||||
class STSServiceException extends smithyClient.ServiceException {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, STSServiceException.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
class ExpiredTokenException extends STSServiceException {
|
||||
name = "ExpiredTokenException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "ExpiredTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
||||
}
|
||||
}
|
||||
class MalformedPolicyDocumentException extends STSServiceException {
|
||||
name = "MalformedPolicyDocumentException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "MalformedPolicyDocumentException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
||||
}
|
||||
}
|
||||
class PackedPolicyTooLargeException extends STSServiceException {
|
||||
name = "PackedPolicyTooLargeException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "PackedPolicyTooLargeException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
||||
}
|
||||
}
|
||||
class RegionDisabledException extends STSServiceException {
|
||||
name = "RegionDisabledException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "RegionDisabledException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
||||
}
|
||||
}
|
||||
class IDPRejectedClaimException extends STSServiceException {
|
||||
name = "IDPRejectedClaimException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPRejectedClaimException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
||||
}
|
||||
}
|
||||
class InvalidIdentityTokenException extends STSServiceException {
|
||||
name = "InvalidIdentityTokenException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidIdentityTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
||||
}
|
||||
}
|
||||
class IDPCommunicationErrorException extends STSServiceException {
|
||||
name = "IDPCommunicationErrorException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPCommunicationErrorException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
const _A = "Arn";
|
||||
const _AKI = "AccessKeyId";
|
||||
const _AR = "AssumeRole";
|
||||
const _ARI = "AssumedRoleId";
|
||||
const _ARR = "AssumeRoleRequest";
|
||||
const _ARRs = "AssumeRoleResponse";
|
||||
const _ARU = "AssumedRoleUser";
|
||||
const _ARWWI = "AssumeRoleWithWebIdentity";
|
||||
const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
|
||||
const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
|
||||
const _Au = "Audience";
|
||||
const _C = "Credentials";
|
||||
const _CA = "ContextAssertion";
|
||||
const _DS = "DurationSeconds";
|
||||
const _E = "Expiration";
|
||||
const _EI = "ExternalId";
|
||||
const _ETE = "ExpiredTokenException";
|
||||
const _IDPCEE = "IDPCommunicationErrorException";
|
||||
const _IDPRCE = "IDPRejectedClaimException";
|
||||
const _IITE = "InvalidIdentityTokenException";
|
||||
const _K = "Key";
|
||||
const _MPDE = "MalformedPolicyDocumentException";
|
||||
const _P = "Policy";
|
||||
const _PA = "PolicyArns";
|
||||
const _PAr = "ProviderArn";
|
||||
const _PC = "ProvidedContexts";
|
||||
const _PCLT = "ProvidedContextsListType";
|
||||
const _PCr = "ProvidedContext";
|
||||
const _PDT = "PolicyDescriptorType";
|
||||
const _PI = "ProviderId";
|
||||
const _PPS = "PackedPolicySize";
|
||||
const _PPTLE = "PackedPolicyTooLargeException";
|
||||
const _Pr = "Provider";
|
||||
const _RA = "RoleArn";
|
||||
const _RDE = "RegionDisabledException";
|
||||
const _RSN = "RoleSessionName";
|
||||
const _SAK = "SecretAccessKey";
|
||||
const _SFWIT = "SubjectFromWebIdentityToken";
|
||||
const _SI = "SourceIdentity";
|
||||
const _SN = "SerialNumber";
|
||||
const _ST = "SessionToken";
|
||||
const _T = "Tags";
|
||||
const _TC = "TokenCode";
|
||||
const _TTK = "TransitiveTagKeys";
|
||||
const _Ta = "Tag";
|
||||
const _V = "Value";
|
||||
const _WIT = "WebIdentityToken";
|
||||
const _a = "arn";
|
||||
const _aKST = "accessKeySecretType";
|
||||
const _aQE = "awsQueryError";
|
||||
const _c = "client";
|
||||
const _cTT = "clientTokenType";
|
||||
const _e = "error";
|
||||
const _hE = "httpError";
|
||||
const _m = "message";
|
||||
const _pDLT = "policyDescriptorListType";
|
||||
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
||||
const _tLT = "tagListType";
|
||||
const n0 = "com.amazonaws.sts";
|
||||
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
||||
var clientTokenType = [0, n0, _cTT, 8, 0];
|
||||
var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
|
||||
var AssumeRoleRequest$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARR,
|
||||
0,
|
||||
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
||||
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
|
||||
2,
|
||||
];
|
||||
var AssumeRoleResponse$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARRs,
|
||||
0,
|
||||
[_C, _ARU, _PPS, _SI],
|
||||
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],
|
||||
];
|
||||
var AssumeRoleWithWebIdentityRequest$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARWWIR,
|
||||
0,
|
||||
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
||||
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
|
||||
3,
|
||||
];
|
||||
var AssumeRoleWithWebIdentityResponse$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARWWIRs,
|
||||
0,
|
||||
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
||||
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],
|
||||
];
|
||||
var Credentials$ = [
|
||||
3,
|
||||
n0,
|
||||
_C,
|
||||
0,
|
||||
[_AKI, _SAK, _ST, _E],
|
||||
[0, [() => accessKeySecretType, 0], 0, 4],
|
||||
4,
|
||||
];
|
||||
var ExpiredTokenException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_ETE,
|
||||
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
||||
var IDPCommunicationErrorException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IDPCEE,
|
||||
{ [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
||||
var IDPRejectedClaimException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IDPRCE,
|
||||
{ [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
||||
var InvalidIdentityTokenException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IITE,
|
||||
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
||||
var MalformedPolicyDocumentException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_MPDE,
|
||||
{ [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
||||
var PackedPolicyTooLargeException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_PPTLE,
|
||||
{ [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
||||
var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
|
||||
var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
|
||||
var RegionDisabledException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_RDE,
|
||||
{ [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);
|
||||
var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
|
||||
var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
||||
schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);
|
||||
var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
|
||||
var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
|
||||
var tagListType = [1, n0, _tLT, 0, () => Tag$];
|
||||
var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
|
||||
var AssumeRoleWithWebIdentity$ = [
|
||||
9,
|
||||
n0,
|
||||
_ARWWI,
|
||||
0,
|
||||
() => AssumeRoleWithWebIdentityRequest$,
|
||||
() => AssumeRoleWithWebIdentityResponse$,
|
||||
];
|
||||
|
||||
class AssumeRoleCommand extends smithyClient.Command
|
||||
.classBuilder()
|
||||
.ep(EndpointParameters.commonParams)
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
||||
.n("STSClient", "AssumeRoleCommand")
|
||||
.sc(AssumeRole$)
|
||||
.build() {
|
||||
}
|
||||
|
||||
class AssumeRoleWithWebIdentityCommand extends smithyClient.Command
|
||||
.classBuilder()
|
||||
.ep(EndpointParameters.commonParams)
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
||||
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
||||
.sc(AssumeRoleWithWebIdentity$)
|
||||
.build() {
|
||||
}
|
||||
|
||||
const commands = {
|
||||
AssumeRoleCommand,
|
||||
AssumeRoleWithWebIdentityCommand,
|
||||
};
|
||||
class STS extends STSClient.STSClient {
|
||||
}
|
||||
smithyClient.createAggregatedClient(commands, STS);
|
||||
|
||||
const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
||||
if (typeof assumedRoleUser?.Arn === "string") {
|
||||
const arnComponents = assumedRoleUser.Arn.split(":");
|
||||
if (arnComponents.length > 4 && arnComponents[4] !== "") {
|
||||
return arnComponents[4];
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
|
||||
const region = typeof _region === "function" ? await _region() : _region;
|
||||
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
||||
let stsDefaultRegion = "";
|
||||
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());
|
||||
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
||||
return resolvedRegion;
|
||||
};
|
||||
const getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
|
||||
let stsClient;
|
||||
let closureSourceCreds;
|
||||
return async (sourceCreds, params) => {
|
||||
closureSourceCreds = sourceCreds;
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
||||
logger,
|
||||
profile,
|
||||
});
|
||||
const isCompatibleRequestHandler = !isH2(requestHandler);
|
||||
stsClient = new STSClient({
|
||||
...stsOptions,
|
||||
userAgentAppId,
|
||||
profile,
|
||||
credentialDefaultProvider: () => async () => closureSourceCreds,
|
||||
region: resolvedRegion,
|
||||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials, AssumedRoleUser } = 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}`);
|
||||
}
|
||||
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
||||
const credentials = {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
|
||||
...(accountId && { accountId }),
|
||||
};
|
||||
client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
|
||||
return credentials;
|
||||
};
|
||||
};
|
||||
const getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
|
||||
let stsClient;
|
||||
return async (params) => {
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
||||
logger,
|
||||
profile,
|
||||
});
|
||||
const isCompatibleRequestHandler = !isH2(requestHandler);
|
||||
stsClient = new STSClient({
|
||||
...stsOptions,
|
||||
userAgentAppId,
|
||||
profile,
|
||||
region: resolvedRegion,
|
||||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials, AssumedRoleUser } = 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}`);
|
||||
}
|
||||
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
||||
const credentials = {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
|
||||
...(accountId && { accountId }),
|
||||
};
|
||||
if (accountId) {
|
||||
client.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
|
||||
}
|
||||
client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
|
||||
return credentials;
|
||||
};
|
||||
};
|
||||
const isH2 = (requestHandler) => {
|
||||
return requestHandler?.metadata?.handlerProtocol === "h2";
|
||||
};
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
|
||||
const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
|
||||
const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
||||
roleAssumer: getDefaultRoleAssumer(input),
|
||||
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
|
||||
...input,
|
||||
});
|
||||
|
||||
Object.defineProperty(exports, "$Command", ({
|
||||
enumerable: true,
|
||||
get: function () { return smithyClient.Command; }
|
||||
}));
|
||||
exports.AssumeRole$ = AssumeRole$;
|
||||
exports.AssumeRoleCommand = AssumeRoleCommand;
|
||||
exports.AssumeRoleRequest$ = AssumeRoleRequest$;
|
||||
exports.AssumeRoleResponse$ = AssumeRoleResponse$;
|
||||
exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
|
||||
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
||||
exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
|
||||
exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
|
||||
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
||||
exports.Credentials$ = Credentials$;
|
||||
exports.ExpiredTokenException = ExpiredTokenException;
|
||||
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
||||
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
||||
exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
|
||||
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
||||
exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
|
||||
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
||||
exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
|
||||
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
||||
exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
|
||||
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
||||
exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
|
||||
exports.PolicyDescriptorType$ = PolicyDescriptorType$;
|
||||
exports.ProvidedContext$ = ProvidedContext$;
|
||||
exports.RegionDisabledException = RegionDisabledException;
|
||||
exports.RegionDisabledException$ = RegionDisabledException$;
|
||||
exports.STS = STS;
|
||||
exports.STSServiceException = STSServiceException;
|
||||
exports.STSServiceException$ = STSServiceException$;
|
||||
exports.Tag$ = Tag$;
|
||||
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
||||
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
||||
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
||||
Object.keys(STSClient).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
||||
enumerable: true,
|
||||
get: function () { return STSClient[k]; }
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6578:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const tslib_1 = __webpack_require__(1860);
|
||||
const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const util_user_agent_node_1 = __webpack_require__(1656);
|
||||
const config_resolver_1 = __webpack_require__(9316);
|
||||
const core_2 = __webpack_require__(402);
|
||||
const hash_node_1 = __webpack_require__(5092);
|
||||
const middleware_retry_1 = __webpack_require__(9618);
|
||||
const node_config_provider_1 = __webpack_require__(5704);
|
||||
const node_http_handler_1 = __webpack_require__(1279);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const util_body_length_node_1 = __webpack_require__(3638);
|
||||
const util_defaults_mode_node_1 = __webpack_require__(5435);
|
||||
const util_retry_1 = __webpack_require__(5518);
|
||||
const runtimeConfig_shared_1 = __webpack_require__(4443);
|
||||
const getRuntimeConfig = (config) => {
|
||||
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
||||
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
||||
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
||||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
||||
const loaderConfig = {
|
||||
profile: config?.profile,
|
||||
logger: clientSharedValues.logger,
|
||||
};
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "node",
|
||||
defaultsMode,
|
||||
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
||||
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
||||
signer: new core_1.AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new core_2.NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
||||
region: config?.region ??
|
||||
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
||||
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ??
|
||||
(0, node_config_provider_1.loadConfig)({
|
||||
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
||||
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
||||
}, config),
|
||||
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
||||
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
||||
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4443:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const protocols_1 = __webpack_require__(7288);
|
||||
const core_2 = __webpack_require__(402);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const url_parser_1 = __webpack_require__(4494);
|
||||
const util_base64_1 = __webpack_require__(8385);
|
||||
const util_utf8_1 = __webpack_require__(1577);
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7851);
|
||||
const endpointResolver_1 = __webpack_require__(9765);
|
||||
const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2011-06-15",
|
||||
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
||||
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
||||
disableHostPrefix: config?.disableHostPrefix ?? false,
|
||||
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
||||
extensions: config?.extensions ?? [],
|
||||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
||||
signer: new core_1.AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new core_2.NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
||||
protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
|
||||
protocolSettings: config?.protocolSettings ?? {
|
||||
defaultNamespace: "com.amazonaws.sts",
|
||||
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
||||
version: "2011-06-15",
|
||||
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
||||
},
|
||||
serviceId: config?.serviceId ?? "STS",
|
||||
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
||||
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7742:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveRuntimeExtensions = void 0;
|
||||
const region_config_resolver_1 = __webpack_require__(6463);
|
||||
const protocol_http_1 = __webpack_require__(2356);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const httpAuthExtensionConfiguration_1 = __webpack_require__(4532);
|
||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
||||
};
|
||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
};
|
||||
|
||||
440
dist/998.index.js
generated
vendored
440
dist/998.index.js
generated
vendored
@@ -91,7 +91,7 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(3956);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1308);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -493,19 +493,23 @@ class LogoutCommand extends smithyClient.Command
|
||||
.build() {
|
||||
}
|
||||
|
||||
const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const commands = {
|
||||
GetRoleCredentialsCommand,
|
||||
ListAccountRolesCommand,
|
||||
ListAccountsCommand,
|
||||
LogoutCommand,
|
||||
};
|
||||
const paginators = {
|
||||
paginateListAccountRoles,
|
||||
paginateListAccounts,
|
||||
};
|
||||
class SSO extends SSOClient {
|
||||
}
|
||||
smithyClient.createAggregatedClient(commands, SSO);
|
||||
|
||||
const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
smithyClient.createAggregatedClient(commands, SSO, { paginators });
|
||||
|
||||
Object.defineProperty(exports, "$Command", ({
|
||||
enumerable: true,
|
||||
@@ -661,6 +665,428 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3956:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7523:
|
||||
@@ -1365,7 +1791,7 @@ exports.nodeProvider = nodeProvider;
|
||||
/***/ 5188:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.975.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.982.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
426
dist/cleanup/136.index.js
generated
vendored
426
dist/cleanup/136.index.js
generated
vendored
@@ -215,7 +215,7 @@ exports.commonParams = {
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1670);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -885,12 +885,434 @@ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
426
dist/cleanup/443.index.js
generated
vendored
426
dist/cleanup/443.index.js
generated
vendored
@@ -72,7 +72,7 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(9947);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -725,12 +725,434 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
430
dist/cleanup/762.index.js
generated
vendored
430
dist/cleanup/762.index.js
generated
vendored
@@ -66,13 +66,13 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2547:
|
||||
/***/ 4928:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(6707);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(6904);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -536,7 +536,7 @@ const url_parser_1 = __webpack_require__(4494);
|
||||
const util_base64_1 = __webpack_require__(8385);
|
||||
const util_utf8_1 = __webpack_require__(1577);
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7709);
|
||||
const endpointResolver_1 = __webpack_require__(2547);
|
||||
const endpointResolver_1 = __webpack_require__(4928);
|
||||
const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2023-01-01",
|
||||
@@ -574,12 +574,434 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6707:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.982.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
2
dist/cleanup/869.index.js
generated
vendored
2
dist/cleanup/869.index.js
generated
vendored
@@ -184,7 +184,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
||||
typeof arg.web_identity_token_file === "string" &&
|
||||
typeof arg.role_arn === "string" &&
|
||||
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
||||
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => __webpack_require__.e(/* import() */ 956).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
|
||||
const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => Promise.all(/* import() */[__webpack_require__.e(136), __webpack_require__.e(956)]).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
|
||||
webIdentityTokenFile: profile.web_identity_token_file,
|
||||
roleArn: profile.role_arn,
|
||||
roleSessionName: profile.role_session_name,
|
||||
|
||||
893
dist/cleanup/956.index.js
generated
vendored
893
dist/cleanup/956.index.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
exports.id = 956;
|
||||
exports.ids = [956,136];
|
||||
exports.ids = [956];
|
||||
exports.modules = {
|
||||
|
||||
/***/ 8079:
|
||||
@@ -137,897 +137,6 @@ Object.keys(fromWebToken).forEach(function (k) {
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3723:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.STSClient = exports.__Client = void 0;
|
||||
const middleware_host_header_1 = __webpack_require__(2590);
|
||||
const middleware_logger_1 = __webpack_require__(5242);
|
||||
const middleware_recursion_detection_1 = __webpack_require__(1568);
|
||||
const middleware_user_agent_1 = __webpack_require__(2959);
|
||||
const config_resolver_1 = __webpack_require__(9316);
|
||||
const core_1 = __webpack_require__(402);
|
||||
const schema_1 = __webpack_require__(6890);
|
||||
const middleware_content_length_1 = __webpack_require__(7212);
|
||||
const middleware_endpoint_1 = __webpack_require__(99);
|
||||
const middleware_retry_1 = __webpack_require__(9618);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithy_client_1.Client; } }));
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7851);
|
||||
const EndpointParameters_1 = __webpack_require__(6811);
|
||||
const runtimeConfig_1 = __webpack_require__(6578);
|
||||
const runtimeExtensions_1 = __webpack_require__(7742);
|
||||
class STSClient extends smithy_client_1.Client {
|
||||
config;
|
||||
constructor(...[configuration]) {
|
||||
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
||||
super(_config_0);
|
||||
this.initConfig = _config_0;
|
||||
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
||||
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
||||
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
||||
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
||||
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
||||
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
||||
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
||||
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
||||
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
||||
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
||||
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
||||
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
||||
"aws.auth#sigv4": config.credentials,
|
||||
}),
|
||||
}));
|
||||
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
||||
}
|
||||
destroy() {
|
||||
super.destroy();
|
||||
}
|
||||
}
|
||||
exports.STSClient = STSClient;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4532:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
||||
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;
|
||||
},
|
||||
};
|
||||
};
|
||||
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
||||
const resolveHttpAuthRuntimeConfig = (config) => {
|
||||
return {
|
||||
httpAuthSchemes: config.httpAuthSchemes(),
|
||||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
||||
credentials: config.credentials(),
|
||||
};
|
||||
};
|
||||
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7851:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const util_middleware_1 = __webpack_require__(6324);
|
||||
const STSClient_1 = __webpack_require__(3723);
|
||||
const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
||||
return {
|
||||
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
||||
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
||||
(() => {
|
||||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
||||
})(),
|
||||
};
|
||||
};
|
||||
exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
|
||||
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",
|
||||
};
|
||||
}
|
||||
const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
||||
const options = [];
|
||||
switch (authParameters.operation) {
|
||||
case "AssumeRoleWithWebIdentity": {
|
||||
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
||||
}
|
||||
}
|
||||
return options;
|
||||
};
|
||||
exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
|
||||
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
||||
stsClientCtor: STSClient_1.STSClient,
|
||||
});
|
||||
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
||||
const resolveHttpAuthSchemeConfig = (config) => {
|
||||
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
||||
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
|
||||
return Object.assign(config_1, {
|
||||
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
||||
});
|
||||
};
|
||||
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6811:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
||||
const resolveClientEndpointParameters = (options) => {
|
||||
return Object.assign(options, {
|
||||
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
||||
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
||||
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
||||
defaultSigningName: "sts",
|
||||
});
|
||||
};
|
||||
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
||||
exports.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" },
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9765:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1670);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
size: 50,
|
||||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
||||
});
|
||||
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||||
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
||||
endpointParams: endpointParams,
|
||||
logger: context.logger,
|
||||
}));
|
||||
};
|
||||
exports.defaultEndpointResolver = defaultEndpointResolver;
|
||||
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1670:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.ruleSet = void 0;
|
||||
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 }] };
|
||||
exports.ruleSet = _data;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1136:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var STSClient = __webpack_require__(3723);
|
||||
var smithyClient = __webpack_require__(1411);
|
||||
var middlewareEndpoint = __webpack_require__(99);
|
||||
var EndpointParameters = __webpack_require__(6811);
|
||||
var schema = __webpack_require__(6890);
|
||||
var client = __webpack_require__(5152);
|
||||
var regionConfigResolver = __webpack_require__(6463);
|
||||
|
||||
class STSServiceException extends smithyClient.ServiceException {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, STSServiceException.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
class ExpiredTokenException extends STSServiceException {
|
||||
name = "ExpiredTokenException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "ExpiredTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
||||
}
|
||||
}
|
||||
class MalformedPolicyDocumentException extends STSServiceException {
|
||||
name = "MalformedPolicyDocumentException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "MalformedPolicyDocumentException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
||||
}
|
||||
}
|
||||
class PackedPolicyTooLargeException extends STSServiceException {
|
||||
name = "PackedPolicyTooLargeException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "PackedPolicyTooLargeException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
||||
}
|
||||
}
|
||||
class RegionDisabledException extends STSServiceException {
|
||||
name = "RegionDisabledException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "RegionDisabledException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
||||
}
|
||||
}
|
||||
class IDPRejectedClaimException extends STSServiceException {
|
||||
name = "IDPRejectedClaimException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPRejectedClaimException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
||||
}
|
||||
}
|
||||
class InvalidIdentityTokenException extends STSServiceException {
|
||||
name = "InvalidIdentityTokenException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "InvalidIdentityTokenException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
||||
}
|
||||
}
|
||||
class IDPCommunicationErrorException extends STSServiceException {
|
||||
name = "IDPCommunicationErrorException";
|
||||
$fault = "client";
|
||||
constructor(opts) {
|
||||
super({
|
||||
name: "IDPCommunicationErrorException",
|
||||
$fault: "client",
|
||||
...opts,
|
||||
});
|
||||
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
const _A = "Arn";
|
||||
const _AKI = "AccessKeyId";
|
||||
const _AR = "AssumeRole";
|
||||
const _ARI = "AssumedRoleId";
|
||||
const _ARR = "AssumeRoleRequest";
|
||||
const _ARRs = "AssumeRoleResponse";
|
||||
const _ARU = "AssumedRoleUser";
|
||||
const _ARWWI = "AssumeRoleWithWebIdentity";
|
||||
const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
|
||||
const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
|
||||
const _Au = "Audience";
|
||||
const _C = "Credentials";
|
||||
const _CA = "ContextAssertion";
|
||||
const _DS = "DurationSeconds";
|
||||
const _E = "Expiration";
|
||||
const _EI = "ExternalId";
|
||||
const _ETE = "ExpiredTokenException";
|
||||
const _IDPCEE = "IDPCommunicationErrorException";
|
||||
const _IDPRCE = "IDPRejectedClaimException";
|
||||
const _IITE = "InvalidIdentityTokenException";
|
||||
const _K = "Key";
|
||||
const _MPDE = "MalformedPolicyDocumentException";
|
||||
const _P = "Policy";
|
||||
const _PA = "PolicyArns";
|
||||
const _PAr = "ProviderArn";
|
||||
const _PC = "ProvidedContexts";
|
||||
const _PCLT = "ProvidedContextsListType";
|
||||
const _PCr = "ProvidedContext";
|
||||
const _PDT = "PolicyDescriptorType";
|
||||
const _PI = "ProviderId";
|
||||
const _PPS = "PackedPolicySize";
|
||||
const _PPTLE = "PackedPolicyTooLargeException";
|
||||
const _Pr = "Provider";
|
||||
const _RA = "RoleArn";
|
||||
const _RDE = "RegionDisabledException";
|
||||
const _RSN = "RoleSessionName";
|
||||
const _SAK = "SecretAccessKey";
|
||||
const _SFWIT = "SubjectFromWebIdentityToken";
|
||||
const _SI = "SourceIdentity";
|
||||
const _SN = "SerialNumber";
|
||||
const _ST = "SessionToken";
|
||||
const _T = "Tags";
|
||||
const _TC = "TokenCode";
|
||||
const _TTK = "TransitiveTagKeys";
|
||||
const _Ta = "Tag";
|
||||
const _V = "Value";
|
||||
const _WIT = "WebIdentityToken";
|
||||
const _a = "arn";
|
||||
const _aKST = "accessKeySecretType";
|
||||
const _aQE = "awsQueryError";
|
||||
const _c = "client";
|
||||
const _cTT = "clientTokenType";
|
||||
const _e = "error";
|
||||
const _hE = "httpError";
|
||||
const _m = "message";
|
||||
const _pDLT = "policyDescriptorListType";
|
||||
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
||||
const _tLT = "tagListType";
|
||||
const n0 = "com.amazonaws.sts";
|
||||
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
||||
var clientTokenType = [0, n0, _cTT, 8, 0];
|
||||
var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
|
||||
var AssumeRoleRequest$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARR,
|
||||
0,
|
||||
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
||||
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
|
||||
2,
|
||||
];
|
||||
var AssumeRoleResponse$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARRs,
|
||||
0,
|
||||
[_C, _ARU, _PPS, _SI],
|
||||
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],
|
||||
];
|
||||
var AssumeRoleWithWebIdentityRequest$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARWWIR,
|
||||
0,
|
||||
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
||||
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
|
||||
3,
|
||||
];
|
||||
var AssumeRoleWithWebIdentityResponse$ = [
|
||||
3,
|
||||
n0,
|
||||
_ARWWIRs,
|
||||
0,
|
||||
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
||||
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],
|
||||
];
|
||||
var Credentials$ = [
|
||||
3,
|
||||
n0,
|
||||
_C,
|
||||
0,
|
||||
[_AKI, _SAK, _ST, _E],
|
||||
[0, [() => accessKeySecretType, 0], 0, 4],
|
||||
4,
|
||||
];
|
||||
var ExpiredTokenException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_ETE,
|
||||
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
||||
var IDPCommunicationErrorException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IDPCEE,
|
||||
{ [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
||||
var IDPRejectedClaimException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IDPRCE,
|
||||
{ [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
||||
var InvalidIdentityTokenException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_IITE,
|
||||
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
||||
var MalformedPolicyDocumentException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_MPDE,
|
||||
{ [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
||||
var PackedPolicyTooLargeException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_PPTLE,
|
||||
{ [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
||||
var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
|
||||
var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
|
||||
var RegionDisabledException$ = [
|
||||
-3,
|
||||
n0,
|
||||
_RDE,
|
||||
{ [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
||||
[_m],
|
||||
[0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);
|
||||
var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
|
||||
var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
||||
schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);
|
||||
var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
|
||||
var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
|
||||
var tagListType = [1, n0, _tLT, 0, () => Tag$];
|
||||
var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
|
||||
var AssumeRoleWithWebIdentity$ = [
|
||||
9,
|
||||
n0,
|
||||
_ARWWI,
|
||||
0,
|
||||
() => AssumeRoleWithWebIdentityRequest$,
|
||||
() => AssumeRoleWithWebIdentityResponse$,
|
||||
];
|
||||
|
||||
class AssumeRoleCommand extends smithyClient.Command
|
||||
.classBuilder()
|
||||
.ep(EndpointParameters.commonParams)
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
|
||||
.n("STSClient", "AssumeRoleCommand")
|
||||
.sc(AssumeRole$)
|
||||
.build() {
|
||||
}
|
||||
|
||||
class AssumeRoleWithWebIdentityCommand extends smithyClient.Command
|
||||
.classBuilder()
|
||||
.ep(EndpointParameters.commonParams)
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
||||
})
|
||||
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
|
||||
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
|
||||
.sc(AssumeRoleWithWebIdentity$)
|
||||
.build() {
|
||||
}
|
||||
|
||||
const commands = {
|
||||
AssumeRoleCommand,
|
||||
AssumeRoleWithWebIdentityCommand,
|
||||
};
|
||||
class STS extends STSClient.STSClient {
|
||||
}
|
||||
smithyClient.createAggregatedClient(commands, STS);
|
||||
|
||||
const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
||||
if (typeof assumedRoleUser?.Arn === "string") {
|
||||
const arnComponents = assumedRoleUser.Arn.split(":");
|
||||
if (arnComponents.length > 4 && arnComponents[4] !== "") {
|
||||
return arnComponents[4];
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
|
||||
const region = typeof _region === "function" ? await _region() : _region;
|
||||
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
||||
let stsDefaultRegion = "";
|
||||
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());
|
||||
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
||||
return resolvedRegion;
|
||||
};
|
||||
const getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
|
||||
let stsClient;
|
||||
let closureSourceCreds;
|
||||
return async (sourceCreds, params) => {
|
||||
closureSourceCreds = sourceCreds;
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
||||
logger,
|
||||
profile,
|
||||
});
|
||||
const isCompatibleRequestHandler = !isH2(requestHandler);
|
||||
stsClient = new STSClient({
|
||||
...stsOptions,
|
||||
userAgentAppId,
|
||||
profile,
|
||||
credentialDefaultProvider: () => async () => closureSourceCreds,
|
||||
region: resolvedRegion,
|
||||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials, AssumedRoleUser } = 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}`);
|
||||
}
|
||||
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
||||
const credentials = {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
|
||||
...(accountId && { accountId }),
|
||||
};
|
||||
client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
|
||||
return credentials;
|
||||
};
|
||||
};
|
||||
const getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
|
||||
let stsClient;
|
||||
return async (params) => {
|
||||
if (!stsClient) {
|
||||
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
|
||||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
||||
logger,
|
||||
profile,
|
||||
});
|
||||
const isCompatibleRequestHandler = !isH2(requestHandler);
|
||||
stsClient = new STSClient({
|
||||
...stsOptions,
|
||||
userAgentAppId,
|
||||
profile,
|
||||
region: resolvedRegion,
|
||||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
||||
logger: logger,
|
||||
});
|
||||
}
|
||||
const { Credentials, AssumedRoleUser } = 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}`);
|
||||
}
|
||||
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
||||
const credentials = {
|
||||
accessKeyId: Credentials.AccessKeyId,
|
||||
secretAccessKey: Credentials.SecretAccessKey,
|
||||
sessionToken: Credentials.SessionToken,
|
||||
expiration: Credentials.Expiration,
|
||||
...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
|
||||
...(accountId && { accountId }),
|
||||
};
|
||||
if (accountId) {
|
||||
client.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
|
||||
}
|
||||
client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
|
||||
return credentials;
|
||||
};
|
||||
};
|
||||
const isH2 = (requestHandler) => {
|
||||
return requestHandler?.metadata?.handlerProtocol === "h2";
|
||||
};
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
|
||||
const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
|
||||
const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
||||
roleAssumer: getDefaultRoleAssumer(input),
|
||||
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
|
||||
...input,
|
||||
});
|
||||
|
||||
Object.defineProperty(exports, "$Command", ({
|
||||
enumerable: true,
|
||||
get: function () { return smithyClient.Command; }
|
||||
}));
|
||||
exports.AssumeRole$ = AssumeRole$;
|
||||
exports.AssumeRoleCommand = AssumeRoleCommand;
|
||||
exports.AssumeRoleRequest$ = AssumeRoleRequest$;
|
||||
exports.AssumeRoleResponse$ = AssumeRoleResponse$;
|
||||
exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
|
||||
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
||||
exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
|
||||
exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
|
||||
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
||||
exports.Credentials$ = Credentials$;
|
||||
exports.ExpiredTokenException = ExpiredTokenException;
|
||||
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
||||
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
||||
exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
|
||||
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
||||
exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
|
||||
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
||||
exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
|
||||
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
||||
exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
|
||||
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
||||
exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
|
||||
exports.PolicyDescriptorType$ = PolicyDescriptorType$;
|
||||
exports.ProvidedContext$ = ProvidedContext$;
|
||||
exports.RegionDisabledException = RegionDisabledException;
|
||||
exports.RegionDisabledException$ = RegionDisabledException$;
|
||||
exports.STS = STS;
|
||||
exports.STSServiceException = STSServiceException;
|
||||
exports.STSServiceException$ = STSServiceException$;
|
||||
exports.Tag$ = Tag$;
|
||||
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
||||
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
||||
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
||||
Object.keys(STSClient).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
||||
enumerable: true,
|
||||
get: function () { return STSClient[k]; }
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6578:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const tslib_1 = __webpack_require__(1860);
|
||||
const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const util_user_agent_node_1 = __webpack_require__(1656);
|
||||
const config_resolver_1 = __webpack_require__(9316);
|
||||
const core_2 = __webpack_require__(402);
|
||||
const hash_node_1 = __webpack_require__(5092);
|
||||
const middleware_retry_1 = __webpack_require__(9618);
|
||||
const node_config_provider_1 = __webpack_require__(5704);
|
||||
const node_http_handler_1 = __webpack_require__(1279);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const util_body_length_node_1 = __webpack_require__(3638);
|
||||
const util_defaults_mode_node_1 = __webpack_require__(5435);
|
||||
const util_retry_1 = __webpack_require__(5518);
|
||||
const runtimeConfig_shared_1 = __webpack_require__(4443);
|
||||
const getRuntimeConfig = (config) => {
|
||||
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
||||
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
||||
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
||||
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
||||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
||||
const loaderConfig = {
|
||||
profile: config?.profile,
|
||||
logger: clientSharedValues.logger,
|
||||
};
|
||||
return {
|
||||
...clientSharedValues,
|
||||
...config,
|
||||
runtime: "node",
|
||||
defaultsMode,
|
||||
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
||||
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
||||
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
||||
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
||||
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
||||
signer: new core_1.AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new core_2.NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
||||
region: config?.region ??
|
||||
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
||||
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
||||
retryMode: config?.retryMode ??
|
||||
(0, node_config_provider_1.loadConfig)({
|
||||
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
||||
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
||||
}, config),
|
||||
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
||||
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
||||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
||||
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
||||
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4443:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const protocols_1 = __webpack_require__(7288);
|
||||
const core_2 = __webpack_require__(402);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const url_parser_1 = __webpack_require__(4494);
|
||||
const util_base64_1 = __webpack_require__(8385);
|
||||
const util_utf8_1 = __webpack_require__(1577);
|
||||
const httpAuthSchemeProvider_1 = __webpack_require__(7851);
|
||||
const endpointResolver_1 = __webpack_require__(9765);
|
||||
const getRuntimeConfig = (config) => {
|
||||
return {
|
||||
apiVersion: "2011-06-15",
|
||||
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
||||
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
||||
disableHostPrefix: config?.disableHostPrefix ?? false,
|
||||
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
||||
extensions: config?.extensions ?? [],
|
||||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
|
||||
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
||||
{
|
||||
schemeId: "aws.auth#sigv4",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
||||
signer: new core_1.AwsSdkSigV4Signer(),
|
||||
},
|
||||
{
|
||||
schemeId: "smithy.api#noAuth",
|
||||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
||||
signer: new core_2.NoAuthSigner(),
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
||||
protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
|
||||
protocolSettings: config?.protocolSettings ?? {
|
||||
defaultNamespace: "com.amazonaws.sts",
|
||||
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
||||
version: "2011-06-15",
|
||||
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
||||
},
|
||||
serviceId: config?.serviceId ?? "STS",
|
||||
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
||||
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
||||
};
|
||||
};
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7742:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolveRuntimeExtensions = void 0;
|
||||
const region_config_resolver_1 = __webpack_require__(6463);
|
||||
const protocol_http_1 = __webpack_require__(2356);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const httpAuthExtensionConfiguration_1 = __webpack_require__(4532);
|
||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
||||
};
|
||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
};
|
||||
|
||||
440
dist/cleanup/998.index.js
generated
vendored
440
dist/cleanup/998.index.js
generated
vendored
@@ -91,7 +91,7 @@ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.defaultEndpointResolver = void 0;
|
||||
const util_endpoints_1 = __webpack_require__(3068);
|
||||
const util_endpoints_1 = __webpack_require__(3956);
|
||||
const util_endpoints_2 = __webpack_require__(9674);
|
||||
const ruleset_1 = __webpack_require__(1308);
|
||||
const cache = new util_endpoints_2.EndpointCache({
|
||||
@@ -493,19 +493,23 @@ class LogoutCommand extends smithyClient.Command
|
||||
.build() {
|
||||
}
|
||||
|
||||
const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const commands = {
|
||||
GetRoleCredentialsCommand,
|
||||
ListAccountRolesCommand,
|
||||
ListAccountsCommand,
|
||||
LogoutCommand,
|
||||
};
|
||||
const paginators = {
|
||||
paginateListAccountRoles,
|
||||
paginateListAccounts,
|
||||
};
|
||||
class SSO extends SSOClient {
|
||||
}
|
||||
smithyClient.createAggregatedClient(commands, SSO);
|
||||
|
||||
const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
||||
|
||||
const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
||||
smithyClient.createAggregatedClient(commands, SSO, { paginators });
|
||||
|
||||
Object.defineProperty(exports, "$Command", ({
|
||||
enumerable: true,
|
||||
@@ -661,6 +665,428 @@ const getRuntimeConfig = (config) => {
|
||||
exports.getRuntimeConfig = getRuntimeConfig;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3956:
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
||||
|
||||
var utilEndpoints = __webpack_require__(9674);
|
||||
var urlParser = __webpack_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7523:
|
||||
@@ -1365,7 +1791,7 @@ exports.nodeProvider = nodeProvider;
|
||||
/***/ 5188:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.975.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.982.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.982.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
579
dist/cleanup/index.js
generated
vendored
579
dist/cleanup/index.js
generated
vendored
@@ -5337,46 +5337,6 @@ class SerdeContextConfig {
|
||||
}
|
||||
}
|
||||
|
||||
function* serializingStructIterator(ns, sourceObject) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
}
|
||||
}
|
||||
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
if (keysRemaining === 0) {
|
||||
break;
|
||||
}
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
let serializationKey = key;
|
||||
if (nameTrait) {
|
||||
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
||||
}
|
||||
if (!(serializationKey in sourceObject)) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
keysRemaining -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
class UnionSerde {
|
||||
from;
|
||||
to;
|
||||
@@ -5504,7 +5464,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
||||
if (union) {
|
||||
unionSerde = new UnionSerde(record, out);
|
||||
}
|
||||
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
let fromKey = memberName;
|
||||
if (jsonName) {
|
||||
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
||||
@@ -5713,7 +5673,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
||||
if (jsonName) {
|
||||
nameMap = {};
|
||||
}
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
||||
if (serializableValue !== undefined) {
|
||||
let targetKey = memberName;
|
||||
@@ -6332,7 +6292,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
||||
else if (ns.isStructSchema()) {
|
||||
if (value && typeof value === "object") {
|
||||
let didWriteMember = false;
|
||||
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, member] of ns.structIterator()) {
|
||||
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
@@ -6633,7 +6593,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
||||
}
|
||||
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
||||
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const val = value[memberName];
|
||||
if (val != null || memberSchema.isIdempotencyToken()) {
|
||||
if (memberSchema.getMergedTraits().xmlAttribute) {
|
||||
@@ -7302,46 +7262,6 @@ class SerdeContextConfig {
|
||||
}
|
||||
}
|
||||
|
||||
function* serializingStructIterator(ns, sourceObject) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
}
|
||||
}
|
||||
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
if (keysRemaining === 0) {
|
||||
break;
|
||||
}
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
let serializationKey = key;
|
||||
if (nameTrait) {
|
||||
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
||||
}
|
||||
if (!(serializationKey in sourceObject)) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
keysRemaining -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
class UnionSerde {
|
||||
from;
|
||||
to;
|
||||
@@ -7469,7 +7389,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
||||
if (union) {
|
||||
unionSerde = new UnionSerde(record, out);
|
||||
}
|
||||
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
let fromKey = memberName;
|
||||
if (jsonName) {
|
||||
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
||||
@@ -7678,7 +7598,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
||||
if (jsonName) {
|
||||
nameMap = {};
|
||||
}
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
||||
if (serializableValue !== undefined) {
|
||||
let targetKey = memberName;
|
||||
@@ -8297,7 +8217,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
||||
else if (ns.isStructSchema()) {
|
||||
if (value && typeof value === "object") {
|
||||
let didWriteMember = false;
|
||||
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, member] of ns.structIterator()) {
|
||||
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
@@ -8598,7 +8518,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
||||
}
|
||||
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
||||
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const val = value[memberName];
|
||||
if (val != null || memberSchema.isIdempotencyToken()) {
|
||||
if (memberSchema.getMergedTraits().xmlAttribute) {
|
||||
@@ -9049,15 +8969,21 @@ function memoizeChain(providers, treatAsExpired) {
|
||||
else if (!credentials || treatAsExpired?.(credentials)) {
|
||||
if (credentials) {
|
||||
if (!passiveLock) {
|
||||
passiveLock = chain(options).then((c) => {
|
||||
passiveLock = chain(options)
|
||||
.then((c) => {
|
||||
credentials = c;
|
||||
})
|
||||
.finally(() => {
|
||||
passiveLock = undefined;
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
activeLock = chain(options).then((c) => {
|
||||
activeLock = chain(options)
|
||||
.then((c) => {
|
||||
credentials = c;
|
||||
})
|
||||
.finally(() => {
|
||||
activeLock = undefined;
|
||||
});
|
||||
return provider(options);
|
||||
@@ -9136,7 +9062,7 @@ const defaultProvider = (init = {}) => memoizeChain([
|
||||
},
|
||||
async (awsIdentityProperties) => {
|
||||
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
||||
const { fromTokenFile } = await __nccwpck_require__.e(/* import() */ 956).then(__nccwpck_require__.t.bind(__nccwpck_require__, 9956, 23));
|
||||
const { fromTokenFile } = await Promise.all(/* import() */[__nccwpck_require__.e(136), __nccwpck_require__.e(956)]).then(__nccwpck_require__.t.bind(__nccwpck_require__, 9956, 23));
|
||||
return fromTokenFile(init)(awsIdentityProperties);
|
||||
},
|
||||
async () => {
|
||||
@@ -9346,7 +9272,7 @@ exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
||||
|
||||
|
||||
var core = __nccwpck_require__(402);
|
||||
var utilEndpoints = __nccwpck_require__(3068);
|
||||
var utilEndpoints = __nccwpck_require__(2547);
|
||||
var protocolHttp = __nccwpck_require__(2356);
|
||||
var core$1 = __nccwpck_require__(8704);
|
||||
|
||||
@@ -9539,6 +9465,429 @@ exports.resolveUserAgentConfig = resolveUserAgentConfig;
|
||||
exports.userAgentMiddleware = userAgentMiddleware;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2547:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var utilEndpoints = __nccwpck_require__(9674);
|
||||
var urlParser = __nccwpck_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6463:
|
||||
@@ -13236,7 +13585,7 @@ class NormalizedSchema {
|
||||
}
|
||||
getSchema() {
|
||||
const sc = this.schema;
|
||||
if (sc[0] === 0) {
|
||||
if (Array.isArray(sc) && sc[0] === 0) {
|
||||
return sc[4];
|
||||
}
|
||||
return sc;
|
||||
@@ -13266,6 +13615,9 @@ class NormalizedSchema {
|
||||
}
|
||||
isStructSchema() {
|
||||
const sc = this.getSchema();
|
||||
if (typeof sc !== "object") {
|
||||
return false;
|
||||
}
|
||||
const id = sc[0];
|
||||
return (id === 3 ||
|
||||
id === -3 ||
|
||||
@@ -13273,6 +13625,9 @@ class NormalizedSchema {
|
||||
}
|
||||
isUnionSchema() {
|
||||
const sc = this.getSchema();
|
||||
if (typeof sc !== "object") {
|
||||
return false;
|
||||
}
|
||||
return sc[0] === 4;
|
||||
}
|
||||
isBlobSchema() {
|
||||
@@ -16004,7 +16359,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
||||
});
|
||||
}
|
||||
resolveDefaultConfig(options) {
|
||||
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
||||
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {};
|
||||
const keepAlive = true;
|
||||
const maxSockets = 50;
|
||||
return {
|
||||
@@ -16027,7 +16382,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
||||
}
|
||||
return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
||||
})(),
|
||||
logger: console,
|
||||
logger,
|
||||
};
|
||||
}
|
||||
destroy() {
|
||||
@@ -18051,9 +18406,8 @@ class ClassBuilder {
|
||||
|
||||
const SENSITIVE_STRING = "***SensitiveInformation***";
|
||||
|
||||
const createAggregatedClient = (commands, Client) => {
|
||||
for (const command of Object.keys(commands)) {
|
||||
const CommandCtor = commands[command];
|
||||
const createAggregatedClient = (commands, Client, options) => {
|
||||
for (const [command, CommandCtor] of Object.entries(commands)) {
|
||||
const methodImpl = async function (args, optionsOrCb, cb) {
|
||||
const command = new CommandCtor(args);
|
||||
if (typeof optionsOrCb === "function") {
|
||||
@@ -18071,6 +18425,33 @@ const createAggregatedClient = (commands, Client) => {
|
||||
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
||||
Client.prototype[methodName] = methodImpl;
|
||||
}
|
||||
const { paginators = {}, waiters = {} } = options ?? {};
|
||||
for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
|
||||
if (Client.prototype[paginatorName] === void 0) {
|
||||
Client.prototype[paginatorName] = function (commandInput = {}, paginationConfiguration, ...rest) {
|
||||
return paginatorFn({
|
||||
...paginationConfiguration,
|
||||
client: this,
|
||||
}, commandInput, ...rest);
|
||||
};
|
||||
}
|
||||
}
|
||||
for (const [waiterName, waiterFn] of Object.entries(waiters)) {
|
||||
if (Client.prototype[waiterName] === void 0) {
|
||||
Client.prototype[waiterName] = async function (commandInput = {}, waiterConfiguration, ...rest) {
|
||||
let config = waiterConfiguration;
|
||||
if (typeof waiterConfiguration === "number") {
|
||||
config = {
|
||||
maxWaitTime: waiterConfiguration,
|
||||
};
|
||||
}
|
||||
return waiterFn({
|
||||
...config,
|
||||
client: this,
|
||||
}, commandInput, ...rest);
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class ServiceException extends Error {
|
||||
@@ -45876,7 +46257,7 @@ module.exports = parseParams
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.975.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/credential-provider-node":"^3.972.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.983.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/credential-provider-node":"^3.972.5","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.983.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
579
dist/index.js
generated
vendored
579
dist/index.js
generated
vendored
@@ -6211,46 +6211,6 @@ class SerdeContextConfig {
|
||||
}
|
||||
}
|
||||
|
||||
function* serializingStructIterator(ns, sourceObject) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
}
|
||||
}
|
||||
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
if (keysRemaining === 0) {
|
||||
break;
|
||||
}
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
let serializationKey = key;
|
||||
if (nameTrait) {
|
||||
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
||||
}
|
||||
if (!(serializationKey in sourceObject)) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
keysRemaining -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
class UnionSerde {
|
||||
from;
|
||||
to;
|
||||
@@ -6378,7 +6338,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
||||
if (union) {
|
||||
unionSerde = new UnionSerde(record, out);
|
||||
}
|
||||
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
let fromKey = memberName;
|
||||
if (jsonName) {
|
||||
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
||||
@@ -6587,7 +6547,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
||||
if (jsonName) {
|
||||
nameMap = {};
|
||||
}
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
||||
if (serializableValue !== undefined) {
|
||||
let targetKey = memberName;
|
||||
@@ -7206,7 +7166,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
||||
else if (ns.isStructSchema()) {
|
||||
if (value && typeof value === "object") {
|
||||
let didWriteMember = false;
|
||||
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, member] of ns.structIterator()) {
|
||||
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
@@ -7507,7 +7467,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
||||
}
|
||||
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
||||
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const val = value[memberName];
|
||||
if (val != null || memberSchema.isIdempotencyToken()) {
|
||||
if (memberSchema.getMergedTraits().xmlAttribute) {
|
||||
@@ -8176,46 +8136,6 @@ class SerdeContextConfig {
|
||||
}
|
||||
}
|
||||
|
||||
function* serializingStructIterator(ns, sourceObject) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
}
|
||||
}
|
||||
function* deserializingStructIterator(ns, sourceObject, nameTrait) {
|
||||
if (ns.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
const struct = ns.getSchema();
|
||||
let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
|
||||
for (let i = 0; i < struct[4].length; ++i) {
|
||||
if (keysRemaining === 0) {
|
||||
break;
|
||||
}
|
||||
const key = struct[4][i];
|
||||
const memberSchema = struct[5][i];
|
||||
const memberNs = new schema.NormalizedSchema([memberSchema, 0], key);
|
||||
let serializationKey = key;
|
||||
if (nameTrait) {
|
||||
serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
|
||||
}
|
||||
if (!(serializationKey in sourceObject)) {
|
||||
continue;
|
||||
}
|
||||
yield [key, memberNs];
|
||||
keysRemaining -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
class UnionSerde {
|
||||
from;
|
||||
to;
|
||||
@@ -8343,7 +8263,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
||||
if (union) {
|
||||
unionSerde = new UnionSerde(record, out);
|
||||
}
|
||||
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
let fromKey = memberName;
|
||||
if (jsonName) {
|
||||
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
||||
@@ -8552,7 +8472,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
||||
if (jsonName) {
|
||||
nameMap = {};
|
||||
}
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
||||
if (serializableValue !== undefined) {
|
||||
let targetKey = memberName;
|
||||
@@ -9171,7 +9091,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
||||
else if (ns.isStructSchema()) {
|
||||
if (value && typeof value === "object") {
|
||||
let didWriteMember = false;
|
||||
for (const [memberName, member] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, member] of ns.structIterator()) {
|
||||
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
||||
continue;
|
||||
}
|
||||
@@ -9472,7 +9392,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
||||
}
|
||||
const structXmlNode = xmlBuilder.XmlNode.of(name);
|
||||
const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
|
||||
for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
|
||||
for (const [memberName, memberSchema] of ns.structIterator()) {
|
||||
const val = value[memberName];
|
||||
if (val != null || memberSchema.isIdempotencyToken()) {
|
||||
if (memberSchema.getMergedTraits().xmlAttribute) {
|
||||
@@ -9923,15 +9843,21 @@ function memoizeChain(providers, treatAsExpired) {
|
||||
else if (!credentials || treatAsExpired?.(credentials)) {
|
||||
if (credentials) {
|
||||
if (!passiveLock) {
|
||||
passiveLock = chain(options).then((c) => {
|
||||
passiveLock = chain(options)
|
||||
.then((c) => {
|
||||
credentials = c;
|
||||
})
|
||||
.finally(() => {
|
||||
passiveLock = undefined;
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
activeLock = chain(options).then((c) => {
|
||||
activeLock = chain(options)
|
||||
.then((c) => {
|
||||
credentials = c;
|
||||
})
|
||||
.finally(() => {
|
||||
activeLock = undefined;
|
||||
});
|
||||
return provider(options);
|
||||
@@ -10010,7 +9936,7 @@ const defaultProvider = (init = {}) => memoizeChain([
|
||||
},
|
||||
async (awsIdentityProperties) => {
|
||||
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
||||
const { fromTokenFile } = await __nccwpck_require__.e(/* import() */ 956).then(__nccwpck_require__.t.bind(__nccwpck_require__, 9956, 23));
|
||||
const { fromTokenFile } = await Promise.all(/* import() */[__nccwpck_require__.e(136), __nccwpck_require__.e(956)]).then(__nccwpck_require__.t.bind(__nccwpck_require__, 9956, 23));
|
||||
return fromTokenFile(init)(awsIdentityProperties);
|
||||
},
|
||||
async () => {
|
||||
@@ -10220,7 +10146,7 @@ exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
||||
|
||||
|
||||
var core = __nccwpck_require__(402);
|
||||
var utilEndpoints = __nccwpck_require__(3068);
|
||||
var utilEndpoints = __nccwpck_require__(2547);
|
||||
var protocolHttp = __nccwpck_require__(2356);
|
||||
var core$1 = __nccwpck_require__(8704);
|
||||
|
||||
@@ -10413,6 +10339,429 @@ exports.resolveUserAgentConfig = resolveUserAgentConfig;
|
||||
exports.userAgentMiddleware = userAgentMiddleware;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2547:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var utilEndpoints = __nccwpck_require__(9674);
|
||||
var urlParser = __nccwpck_require__(4494);
|
||||
|
||||
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
||||
if (allowSubDomains) {
|
||||
for (const label of value.split(".")) {
|
||||
if (!isVirtualHostableS3Bucket(label)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (!utilEndpoints.isValidHostLabel(value)) {
|
||||
return false;
|
||||
}
|
||||
if (value.length < 3 || value.length > 63) {
|
||||
return false;
|
||||
}
|
||||
if (value !== value.toLowerCase()) {
|
||||
return false;
|
||||
}
|
||||
if (utilEndpoints.isIpAddress(value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const ARN_DELIMITER = ":";
|
||||
const RESOURCE_DELIMITER = "/";
|
||||
const parseArn = (value) => {
|
||||
const segments = value.split(ARN_DELIMITER);
|
||||
if (segments.length < 6)
|
||||
return null;
|
||||
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
||||
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
||||
return null;
|
||||
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
||||
return {
|
||||
partition,
|
||||
service,
|
||||
region,
|
||||
accountId,
|
||||
resourceId,
|
||||
};
|
||||
};
|
||||
|
||||
var partitions = [
|
||||
{
|
||||
id: "aws",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-east-1",
|
||||
name: "aws",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"af-south-1": {
|
||||
description: "Africa (Cape Town)"
|
||||
},
|
||||
"ap-east-1": {
|
||||
description: "Asia Pacific (Hong Kong)"
|
||||
},
|
||||
"ap-east-2": {
|
||||
description: "Asia Pacific (Taipei)"
|
||||
},
|
||||
"ap-northeast-1": {
|
||||
description: "Asia Pacific (Tokyo)"
|
||||
},
|
||||
"ap-northeast-2": {
|
||||
description: "Asia Pacific (Seoul)"
|
||||
},
|
||||
"ap-northeast-3": {
|
||||
description: "Asia Pacific (Osaka)"
|
||||
},
|
||||
"ap-south-1": {
|
||||
description: "Asia Pacific (Mumbai)"
|
||||
},
|
||||
"ap-south-2": {
|
||||
description: "Asia Pacific (Hyderabad)"
|
||||
},
|
||||
"ap-southeast-1": {
|
||||
description: "Asia Pacific (Singapore)"
|
||||
},
|
||||
"ap-southeast-2": {
|
||||
description: "Asia Pacific (Sydney)"
|
||||
},
|
||||
"ap-southeast-3": {
|
||||
description: "Asia Pacific (Jakarta)"
|
||||
},
|
||||
"ap-southeast-4": {
|
||||
description: "Asia Pacific (Melbourne)"
|
||||
},
|
||||
"ap-southeast-5": {
|
||||
description: "Asia Pacific (Malaysia)"
|
||||
},
|
||||
"ap-southeast-6": {
|
||||
description: "Asia Pacific (New Zealand)"
|
||||
},
|
||||
"ap-southeast-7": {
|
||||
description: "Asia Pacific (Thailand)"
|
||||
},
|
||||
"aws-global": {
|
||||
description: "aws global region"
|
||||
},
|
||||
"ca-central-1": {
|
||||
description: "Canada (Central)"
|
||||
},
|
||||
"ca-west-1": {
|
||||
description: "Canada West (Calgary)"
|
||||
},
|
||||
"eu-central-1": {
|
||||
description: "Europe (Frankfurt)"
|
||||
},
|
||||
"eu-central-2": {
|
||||
description: "Europe (Zurich)"
|
||||
},
|
||||
"eu-north-1": {
|
||||
description: "Europe (Stockholm)"
|
||||
},
|
||||
"eu-south-1": {
|
||||
description: "Europe (Milan)"
|
||||
},
|
||||
"eu-south-2": {
|
||||
description: "Europe (Spain)"
|
||||
},
|
||||
"eu-west-1": {
|
||||
description: "Europe (Ireland)"
|
||||
},
|
||||
"eu-west-2": {
|
||||
description: "Europe (London)"
|
||||
},
|
||||
"eu-west-3": {
|
||||
description: "Europe (Paris)"
|
||||
},
|
||||
"il-central-1": {
|
||||
description: "Israel (Tel Aviv)"
|
||||
},
|
||||
"me-central-1": {
|
||||
description: "Middle East (UAE)"
|
||||
},
|
||||
"me-south-1": {
|
||||
description: "Middle East (Bahrain)"
|
||||
},
|
||||
"mx-central-1": {
|
||||
description: "Mexico (Central)"
|
||||
},
|
||||
"sa-east-1": {
|
||||
description: "South America (Sao Paulo)"
|
||||
},
|
||||
"us-east-1": {
|
||||
description: "US East (N. Virginia)"
|
||||
},
|
||||
"us-east-2": {
|
||||
description: "US East (Ohio)"
|
||||
},
|
||||
"us-west-1": {
|
||||
description: "US West (N. California)"
|
||||
},
|
||||
"us-west-2": {
|
||||
description: "US West (Oregon)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-cn",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com.cn",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
||||
implicitGlobalRegion: "cn-northwest-1",
|
||||
name: "aws-cn",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-cn-global": {
|
||||
description: "aws-cn global region"
|
||||
},
|
||||
"cn-north-1": {
|
||||
description: "China (Beijing)"
|
||||
},
|
||||
"cn-northwest-1": {
|
||||
description: "China (Ningxia)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-eusc",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.eu",
|
||||
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
||||
implicitGlobalRegion: "eusc-de-east-1",
|
||||
name: "aws-eusc",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"eusc-de-east-1": {
|
||||
description: "AWS European Sovereign Cloud (Germany)"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso",
|
||||
outputs: {
|
||||
dnsSuffix: "c2s.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.ic.gov",
|
||||
implicitGlobalRegion: "us-iso-east-1",
|
||||
name: "aws-iso",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-global": {
|
||||
description: "aws-iso global region"
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
description: "US ISO East"
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
description: "US ISO WEST"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-b",
|
||||
outputs: {
|
||||
dnsSuffix: "sc2s.sgov.gov",
|
||||
dualStackDnsSuffix: "api.aws.scloud",
|
||||
implicitGlobalRegion: "us-isob-east-1",
|
||||
name: "aws-iso-b",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-b-global": {
|
||||
description: "aws-iso-b global region"
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
description: "US ISOB East (Ohio)"
|
||||
},
|
||||
"us-isob-west-1": {
|
||||
description: "US ISOB West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-e",
|
||||
outputs: {
|
||||
dnsSuffix: "cloud.adc-e.uk",
|
||||
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
||||
implicitGlobalRegion: "eu-isoe-west-1",
|
||||
name: "aws-iso-e",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-e-global": {
|
||||
description: "aws-iso-e global region"
|
||||
},
|
||||
"eu-isoe-west-1": {
|
||||
description: "EU ISOE West"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-iso-f",
|
||||
outputs: {
|
||||
dnsSuffix: "csp.hci.ic.gov",
|
||||
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
||||
implicitGlobalRegion: "us-isof-south-1",
|
||||
name: "aws-iso-f",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-iso-f-global": {
|
||||
description: "aws-iso-f global region"
|
||||
},
|
||||
"us-isof-east-1": {
|
||||
description: "US ISOF EAST"
|
||||
},
|
||||
"us-isof-south-1": {
|
||||
description: "US ISOF SOUTH"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "aws-us-gov",
|
||||
outputs: {
|
||||
dnsSuffix: "amazonaws.com",
|
||||
dualStackDnsSuffix: "api.aws",
|
||||
implicitGlobalRegion: "us-gov-west-1",
|
||||
name: "aws-us-gov",
|
||||
supportsDualStack: true,
|
||||
supportsFIPS: true
|
||||
},
|
||||
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
||||
regions: {
|
||||
"aws-us-gov-global": {
|
||||
description: "aws-us-gov global region"
|
||||
},
|
||||
"us-gov-east-1": {
|
||||
description: "AWS GovCloud (US-East)"
|
||||
},
|
||||
"us-gov-west-1": {
|
||||
description: "AWS GovCloud (US-West)"
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
var version = "1.1";
|
||||
var partitionsInfo = {
|
||||
partitions: partitions,
|
||||
version: version
|
||||
};
|
||||
|
||||
let selectedPartitionsInfo = partitionsInfo;
|
||||
let selectedUserAgentPrefix = "";
|
||||
const partition = (value) => {
|
||||
const { partitions } = selectedPartitionsInfo;
|
||||
for (const partition of partitions) {
|
||||
const { regions, outputs } = partition;
|
||||
for (const [region, regionData] of Object.entries(regions)) {
|
||||
if (region === value) {
|
||||
return {
|
||||
...outputs,
|
||||
...regionData,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const partition of partitions) {
|
||||
const { regionRegex, outputs } = partition;
|
||||
if (new RegExp(regionRegex).test(value)) {
|
||||
return {
|
||||
...outputs,
|
||||
};
|
||||
}
|
||||
}
|
||||
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
||||
if (!DEFAULT_PARTITION) {
|
||||
throw new Error("Provided region was not found in the partition array or regex," +
|
||||
" and default partition with id 'aws' doesn't exist.");
|
||||
}
|
||||
return {
|
||||
...DEFAULT_PARTITION.outputs,
|
||||
};
|
||||
};
|
||||
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
||||
selectedPartitionsInfo = partitionsInfo;
|
||||
selectedUserAgentPrefix = userAgentPrefix;
|
||||
};
|
||||
const useDefaultPartitionInfo = () => {
|
||||
setPartitionInfo(partitionsInfo, "");
|
||||
};
|
||||
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
||||
|
||||
const awsEndpointFunctions = {
|
||||
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
||||
parseArn: parseArn,
|
||||
partition: partition,
|
||||
};
|
||||
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === undefined) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(input.endpointProvider({
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
||||
? await input.useDualstackEndpoint()
|
||||
: input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: undefined,
|
||||
}, { logger: input.logger }));
|
||||
};
|
||||
}
|
||||
return input;
|
||||
};
|
||||
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
||||
|
||||
Object.defineProperty(exports, "EndpointError", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.EndpointError; }
|
||||
}));
|
||||
Object.defineProperty(exports, "isIpAddress", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.isIpAddress; }
|
||||
}));
|
||||
Object.defineProperty(exports, "resolveEndpoint", ({
|
||||
enumerable: true,
|
||||
get: function () { return utilEndpoints.resolveEndpoint; }
|
||||
}));
|
||||
exports.awsEndpointFunctions = awsEndpointFunctions;
|
||||
exports.getUserAgentPrefix = getUserAgentPrefix;
|
||||
exports.partition = partition;
|
||||
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
||||
exports.setPartitionInfo = setPartitionInfo;
|
||||
exports.toEndpointV1 = toEndpointV1;
|
||||
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6463:
|
||||
@@ -14110,7 +14459,7 @@ class NormalizedSchema {
|
||||
}
|
||||
getSchema() {
|
||||
const sc = this.schema;
|
||||
if (sc[0] === 0) {
|
||||
if (Array.isArray(sc) && sc[0] === 0) {
|
||||
return sc[4];
|
||||
}
|
||||
return sc;
|
||||
@@ -14140,6 +14489,9 @@ class NormalizedSchema {
|
||||
}
|
||||
isStructSchema() {
|
||||
const sc = this.getSchema();
|
||||
if (typeof sc !== "object") {
|
||||
return false;
|
||||
}
|
||||
const id = sc[0];
|
||||
return (id === 3 ||
|
||||
id === -3 ||
|
||||
@@ -14147,6 +14499,9 @@ class NormalizedSchema {
|
||||
}
|
||||
isUnionSchema() {
|
||||
const sc = this.getSchema();
|
||||
if (typeof sc !== "object") {
|
||||
return false;
|
||||
}
|
||||
return sc[0] === 4;
|
||||
}
|
||||
isBlobSchema() {
|
||||
@@ -16878,7 +17233,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
||||
});
|
||||
}
|
||||
resolveDefaultConfig(options) {
|
||||
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
||||
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {};
|
||||
const keepAlive = true;
|
||||
const maxSockets = 50;
|
||||
return {
|
||||
@@ -16901,7 +17256,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
||||
}
|
||||
return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
||||
})(),
|
||||
logger: console,
|
||||
logger,
|
||||
};
|
||||
}
|
||||
destroy() {
|
||||
@@ -18925,9 +19280,8 @@ class ClassBuilder {
|
||||
|
||||
const SENSITIVE_STRING = "***SensitiveInformation***";
|
||||
|
||||
const createAggregatedClient = (commands, Client) => {
|
||||
for (const command of Object.keys(commands)) {
|
||||
const CommandCtor = commands[command];
|
||||
const createAggregatedClient = (commands, Client, options) => {
|
||||
for (const [command, CommandCtor] of Object.entries(commands)) {
|
||||
const methodImpl = async function (args, optionsOrCb, cb) {
|
||||
const command = new CommandCtor(args);
|
||||
if (typeof optionsOrCb === "function") {
|
||||
@@ -18945,6 +19299,33 @@ const createAggregatedClient = (commands, Client) => {
|
||||
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
||||
Client.prototype[methodName] = methodImpl;
|
||||
}
|
||||
const { paginators = {}, waiters = {} } = options ?? {};
|
||||
for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
|
||||
if (Client.prototype[paginatorName] === void 0) {
|
||||
Client.prototype[paginatorName] = function (commandInput = {}, paginationConfiguration, ...rest) {
|
||||
return paginatorFn({
|
||||
...paginationConfiguration,
|
||||
client: this,
|
||||
}, commandInput, ...rest);
|
||||
};
|
||||
}
|
||||
}
|
||||
for (const [waiterName, waiterFn] of Object.entries(waiters)) {
|
||||
if (Client.prototype[waiterName] === void 0) {
|
||||
Client.prototype[waiterName] = async function (commandInput = {}, waiterConfiguration, ...rest) {
|
||||
let config = waiterConfiguration;
|
||||
if (typeof waiterConfiguration === "number") {
|
||||
config = {
|
||||
maxWaitTime: waiterConfiguration,
|
||||
};
|
||||
}
|
||||
return waiterFn({
|
||||
...config,
|
||||
client: this,
|
||||
}, commandInput, ...rest);
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class ServiceException extends Error {
|
||||
@@ -80204,7 +80585,7 @@ module.exports = LRUCache
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.975.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/credential-provider-node":"^3.972.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.983.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.6","@aws-sdk/credential-provider-node":"^3.972.5","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.6","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.983.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.4","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.22.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.12","@smithy/middleware-retry":"^4.4.29","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.1","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.28","@smithy/util-defaults-mode-node":"^4.2.31","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user