@infrascan/aws-cloudwatch-logs-scanner 0.4.1 → 0.5.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.
package/dist/graph.d.mts CHANGED
@@ -1,15 +1,17 @@
1
1
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, LogGroup } from '@aws-sdk/client-cloudwatch-logs';
2
- import { BaseState, QualifiedMeasure, TimeUnit, SizeUnit, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types';
2
+ import { QualifiedMeasure, TimeUnit, SizeUnit, BaseState, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types';
3
3
 
4
+ interface LogGroupState {
5
+ dataProtectionStatus?: string;
6
+ accessClass?: string;
7
+ metricFilterCount?: number;
8
+ retentionPeriod?: QualifiedMeasure<TimeUnit>;
9
+ size?: QualifiedMeasure<SizeUnit>;
10
+ }
4
11
  type CloudwatchLogGroup = BaseState<DescribeLogGroupsCommandInput> & {
5
- logGroup: {
6
- dataProtectionStatus?: string;
7
- accessClass?: string;
8
- metricFilterCount?: number;
9
- retentionPeriod?: QualifiedMeasure<TimeUnit>;
10
- size?: QualifiedMeasure<SizeUnit>;
11
- };
12
+ logGroup: LogGroupState;
12
13
  };
14
+ type GraphState = CloudwatchLogGroup;
13
15
  declare const CloudwatchLogGroupEntity: TranslatedEntity<CloudwatchLogGroup, State<DescribeLogGroupsCommandOutput, DescribeLogGroupsCommandInput>, WithCallContext<LogGroup, DescribeLogGroupsCommandInput>>;
14
16
 
15
- export { type CloudwatchLogGroup, CloudwatchLogGroupEntity };
17
+ export { type CloudwatchLogGroup, CloudwatchLogGroupEntity, type GraphState, type LogGroupState };
package/dist/graph.d.ts CHANGED
@@ -1,15 +1,17 @@
1
1
  import { DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, LogGroup } from '@aws-sdk/client-cloudwatch-logs';
2
- import { BaseState, QualifiedMeasure, TimeUnit, SizeUnit, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types';
2
+ import { QualifiedMeasure, TimeUnit, SizeUnit, BaseState, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types';
3
3
 
4
+ interface LogGroupState {
5
+ dataProtectionStatus?: string;
6
+ accessClass?: string;
7
+ metricFilterCount?: number;
8
+ retentionPeriod?: QualifiedMeasure<TimeUnit>;
9
+ size?: QualifiedMeasure<SizeUnit>;
10
+ }
4
11
  type CloudwatchLogGroup = BaseState<DescribeLogGroupsCommandInput> & {
5
- logGroup: {
6
- dataProtectionStatus?: string;
7
- accessClass?: string;
8
- metricFilterCount?: number;
9
- retentionPeriod?: QualifiedMeasure<TimeUnit>;
10
- size?: QualifiedMeasure<SizeUnit>;
11
- };
12
+ logGroup: LogGroupState;
12
13
  };
14
+ type GraphState = CloudwatchLogGroup;
13
15
  declare const CloudwatchLogGroupEntity: TranslatedEntity<CloudwatchLogGroup, State<DescribeLogGroupsCommandOutput, DescribeLogGroupsCommandInput>, WithCallContext<LogGroup, DescribeLogGroupsCommandInput>>;
14
16
 
15
- export { type CloudwatchLogGroup, CloudwatchLogGroupEntity };
17
+ export { type CloudwatchLogGroup, CloudwatchLogGroupEntity, type GraphState, type LogGroupState };
package/dist/graph.js CHANGED
@@ -25,7 +25,7 @@ __export(graph_exports, {
25
25
  module.exports = __toCommonJS(graph_exports);
26
26
  var import_core = require("@infrascan/core");
27
27
  var CloudwatchLogGroupEntity = {
28
- version: "0.1.0",
28
+ version: "0.1.1",
29
29
  debugLabel: "cloudwatch-logs",
30
30
  provider: "aws",
31
31
  command: "DescribeLogGroups",
@@ -60,6 +60,7 @@ var CloudwatchLogGroupEntity = {
60
60
  return {
61
61
  id: val.logGroupArn ?? val.arn,
62
62
  label: val.logGroupName,
63
+ nodeClass: "visual",
63
64
  nodeType: CloudwatchLogGroupEntity.nodeType,
64
65
  parent: `${val.$metadata.account}-${val.$metadata.region}`
65
66
  };
package/dist/graph.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/graph.ts
2
2
  import { evaluateSelector, toLowerCase, Time, Size } from "@infrascan/core";
3
3
  var CloudwatchLogGroupEntity = {
4
- version: "0.1.0",
4
+ version: "0.1.1",
5
5
  debugLabel: "cloudwatch-logs",
6
6
  provider: "aws",
7
7
  command: "DescribeLogGroups",
@@ -36,6 +36,7 @@ var CloudwatchLogGroupEntity = {
36
36
  return {
37
37
  id: val.logGroupArn ?? val.arn,
38
38
  label: val.logGroupName,
39
+ nodeClass: "visual",
39
40
  nodeType: CloudwatchLogGroupEntity.nodeType,
40
41
  parent: `${val.$metadata.account}-${val.$metadata.region}`
41
42
  };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { CloudWatchLogsClient } from '@aws-sdk/client-cloudwatch-logs';
2
2
  import { ServiceModule } from '@infrascan/shared-types';
3
+ export { GraphState, LogGroupState } from './graph.mjs';
3
4
 
4
5
  declare const CloudWatchLogsScanner: ServiceModule<CloudWatchLogsClient, "aws">;
5
6
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { CloudWatchLogsClient } from '@aws-sdk/client-cloudwatch-logs';
2
2
  import { ServiceModule } from '@infrascan/shared-types';
3
+ export { GraphState, LogGroupState } from './graph.js';
3
4
 
4
5
  declare const CloudWatchLogsScanner: ServiceModule<CloudWatchLogsClient, "aws">;
5
6
 
6
- export = CloudWatchLogsScanner;
7
+ export { CloudWatchLogsScanner as default };
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ async function getEdges(stateConnector) {
197
197
  // src/graph.ts
198
198
  var import_core3 = require("@infrascan/core");
199
199
  var CloudwatchLogGroupEntity = {
200
- version: "0.1.0",
200
+ version: "0.1.1",
201
201
  debugLabel: "cloudwatch-logs",
202
202
  provider: "aws",
203
203
  command: "DescribeLogGroups",
@@ -232,6 +232,7 @@ var CloudwatchLogGroupEntity = {
232
232
  return {
233
233
  id: val.logGroupArn ?? val.arn,
234
234
  label: val.logGroupName,
235
+ nodeClass: "visual",
235
236
  nodeType: CloudwatchLogGroupEntity.nodeType,
236
237
  parent: `${val.$metadata.account}-${val.$metadata.region}`
237
238
  };
package/dist/index.mjs CHANGED
@@ -169,7 +169,7 @@ async function getEdges(stateConnector) {
169
169
  // src/graph.ts
170
170
  import { evaluateSelector, toLowerCase, Time, Size } from "@infrascan/core";
171
171
  var CloudwatchLogGroupEntity = {
172
- version: "0.1.0",
172
+ version: "0.1.1",
173
173
  debugLabel: "cloudwatch-logs",
174
174
  provider: "aws",
175
175
  command: "DescribeLogGroups",
@@ -204,6 +204,7 @@ var CloudwatchLogGroupEntity = {
204
204
  return {
205
205
  id: val.logGroupArn ?? val.arn,
206
206
  label: val.logGroupName,
207
+ nodeClass: "visual",
207
208
  nodeType: CloudwatchLogGroupEntity.nodeType,
208
209
  parent: `${val.$metadata.account}-${val.$metadata.region}`
209
210
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrascan/aws-cloudwatch-logs-scanner",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Infrascan scanner definition for AWS Cloudwatch Logs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -44,12 +44,13 @@
44
44
  "@aws-sdk/credential-providers": "3.624.0",
45
45
  "@infrascan/aws-codegen": "^0.1.0",
46
46
  "@infrascan/fs-connector": "^0.3.0",
47
- "@infrascan/shared-types": "^0.6.0",
47
+ "@infrascan/shared-types": "^0.7.0",
48
48
  "@infrascan/tsconfig": "*",
49
49
  "aws-sdk-client-mock": "^3.0.0",
50
50
  "eslint-config-codegen": "^1.0.0",
51
- "tap": "^18.7.0",
52
- "@types/debug": "^4"
51
+ "tap": "^21",
52
+ "@types/debug": "^4",
53
+ "typescript": "^5.4.5"
53
54
  },
54
55
  "dependencies": {
55
56
  "@aws-sdk/client-cloudwatch-logs": "3.624.0",