aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 719 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.hasParameter=exports.findParameters=void 0;const section_1=require("./section");function findParameters(template,logicalId,props={}){const section=template.Parameters??{},result=section_1.matchSection(section_1.filterLogicalId(section,logicalId),props);return result.match?result.matches:{}}exports.findParameters=findParameters;function hasParameter(template,logicalId,props){const section=template.Parameters??{},result=section_1.matchSection(section_1.filterLogicalId(section,logicalId),props);if(!result.match)return section_1.formatSectionMatchFailure(`parameters with logicalId '${logicalId}'`,result)}exports.hasParameter=hasParameter;