public visit()

in src/aspects/cfn-parameter-reporter.ts [9:21]


  public visit(node: IConstruct): void {
    if (node instanceof CfnParameter) {
      const defaultValue = node.default as string;
      const hasDefault = !!defaultValue;
      const isSsmParameter = node.type.startsWith("AWS::SSM::Parameter::Value");

      if (isSsmParameter && hasDefault) {
        Annotations.of(node.stack).addInfo(
          `Stack reads the SSM Parameter '${defaultValue}'. Ensure it exists prior to deployment.`,
        );
      }
    }
  }