@infrascan/aws-cloudwatch-logs-scanner 0.4.0 → 0.4.2

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
@@ -60,7 +60,8 @@ var CloudwatchLogGroupEntity = {
60
60
  return {
61
61
  id: val.logGroupArn ?? val.arn,
62
62
  label: val.logGroupName,
63
- nodeType: CloudwatchLogGroupEntity.nodeType
63
+ nodeType: CloudwatchLogGroupEntity.nodeType,
64
+ parent: `${val.$metadata.account}-${val.$metadata.region}`
64
65
  };
65
66
  },
66
67
  $source(val) {
package/dist/graph.mjs CHANGED
@@ -36,7 +36,8 @@ var CloudwatchLogGroupEntity = {
36
36
  return {
37
37
  id: val.logGroupArn ?? val.arn,
38
38
  label: val.logGroupName,
39
- nodeType: CloudwatchLogGroupEntity.nodeType
39
+ nodeType: CloudwatchLogGroupEntity.nodeType,
40
+ parent: `${val.$metadata.account}-${val.$metadata.region}`
40
41
  };
41
42
  },
42
43
  $source(val) {
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
@@ -232,7 +232,8 @@ var CloudwatchLogGroupEntity = {
232
232
  return {
233
233
  id: val.logGroupArn ?? val.arn,
234
234
  label: val.logGroupName,
235
- nodeType: CloudwatchLogGroupEntity.nodeType
235
+ nodeType: CloudwatchLogGroupEntity.nodeType,
236
+ parent: `${val.$metadata.account}-${val.$metadata.region}`
236
237
  };
237
238
  },
238
239
  $source(val) {
package/dist/index.mjs CHANGED
@@ -204,7 +204,8 @@ var CloudwatchLogGroupEntity = {
204
204
  return {
205
205
  id: val.logGroupArn ?? val.arn,
206
206
  label: val.logGroupName,
207
- nodeType: CloudwatchLogGroupEntity.nodeType
207
+ nodeType: CloudwatchLogGroupEntity.nodeType,
208
+ parent: `${val.$metadata.account}-${val.$metadata.region}`
208
209
  };
209
210
  },
210
211
  $source(val) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrascan/aws-cloudwatch-logs-scanner",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Infrascan scanner definition for AWS Cloudwatch Logs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",