mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
chore: Update dist
This commit is contained in:
+480
-99
@@ -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