UNPKG

@cloud-copilot/iam-simulate

Version:
19 lines 725 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolvedValue = resolvedValue; const util_js_1 = require("../util.js"); /** * Get the resolved value of a condition string. * * @param value the string to resolve * @param request the AWS request with context keys * @returns if the resolved value is different from the input value, return the resolved value, otherwise return undefined */ function resolvedValue(value, request) { const resolvedValue = (0, util_js_1.convertIamString)(value, request, { replaceWildcards: false, convertToRegex: false }); return resolvedValue !== value ? resolvedValue : undefined; } //# sourceMappingURL=conditionUtil.js.map