cdk-insights 1.23.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
2
+ export declare const checkApiGatewayMethodAuth: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
@@ -0,0 +1,2 @@
1
+ import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
2
+ export declare const checkDynamoDbEncryption: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
@@ -0,0 +1,2 @@
1
+ import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
2
+ export declare const checkEventBusPolicy: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
@@ -0,0 +1,9 @@
1
+ import type { CommandModule } from 'yargs';
2
+ interface FixCommandArgs {
3
+ rule?: string;
4
+ dryRun?: boolean;
5
+ apply?: boolean;
6
+ all?: boolean;
7
+ }
8
+ export declare const fixCommand: CommandModule<Record<string, unknown>, FixCommandArgs>;
9
+ export {};
@@ -24,6 +24,12 @@ export interface AnalyzeCommandArgs {
24
24
  warnSensitive?: boolean;
25
25
  prComment?: boolean;
26
26
  model?: string;
27
+ /** Filter findings to only show those new since the saved baseline. */
28
+ diff?: boolean;
29
+ /** Save current findings as the new baseline (suppresses fail-on-critical). */
30
+ writeBaseline?: boolean;
31
+ /** Override path to baseline file (default `.cdk-insights-baseline.json`). */
32
+ baseline?: string;
27
33
  cache?: {
28
34
  enabled?: boolean;
29
35
  ttl?: number;
@@ -115,6 +121,19 @@ export interface UserConfig {
115
121
  */
116
122
  batchSize?: number;
117
123
  };
124
+ /**
125
+ * Anonymous, aggregate-only telemetry. Default is OFF — nothing leaves
126
+ * the machine unless the user opts in. When `enabled: true`, the CLI
127
+ * sends three event types to the backend (`baseline_written`,
128
+ * `diff_run`, `fix_run`) carrying severity counts, rule-id histograms,
129
+ * and timing. Resource names, construct paths, file paths, and code
130
+ * are never included. The license ID is sha256-hashed before
131
+ * transmission so even the operator of the backend can't tie events
132
+ * back to a specific customer without the original key.
133
+ */
134
+ telemetry?: {
135
+ enabled?: boolean;
136
+ };
118
137
  [key: string]: unknown;
119
138
  }
120
139
  export interface AnalysisSuccess {