How to use the @aws-cdk/cx-api.LOGICAL_ID_METADATA_KEY function in @aws-cdk/cx-api

To help you get started, we’ve selected a few @aws-cdk/cx-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / aws-cdk / lib / api / util / cloudformation / stack-activity-monitor.ts View on Github external
        .filter(e => e.type === cxapi.LOGICAL_ID_METADATA_KEY)
        .find(e => e.data === logicalId);
github aws / aws-cdk / packages / aws-cdk / lib / diff.ts View on Github external
function buildLogicalToPathMap(stack: cxapi.CloudFormationStackArtifact) {
  const map: { [id: string]: string } = {};
  for (const md of stack.findMetadataByType(cxapi.LOGICAL_ID_METADATA_KEY)) {
    map[md.data] = md.path;
  }
  return map;
}