UNPKG

@cloud-copilot/iam-simulate

Version:
16 lines 607 B
import { convertIamString } from '../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 */ export function resolvedValue(value, request) { const resolvedValue = convertIamString(value, request, { replaceWildcards: false, convertToRegex: false }); return resolvedValue !== value ? resolvedValue : undefined; } //# sourceMappingURL=conditionUtil.js.map