cdk-cost-analyzer 0.1.44 → 0.1.46

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.
Files changed (34) hide show
  1. package/.cdk-cost-analyzer-cache/metadata.json +8 -8
  2. package/dist/action/config/types.d.ts +9 -0
  3. package/dist/action/index.js +3 -3
  4. package/dist/action/pricing/calculators/CloudWatchCalculator.d.ts +51 -0
  5. package/dist/config/types.d.ts +9 -0
  6. package/dist/config/types.js +1 -1
  7. package/dist/pricing/PricingService.js +5 -1
  8. package/dist/pricing/calculators/CloudWatchCalculator.d.ts +51 -0
  9. package/dist/pricing/calculators/CloudWatchCalculator.js +279 -0
  10. package/dist/releasetag.txt +1 -1
  11. package/examples/single-template-usage.js +1 -1
  12. package/package.json +1 -1
  13. package/demo/.cdk-cost-analyzer.yaml +0 -68
  14. package/demo/LICENSE +0 -202
  15. package/demo/README.md +0 -194
  16. package/demo/cdk.json +0 -22
  17. package/demo/cdk.out.1/cdk.out +0 -1
  18. package/demo/cdk.out.1/demo-dev.assets.json +0 -21
  19. package/demo/cdk.out.1/manifest.json +0 -741
  20. package/demo/cdk.out.1/tree.json +0 -1
  21. package/demo/cdk.out.2/cdk.out +0 -1
  22. package/demo/cdk.out.2/demo-dev.assets.json +0 -21
  23. package/demo/cdk.out.2/manifest.json +0 -867
  24. package/demo/cdk.out.2/tree.json +0 -1
  25. package/demo/cdk.out.3/cdk.out +0 -1
  26. package/demo/cdk.out.3/demo-dev.assets.json +0 -21
  27. package/demo/cdk.out.3/manifest.json +0 -950
  28. package/demo/cdk.out.3/tree.json +0 -1
  29. package/demo/package.json +0 -99
  30. package/demo/scripts/seed-slogans.js +0 -55
  31. package/demo/yarn.lock +0 -4801
  32. /package/{demo/cdk.out.1/demo-dev.template.json → examples/fixtures/demo-dev-v1.template.json} +0 -0
  33. /package/{demo/cdk.out.2/demo-dev.template.json → examples/fixtures/demo-dev-v2.template.json} +0 -0
  34. /package/{demo/cdk.out.3/demo-dev.template.json → examples/fixtures/demo-dev-v3.template.json} +0 -0
@@ -2,35 +2,35 @@
2
2
  "entries": {
3
3
  "AmazonS3:US East (N. Virginia):storageClass:General Purpose|volumeType:Standard": {
4
4
  "price": 0.023,
5
- "timestamp": 1773169733255
5
+ "timestamp": 1773216252512
6
6
  },
7
7
  "AmazonDynamoDB:US East (N. Virginia):group:DDB-ReadUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
8
8
  "price": 0.023,
9
- "timestamp": 1773169733266
9
+ "timestamp": 1773216252518
10
10
  },
11
11
  "AmazonDynamoDB:US East (N. Virginia):group:DDB-WriteUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
12
12
  "price": 0.023,
13
- "timestamp": 1773169733266
13
+ "timestamp": 1773216252518
14
14
  },
15
15
  "AmazonEC2:US East (N. Virginia):capacitystatus:Used|instanceType:t3.micro|operatingSystem:Linux|preInstalledSw:NA|tenancy:Shared": {
16
16
  "price": 0.023,
17
- "timestamp": 1773169733293
17
+ "timestamp": 1773216252533
18
18
  },
19
19
  "AWSLambda:US East (N. Virginia):group:AWS-Lambda-Requests": {
20
20
  "price": 0.023,
21
- "timestamp": 1773169733311
21
+ "timestamp": 1773216252538
22
22
  },
23
23
  "AWSLambda:US East (N. Virginia):group:AWS-Lambda-Duration": {
24
24
  "price": 0.023,
25
- "timestamp": 1773169733312
25
+ "timestamp": 1773216252538
26
26
  },
27
27
  "AmazonS3:EU (Frankfurt):storageClass:General Purpose|volumeType:Standard": {
28
28
  "price": 0.023,
29
- "timestamp": 1773169741632
29
+ "timestamp": 1773216261034
30
30
  },
31
31
  "AmazonS3:invalid-region-123:storageClass:General Purpose|volumeType:Standard": {
32
32
  "price": 0.023,
33
- "timestamp": 1773169741673
33
+ "timestamp": 1773216261079
34
34
  }
35
35
  }
36
36
  }
@@ -162,6 +162,15 @@ export interface UsageAssumptionsConfig {
162
162
  /** Monthly DNS queries (default: 1,000,000) */
163
163
  monthlyQueries?: number;
164
164
  };
165
+ /**
166
+ * CloudWatch usage assumptions for cost estimation.
167
+ *
168
+ * @see https://aws.amazon.com/cloudwatch/pricing/
169
+ */
170
+ cloudwatch?: {
171
+ /** Monthly log ingestion volume in GB per log group (default: 10) */
172
+ logsIngestionGB?: number;
173
+ };
165
174
  /**
166
175
  * Kinesis usage assumptions for cost estimation.
167
176
  *