mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-08-31 05:35:04 +09:00
chore: Update dist
This commit is contained in:
+167
-87
@@ -6661,82 +6661,6 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5606:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1509:
|
||||
@@ -7038,7 +6962,7 @@ var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileN
|
||||
}, "Ec2InstanceMetadata"),
|
||||
Environment: /* @__PURE__ */ __name(async (options) => {
|
||||
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
||||
const { fromEnv } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(5606)));
|
||||
const { fromEnv } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7121)));
|
||||
return async () => fromEnv(options)().then(setNamedProvider);
|
||||
}, "Environment")
|
||||
};
|
||||
@@ -7248,6 +7172,82 @@ var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7121:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5861:
|
||||
@@ -7294,7 +7294,7 @@ __export(index_exports, {
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/defaultProvider.ts
|
||||
var import_credential_provider_env = __nccwpck_require__(5606);
|
||||
var import_credential_provider_env = __nccwpck_require__(6153);
|
||||
|
||||
var import_shared_ini_file_loader = __nccwpck_require__(4964);
|
||||
|
||||
@@ -7399,6 +7399,82 @@ var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => creden
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6153:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5360:
|
||||
@@ -12472,7 +12548,13 @@ var HttpProtocol = class {
|
||||
cfId: output.headers["x-amz-cf-id"]
|
||||
};
|
||||
}
|
||||
async deserializeHttpMessage(schema, context, response, headerBindings, dataObject) {
|
||||
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
||||
let dataObject;
|
||||
if (arg4 instanceof Set) {
|
||||
dataObject = arg5;
|
||||
} else {
|
||||
dataObject = arg4;
|
||||
}
|
||||
const deserializer = this.deserializer;
|
||||
const ns = import_schema.NormalizedSchema.of(schema);
|
||||
const nonHttpBindingMembers = [];
|
||||
@@ -12536,7 +12618,7 @@ var HttpProtocol = class {
|
||||
} else if (memberTraits.httpPrefixHeaders !== void 0) {
|
||||
dataObject[memberName] = {};
|
||||
for (const [header, value] of Object.entries(response.headers)) {
|
||||
if (!headerBindings.has(header) && header.startsWith(memberTraits.httpPrefixHeaders)) {
|
||||
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
||||
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(
|
||||
[memberSchema.getValueSchema(), { httpHeader: header }],
|
||||
value
|
||||
@@ -12709,12 +12791,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
||||
delete response.headers[header];
|
||||
response.headers[header.toLowerCase()] = value;
|
||||
}
|
||||
const headerBindings = new Set(
|
||||
Object.values(ns.getMemberSchemas()).map((schema) => {
|
||||
return schema.getMergedTraits().httpHeader;
|
||||
}).filter(Boolean)
|
||||
);
|
||||
const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, headerBindings, dataObject);
|
||||
const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject);
|
||||
if (nonHttpBindingMembers.length) {
|
||||
const bytes = await collectBody(response.body, context);
|
||||
if (bytes.byteLength > 0) {
|
||||
@@ -13366,7 +13443,7 @@ var TypeRegistry = class _TypeRegistry {
|
||||
*/
|
||||
getBaseException() {
|
||||
for (const [id, schema] of this.schemas.entries()) {
|
||||
if (id.startsWith("smithyts.client.synthetic.") && id.endsWith("ServiceException")) {
|
||||
if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
|
||||
return schema;
|
||||
}
|
||||
}
|
||||
@@ -13874,6 +13951,9 @@ var NormalizedSchema = class _NormalizedSchema {
|
||||
* This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
|
||||
*/
|
||||
*structIterator() {
|
||||
if (this.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
if (!this.isStructSchema()) {
|
||||
throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema.");
|
||||
}
|
||||
|
||||
+167
-87
@@ -7362,82 +7362,6 @@ var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
||||
0 && (0);
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5606:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1509:
|
||||
@@ -7739,7 +7663,7 @@ var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileN
|
||||
}, "Ec2InstanceMetadata"),
|
||||
Environment: /* @__PURE__ */ __name(async (options) => {
|
||||
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
||||
const { fromEnv } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(5606)));
|
||||
const { fromEnv } = await Promise.resolve().then(() => __toESM(__nccwpck_require__(7121)));
|
||||
return async () => fromEnv(options)().then(setNamedProvider);
|
||||
}, "Environment")
|
||||
};
|
||||
@@ -7949,6 +7873,82 @@ var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7121:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5861:
|
||||
@@ -7995,7 +7995,7 @@ __export(index_exports, {
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/defaultProvider.ts
|
||||
var import_credential_provider_env = __nccwpck_require__(5606);
|
||||
var import_credential_provider_env = __nccwpck_require__(6153);
|
||||
|
||||
var import_shared_ini_file_loader = __nccwpck_require__(4964);
|
||||
|
||||
@@ -8100,6 +8100,82 @@ var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => creden
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6153:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
||||
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
||||
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
||||
ENV_KEY: () => ENV_KEY,
|
||||
ENV_SECRET: () => ENV_SECRET,
|
||||
ENV_SESSION: () => ENV_SESSION,
|
||||
fromEnv: () => fromEnv
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/fromEnv.ts
|
||||
var import_client = __nccwpck_require__(5152);
|
||||
var import_property_provider = __nccwpck_require__(1238);
|
||||
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
||||
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
||||
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
||||
var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
|
||||
var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
|
||||
var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
|
||||
var fromEnv = /* @__PURE__ */ __name((init) => async () => {
|
||||
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
||||
const accessKeyId = process.env[ENV_KEY];
|
||||
const secretAccessKey = process.env[ENV_SECRET];
|
||||
const sessionToken = process.env[ENV_SESSION];
|
||||
const expiry = process.env[ENV_EXPIRATION];
|
||||
const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
|
||||
const accountId = process.env[ENV_ACCOUNT_ID];
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
const credentials = {
|
||||
accessKeyId,
|
||||
secretAccessKey,
|
||||
...sessionToken && { sessionToken },
|
||||
...expiry && { expiration: new Date(expiry) },
|
||||
...credentialScope && { credentialScope },
|
||||
...accountId && { accountId }
|
||||
};
|
||||
(0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
|
||||
return credentials;
|
||||
}
|
||||
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
||||
}, "fromEnv");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
|
||||
0 && (0);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5360:
|
||||
@@ -13173,7 +13249,13 @@ var HttpProtocol = class {
|
||||
cfId: output.headers["x-amz-cf-id"]
|
||||
};
|
||||
}
|
||||
async deserializeHttpMessage(schema, context, response, headerBindings, dataObject) {
|
||||
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
||||
let dataObject;
|
||||
if (arg4 instanceof Set) {
|
||||
dataObject = arg5;
|
||||
} else {
|
||||
dataObject = arg4;
|
||||
}
|
||||
const deserializer = this.deserializer;
|
||||
const ns = import_schema.NormalizedSchema.of(schema);
|
||||
const nonHttpBindingMembers = [];
|
||||
@@ -13237,7 +13319,7 @@ var HttpProtocol = class {
|
||||
} else if (memberTraits.httpPrefixHeaders !== void 0) {
|
||||
dataObject[memberName] = {};
|
||||
for (const [header, value] of Object.entries(response.headers)) {
|
||||
if (!headerBindings.has(header) && header.startsWith(memberTraits.httpPrefixHeaders)) {
|
||||
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
||||
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(
|
||||
[memberSchema.getValueSchema(), { httpHeader: header }],
|
||||
value
|
||||
@@ -13410,12 +13492,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
||||
delete response.headers[header];
|
||||
response.headers[header.toLowerCase()] = value;
|
||||
}
|
||||
const headerBindings = new Set(
|
||||
Object.values(ns.getMemberSchemas()).map((schema) => {
|
||||
return schema.getMergedTraits().httpHeader;
|
||||
}).filter(Boolean)
|
||||
);
|
||||
const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, headerBindings, dataObject);
|
||||
const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject);
|
||||
if (nonHttpBindingMembers.length) {
|
||||
const bytes = await collectBody(response.body, context);
|
||||
if (bytes.byteLength > 0) {
|
||||
@@ -14067,7 +14144,7 @@ var TypeRegistry = class _TypeRegistry {
|
||||
*/
|
||||
getBaseException() {
|
||||
for (const [id, schema] of this.schemas.entries()) {
|
||||
if (id.startsWith("smithyts.client.synthetic.") && id.endsWith("ServiceException")) {
|
||||
if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
|
||||
return schema;
|
||||
}
|
||||
}
|
||||
@@ -14575,6 +14652,9 @@ var NormalizedSchema = class _NormalizedSchema {
|
||||
* This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
|
||||
*/
|
||||
*structIterator() {
|
||||
if (this.isUnitSchema()) {
|
||||
return;
|
||||
}
|
||||
if (!this.isStructSchema()) {
|
||||
throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user